@font-face {
    font-family: EightbitEsso;
    src: url(../fonts/8bitarabic.woff);
    unicode-range: 0600 — 06FF;
}

@font-face {
    font-family: EightbitEsso;
    src: url(../fonts/gameovercre1.ttf);
    unicode-range: U+000-5FF;
}

body,
html {
    background-color: #c9f3ff;
    font-family: EightbitEsso;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    cursor: url('../imgs/c.svg');
    position: fixed;
}

.timer p {
    margin: 0px;
    text-align: unset;
    font-size: 30px;
    direction: rtl;
    color: white;
}

#demo {
    margin-right: 30px;
}

p {
    margin: 0px;
    color: white;
}

.login-sec {
    margin: 70px 30px 0 0;
    /* visibility: hidden; */
    /* display: none; */
}

.timer {
    position: absolute;
    /* width: 185px !important; */
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4196078431372549);
    color: white;
    text-shadow: 1px 1px black;
    margin: 15px;
    padding: 10px;
    border: 3px solid #ffffff;
}

.solider {
    position: absolute;
    width: 220px;
    bottom: 100px;
    /*left: calc(30% - 76px);*/
    left: 30%;
    margin-left: -140px;
    height: 300px;
    background: url("../imgs/solider.gif");
    background-repeat: no-repeat;
    background-size: contain;
    background-position-x: 0px;
    background-position-y: 0px;
    /* -webkit-animation: steps 2s steps(1) infinite; */
    /* animation: steps 2s steps(1) infinite, move 1s linear infinite; */
}

@keyframes move {
    0% {
        margin-left: -76px;
    }
    100% {
        margin-left: -116px;
    }
}

@-webkit-keyframes steps {
    0% {
        background-position-x: 0px;
    }
    25% {
        background-position-x: -210px;
    }
    50% {
        background-position-x: -385px;
    }
    75% {
        background-position-x: -590px;
    }
}

@keyframes steps {
    0% {
        background-position-x: 0px;
    }
    25% {
        background-position-x: -210px;
    }
    50% {
        background-position-x: -385px;
    }
    75% {
        background-position-x: -590px;
    }
}

.fullscene {
    width: 100%;
    height: 100%;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.mountiant {
    width: 100%;
    height: 435px;
    background-image: url("../imgs/bg.png");
    background-position-y: 0px;
    position: absolute;
    bottom: 110px;
    -webkit-animation: bg 2000s linear infinite;
    animation: bg 2000s linear infinite;
}

.clouds {
    width: 100%;
    height: 435px;
    background-image: url("../imgs/clouds.png");
    background-position-y: 0px;
    position: absolute;
    bottom: 510px;
    -webkit-animation: bg 2800s linear infinite;
    animation: bg 1000s linear infinite;
}

.ground {
    width: 100%;
    height: 135px;
    background-image: url("../imgs/ground.png");
    background-position-y: 0px;
    position: absolute;
    bottom: 0;
    text-align: right;
    -webkit-animation: ground 25s linear infinite;
    animation: ground 25s linear infinite;
}

@-webkit-keyframes ground {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: -2000px;
    }
}

@keyframes ground {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: -2000px;
    }
}

@-webkit-keyframes bg {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: -10000px;
    }
}

@keyframes bg {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: -10000px;
    }
}


/* ---- banners ----*/

#banners-wrapper {
    position: absolute;
    height: 340px;
    width: 100%;
    bottom: 125px;
    overflow: hidden;
}

.banner {
    position: absolute;
    min-height: 115px;
    width: 290px;
    max-height: 271px;
    background-color: #0909a7;
    border: 5px solid white;
    text-align: center;
    /* display: inline-block; */
    /* margin-left: 171px; */
}

.banner::after {
    content: "";
    position: absolute;
    width: 10px;
    background-color: #421919;
    right: 50%;
    top: 100%;
    margin-top: 5px;
    height: 250px;
}

.banner-content {
    font-size: 18px;
    color: white;
}

.b-wrapper {
    position: relative;
    height: 100%;
    margin-bottom: 0px;
    margin-top: 10px;
    margin-right: 5px;
    padding-bottom: 10px;
    margin-left: 5px;
    text-align: center;
}

.b-footer {
    bottom: 0;
    margin: 5px;
    color: white;
    position: absolute;
    border-top: 1px solid white;
    width: 100%;
}

.b-footer span a {
    color: white;
    text-decoration: unset;
}

.b-footer span a:hover {
    color: yellow;
}

.b-footer span {
    font-size: 14px;
}

