*{
    margin: 0;
    padding: 0;
}

body{
    background: linear-gradient(to right, rgb(255, 125, 125),rgb(138, 255, 138),rgb(117, 117, 255));
    color: white;
    text-align: center;
}
main{
    padding: 2rem;
}
.container{
    height: 70vh;
    width: 70%;
    margin: 0 auto;
    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;
}

.box{
    background: linear-gradient(45deg, rgb(53, 44, 29),rgb(38, 46, 49));
    height: 18vmin;
    width: 18vmin;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0px 3px rgba(248, 150, 150, 0.5);
    font-size: 3rem;
    color: rgb(230, 230, 230);
}

#rst-btn,#restart,#restartAfterOver{
    outline: none;
    padding: .8rem 1.8rem;
    background-color: rgb(248, 216, 216);
    border: 1px solid rgb(255, 166, 166);
    border-radius: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgb(45, 45, 45);
    font-weight: 600;
}
#rst-btn:hover{
    background-color: rgb(242, 191, 191);
}
#restart:hover{
    background-color: rgb(242, 191, 191);
}
#restartAfterOver:hover{
    background-color: rgb(242, 191, 191);
}

.winner-msg{
    height: 100vh;
    width: 100vw;
    background-color: rgba(51, 58, 51, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3rem;
    position: absolute;
}

#msg{
    font-size: 2rem;
    max-width: 500px;
    background: linear-gradient(90deg,rgb(113, 226, 219) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%);
    background-clip: text;
    color: transparent;
    text-shadow: 1px 1px 5px rgba(223, 251, 207, 0.811);
}
#winner{
    color: rgb(17, 253, 17);
    font-weight: 900;
}

.game-over-div{
    height: 100vh;
    width: 100vw;
    background-color: rgba(51, 58, 51, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3rem;
    position: absolute;
}
#game-over-msg{
    font-size: 2rem;
    max-width: 500px;
    background: linear-gradient(90deg,rgb(255, 94, 94) 0%, rgba(199, 87, 87, 1) 50%, rgba(237, 83, 83, 1) 100%);
    background-clip: text;
    color: transparent;
    text-shadow: 1px 1px 5px rgba(251, 107, 107, 0.811);
}

.hide{
    display: none;
}







@media (max-width:480px) {
    .container{
    height: 50vh;
    width: 70%;
    }
}