@font-face {
    font-family: "ZohoPuvi";
    src: url(https://fonts.zohostatic.com/zohopuvi/3.5/zoho_puvi_semibold.eot);
    src: url(https://fonts.zohostatic.com/zohopuvi/3.5/zoho_puvi_semibold.eot) format("embedded-opentype"), url(https://fonts.zohostatic.com/zohopuvi/3.5/zoho_puvi_semibold.woff2) format("woff2"),
        url(https://fonts.zohostatic.com/zohopuvi/3.5/zoho_puvi_semibold.otf) format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'VT323';
    font-style: normal;
    font-weight: 400;
    src:url('https://static.zohocdn.com/webfonts/vt323regular/font.eot');
    src:url('https://static.zohocdn.com/webfonts/vt323regular/font.eot?#iefix') format('eot'),
        url('https://static.zohocdn.com/webfonts/vt323regular/font.woff2') format('woff2'), 
        url('https://static.zohocdn.com/webfonts/vt323regular/font.woff') format('woff'), 
        url('https://static.zohocdn.com/webfonts/vt323regular/font.ttf') format('truetype'),
        url('https://static.zohocdn.com/webfonts/vt323regular/font.svg#VT323-Regular') format('svg');
}

/* #survivalRules ul li,
#survivalRules h1, */
#dialogLayer h2 ,
#dialogLayer p {
    font-family: "VT323";
}
 
a {
    text-decoration: none;
}
.title {
    padding-top: 25px;
    /* text-transform: uppercase; */
    margin-bottom: 0px;
    font-size: 2vw;
}
#gameArea {
    width: 100%;
    position: relative;
    display: flex;
    min-height: 100vh;
    min-width: 100vw;
}
#survivalDiv, 
#survivalRules {
    /* display: block; */
    position: relative;
    /* float: left; */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
#survivalDiv {
    height: auto;
    /* width: 650px; */
    width: 70%;
    /* margin: auto; */
    align-items: center;
}
#survivalRules {
    width: 30%;
    color: #2D2D2D;
    background-color: #C6D2D5;
    padding: 100px 50px 0px;
}
#survivalRules h1 {
    color: #286191;
    text-align: right;
    margin: 10px 0px 0px 0px;
}
#survivalRules ul {
    list-style: none;
    background-color: #D4E0E4;
    padding: 0px 25px 50px;
    border-radius: 20px;
    border: 2px dashed #8A9699;
}
#survivalRules ul li {
    font-size: 20px;
    font-weight: normal;
    padding: 5px 5px 15px;
    text-align: center;
    position: relative;
}
#survivalRules ul li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 2px;
    width: 50%;
    border-bottom: 1px dashed #838F91;
    right: 50%;
    transform: translateX(-50%);
}
#survivalRules ul li img {
    width: 25px;
    padding: 0px 5px;
    vertical-align: middle;
}
/* #survivalRules ul li:nth-child(1) {
    list-style-image: url("https://www.manageengine.com/fr/cybersecurity/2022/css/../images/num-1.svg");
} */

#survivalRules ul li img.title_img {
    width: 35px;
    padding: 10px 0px;
    margin: 0 auto;
    display: block;
}
#survivalRules ul li img.number {
    width: 35px;
    padding: 10px 0px;
    margin: 0 auto;
    position: absolute;
    height: 45px;
    top: 0px;
    left: 0px;
}

#survivalRules ul li:nth-child(3) img.title_img
{
    width: 75px;
}
#survivalRules ul li:nth-child(4) img.title_img
{
    width: 50px;
}
/* #survivalRules ul li:first-child {
    list-style-image: url("https://www.manageengine.com/fr/cybersecurity/2022/css/../images/user.svg");
} */