.ctrls {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 1159px;
    top: 0;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    /* pointer-events: none; */
    /* pointer-events: none; */
}

.btn-wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.loading-spinner {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    text-align: center;
    animation: coloring 2.5s steps(3) infinite;
}

@keyframes coloring {
    0% {
        background-color: whitesmoke;
    }
    20% {
        background-color: red;
    }
    40% {
        background-color: blue;
    }
    60% {
        background-color: green;
    }
    80% {
        background-color: yellow;
    }
    100% {
        background-color: black;
    }
}

.loading-spinner img {
    width: 200px;
    height: auto;
    position: absolute;
    top: 50%;
    margin-top: -100px;
    left: 50%;
    margin-left: -100px;
}


/*------------------------------------------------------------------*/


/* dialog*/

#dialog {
    position: fixed;
    width: 700px;
    height: 450px;
    background-color: black;
    top: 50%;
    margin-top: -225px;
    left: 50%;
    margin-left: -350px;
    border: 8px solid rgb(255, 255, 255);
    border-radius: 5px;
}

#dialog .dialog-wrapper {
    margin: 10px 10px;
    /* background-color: #421919; */
    padding: 0px;
}

.dialog-loading {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #080808;
    top: 0;
    left: 0;
    text-align: center;
    display: none;
}

.dialog-loading .wr {
    right: 20px;
    direction: rtl;
    height: 120px;
    margin-top: 165px;
}

.dialog-loading .wr img {
    display: inline-block;
    width: 100px;
}

.dialog-loading .wr span {
    display: block;
    color: white;
    font-size: 23px;
}

.dialog-wrapper .d-header {
    height: 40px;
    position: relative;
}

.d-header .h-title {
    color: white;
    font-size: 30px;
    font-weight: unset;
    position: absolute;
    right: 10px;
    direction: rtl;
}

.d-header .h-exit {
    width: 30px;
    height: 30px;
    background-image: url('../imgs/icons.png');
    display: inline-block;
    background-size: cover;
    background-position-x: -60px;
    position: absolute;
    cursor: pointer;
    margin: 10px;
}

.dialog-content {
    min-height: 310px;
    height: auto;
    margin: 0px 0px 0 0px;
    direction: rtl;
    position: relative;
}

.dialog-content h3 {
    color: white;
    padding: 0;
    margin: 0;
}

h3#charNum {
    position: unset;
    left: 25px;
    bottom: 0px;
    top: 290px;
    margin-top: -15px;
    margin-left: 25px;
    text-align: left;
    font-size: 16px;
}

.d-input {
    font-size: 20px;
    width: 305px;
    height: auto;
    text-align: center;
    max-height: 250px;
    background-color: #0023a9;
    margin: 15px 0 10px 0px;
    border: 5px white solid;
    resize: none;
    color: white;
    font-family: EightbitEsso;
    overflow: hidden;
    direction: rtl;
    font-weight: bold;
    padding: 15px 5px 0 0;
}

.dialog-content div {
    width: 330px;
    height: 100%;
    float: right;
    position: relative;
}

.dialog-content .d-user p {
    font-size: 15px;
    text-align: right;
    margin: 10px 15px 10px 0;
}

.d-footer {
    position: absolute;
    width: 100%;
    bottom: 20px;
}

.d-footer .btn-save {
    font-size: 30px;
    color: white;
    border: 5px white solid;
    cursor: pointer;
    text-align: center;
    padding: 0px 25px 0 20px;
    user-select: none;
    margin-left: 15px;
}

.d-footer a {
    color: white;
    margin-left: 60px;
    display: unset;
}

.user-sec {
    /* position:absolute; */
    text-align: center;
    width: 280px;
    height: 230px;
    margin: 80px 8px 0 0;
    background-color: rgba(255, 255, 255, 0.0392156862745098);
}

.user-sec p {
    text-align: center !important;
    margin-top: 5px !important;
    font-size: 25px !important;
}

#userp {
    background: url('../imgs/unknown.jpg');
    width: 100px;
    height: 100px;
    display: inline-block;
    position: unset !important;
    background-size: cover !important;
    margin: 30px 0 0 0;
    background-position: center !important;
    border: 2px solid white;
}

#logout {
    background-color: white;
    cursor: pointer;
    user-select: none;
    color: red;
    padding: 4px;
    display: inline-block;
    margin: 0px;
}


/*---------------------for dialog ------------------------------------------------------------------*/

