.large-game-wrapper>div{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
}
body.fullscreen-game .large-game-wrapper{
    position:fixed!important;
    top: 0px;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 0px!important;
    height: auto!important;
    margin: auto!important;
    z-index: 10000001;
}
/* make sure we do not mess with ad iframe that can be moved into the game container */
.large-game-wrapper iframe:not(#AdThrive_Footer_1_phone iframe):not(#AdThrive_Footer_1_desktop iframe) {
    border:none;
    position:absolute;
    left:0;
    top:0;
    right:0;
    bottom:0;
    width: 100%;
    height:100%;
}
body{
    font-family: Arial, Helvetica, sans-serif;
}
body.fullscreen-game{
    overflow:hidden;
}
#gameContainer canvas{
    width:100%;
    height:100%;
}
body.iframe{
    overflow:hidden;
}
#gameContainer{
    background: url('/media/games/assets/img/drifted-game-loader-logo-background.webp') no-repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 38px;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* fix for the long press issue on mobiles */
    -webkit-touch-callout: default; /* iOS Safari */
    -webkit-user-select: auto;      /* Safari, Chrome, Opera, Samsung */
    -khtml-user-select: auto;       /* Konqueror HTML */
    -moz-user-select: auto;         /* Firefox */
    -ms-user-select: element;       /* Edge, IE */
    user-select: auto;              /* Modern browsers */
}
.large-game-wrapper.no-footer #gameContainer{
    bottom: 0!important;
}
#game-footer{
    background: url('/media/games/assets/img/game-loader-drifted-logo.png') no-repeat 5px 7px #068bc4;
    color: #ffffff;
    font-family: Helvetica, Verdana, Arial, sans-serif;
    font-size: 18px;
    position:absolute;
    bottom:0;
    left:0;
    height: 38px;
    line-height: 38px;
    width:100%;
    z-index:2;
}
.webgl-logo {
    display: block;
    width: 100px!important;
    float:left!important;
}
#game-footer>a{
    overflow:visible;
    position:relative;
    border-right: 1px solid #068bc4;
    height:38px;
    float: right;
    cursor: pointer;
    text-decoration:none;
    color: #FFF;
}
#game-footer>span{
    float: right;
}
#game-footer>a:not(.title){
    width: 38px;
}

#game-footer>a:not(.title, .webgl-logo):hover{
    background-color: #068bc4;
}

#game-footer > a:not(.title, .webgl-logo)::before {
    background: #068bc4;
    border-radius: 5px;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    line-height: 20px;
    position: absolute;
    text-transform: uppercase;
    text-align: center;
    padding: 5px;
    white-space: nowrap;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#game-footer > a:not(.title, .webgl-logo)::after {
    content: "";
    border-bottom: 9px solid #068bc4;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    position: absolute;
    top:-9px;
    right: 10px;
    transform: rotate(180deg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#game-footer > a:not(.title, .webgl-logo):hover::before, #game-footer > a:not(.title, .webgl-logo):hover::after {
    opacity: 1;
    visibility: visible;
}
#game-footer .bug::before{
    content: "Report a bug";
    left:-5px!important;
}
#game-footer .category::before{
    content: "Play more games";
}
#game-footer .fullscreen::before{
    content: "Fullscreen";
}
#game-footer .gamepad::before{
    content: "Mobile Controls";
}


#game-footer .category {
    background: url(/media/games/assets/img/drifted-icon-game-category.svg) no-repeat #1eaed3;
}
#game-footer .fullscreen{
    background: url(/media/games/assets/img/drifted-icon-full-screen.svg) no-repeat #1eaed3;
}
#game-footer .bug{
    background: url(/media/games/assets/img/drifted-icon-bug-fix.svg) no-repeat #1eaed3;
}
#game-footer .gamepad{
    background: url(/media/games/assets/img/keys-icon.png) no-repeat center #1eaed3;
}
#game-footer .title{
    margin: 0 10px 0 0;
}
ruffle-object{
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    width:auto;
    height:auto;
}
.b-game-area{
    position:relative;
}
#gameContainer{
    display: flex;
    justify-content: center;
    align-items: center;
}
/* game overlay */
.game-overlay{
	position: absolute;
    background-color: #FFF;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity:.9;
    text-align:center;
}	
.b-game-wrapper{
	position:relative;
}
.game-overlay img{
	margin-top:10%;
    max-width: 400px;
    width: 50%;
}
.game-overlay-loading{
	margin:20px;
}
.game-overlay-progress{
	border: 1px solid #777;
    width: 30%;
    margin: auto;
    height: 10px;
}
.game-overlay-progress-filling{
	background-color: #777;
    width: 0%;
	height:8px;
}
							
/* game overlay end */

/* just for html games */
#c2canvasdiv{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    margin:0!important;
}
@media(hover: none){
    #gameContainer{
      -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none;   /* Safari, Chrome, Opera, Samsung */
      -khtml-user-select: none;    /* Konqueror HTML */
      -moz-user-select: none;      /* Firefox */
      -ms-user-select: none;       /* Edge, IE */
      user-select: none;           /* Modern browsers */
    }
    #game-footer > a:not(.title, .webgl-logo):hover::before, #game-footer > a:not(.title, .webgl-logo):hover::after {
        display: none;
    }
    #game-footer>a:not(.title, .webgl-logo):hover{
        background-color: #1eaed3;
    }
}
.landing{
    align-items: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
}
.landing.custom::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent white */
    z-index: 0; /* Layer behind the content */
}
.landing .button{
    background: linear-gradient(180deg, #f3843c 0%, #e93f3a 100%);
    border-radius: 10px;
    color: #ffffff;
    display: block;
    font-weight: bold;
    font-size: 30px;
    margin: 25px 0 0;
    padding: 20px 49px;
    text-transform: uppercase;
    z-index: 1;
}
.landing .thumbnail{
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 10px;
    display: inline-block;
    height: 210px;
    width: 256px;
    z-index: 1;
}

@media (max-width: 500px) {
    .landing .thumbnail{
        display: none !important;
    }
}

.mobile-tooltip{
    text-align: center;
    width: 250px;
    position: absolute;
    bottom: 18px;
    right: 2px;
    background-color: #444;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid red;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.mobile-tooltip>div{
    position: relative;
    width: 100%;
    height: 100%;
}

.mobile-tooltip>div::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -22px;
    margin-left: -10px;
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    border-bottom: 2px solid red;
    border-right: 2px solid red;
    background-color: #444;
    box-shadow: 5px 2px 5px rgba(0, 0, 0, 0.5);
}
