* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#gameContainer {
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 95vw;
  max-width: 500px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

#cellContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin: 20px auto;
}

.cell {
  background-color: white;
  border: 2px solid #333;
  font-size: 12vw;
  height: 30vw;
  max-height: 120px;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background-color 0.2s ease;
}

.cell:hover {
  background-color: #f0f0f0;
}

#statusText {
  font-size: 1.3rem;
  margin: 15px 0;
  color: #444;
}

#restart {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#restart:hover {
  background-color: #0056b3;
}

/* Medium screen adjustments */
@media (min-width: 600px) {
  .cell {
    font-size: 6vw;
    height: 10vw;
  }

  #statusText {
    font-size: 1.5rem;
  }

  #restart {
    font-size: 1.1rem;
  }
}

@media (min-width: 375px) {
  .cell {
    font-size: 6vw;
    height: 10vw;
  }

  #statusText {
    font-size: 1.5rem;
  }

  #restart {
    font-size: 1.1rem;
  }
}

/* Larger screen adjustments */
@media (min-width: 1024px) {
  #gameContainer {
    max-width: 450px;
  }

  .cell {
    font-size: 40px;
    height: 120px;
  }

  #statusText {
    font-size: 2rem;
  }

  #restart {
    font-size: 1.2rem;
    /* padding: 12px 25px; */
  }
}