.bannerslist {
    width: 100% !important;
    max-height: 390px;
    height: 100% !important;
    margin-bottom: 10px;
    float: unset !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.bannerslist ul {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    min-height: 310px;
    margin-block-start: 0em;
    padding-inline-start: 00px;
}

.bannerslist ul li {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.d-banner {
    border: 2px solid white;
    width: 310px !important;
    max-width: 300px;
    background: #0023a9;
    margin: 5px;
    color: white;
    padding: 5px;
    text-align: center;
    font-size: 18px;
    min-height: 55px;
    float: left !important;
    display: inline-block;
    position: relative !important;
}

.d-banner-content {
    line-height: 1.8;
}

.d-b-footer span a {
    color: white;
    overflow: hidden;
    font-size: 12pt;
    max-height: 16px;
    display: inline-block;
}

.d-b-wrapper {
    padding: 8px 0;
    width: unset !important;
    float: unset !important;
    position: unset !important;
}

.d-b-footer {
    position: relative !important;
    text-align: right;
    bottom: 0;
    height: 70px;
    border-top: 1px solid white;
    padding: -10px !important;
    margin: -0px;
    width: 285px !important;
}

.d-b-footer span {
    display: inline-block;
    margin: 0px;
}

.delete-btn {
    background-color: black;
    width: 50px;
    height: 20px;
    position: absolute;
    bottom: 10px;
    left: 0;
    cursor: pointer;
    user-select: none;
    text-align: center;
}

span.ppic {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    margin: 8px 5px 0px 0;
    background-position: center !important;
    background-size: cover!important;
}

span.binfo {
    position: absolute;
    right: 70px;
    margin-top: 16px;
    text-decoration: none;
}

.binfo a {
    text-decoration: none;
}


/* btn */

.eightbit-btn {
    background: #92CD41;
    display: inline-block;
    position: relative;
    text-align: center;
    font-size: 21px;
    margin: 30px 10px;
    padding: 14px;
    text-decoration: none;
    color: white;
    box-shadow: inset -4px -4px 0px 0px #4AA52E;
}

.eightbit-btn span {
    margin-right: 35px;
    margin-left: 10px;
    color: red;
    text-shadow: 2px 2px #988a0a;
    font-weight: 700;
}

.eightbit-btn:hover,
.eightbit-btn:focus {
    background: #76c442;
    box-shadow: inset -6px -6px 0px 0px #4AA52E;
}

.eightbit-btn:active {
    box-shadow: inset 4px 4px 0px 0px #4AA52E;
}

.eightbit-btn span:before {
    content: "";
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    width: 35px;
    height: 35px;
    right: 10px;
    top: 10px;
}

#newBanner span:before {
    background-image: url('../imgs/icons.png');
    background-position-x: -35px;
}

#showBanners {
    background-color: floralwhite;
    box-shadow: inset -4px -4px 0px 0px #9c9c9c;
}

#showBanners:hover,
#showBanners:focus {
    background: #adadad;
    box-shadow: inset -6px -6px 0px 0px #bdbdbd;
}

#showBanners:active {
    box-shadow: inset 4px 4px 0px 0px #afafaf;
}

#showBanners span:before {
    background-image: url('../imgs/icons.png');
    background-position-x: 0;
}

.eightbit-btn:before {
    top: -6px;
    left: 0;
    /* border-top: 6px black solid; */
    /* border-bottom: 6px black solid; */
}

.eightbit-btn:after {
    left: -6px;
    top: 0;
    /* border-left: 6px black solid; */
    /* border-right: 6px black solid; */
}

.eightbit-btn--proceed {
    background: #F7D51D;
    box-shadow: inset -4px -4px 0px 0px #E59400;
}

.eightbit-btn--proceed:hover,
.eightbit-btn--proceed:focus {
    background: #F2C409;
    box-shadow: inset -6px -6px 0px 0px #E59400;
}

.eightbit-btn--proceed:active {
    box-shadow: inset 4px 4px 0px 0px #E59400;
}

.login-place2 {
    display: none !important;
}

.login-place1 {
    /* display: block !important; */
}

#textmsg::placeholder {
    color: black
}

.btn-enabled {}

.btn-disabled {
    opacity: 0.3;
    cursor: unset !important;
}

