* {
    padding: 0;
    margin: 0
}
*,
:after,
:before {
    box-sizing: border-box;
}

body {
	padding-bottom:0 !important;
	padding-top:0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* {
    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;
	position:relative;
}

@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;
   
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    max-width: 350px;
    width:100%;
    background-color: #1f2937;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 1000; 
}
.nav_container{
	display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
	overflow-y: scroll;
	overflow-x: hidden;
	height:100%;
	position:relative;
}
.nav.open { 
    transform: translateX(0);
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.25);
}
.nav_container::-webkit-scrollbar{
	 width: 6px;
	 display:none;
    border-radius: 12px;
}
.nav_container::-webkit-scrollbar-thumb{
    border-radius: 10px;
    background-color: #5db4f2;
}
.nav_container::-webkit-scrollbar-track{
    border-radius: 10px;
}
.nav_icon {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50px;
    right: -50px;
    width: 50px;
    height: 50px;
    border-radius: 0 10px 10px 0;
    border-right: 1px solid #1f2937;
    background-color: #1f2937;
    cursor: pointer; 
    transform: translateY(-50%);
    transition: all 0.5s;
}
.nav_icon.about{
    top: 130px;
}
.nav_icon > i {
    pointer-events: none;
    color: #fff;
    font-size: 1.5rem;
    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: 20px;
    width: 20px;
    z-index: 1;
}
.nav_icon > .shape_container.bottom {
    bottom: -20px;
}
.nav_icon > .shape_container.top {
    top: -20px;
    transform: rotateX(180deg);
}
.nav_icon > .shape_container > .icon_shape {
    fill: #1f2937;
}
.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_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: #181818;
    padding: 40px;
    border-radius: 24px;
    position: absolute;
    left: 50%;
    top: 50px;
    z-index: 1001;
    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
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
    background-color: #787878;
}

.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: #e1ff00;
}
.description a{
    color:#FFFD68;
}
.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{
    /* position: relative; */
    /* min-height: 235px;  */
    /* width:100% */
}
.game-related-home:before{
    /* content: ''; */
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
    /* right:0; */
    /* height: 50px; */
    /* background: linear-gradient(to bottom,#00000000 0%,#1f2937 100%); */
    /* background: -webkit-linear-gradient(bottom,#00000000 0%,#1f2937 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%,#1f2937 100%); */
    /* background: -webkit-linear-gradient(top,#00000000 0%,#1f2937 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:#fffd68;
    font-size: 24px;
	text-align:center;
}
.boxads300x280{
	width:300px;
	height:280px;
	background:#797f87;
}
.footer-menu-home{
    /* position: absolute; */
    /* bottom: 0;  */
    /* width:100%; */
}
.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:#fffd68;
}

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:#fffd68;
	color:#111;
	text-align:center;
	display:block; 
		width:100%;
    margin: 0 auto; 
    border-radius: 12px;
	grid-column: span 2;
    grid-row: span 1;
}
.ml-350{
	margin-left:350px !important;
}
.hidden{
	display:none !important;
}
.open-sidebar{
	width: calc(100% - 350px) !important;
	position:unset !important;
}
.categories{
	display:flex;
	justify-content:flex-start;
	align-items:center;
	flex-flow:row wrap;
	gap:6px;
}
.item_cat{
	padding:6px 10px;
	background:#fffd68;
	font-size:14px;
	color:#111;
	border-radius:8px;	
	text-decoration:none;
}
.corner,.corner_2{
	position:absolute;
	width:80px;
	height:80px;
	top:0;
	left:0;
	z-index:-1;
	background-image: url(../images/corner.png);
	    background-size: cover;
    background-repeat: no-repeat;
			
}
.corner_2{
	
	top:0;
	left:unset; 
	right:0;
	z-index:1;
	background-image:url(../images/corner_2.png);
	/* transform:rotate(90deg); */
}
.bat{
	position:absolute;
	width:80px;
	height:80px;
	top:0; 
	left:50%;
	transform:translateX(-50%);
	z-index:1;
	background-image:url(../images/bat_1.png);
	   background-size: cover;
    background-repeat: no-repeat;
}
.spider{
	position:absolute;
	width: 59px;
    height: 70px;
    top: -3px; 
	left:50%;
	transform:translateX(-50%);
	z-index:1;
	background-image:url(../images/spider.png);
	   background-size: cover;
    background-repeat: no-repeat;
	 -webkit-animation: action 1s infinite  alternate;
    animation: action 1s infinite  alternate;
}
@-webkit-keyframes action {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes action {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}
