* {
    padding: 0;
    margin: 0
}
*,
:after,
:before {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	padding-top:0 !important;
	padding-bottom:0 !important;
}

* {
    margin: 0;
    padding: 0;
}

canvas {
    width: 100%;
    height: 100%;
    position: absolute;
}

.version {
    font-size: 0.8rem;
    position: fixed;
    bottom: 55px;
    left: 25px;
}

.version a {
    text-decoration: none;
    color: #f5deb3;
}

.version a:hover {
    color: #f5e8d0;
}


#container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

@media only screen and (max-width: 400px) {
    #container {
        flex-direction: column;
    }
    #game {
        height: 100% !important;
    }
    #ads {
        width: auto !important;
    }
}

/* try to handle mobile dialog */

canvas+* {
    z-index: 2;
}

.logo {
    display: block;
    max-width: 100vw;
    max-height: 70vh;
}

.progress {
    margin: 1.5em;
    border: 1px solid white;
    width: 50vw;
    display: none;
}

.progress .full {
    margin: 2px;
    background: white;
    height: 1em;
    transform-origin: top left;
}

#loader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: black;
}

.spinner,
.spinner:after {
    border-radius: 50%;
    width: 5em;
    height: 5em;
}

.spinner {
    margin: 10px;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.submenu a {
    font-size: 0.8rem !important;
}


.oL{
    position: fixed;
    overflow-y: scroll;
    width: 100%; 
}
.overlay.c {
    pointer-events: none;
    opacity: 0;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 997;
    right: 0;
    background-color: rgba(0,0,0,.5);
    transition: opacity .25s; 
}

nav > ul {
    list-style: none;
    scrollbar-width: none;
}
nav > ul::-webkit-scrollbar {
    width: 0;
}
nav a {
    text-decoration: none;
}
.nav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    max-width: 350px;
    width:100%;
        background: radial-gradient(#0081d2, #0f83c4);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 1000; 
}
.nav.open {
    transform: translateX(0);
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.25);
}
.nav_icon {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50px;
    right: -40px;
    width: 40px;
    height: 40px;
    border-radius: 0 10px 10px 0;
        border-right: 1px solid #0c83c7;
    background-color: #0c83c7;
    cursor: pointer; 
    transform: translateY(-50%);
    transition: all 0.5s;
}
.nav_icon.about{
    top: 120px;
}
.nav_icon > i {
    pointer-events: none;
    color: #fff;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}
.nav_icon > i.rotate {
    transform: rotate(180deg);
}
.nav_icon > span {
    pointer-events: none;
    font-size: 0;
    color: #fff;
    transform: rotate(90deg);
    transition: all 0.2s;
}
.nav_icon > .shape_container {
    position: absolute;
    left: 0;
    height: 15px;
    width: 15px;
    z-index: 1;
}
.nav_icon > .shape_container.bottom {
    bottom: -14px;
}
.nav_icon > .shape_container.top {
    top: -14px;
    transform: rotateX(180deg);
}
.nav_icon > .shape_container > .icon_shape {
    fill: #0C83C7;
}
.nav_icon.mouseDistance {
    transition: all 0.2s, top 0s;
}
.nav_icon.mouseDistanceCloser {
    height: 60px;
    width: 60px;
    right: -60px;
    border-radius: 0 30px 30px 0;
}
.nav-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow:scroll;
	height: 100%;
}
.nav_icon.mouseDistanceCloser > .shape_container {
    height: 40px;
    width: 40px;
}
.nav_icon.mouseDistanceCloser > .shape_container.top {
    top: -40px;
}
.nav_icon.mouseDistanceCloser > .shape_container.bottom {
    bottom: -40px;
}
.nav_icon.mouseDistanceCloser > span {
    font-size: 10px;
}
.nav_icon.mouseDistanceCloser > i {
    font-size: 1.5rem;
}
.nav_icon:hover {
    box-shadow: none;
}
.nav > ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0; 
}


.nav > ul > li > a:hover {
    color: #fff;
}