@media only screen and (max-width: 900px) {
    .d-banner {
        width: 270px !important;
    }
    .d-b-footer {
        width: 270px !important;
    }
    .dialog-loading .wr {
        right: 20px;
        direction: rtl;
        height: 120px;
        margin-top: 60%;
    }
    .user-sec {
        margin: 0;
        height: 90px !important;
        text-align: right;
    }
    #userp {
        width: 70px;
        height: 70px;
        margin: 7px;
        float: right;
    }
    #uname {
        font-size: 16px !important;
        display: inline-block;
        /* top: 1px; */
        float: right;
        margin-top: 8px !important;
        margin-bottom: 10px;
        background-color: rgb(23, 23, 23);
        padding: 5px;
    }
    .dialog-content div {
        float: unset;
    }
    #banners-wrapper {
        position: absolute;
        height: 350px;
        width: 100%;
        bottom: 80px;
        overflow: hidden;
    }
    .btn-wrapper {
        text-align: center;
        width: 100%;
        bottom: 0;
    }
    .eightbit-btn {
        background: #FFEB3B;
        display: inline-block;
        position: relative;
        font-size: 22px;
        width: 48%;
        /* min-width: 180px; */
        margin: 20px 1%;
        padding: 15px 0;
        text-decoration: none;
        color: white;
        float: left;
        box-shadow: inset -4px -4px 0px 0px #FFC107;
    }
    .timer {
        /* width: 135px !important; */
        top: 0;
        right: 0;
        margin: 10px;
    }
    #demo {
        margin-right: 15px
    }
    .timer p {
        font-size: 20px;
    }
    p {
        font-size: 16px;
    }
    @-webkit-keyframes bannersmove {
        0% {
            -webkit-transform: translateX(30%);
        }
        100% {
            -webkit-transform: translateX(0%);
        }
    }
    @keyframes bannersmove {
        0% {
            -webkit-transform: translateX(30%);
        }
        100% {
            -webkit-transform: translateX(0%);
        }
    }
    .dialog-content>div {
        width: 100%;
        height: 100%;
        float: unset;
    }
    .dialog-content .d-form {
        width: unset;
        margin-bottom: unset;
    }
    .dialog-content .d-user {
        /* display: none; */
    }
    /* dialog*/
    #dialog {
        position: fixed;
        width: 360px;
        height: unset;
        background-color: black;
        top: 35px;
        margin-top: 0;
        left: 50%;
        margin-left: -184px;
        border: 3px solid rgb(255, 255, 255);
        border-radius: 5px;
    }
    #dialog .dialog-wrapper {
        margin: 5px 5px;
        /* background-color: #421919; */
        padding: 0px;
    }
    .dialog-wrapper .d-header {
        height: 40px;
        position: relative;
    }
    .d-header .h-title {
        color: white;
        font-size: 30px;
        font-weight: unset;
        position: absolute;
        right: 10px;
        direction: rtl;
    }
    .d-header .h-exit {
        margin: 10px;
    }
    .dialog-content {
        height: auto;
        margin: 10px 4px 0 0;
        direction: rtl;
        position: relative;
    }
    .d-footer a {
        color: white;
        margin-top: 15px;
        margin-left: 0px;
        display: inline-block;
    }
    .dialog-content h3 {
        color: white;
        padding: 0;
        margin: 0;
    }
    .d-input {
        font-size: 20px;
        width: 330px;
        height: auto;
        max-height: 195px;
        background-color: #0023a9;
        margin: 10px 0 10px 0px;
        border: 4px white solid;
        resize: none;
        color: white;
        font-family: EightbitEsso;
        overflow: hidden;
        direction: rtl;
        font-weight: bold;
        padding: 10px 5px 0 0;
    }
    .dialog-content>div {
        width: 50%;
        height: 100%;
        float: unset;
    }
    .dialog-content .d-user p {
        font-size: 15px;
        text-align: right;
        margin: 00px 00px 0 0;
    }
    .d-footer {
        position: unset;
        width: 100%;
        height: auto;
        bottom: 5px;
        text-align: center;
    }
    .d-footer .btn-save {
        width: 330px;
        position: unset;
        font-size: 25px;
        color: white;
        border: 3px white solid;
        cursor: pointer;
        text-align: center;
        padding: 0px 0px 0 0px;
        user-select: none;
        top: 0px;
        margin-left: 7px;
        display: block;
    }
    h3#charNum {
        position: unset;
        left: 0px;
        top: 285px;
        margin-left: 5px;
        bottom: unset;
        font-size: 16px;
    }
    .login-place2 {
        display: unset !important;
        font-size: 15px !important;
    }
    .login-place2 p {
        font-size: 17px;
        text-align: right;
        margin: 5px;
    }
    #textmsg::placeholder {
        font-size: 20px;
        color: gray;
    }
    .clouds {
        height: 462px;
        background-position-y: bottom;
        position: absolute;
        bottom: 231px;
        background-size: 717px;
    }
    .eightbit-btn span {
        margin-right: 15px;
        color: red;
        text-shadow: 2px 2px #988a0a;
        font-weight: 700;
        font-size: 19px;
    }
    .login-sec {
        margin: 10px 10px 0 0;
        /* display: none; */
    }
    .bannerslist ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
        width: 100%;
        height: 100%;
        margin: 0;
        margin-block-start: 0em;
        padding-inline-start: 00px;
    }
}

