*{
    margin: 0;
    padding: 0;    
    box-sizing: border-box;
}

body{
    text-align: center;
    background: radial-gradient(circle at top, black, black);
    color: white;
    font-family: "Segoe UI", sans-serif;
}

/* Title */
.title{
    margin-top: 5vh;
    font-size: 6vmin;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0,200,255,0.6);
}

/* Mode buttons */
.mode-select{
    margin-top: 3vh;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Scoreboard */
.scoreboard{
    margin-top: 2vh;
    font-size: 3vmin;
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: white;
    font-weight: 600;
}

/* Game area */
.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;
}

/* Glass boxes */
.box{
    height: 18vmin;
    width: 18vmin;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.25);

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow: 0 0 20px rgba(0,180,255,0.25);
    font-size: 8vmin;
    color:#e7f9ff;

    cursor: pointer;
    transition: all 0.25s ease;
}

.box:hover{
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(0,220,255,0.8);
}

.box:active{
    transform: scale(0.95);
}

/* Glass buttons */
#new-game,
#reset-game,
.mode-select button{
    height: 7vmin;
    width: 20vmin;
    border-radius: 0.7rem;
    border: 1px solid rgba(255,255,255,0.3);

    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow: 0 0 20px rgba(0,180,255,0.4);
    font-size: 2.2vmin;
    font-weight: bold;
    cursor: pointer;

    color: white;
    transition: all 0.25s ease;
}

#new-game:hover,
#reset-game:hover,
.mode-select button:hover{
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0,220,255,1);
}

#new-game:active,
#reset-game:active,
.mode-select button:active{
    transform: scale(0.95);
}

/* Winner popup */
.msg-container{
    margin-top: 35vh;
    margin-bottom: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
}

#msg{
    font-size: 6vmin;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 25px white;
}

/* Utility */
.hide{
    display: none;
}
.brand{
    position: fixed;
    top: 20px;
    left: 25px;
    font-size: 8vmin;
    font-weight: 900;
    letter-spacing: 2px;

    color: white;
    text-shadow: 
        0 0 10px white,
        0 0 25px white,
}
#confetti{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    color: silver;
}
