@font-face {
    font-family: ZCOOL KuaiLe;
    src: url("../fonts/ZCOOLKuaiLe-Regular.ttf");
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/*PRELOADER*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader-status {
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
}

/*GAME*/
#game-canvas {
    background: #000;
}
canvas {
    position: fixed;
    background: transparent;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
#joystick {
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    right: 0;
}

/*PAUSE*/
#pause-button {
    position: absolute;
    top: 0;
    right: 0;
    color: #ffffff6e;
    /*font-size: 1.5em;*/
    padding: 0.2em;
}
#pause-menu {
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    color: white;
    background: rgba(0, 0, 0, 0.50);
    font-family: 'ZCOOL KuaiLe', sans-serif;
}
#pause-menu > div {
    text-align: center;
}
#pause-menu-buttons {
    margin: 20px;
}
#pause-menu-buttons div {
    margin: 20px;
    display: inline-block;
    font-weight: 600;
    font-size: 18px;
}

/*GAME OVER*/
#game-over {
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    color: white;
    background: rgba(0, 0, 0, 0.50);
    font-family: 'ZCOOL KuaiLe', sans-serif;
}
#game-over > div {
    text-align: center;
}
#game-over-buttons {
    margin: 20px;
}
#game-over-buttons div {
    margin: 20px;
    display: inline-block;
    font-weight: 600;
    font-size: 18px;
}
#game-over-score {
    font-size: 40px;
    margin-top: 10px;
    /*    font-family: "Arial";*/
}

/*MENU*/
#menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'ZCOOL KuaiLe', sans-serif;
    letter-spacing: 4px;
}
#menu > div {
    text-align: center;
}

#menu-logo {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    letter-spacing: 6px;
    margin-bottom: 1.5em;
    line-height: 0;
    }
#menu #play-button {
    color: rgba(255, 255, 255, 0.8);
    font-size: 40px;
    line-height: 0;
    animation: pulse 2s infinite;
}
#menu #current-game-mode {
    color: rgba(255, 255, 255, 0.8);
    font-size: 25px;
    margin-bottom: 0.8em;
}
#menu #game-mode-title {
    display: inline-block;
    min-width: 7.5em;
}
#menu #game-mode-desc {
    letter-spacing: normal;
    font-size: 20px;
}
#menu #how-to-button {
    color: rgba(255, 255, 255, 0.8);
    font-size: 30px;
    margin: 0.5em 0;
}
#menu #options-button {
    color: rgba(255, 255, 255, 0.8);
    font-size: 30px;
    margin: 0.5em 0;
}
#game-mode-next, #game-mode-prev {
    padding: 0 0.5em;
}

#privacy-desc {
    font-size: 0.7em;
    line-height: 1.2em;
}
#privacy-policy-link {
    margin-top: 0.4em;
    text-decoration: underline;
    display: block;
}
#privacy-policy-link, #privacy-policy-link:active, #privacy-policy-link:hover, #privacy-policy-link:visited {
    color: rgba(255, 255, 255, 0.8);
}
#privacy-link {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.3em;
    letter-spacing: 0.13em;
}
@media only screen and (max-height: 430px) {
    #menu-logo {
        display: none;
    }
}

/*HOW TO*/
#how-to {
    min-height: 100vh;
    background: #000;
    position: absolute;
    width: 100%;
    height: 100%;
}
.how-to-page {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
}
.how-to-page div {
    margin: 20px;
    max-width: 30%;
}
.how-to-page p {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'ZCOOL KuaiLe';
    font-size: 1.5em;
}
#how-to img, #how-to video {
    width: 100%;
}
#close-how-to {
    color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 2em;
}
.how-to-next {
    border: 2px solid rgb(255 255 255 / 80%);
    display: inline-block;
    padding: 10px;
    border-radius: 5px;
    float: right;
}

/*CUSTOMISATION*/
#menu-customise {
    position: absolute;
    top: 0.75em;
    right: 0.75em;
    font-size: 2em;
    border: 2px solid #ffffffb8;
    box-shadow: 0 0 10px 0px #fff;
    display: block;
    padding: 0.2em;
    border-radius: 5px;
}
#customisation-close {
    position: absolute;
    top: 0.75em;
    right: 0.75em;
    font-size: 2em;
    display: block;
    padding: 0.2em;
    color: #fff;
}
#customisation {
    min-height: 100vh;
    position: absolute;
    width: 100%;
    height: 100%;
}
#customisation-grid {
    margin-left: 50%;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.customisation-option {
    width: 3em;
    height: 3em;
    border-radius: 0.5em;
    margin: 0.5em;
}
.customisation-row {
    display: flex;
    justify-content: center;
    align-items: center;
}
.customisation-option.locked:after {
    font-family: "Font Awesome 5 Pro";
    content: "\f023";
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 2em;
    color: #00000080;
}
#customisation-cta {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'ZCOOL KuaiLe';
    font-size: 1.5em;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 0.35em;
    margin-top: 1em;
}
#customisation-cta.disabled {
    opacity: 0.2;
}

/*MONEY*/
.menu-money {
    position: absolute;
    top: 0.75em;
    left: 0.75em;
    font-size: 2em;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'ZCOOL KuaiLe';
}
.menu-money-icon {
    height: 1.5em;
    margin-right: 0.4em;
}
.menu-money-balance {
    color: #fff;
}

/*JCONFIRM*/
.jconfirm .jconfirm-box {
    background-color: #0000006b;
    color: #fff;
    text-align: center;
    padding: 2.5em 2em 1.5em 2em;
}
.jconfirm .jconfirm-holder {
    max-width: 30em;
    margin: auto;
}
.jconfirm-buttons {
    float: none !important;
}
.jconfirm-buttons button.btn-default, .jconfirm-buttons button.btn-default:focus {
    background-color: unset !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    outline: 0 !important;
}
.jconfirm-content {
    font-family: 'ZCOOL KuaiLe';
    font-size: 30px;
    text-transform: uppercase;
    line-height: 1.3em;
}
.jconfirm.jconfirm-white .jconfirm-bg, .jconfirm.jconfirm-light .jconfirm-bg {
    background-color: #000;
}




/*KEYFRAMES*/
@keyframes pulse {
    0% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.95);
    }
}