@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaina+2&family=Roboto&display=swap');
*{
    margin: 0;
    padding: 0;
}

body{
    background-image: linear-gradient(to bottom, grey, white, grey);
    background-size: 100%;
}

nav{
    background-color: #0F3D3E;
    color: white;
    height: 65px;
    font-size: 27px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-family: 'Righteous', cursive;
    font-weight: bolder;
}

nav ul{
    list-style-type: none;
}

.containsGame{ 
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.contents{
    display: grid;
    grid-template-rows: repeat(3, 10vw);
    grid-template-columns: repeat(3, 10vw);
    font-family: 'Permanent Marker', cursive;
    position: relative;
}

.box{
    border: 4px solid black;
    border-color: #0F3D3E;
    font-size: 8vw;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box:hover{
    background-color: #CEE5D0;
}

.info {
    font-size: 22px;
}

.infom{
    padding: 0 34px;
    font-family: 'Fredoka One', cursive;
    line-height: 2;
}

.infom h1{
    font-size: 2.5rem;
}

.imgbox img{
    width: 0;
    transition: width 1s ease-in-out;
}

.br1{
    border-right: 0;
}

.bl{
    border-left: 0;
}

.bt{
    border-top: 0;
}

.bb{
    border-bottom: 0;
}

#reset {
    margin: 0 23px;
    padding: 0px 18px;
    background: #D4F6CC;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 17px;
    font-weight: bolder;
}

.line{
    background-color: black;
    height: 3px;
    width: 0;
    position: absolute;
    background-color: #911d91;
    transition: width 1s ease-in-out;
}

@media screen and (max-width: 950px)
{
    .containsGame{
        flex-wrap: wrap;
    }
    .infom{
        margin-top: 34px;
    }
    .infom h1{
        font-size: 1.5rem;
    }
    .contents { 
        grid-template-rows: repeat(3, 20vw);
        grid-template-columns: repeat(3, 20vw);
    }


}