*{
    margin: 0px;
    padding: 0px;
}
h1{
    color: #fff;
    margin-top: 2rem;
    font-size: 2.5rem;
}
body{
    text-align: center;
    /* background-color: #38a5d4c9; */
    background: #3F5EFB;
    background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
}
.container{
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center; 
}
.game{
    height: 60vmin;
    width: 60vmin;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5vmin;
}
.box{
    height: 18vmin;
    width: 18vmin ;
    border-radius: 1rem;
    background: #22C1C3;
    background: linear-gradient(0deg, rgba(34, 193, 195, 1) 0%, rgba(253, 187, 45, 1) 100%);
    font-size: 8vmin;
    border: none;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
}

#reset-btn{
padding: 1rem;
margin-bottom: 2rem;
font-size: 1.25rem;
border-radius: 1rem;
background-color: #93ce40a4;
border: none;
color: #fff;
}
#new-btn{
padding: 1rem;
font-size: 1.25rem;
border-radius: 1rem;
background-color: #93ce40a4;
border: none;
color: #fff;
}
#msg{
    color: #fff;
    font-size: 3rem;
}
.msg-container{
    height: 100vmin;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4rem;

}
.hide{
    display: none;
}
/* Overlay background */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Overlay content box */
.overlay-content {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  text-align: center;
  width: 320px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  animation: pop 0.3s ease;
}

@keyframes pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Title */
.overlay-content h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 22px;
}

/* Input containers */
.player-input {
  margin-bottom: 15px;
  text-align: left;
}

/* Labels */
.player-input label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 14px;
}

.player-input label[for="player1"] {
  color: #0077ff; /* Blue for O */
}
.player-input label[for="player2"] {
  color: #d62828; /* Red for X */
}

/* Inputs */
.player-input input {
  width: 100%;
  padding: 8px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.player-input input:focus {
  border-color: #0077ff;
}

/* Button */
.start-btn {
  background: linear-gradient(90deg, #0077ff, #00b4d8);
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.start-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Hide overlay */
.hide-overlay {
  display: none;
}
