@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root {
    --primary: #2456a7;
    --secondary: #323a41;
    --third:#EFF3F6;
    --text: #191d21;
    --white:#fff;
    --black:#000;
    --menu: #212934
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}


body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    font-weight: 400;
    font-style: normal; 
    line-height: 1.6;
}

.wrap {
    width: 100%;
    max-width: 1470px;
    padding: 0 35px;
    margin: 0 auto;
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 17px 10px;
    text-align: center;
    font-size: 14px;
}

.menu-social{
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 0 0 auto;
    width: fit-content;
    gap: 20px;
}

.menu-social .social-icon {
    width: 16px;
    height: 16px;
}

.menu-social .social-icon:hover {
    transition: all 0.2s ease;
    opacity: 0.65;
}

.header-logo {
    padding-top: 22px;
    padding-bottom: 22px;
}

.header-logo img {
    max-width: 250px;
}

.navbar {
    background-color: var(--secondary);
}

.navbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
}

.navbar.scrolled {
    position: fixed;
    top: 0;
    z-index: 97;
    width: 100%;
    background-color: var(--primary);
}

.navbar .menu-top {
    list-style: none;
    display: flex;
    min-height: 56px;
    align-items: center;
}

.navbar ul .menu-item {
    position: relative;
    height: 56px;
    line-height: 50px;
}

.navbar ul .menu-item a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.21px;
    padding: 18px 28px;
    transition: ease 0.2s all;
}

.navbar ul .menu-item a:hover {
    color: #d2dbe2;
}

.navbar li>ul {
    background: #fff;
    position: absolute;
    visibility:hidden;
    opacity: 0;
    top: 100%;
    left: 0;
    width: 230px;
    text-align: left;
    z-index: 11;
    white-space: nowrap;
    box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 20px 40px rgba(0, 0, 0, .18);
    margin: 0;
    list-style: none;
    padding: 0;
    transition: ease 0.2s all;
    transform: translateY(-20px);
}

.navbar li:hover>ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.navbar ul .menu-item svg {
    fill: var(--white);
    display: inline-block;
    margin-left: 5px;
    margin-right: -3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: .1s;
    width: 10px;
}
.navbar ul .menu-item>ul li a {
    padding: 17px;
    font-size: 14px;
    color: #212934;
    border-bottom: 1px solid rgb(239, 243, 245);
    transition: .45s;
    display: block;
    line-height: 20px;
    text-decoration: none;
}

.navbar ul .menu-item>ul li:hover>a {
    color: var(--white);
    background: #63717f;
}

.hamburger-menu {
    background-color: var(--white);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: block;
    text-align: center;
    padding-top: 3px;
    font-size: 23px;
    transition: ease 0.2s all;
}

.hamburger-menu:hover {
    cursor: pointer;
    filter: invert(1);
    opacity: 0.4;
}

/* The side navigation menu */
#main {
    transition: margin-left .5s;
    width: 100%;
} 

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 99;
    top: 0;
    right: 0;
    background-color: var(--white);
    overflow-x: hidden;
    transition: 0.5s;
}

.sidenav-wrap {
    padding-left: 45px;
    padding-right: 45px;
    height: 100%;
    padding-top: 45px;
}

.sidenav-wrap .category-title {
    font-size: 20px;
    margin: 0 0 20px;
    color: #191d21;
}

.sidenav-menu {
    list-style: none;
}

.sidenav-menu .menu-item {
    padding: 5px 0;
}

.sidenav-menu .item-wrap {
    display: flex;
    justify-content: space-between;
}
.sidenav-menu a {
    text-decoration: none;
    font-size: 14px;
    color: var(--menu);
    transition: 0.3s;
    width: 100%;
    font-weight: 500;
}
.sidenav-menu .btn-openmenu {
    border: 0;
    background-color: transparent;
    cursor: pointer;
    padding: 5px;
}
.sidenav-menu .btn-openmenu svg {
    fill: var(--text);
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: .1s;
    width: 10px;
}

.sidenav-menu a:hover {
    color: var(--primary);
}

