* {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  margin: 0;
  text-align: center;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("TTT.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: fixed;
  filter: blur(4px);
  z-index: -1;
}

.title {
  font-size: 1rem;
  margin-top: 2rem;
  display: inline-block;
  padding: 1rem;
  background-color: #191913;
  border-radius: 1rem;
  color: #ffffc7;
  border: 2px solid #ffffc7;
}

.container {
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.game {
    height: 60vmin;
    width: 60vmin;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5vmin;
}

.box {
    height: 18vmin;
    width: 18vmin;
    display: inline-block;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0 0.5rem rgba(0,0,0,0.4);
    font-size: 8vmin;
   color: #b0413e;
   background-color: #ffffc7;
}
#reset-btn,#new-btn {
  padding: 1rem;
  font-size: 1.25rem;
  background-color: #191913;
  color: #ffffc7;
  border-radius: 1rem;
  border: 2px solid #ffffc7;
}
#reset-btn:hover,
#new-btn:hover {
  background-color: #ffffc7;
  color: #191913;
  cursor: pointer;
  border: 2px solid #191913;
}

.winner-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color:#ffffc7;
    background-color: #191913;
    padding: 2rem;
    border: 2px solid #ffffc7;
    border-radius: 1rem;
    box-shadow: 0 0 1rem rgba(0,0,0,1);
    overflow: hidden;
}
.winner-container h1{
  margin-bottom: 1rem;
}
@media (max-width: 685px) {
  .title {
    font-size: 1.5rem;
    padding: 0.8rem;
  }
  .game {
    height: 80vmin;
    width: 80vmin;
  }
  .box {
    height: 24vmin;
    width: 24vmin;
    font-size: 10vmin;
  }
  #reset-btn, #new-btn {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

/* Mobile view */
@media (max-width: 480px) {
  .title {
    font-size: 1.2rem;
    padding: 0.6rem;
  }
  .game {
    height: 90vmin;
    width: 90vmin;
  }
  .box {
    height: 28vmin;
    width: 28vmin;
    font-size: 12vmin;
  }
  #reset-btn, #new-btn {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
}
