body {
    background-color: #0b1016;
    text-align: center;
    justify-content: center; 
    align-items: center; 
    margin: 0;
    height: 100vh;
}
h1{
    color:#f7b731;
    text-shadow: 2px 2px #eb3b5a;
    font-family: "Press Start 2P", system-ui;
    line-height: 1.5;
}
.block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game {
    height: 60vh;
    width: 60vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 1.5vmin;
}

.box {
    background-color: #1e272e;
    height: 18vh;
    width: 18vh;
    border: 2px solid #4bcffa; 
    box-shadow: 0 0 10px rgba(75, 207, 250, 0.5);
    border-radius: 1rem;
    font-size:14vh;
    background-color: rgb(255, 255, 255);
    color: #0fb9b1;
    align-content: center;
    text-align: center;

}

#reset{
    background-color:rgb(255, 0, 0);
    height: 40px;
    width: 80px;
    padding: 10px;
    font-size: larger;
    border: 0;
    border-radius: 8px;
    text-align: center;
    color: rgb(255, 255, 255);
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

#new-btn{
    background-color: rgb(64, 255, 0);
    height: 40px;
    width: 100px;
    padding: 10px;
    border: 3px solid rgb(0, 0, 0);
    border-radius: 8px;
    text-align: center;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size:medium;
    text-align: center;
    color: rgb(0, 0, 0);
    
    
}

#msg{

    font-family: "Press Start 2P", system-ui;
    font-size: xx-large; 
    line-height: 1.5;
    color: rgb(0, 255, 0);

}

.hide{
    display: none;
}

#reset, #new-btn {
    transition: 0.3s; 
}
#reset:hover {
    background-color: rgb(254, 46, 46); 
    color: rgb(255, 255, 255); 
    cursor: pointer; 
    transform: scale(1.1); 
}

#new-btn:hover {
    background-color: rgb(251, 27, 27);
    color: black;
    cursor: pointer;
    transform: scale(1.1);
}

.x-color {
    color: #ff4757; 
    text-shadow: 0 0 10px #ff4757; 
}

.o-color {
    color: #2ed573; 
    text-shadow: 0 0 10px #2ed573;
}

.msg-winner {
    color: #2ed573;
    text-shadow: 0 0 10px #2ed573;
}

.msg-draw {
    color: #f1c40f; 
    text-shadow: 0 0 10px #f1c40f; 
}

footer {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: "Press Start 2P", system-ui;
    font-size: 10px;
    opacity: 0.7; 
    z-index: 100;
}


@media (max-width: 768px) {
    .game {
        width: 90vw; 
        height: 90vw; 
        gap: 2vw;    
    }

    .box {
        width: 28vw;  
        height: 28vw;
        font-size: 15vw;
    }

    #msg {
        font-size: 8vw; 
    }
    h1 {
        font-size: 8vw;
        margin-bottom: 5vh;
    }

    #new-btn, #reset {
        font-size: 4vw; 
        padding: 2vh 4vw; 
    }

    footer {
        font-size: 8px;
        bottom: 5px;
    }
}