/* #survivalRules ul li:first-child::before {
    content: "";
    background-image: url("https://www.manageengine.com/fr/cybersecurity/2022/css/../images/user.svg");
    background-size: contain;
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    position: relative;
    top: 0.1rem;
    margin-right: 0.2rem;
} */
#gameArea canvas {
    /* border-radius: 5px; */
    position: absolute;
}
#gameLayer {
    /* top: 50%!important;
    left: 50%!important;
    right: 50%!important;
    bottom: 50%!important;
    transform: translateX(-50%) translateY(-50%)!important; */
    position: relative !important;
    background-image: url("https://www.manageengine.com/fr/cybersecurity/2022/css/../images/bg-canvas.svg");
    background-size: cover;
}
#dialogLayer {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    vertical-align: middle;    
    /* background-color: rgba(0, 0, 0, 0.70); */
    text-align: center;
    font-size: 1em;
    color: #1D6A57;
    /* display: none; */
}
/* #dialogLayer::after,
#dialogLayer.start::after,
#dialogLayer.game_over::after {
    content: '';
    position: absolute;
    right: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    opacity: 0.80;
} */
/* #dialogLayer::after {
    background-image: url(https://www.manageengine.com/fr/cybersecurity/2022/css/../images/start-game-bg.svg);
    background-size: cover;
}
#dialogLayer.game_over::after {
    background-image: url(https://www.manageengine.com/fr/cybersecurity/2022/css/../images/game-over-bg.svg);
    background-size: cover;
} */

#dialogLayer {
    background: linear-gradient(120deg, rgba(46,77,86,0.9) 0%, rgba(78,116,126,0.9) 80%);
}
#dialogLayer.game_over {
    background: linear-gradient(141deg, rgba(43,8,0,0.9) 0%, rgba(98,16,9,0.9) 82%);
}

#dialogLayer.start, 
#dialogLayer.game_over {
    z-index: 3;
}

img.start-img {
    width: 35%;
    display: block;
    margin: 0 auto;
    padding: 5px 0px 15px 0px;
    cursor: pointer;
    overflow: hidden;
}
img.start-img:hover,
img#submitGame:hover,
img#tryAgainGame:hover,
img#shareGame:hover {
    -moz-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -o-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);

    -webkit-transition: transform 0.25s ease;
    -moz-transition:transform 0.25s ease;
    -ms-transition:transform 0.25s ease;
    transition: transform 0.25s ease;
}
img.press-img {
    width: 50%;
    display: block;
    margin: 0 auto;
    padding: 20px 0px 15px 0px;
}
.gameOverLayer {
    background-color: #FFF;
    padding: 25px 10px;
    border-radius: 10px;
}
.gameOverLayer img {
    display: block;
    margin: 0px auto 20px;
}
/* .gameOverLayer .share-img,  */
.gameOverLayer .submit-img, 
.gameOverLayer .try-again-img {
    display: inline-block;
}
img.gameover-img {
    width: 50%;
}
img.score-img {
    width: 30%;
    margin: 0px auto 0px!important;
}
img#submitGame {
    padding-top: 10px;
}
img#submitGame,
img#tryAgainGame,
img#shareGame {
    width: 25%;
    cursor: pointer;
}
/* img#tryAgainGame, */
img#submitGame,
img#tryAgainGame
/* img#shareGame  */
{
    padding: 10px;
}
h2.score-text {
    color: #000 !important;
}

#dialogLayerSection {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    /* left: 12%; */
    /* right: 12%; */
    left: 25%;
    right: 25%;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    height: auto;
    vertical-align: middle;
}
#dialogLayerSection h2 { 
    color: #fff;
    text-transform: uppercase;
    margin: 20px 0px 0px;
    font-size: 3em;
}
#dialogLayerSection .layer {
    border-radius: 5px!important;
    /* background-color: #0CAF88;
    border: 3px solid #2AEFBF; */
    /* padding: 30px 50px; */
    text-align: center;
    font-size: 1em;
    /* display: none; */
    /* color: #1D6A57; */
    color: #FFF;
    text-transform: uppercase;
}
#dialogLayerSection .sub-title {
    color: #fff;
    text-transform: none;
}
#dialogLayerSection.game_over .layer {
    color: #fff;
    background-color: #E14E4E;
    border: 3px solid #FFA5A5;
}
#dialogLayerSection img#game-retry {
    position: absolute;
    left: 50%;
    right: 50%;
    transform: translateX(-50%) translateY(-50%);
    cursor: pointer;
    width: 50px;
}
.title-img  {    
    width: 100%;
    height: auto;
}

#survivalScoreDiv {
    top: 50px;
    position: absolute;
    right: 10px;
    background-color: rgb(255 255 255 / 10%);
    /* width: 100px; */
    width: 8%;
    text-align: left;
    padding: 10px 50px;
    border-radius: 5px;
    min-height: 120px;
    display: none;
}
#survivalScoreDiv p {
    font-size: 1vw;
}
.player-life {
    width: 1.5vw;
    height: auto;
    padding: 15px 2px;
    display: inline-block;
}
.player-life.dead {
    filter: grayscale(100%);
    cursor: not-allowed;
    opacity: 0.5;
}
.header-logo-section {
    /* left: 30px;
    position: absolute; */
    position: relative;
    text-align: center;
    padding-top: 15px;
}
.header-logo {
    /* width: 250px; */
    width: 13.5vw;
    display: inline-block;
}
.header-me20-logo {
    /* width: 60px; */
    width: 2vw;
    display: inline-block;
    padding: 0px 10px;
}

