*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;

}

body{
    background-color: #d8e2dc;
}


.header{
    background: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(img_play.jpg);
    width: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 150px;

}
.nav_link{
    flex: 1;
    text-align: right;
}

.nav_link ul li{
    list-style: none;
    display: inline-block;
    padding: 12px 24px;
    position: relative;
}
.nav_link ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}
.nav_link ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav_link ul li:hover::after{
    width: 100%;
}


.textbox{
    text-align: center;
    margin: 0;
    border: 1px solid black;
    border-radius: 10px;
    background-color: #222222;
    color: #fff;
}

#game_content{
    width: 100vw;
    height: 100vh;
}

#closebtn{  
    color: #f44336;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: none;
    font-size: 50px;
}


.dropdown{
    overflow: hidden;
}
.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    z-index: 1;
}

.game_img{
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid #a5a58d;
}

.game_img:hover{
    transform: scale(1.05);
}

.game_grid{
    border-radius: 10px;
    margin: 0.5rem;
    width: calc(20% - 16px);
}




#game_list{
    width: 80%;
    margin: 50px auto 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
@media all and (max-width: 700px) {
    
    #game_list{
        display: flex;
        flex-wrap: wrap;
    }
    .game_grid{
        flex-basis: 45%;
    }
    h4{
        font-size: 16px;
    }
}
.game_modal a{
    text-decoration: none;
    color: #fff;
    
}

@media all and (max-width: 400px) {
    .game_grid{
        flex-basis: 18%;
    }
    #game_list{
        display: flex;
        flex-wrap: wrap;
    }
    h4{
        font-size: 0.5rem;
    }
}

.page_number{
    text-align: center;
    text-decoration: none;
    display: block;
    justify-content: space-between;
}

.page_number a{
    text-decoration: none;
    color: #fff;
}

.box_a:hover{
    background-color: #202224;
}

.box_a{
    width: 54px;
    height: 52px;
    background: black;
    font-size: 20px;
    margin: 0px 0px 15px;
    padding: 12px 20px;
}

.text_style{
    margin-top: 50px;
    text-align: center;
    
}

.page_number{
    margin-top: 50px;
    margin-bottom: 50px;
}

.game_modal{
    position: fixed;
    display: none;
    max-height: 100vh;
    overflow-y: auto;
    top: 0;
    left: 0;
}

#game_info{
    background-color: #ece4db;
    padding: 0.5rem;
}

.title{
    margin-top: 10px;
    font-weight: bold;
}

#game_description{
    margin-right: 0.5rem;
}

.title_play{
    margin-top: 10px;
}

video{
    margin-top: 5px;
    border: 1px sold black;
}