.popup-overlay{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    z-index:111111111;
    color:#fff;
}
.popup-content{
    position:relative;
    display: none;
}
.content-top{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding:0 0 12px 0
}
.popup-content > div{
    max-width: 832px;
    background: radial-gradient(circle farthest-side, #0081d2, #0f83c4);
    padding: 40px;
    border-radius: 24px;
    position: absolute;
    left: 50%;
    top: 50px;
    z-index: 1001;
    width: 100%;
    transform: translateX(-50%); 
} 
.close_popup{
    font-size: 32px;
    color: #fff;

}
.popup-content > div p{
    margin-bottom: 16px;
    line-height: 1.8;
}
.popup-content > div{
    font-size:14px;
}
.popup-content > div ul{
    list-style: disc;
}
.popup-content > div ul li{
    line-height: 1.8;
}
.popup-content > div div.description{
    max-height: 600px;
    overflow-y: scroll;
}
.left-title {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap:12px;
}
.popup-content > div div.description::-webkit-scrollbar-track
{ 
    border-radius: 10px; 
}

.popup-content > div div.description::-webkit-scrollbar
{
    width: 8px; 
}

.popup-content > div div.description::-webkit-scrollbar-thumb
{
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #30DB97;
}
.description a{
    color:#00ac9e;
    font-weight: 700;
}
.menu-home{
    list-style: none;  
    overflow-y: scroll;
    height: 100%;
    padding: 32px 0 32px 0;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit,120px);
    grid-template-rows: repeat(auto-fit,120px);
    grid-auto-flow: dense;
    justify-content: center;
}
.game-related-home{ 
}
.game-related-home:before{
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right:0;
    height: 50px;
    background: linear-gradient(to bottom,#00000000 0%,#29444f 100%);
    background: -webkit-linear-gradient(bottom,#00000000 0%,#29444f 100%);
    z-index:10;
}
.game-related-home:after{
    /* content: ''; */
    position: absolute;
    bottom: 0;
    left: 0;
    right:0;
    height: 50px;
    background: linear-gradient(to top,#00000000 0%,#29444f 100%);
    background: -webkit-linear-gradient(top,#00000000 0%,#29444f 100%);
}
.menu-home::-webkit-scrollbar{
    display:none;
}
ul.menu-home li{
    box-sizing: border-box; 
}
ul.menu-home li:hover{
    border-color:#fffd68;
}
ul.menu-home li a{
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 5px;
    box-shadow: -1px 1px 3px 3px #4e4e4e; 
    box-sizing: border-box;
}
ul.menu-home li a div.wrap-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative; 
}
ul.menu-home li a img{
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}
.game-title {
    overflow: hidden;
    margin: 0;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
    opacity: 0;
    font-weight: 700;
    position: absolute;
    width: 100%;
    bottom: 0;
    background: linear-gradient(0deg,rgb(0 0 0 / 70%) 0,rgba(255,255,255,0) 85%);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 25px 10px 2px;
    box-sizing: border-box;
    text-transform: capitalize;
    font-size: 14px;
}
.game-title .text-overflow {
    -webkit-line-clamp: 2;
}
.game-link:hover .game-title {
    opacity: 1;
}
.text-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.site-page-over{
    padding: 0 12px;
    border-radius: 12px;
    margin: 12px auto;
    width: 100%;
    color: #fff;
    text-align: left;
}
.site-page{
    color:#fff;
    font-size: 24px;
    text-align:center;
}
.boxads300x280{
    width:300px;  
}
.boxads300x280 span{
	text-align:center;
	color:#fff;
	display:block
}
.footer-menu-home{
    margin-top:auto;
    width:100%;
	box-shadow: 0 0 20px 8px rgb(52 59 127 / 51%);
}
.footer-menu-home ul{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin-left: -12px; 
    padding: 10px 18px;
    flex-flow: row wrap;
}
.footer-menu-home ul li a{
    color:#fff;
}

ul.page-numbers{
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center; 
    margin-left: -10px;
}
ul.page-numbers li a{
    padding: 8px 12px;
    border-radius: 6px;
    background: #000000; 
    margin-left: 10px;
}
li.current{
    background: #fffd68 !important;
    color: #000;
    padding: 8px 12px;
    border-radius: 6px; 
    margin-left: 10px;
}
ul.page-numbers li a{
    color:#01FD04;
}
.row{
    width: 100%;
}
.more-games{
    padding:12px 24px;
    background-image: linear-gradient(to top, #0a8a94 , #23BC7E);
    color:#fff;
    text-align:center;
    display:block; 
    width:100%;
    margin: 0 auto; 
    border-radius: 12px;
    grid-column: span 2;
    grid-row: span 1;
	box-shadow: 0 0 0.1875rem 0.0625rem rgb(0 0 0 / 20%), -0.0625rem -0.0625rem 0.125rem rgb(0 0 0 / 40%) inset, 0.0625rem 0.0625rem 0.125rem rgb(255 255 255 / 40%) inset;
}
.ml-350{
    margin-left:350px !important;
}
.hidden{
    display:none !important;
}
.open-sidebar{
    width: calc(100% - 350px) !important;
    position:unset !important;
}
.nav-container::-webkit-scrollbar {
    display: none;
}
.box-image{
    float:left;
    margin-right:12px;
    margin-bottom:12px;
}
.categories{
    display:flex;
    justify-content: flex-start;
    align-items: center;
    flex-flow: row wrap;
    gap:8px
}

.categories a{
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration:none;
    background: #fffd68;
    color: #fff;
    font-weight:700; 
    text-align: center;
    margin-right:8px;
    background-image: linear-gradient(to top, #0a8a94 , #23BC7E);
	box-shadow: 0 0 0.1875rem 0.0625rem rgb(0 0 0 / 20%), -0.0625rem -0.0625rem 0.125rem rgb(0 0 0 / 40%) inset, 0.0625rem 0.0625rem 0.125rem rgb(255 255 255 / 40%) inset;
}
.categories a:hover{
    box-shadow: 0px 0px 2px #eee;
}