:root {
  --primary-color: #3498db;
  --card-bg: #ffffff;
  --hover-bg: #ecf6ff;
  --text-color: #2c3e50;
  --border-radius: 10px;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 20px;
  font-size: 20px !important;
  box-sizing: border-box;
}

.go-back {
  position: absolute;
  top: 35px;
  right: 20px;
  border-radius: 5px;
  font-size: 18px;
  padding: 5px 10px;
  font-size: 16px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

tr:nth-child(2) td:nth-child(2) {
  border-top: none;
}

tr:nth-child(n+2) td:nth-child(2) {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: none;
  border-left: none;
  border-right: none;
}

tr:nth-child(n+2) td:nth-child(2) img {
  margin-right: 20px;
  border-radius: 20px;
}

th,
td {
  padding: 15px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background-color: #3498db;
  color: white;
}

.image-cell {
  max-width: 100px;
}

/* Modal styles */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  user-select: none;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

img {
  cursor: pointer;
}

/* Games */

.games-heading {
  margin-top: 50px;
  color: #3498db;
  text-align: center;
}

.games-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.game-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: calc(33% - 2rem);
  transition: transform 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  /* Remove underline */
  display: block;
}

.game-card:hover {
  transform: translateY(-5px);
  background-color: var(--hover-bg);
}