@media only screen and (max-width: 768px) {
    #survivalDiv {
        width: 100%;
        /* width: 75%; */
        /* margin: 20px 10px; */
    }
    /* .arrow-key-container {
        display: inline-block!important;
    } */
    img.press-img {
        display: none;
    }
}
/* Mobile responsive */
@media only screen and (max-width: 1100px) {
    .header-logo-section {
        position: relative;
        left: 0;
    }
    .player-life {
        padding: 5px 2px;
    }
    #survivalScoreDiv {
        position: relative;
        padding: 10px 35px 5px;
        min-height: auto;
        top: 0;
        margin: 0 auto;
        width: fit-content;
    }
    #survivalScoreDiv p {
        display: inline-block;
        margin: 0px!important;
        padding: 0px;
        vertical-align: middle;
    }
    #survivalScoreDiv p:first-child{
        padding-right: 50px;
    }
}

@media only screen and (min-width: 1700px) {
    #survivalDiv {
        width: 70%;
    }
    #survivalRules {
        width: 30%;
    }
}
/* Arrow Functionaliy */
.container {
    position: relative;
}
.arrow-key-container {
    display: none;
    text-align: center;
    transform: translate3d(0, 0, 0);
    position: absolute;
    /* bottom: 10px;
    right: 10px; */
    bottom: 1%;
    right: 1%;
    background-color: rgba(255,255,255,0.1);
    padding: 25px 15px;
    border-radius: 5%;
    /* filter: blur(1px); */
    backdrop-filter: blur(10px);
    z-index: 2;
}

.arrow-key {
    align-items: center;
    background: #ccc;
    border-radius: 10px;
    box-shadow: -1px 1px 0 #999, -2px 2px 0 #999, -3px 3px 0 #999, -4px 4px 0 #999;
    color: #fff;
    display: inline-flex;
    font-size: 30px;
    font-weight: bold;
    /* height: 60px;
    width: 60px; */
    height: 3vw;
    width: 3vw;
    justify-content: center;
    margin: 5px;
    transform: translate3d(0, 0, 0);
    transition: box-shadow 0.1s linear, transform 0.1s linear;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: 0;
    -webkit-tap-highlight-color: transparent;
}

.arrow-key:active,
.arrow-key.press {
    box-shadow: 0px 0px 0 #999, 0px 0px 0 #999, 0px 0px 0 #999, -1px 1px 0 #999;
    transform: translate3d(-3px, 3px, 0);
}

.arrow-key.left:before,
.arrow-key.up:before,
.arrow-key.down:before,
.arrow-key.right:before {
    padding: 5px;
    font-size: 0.6em;
}

.arrow-key.left:before {
    content: "←";
}

.arrow-key.up:before {
    content: "↑";
}

.arrow-key.down:before {
    content: "↓";
}

.arrow-key.right:before {
    content: "→";
}

.connected {
    background-color: #4caf50;
}
.dis-connected {
    background-color: #e53935;
}
#gamepadAlert {
    display: none;
    position: absolute;
    right: 10px;
    top: 0;
    padding: 5px 15px;
    border-radius: 5px;
    color: #fff;
}
#confetti {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
    z-index: 2;
}  

body.scroll-lock {
    overflow: hidden!important;
    overscroll-behavior: contain;
    height: 100vh;
}
body.scroll-lock section.section-game {
    position: fixed;
    top: 0;
    z-index: 99999;
    height: 100vh;
    background-color: #c6d2d5;
    /* overflow: hidden!important; */
}
body.scroll-lock section.section-game .container {
    /* top: 50%;
    bottom: 50%;
    transform: translatey(-50%); */
}

@keyframes scoreAnimation {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-250px);
    }
}
#score-animation {
    /* top: 15%;
    right: 5%; */
    position: absolute;
    color: #000;
    text-transform: capitalize;
    font-size: 1vw;
    opacity: 0;
    z-index: 5;
}
.scoredClass {
    animation: scoreAnimation 2.5s linear;
    animation-iteration-count: 1;
}

