*{
    margin: 0;
    padding: 0;
}
body{
    background-color: #548686;
    text-align: center;
}
.container{
    height: 62vh; /* vh stands for Viewport Height --  relative to screen height */
    display: flex;
    justify-content: center;
    align-items: center;
}
.box{
    height: 18vmin;  /*vmin Takes minimum of (width, height)*/
    width: 18vmin;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0 1rem rgba(0,0,0,0.3);
    font-size: 8vmin;
    color: #b0413b;
    background-color: #ffffc7;
}
.box.win {
    background-color: #b0413b;
    color: #ffffc7;
}


/* Scoreboard */
.scoreboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem auto 0;
}

.score-card {
    width: 140px;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 199, 0.15);
    border: 1px solid rgba(255, 255, 199, 0.3);
    border-radius: 1.2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.score-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 199, 0.23);
}

.player-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffc7;
}

.player-symbol {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffc7;
}

.score {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffc7;
    line-height: 1.2;
}

.score-caption {
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: rgba(255, 255, 199, 0.7);
}

.mode-select {
    margin-top: 1rem;
    color: #ffffc7;
    font-weight: 700;
}

.mode-select select {
    margin-left: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .scoreboard {
        gap: 1rem;
    }

    .score-card {
        width: 110px;
        padding: 1rem 0.7rem;
    }

    .score {
        font-size: 2rem;
    }
}



.game{
    height: 60vmin;
    width: 60vmin;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5vmin;
}
#reset-btn{
    padding: 1rem;
    font-size: 1.25rem;
    background-color: #191913;
    color: #fff;
    border-radius: 1rem;
    border: none;

}
#msg{
    color: #ffffc7;
    font-size: 5vmin;
}
#new-btn{
    color: #fff;
    background-color: #191913;
    padding: 1rem;
    font-size: 1.25rem;
    border-radius: 1rem;
    border: none;
}

.msg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(84, 134, 134, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4rem;
    z-index: 10;
}

.hide {
    display: none;
}