@media only screen and (max-width: 400px) {
    /* dialog*/
    #dialog {
        position: fixed;
        width: 320px;
        height: unset;
        background-color: black;
        top: 40px;
        margin-top: 0;
        left: 50%;
        margin-left: -160px;
        border: 2px solid rgb(255, 255, 255);
        border-radius: 5px;
    }
    #dialog .dialog-wrapper {
        margin: 5px 5px;
        /* background-color: #421919; */
        padding: 0px;
    }
    .dialog-wrapper .d-header {
        height: 25px;
        position: relative;
    }
    .d-header .h-title {
        color: white;
        font-size: 25px;
        font-weight: unset;
        position: absolute;
        right: 10px;
        direction: rtl;
    }
    .d-header .h-exit {
        margin: 5px;
    }
    .dialog-content {
        margin: 7px 2px 0 0;
    }
    .d-footer a {
        color: white;
        margin-top: 0px;
        margin-left: 0px;
        display: block;
    }
    .dialog-content h3 {
        color: white;
        padding: 0;
        margin: 0;
    }
    .d-input {
        font-size: 17px;
        width: 295px;
        height: auto;
        max-height: 140px;
        background-color: #0023a9;
        margin: 10px 0 0px 0px;
        border: 2px white solid;
        resize: none;
        color: white;
        font-family: EightbitEsso;
        overflow: hidden;
        direction: rtl;
        font-weight: bold;
        padding: 0px 5px 0 0;
    }
    .dialog-content>div {
        width: 50%;
        height: 100%;
        float: unset;
    }
    .dialog-content .d-user p {
        font-size: 12px;
        text-align: right;
        margin: 00px 00px 0 0;
    }
    .d-footer {
        position: unset;
        width: 100%;
        height: auto;
        bottom: unset;
        display: flex;
        flex-direction: column-reverse;
    }
    .d-footer .btn-save {
        width: 290px;
        position: unset;
        font-size: 23px;
        color: white;
        border: 3px white solid;
        cursor: pointer;
        display: block;
        text-align: center;
        padding: 0px 0px 0 0px;
        user-select: none;
        top: 0px;
        margin-left: 7px;
        display: block;
    }
    h3#charNum {
        position: unset;
        font-size: 15px;
        margin-top: 0px;
    }
    #newBanner {
        width: 42%;
    }
    #showBanners {
        width: 54%;
    }
    .eightbit-btn span {
        margin-right: 25px;
        color: red;
        text-shadow: 2px 2px #988a0a;
        font-weight: 700;
        font-size: 15px;
    }
    .eightbit-btn span:before {
        content: "";
        position: absolute;
        background-size: cover;
        background-repeat: no-repeat;
        width: 25px;
        height: 25px;
        right: 7px;
        top: 17px;
    }
    #newBanner span:before {
        background-image: url('../imgs/icons.png');
        background-position-x: -25px;
    }
    .solider {
        width: 171px;
        bottom: 80px;
        margin-left: -114px;
        height: 240px;
    }
    .ground {
        width: 100%;
        height: 115px;
        bottom: 0;
    }
    .mountiant {
        height: 425px;
        bottom: 65px;
    }
    #banners-wrapper {
        height: 319px;
        width: 100%;
        bottom: 55px;
    }
    .banner {
        min-height: 100px;
        width: 250px;
        max-height: 270px;
    }
    .b-wrapper {
        margin-bottom: 3px;
        margin-top: 6px;
        margin-right: 5px;
        padding-bottom: 5px;
        margin-left: 5px;
    }
    .d-b-footer {
        bottom: 0;
        height: 45px;
        padding: 0px !important;
        margin: -0px;
        width: 243px !important;
    }
    span.ppic {
        width: 30px;
        height: 30px;
        border: 2px solid white;
        margin: 5px 5px 0px 0;
    }
    span.binfo {
        right: 49px;
        margin-top: 5px;
    }
    .d-b-footer span a {
        margin: 0px;
        font-size: 10pt;
        max-height: 13px;
    }
}