.sidenav-menu .sub-menu {
    overflow: hidden;             /* Hide overflow for smooth height transition */
    max-height: 0;                    /* Initial height set to 0 */
    transition: max-height 0.3s ease; /* Smooth transition */
}

.sidenav-menu .sub-menu.open {
    max-height: 300px; /* Final height when open */
}
.sidenav-menu .sub-menu li {
    border-bottom: 1px solid hsla(206, 22%,calc(85% + 2%), 100%);
}
.sidenav-menu .sub-menu li a {
    color: var(--menu);
    padding: 12px 20px;
    width: 100%;
    display: block;
}
.sidenav-menu .sub-menu li a:hover {
    color: rgba(99, 112, 126, 0.6)
}


.sidenav .closebtn {
    position: absolute;
    top: 4px;
    right: 26px;
    font-size: 30px;
    margin-left: 50px;
    color: rgb(82, 21, 24);
    text-decoration: none;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 98;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    opacity: 0;
    transition: opacity 0.25s;
}
  
/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}

.title-bar {
    background-color: var(--third);
    padding-top: 45px;
    padding-bottom: 45px;
}

.title-bar h1 {
    font-size: 26px;
    font-weight: 800;
}

/******** Section Games ********/
.games-top {
    display: grid; 
    grid-template-columns: repeat(4, minmax(0, 1fr)); 
    grid-template-rows: 1fr 1fr; 
    grid-template-areas: 
      "game-big game-big game-small-1 game-small-2"
      "game-big game-big game-small-3 game-small-4";
      grid-row-gap: 36px;
      grid-column-gap: 36px;
    margin-bottom: 60px;
    margin-top: 40px;
}
.games-top .game-card:nth-child(1) {
    grid-area: game-big;
}
.games-top .game-card:nth-child(2) {
    grid-area: game-small-1;
}
.games-top .game-card:nth-child(3) {
    grid-area: game-small-2;
}
.games-top .game-card:nth-child(4) {
    grid-area: game-small-3;
}
.games-top .game-card:nth-child(5) {
    grid-area: game-small-4;
}

.games-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 36px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/******** Game Card ********/
.game-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease-in-out;
}
.game-card:hover {
    transform: translateY(10px);
  }
.game-card img {
    width: 100%;
    line-height: 0;
    height: 100%;
    object-fit: cover;
}
.game-card picture{
    position: relative;
    display: block;
    height: 100%;
    margin-bottom: 10px;
    max-height: 237px;
}

.game-card .game-title {
    font-size: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    line-height: normal;
    padding-bottom: 5px;
}

.game-card .game-info {
    height: auto;
}

