* {
     margin: 0;
     padding: 0;
}
body {
     background-color: #B5E2FA;
     text-align: center;
}
h1 {
     color: #EB5160;
     font-size: 100px;
     font-weight: bolder;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.container {
     height: 70vh;
     display: flex;
     justify-content: center;
     align-items: center;
     
}
.game {
     height: 60vmin;
     width: 60vmin;
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     align-items: center;
     gap: 1.5vmin;

}
.box {
     height: 18vmin;
     width: 18vmin;
     font-weight: bold;
     border-radius: 1rem;
     border: none;
     box-shadow: 0 0 1rem rgba(0,0,0,0.5);
     font-size: 8vmin;
     background-color: #F7A072;
     color: #F9F7F3;
     vertical-align: middle;
     cursor: pointer;
}
.x {
     color: red;
}
.o {
     color: blue;
}
#reset{
     padding: 1rem;
     font-size: 1.25rem;
     background-color: #EDDEA4;
     border-radius: 1rem;
     border: none;
     font-weight: bolder;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     box-shadow: 0 0 1rem rgba(0,0,0,0.5);
}
#new{
     padding: 1rem;
     font-size: 1.25rem;
     background-color: #EDDEA4;
     border-radius: 1rem;
     border: none;
     font-weight: bolder;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     box-shadow: 0 0 1rem rgba(0,0,0,0.5);
}
#win{
     color: #EB5160;
     font-size: 100px;
     font-weight: bolder;
     font-size: 5vmax;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.msg-container {
     height: 100vmin;
     display: flex;
     justify-content: center;
     align-items: center;
     flex-direction: column;
     gap: 4rem;
}
.hide{
     display: none;
}
@keyframes winFlash {
  0% { background-color: #90ee90; }
  50% { background-color: #ffff00; } 
  100% { background-color: #90ee90; }
}

.winning-box {
  animation: winFlash 1s infinite;
}
.player-setup {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.player-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.player-input label {
  font-weight: bold;
  color: #333;
  font-size: 1.1rem;
}
.player-input input {
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  min-width: 200px;
  transition: border-color 0.3s ease;
}
.player-input input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.turn-display {
  text-align: center;
  margin: 1.5rem 0;
}
.turn-display p {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  padding: 0.5rem;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .player-setup {
    flex-direction: column;
    gap: 1rem;
  }
  
  .player-input input {
    min-width: 250px;
  }
}