*{
    margin: 0;
    padding: 0;
}

body{
    background-color: #f4978e;
    text-align: center;
}

main{
    margin-bottom: 2rem;
}

main h1{
    font-size: 4rem;
    margin: 3rem;
    font-family: 'Times New Roman', Times, serif;
}

.msg-box{
    font-size: 4rem;
    font-weight: 800;
    color: #75f81e;
    height: 100vmin;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Times New Roman', Times, serif;
}

.container{
    height: 70vh;
    display: flex;
    justify-content: center;
}

.game{
    height: 60vmin;
    width: 60vmin;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.box{
    height: 18vmin;
    width: 18vmin;
    border-radius: 30px;
    border: none;
    font-size: 3.5rem;
    font-weight: 700;
    color: #582f0e;
    background-color: #f3e9dc;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

#reset-btn{
    width: 20vmin;
    height: 6vmin;
    font-size: 1.3rem;
    border-radius: 30px;
    border: none;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
    background-color: #e71d36;
    color: #fff;
    scale: 1;
    transition: .3s ease-in;
    font-family: 'Times New Roman', Times, serif;
}

#reset-btn:hover{
    scale: 1.1;
    color: #fff;
}

#new-btn{
    width: 18vmin;
    height: 6vmin;
    font-size: 1.3rem;
    border-radius: 30px;
    border: none;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
    background-color: #289f2a;
    color: #fff;
    margin-right: 14rem;
    scale: 1;
    transition: .3s ease-in;
    font-family: 'Times New Roman', Times, serif;
}

#new-btn:hover{
    scale: 1.1;
    color: #fff;
}

.hide{
    display: none;
}

@media (max-width: 768px) {
    .container{
        max-height: 70vmin;
    }

    .msg-box{
        height: 100vmin;
        font-size: 3rem;
        margin: 0 4rem; 
    }
}

@media (max-width: 640px) {
    main h1{
        font-size: 2.7rem;
    }

    .game{
        height: 50vmin;
        width: 70vmin;
    }

    .msg-box{
        font-size: 3rem;
        margin: 0 4rem; 
    }

    .btn{
        margin-top: 2rem;
        display: flex;
        width: 100%;
        justify-content: center;
        align-self: center;
        gap: 3.5rem;
    }

    #new-btn{
        width: 30vmin;
        height: 3rem;
        font-size: 1rem;
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    #reset-btn{
        width: 30vmin;
        height: 3rem;
        font-size: 1rem;
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .box{
        font-size: 3rem;
    }
}

@media (max-width: 375px) {
    main h1{
        font-size: 1.5rem;
    }

    .hide{
        display: none;
    }

    .msg-box{
        font-size: 2rem;
        margin: 0 4rem; 
    }

    #new-btn{
        width: 30vmin;
        height: 3rem;
        font-size: 10px;
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    #reset-btn{
        width: 30vmin;
        height: 3rem;
        font-size: 10px;
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .box{
        font-size: 2.5rem;
    }
}