.game-controls {
    position: absolute;
    top : 1%;
    right : 5%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.controls_btn,
.retry_btn
{
    width: 1em;
    height: 1em;
    padding: 25px;
    cursor: pointer;
}
.controls_btn {
    margin: 0.5rem;
    padding: 1.4rem;
    border: none;
    border-radius: 4rem;
    overflow: hidden;
    outline: none;
    background-image: url("https://www.manageengine.com/fr/cybersecurity/2022/css/../images/unmute.png");
    background-repeat: no-repeat;
    background-color: #d4e0e3;
    background-position: center;
    background-size: 60%;
	/* box-shadow:0 40px 15px -15px rgba(0, 0, 0, 0.2), inset 0 -40px 15px -15px rgba(0, 0, 0, 0.2); */
}
.controls_btn.mute {
    background-image: url("https://www.manageengine.com/fr/cybersecurity/2022/css/../images/mute.png");
}
.retry_btn {
    background-image: url(https://www.manageengine.com/fr/cybersecurity/2022/css/../images/retry.svg);
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: center;
    background-size: 100%;
    /* box-shadow: 0 40px 15px -15px rgb(0 0 0 / 20%), inset 0 -40px 15px -15px rgb(0 0 0 / 20%); */
    border: none;
}
#closeGame {
    cursor: pointer;
    width: 25px;
    height: 25px;
    padding: 0;
    margin: 0px 0px 0px 12px;
}
#survivalDiv {
    background: #cfcfcc!important;
}
@media only screen and (max-width: 1300px) {
    #gameLayer {
        top: 5%!important;
    }
}​

.btn-pixel.start:hover, .btn-pixel.start:focus {
    background: #ff2a68;
    box-shadow: inset -6px -6px 0px 0px #c40a51;
}
.btn-pixel.start:active {
    box-shadow: inset 4px 4px 0px 0px #c40a51;
}
.btn-pixel.start {
    color: #FFF;
    background: #ff2a68;
    box-shadow: inset -4px -4px 0px 0px #c40a51;
}

.btn-pixel.submit:hover, .btn-pixel.submit:focus {
    background: #fee51b;
    box-shadow: inset -6px -6px 0px 0px #fcab2d;
}
.btn-pixel.submit:active {
    box-shadow: inset 4px 4px 0px 0px #fcab2d;
}
.btn-pixel.submit {
    background: #fee51b;
    box-shadow: inset -4px -4px 0px 0px #fcab2d;
}

.btn-pixel.try-again:hover, .btn-pixel.try-again:focus {
    background: #4eb947;
    box-shadow: inset -6px -6px 0px 0px #298941;
}
.btn-pixel.try-again:active {
    box-shadow: inset 4px 4px 0px 0px #298941;
}
.btn-pixel.try-again {
    background: #4eb947;
    box-shadow: inset -4px -4px 0px 0px #298941;
}

.btn-pixel::before, 
.btn-pixel::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: content-box;
}
.btn-pixel::before {
    top: -6px;
    left: 0;
    border-top: 6px black solid;
    border-bottom: 6px black solid;
}
.btn-pixel::after {
    left: -6px;
    top: 0;
    border-left: 6px black solid;
    border-right: 6px black solid;
}
.btn-pixel {
    display: inline-block;
    position: relative;
    text-align: center;
    font-size: 40px;
    padding: 5px 30px;
    font-family: "VT323", cursive;
    text-decoration: none;
    color: #000;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#dialogLayer p {
    font-size: 35px;
    margin: 0px;
}
#dialogLayer .sub-title {
    font-size: 40px;
}

.gameOverLayer h1,
.gameOverLayer h2,
.gameOverLayer p,
.gameOverLayer a {
    font-family: "VT323";
}
h2.score {
    color: #000!important;
}
.game_over h1.title {
    font-size: 120px;
    text-transform: uppercase;
    color: #fee304;
    -webkit-text-stroke: 1px #000100;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

#submitGame {
    padding-top: 10px;
}
#submitGame,
#tryAgainGame,
#shareGame {
    cursor: pointer;
    margin: 30px 15px;
}
/* #tryAgainGame, */
#submitGame,
#tryAgainGame
/* #shareGame  */
{
    padding: 10px;
}
h2.score-text {
    font-size: 3.5em!important;
    margin: 0px!important;
}