.game-card .game-info p {
    display: none;
}
.games-top .game-card .game-info p {
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.games-top .game-card picture:before {
    content: "";
    display: block;
    height: 40%;
    width: 100%;
    background: linear-gradient(0deg, rgb(0 0 0 / 68%) 0, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
}
.games-top .game-card .game-title {
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    color: var(--white);
}

.games-top .game-card:nth-child(1) .game-title {
    bottom: 25px;
    left: 35px;
    right: 35px;
    font-size: 36px;
}

.games-top .game-card:nth-child(1) picture {
    max-height: 570px;
}

.category-title {
    margin: 25px 0;
    text-align: left;
    font-size: 36px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    font-weight: 800;
}

.category-title::after {
    content: '';
    border-top: 1px solid #d2dbe2;
    flex: 1 0 0;
}

footer {
    background-color: #191d21;
}

.footer-info {
    padding: 60px 0 35px;
    text-align: center;
}

.footer-info .menu-social{
    margin: 35px auto 75px;
}

.footer-info .menu-social .social-icon {
        width: 27px;
        height: 27px;
}

.footer-info .copyright {
    color: #63717f;
    font-size: 14px;
}

.footer-info .copyright a {
    color: rgb(139, 157, 182);
    text-decoration: none;
}
.footer-info .copyright a:hover {
    color:var(--primary);
    text-decoration: underline;
}

/* Game Page Section */
.game-frame {
    width: 100%;
    max-width: 940px;
    margin: 24px auto;
}
.game-name {
    font-weight: 800;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--secondary);
    margin: 15px 0;
    font-size: 26px;
}
.game-container iframe {
    border:0;
}
.game-container .game-info {
    margin-top: 25px;
    margin-bottom: 50px;
}
.link-back {
    display: flex;
    text-decoration: none;
    color: var(--secondary);
}
.link-back svg {
    width: 8px;
    margin-right: 6px;
}

.only-mobile,
.game-mobile {
    display: none;
}

/********* ADS *********/

.bnr_728, .bnr_750, .bnr_250, .bnr_970 {
    margin-top: 25px;
    margin-bottom: 25px;
}

.bnr_728 center {
    margin: 0 auto;
    width: 728px;
}

.bnr_750 center {
    margin: 0 auto;
    width: 750px;
}

.bnr_250 center {
    margin: 0 auto;
    width: 300px;
}

.bnr_970 center {
    margin: 0 auto;
    width: 970px;
}

center {
    position: relative;
}

center:before {
    position: absolute;
    content: "Advertisement";
    font-size: 11px;
    color:#000000;
    top: -14px;
    right: 0;
}

.bnr_250.mobile {
    display: none;
}
/********** RESPONSIVE ***********/

@media (orientation: landscape) {
    .game-container iframe {
        aspect-ratio: 16 / 9 !important;
    }
}
@media (orientation: portrait) {
    .game-container iframe {
        aspect-ratio: 9 / 16 !important;
        height: 100%;
        background: #fff;
        max-height: calc(100vh - 250px);
    }
}

@media screen and (max-width: 1150px) {
    .navbar .menu-top {
        display: none;
    }
    .hamburger-menu {
        margin-left: auto;
    }
    .title-bar h1 {
        text-align: center;
    }
}
@media screen and (max-width: 1050px) {
    .bnr_970 {
        display: none;
    }
    .title-bar {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 800px) {
    .bnr_750, .bnr_728 {
        display: none;
    }
    .bnr_250.mobile {
        display: block;
    }
    .top-bar {
        padding: 10px;
    }
    .top-bar .wrap {
        padding: 0 15px;
    }
    .header-logo {
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: center;
    }
    .games-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .title-bar {
        background-color: var(--third);
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .category-title {
        margin: 20px 0;
        font-size: 24px;
    }
    .games-top {
        grid-row-gap: 16px;
        grid-column-gap: 16px;
    }
    .game-page .game-frame iframe {
        display: none;
    }
    .game-mobile {
        display: block;
    }
    .game-mobile a {
        width: 100%;
        display: block;
        background-color: var(--primary);
        padding: 12px;
        border-radius: 8px;
        text-decoration: none;
        color:var(--white);
        font-size: 26px;
        text-align: center;
        font-weight: 700;
        margin-top: 25px;
        margin-bottom: 25px;

    }
    .game-mobile img {
       width: 100%;
    }
}

@media screen and (max-width: 600px) {

    .header-logo {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .header-logo img {
        max-width: 170px;
    }

    .sidenav-wrap {
        padding-left: 30px;
        padding-right: 30px;
    }
    .sidenav-wrap .category-title {
        margin: 0 0 33px;
    }
    .title-bar h1 { 
        font-size: 20px;
        line-height: 1.2;
    }
    .wrap {
        padding-left:20px;
        padding-right:20px;
    }
    .games-top, .games-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-left: -20px;
        margin-right: -20px;
        position: relative;
    }
    .games-top::after, .games-row::after,
    .games-top::before, .games-row::before {
        content: "";
    }
    .game-card {
        flex: 0 0 85%;
    }
    .games-top .game-card:nth-child(1) picture {
        max-height: 237px;
    }
    .games-top .game-card:nth-child(1) .game-title {
        bottom: 10px;
        left: 15px;
        right: 15px;
        font-size: 20px;
    }
    .navbar {
        height: 0;
    }
    .hamburger-menu {
        position: absolute;
        top: 42px;
        right: 13px;
        font-size: 28px;
        width: 52px;
        height: 52px;
    }
    .navbar.scrolled .hamburger-menu {
        top: 0;
    }
}