@font-face {
    font-family: 'Circe';
    src: url('../fonts/Circe-Light.eot');
    src: local('Circe Light'), local('Circe-Light'),
        url('../fonts/Circe-Light.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Circe-Light.woff') format('woff'),
        url('../fonts/Circe-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
html, body {
    color: #fff;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;   
    background-image: url(../img/bg.jpg);
    background: #fff;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    text-align: center;
    position: relative;
    font-size: 1vmax;
    overflow: hidden;
    font-family: 'Circe';
}
h1, h2, h3, h4, h5 {font-weight: normal; margin: 0;}
.sound, .rules, .hint {opacity: .8;}
.sound .fa-volume-up:after {
    content: '';
    position: absolute;
    border-left: 2px solid #f99f1c;
    margin-left: -0.8em;
    margin-top: .07em;
    transform: rotate(45deg);
    width: 1em;
    height: 1.5em;
}
.sound.unmute .fa-volume-up:after {content: none;}
.blue {color: #1ce2f9;}
.yellow {color: #f99f1c;}
a {color: inherit; text-decoration: none;}
a:hover {text-decoration: underline;}
.disabled {
  pointer-events: none;
}
.logo {
    position: absolute;
    z-index: 500;
    left: 3em;
    top: 2em;
    width: 14em;
    height: 6em;
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}
body.russian .logo {
    background-image: url(../img/logo.png);
}
body.english .logo {
    background-image: url(../img/logo_en.png);
}
.en, .ru {display: none;}
.english .en, .russian .ru {display: inline-block;}
.close {
    position: absolute;
    z-index: 500;
    right: 3em;
    top: 3em;
    font-size: 1.2em;
    cursor: pointer;
    display: none;
}
.close i {margin-left: .5em; transition: .25s;}
/*.close:hover i {transform: rotate(90deg);}*/
.close:hover {text-decoration: underline;}
.logo a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
video {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
}
.fullflex {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    left: 0;
    top: 0;   
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}
.loader {
    z-index: 100;
}
.loader.black {
    background: #000000;
}
.loader:before {
    content: '';
    width: 100%;
    position: absolute;
    height: 100%;
    background: url(../img/lid1.png) no-repeat 50% 50%;
    background-size: cover;
    transform: translateY(-100vh);
    transition: .75s;
}
.loader:after {
    content: '';
    width: 100%;
    position: absolute;
    height: 100%;
    background: url(../img/lid2.png) no-repeat 50% 50%;
    background-size: cover;
    transform: translateY(100vh);
    transition: .75s;
}
.loader.on:before, .loader.on:after {
    transform: translateY(0vh);    
}
.preloader {
    width: 15%;
    height: 20vw;
    position: relative;
}
.preloader > div {
    width: 100%;
    position: absolute;
    padding-bottom: 100%;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    z-index: 10;
}
.preloader > div:nth-of-type(1) {
    background-image: url(../img/loader1.png);
    animation: rotate 3s alternate infinite;
}
.preloader > div:nth-of-type(2) {
    background-image: url(../img/loader2.png);
    animation: rotate 6s  alternate infinite;
}
.preloader > div:nth-of-type(3) {
    background-image: url(../img/loader3.png);
    animation: rotate 2s alternate-reverse infinite;
}
.preloader > div:nth-of-type(4) {
    background-image: url(../img/loader4.png);
    animation: rotate 5s alternate-reverse infinite;
}
.loader .hint {
    z-index: 5;
    width: 100%;
}
.loader .hint h2 {position: relative;}
.loader .hint h2 .first_hint {animation: first_hint_blink1 10s normal infinite;}
.loader .hint h2 .first_hint_delay {animation: first_hint_blink2 10s normal infinite; position: absolute; top: 0;}
@keyframes first_hint_blink1 {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: 0; }
  100% {opacity: 0;  }
}
@keyframes first_hint_blink2 {
  0%   { opacity: 0; }
  50%  { opacity: 0; }
  55%  { opacity: 1; }
  95%  { opacity: 1; }
  100% {opacity: 0;  }
}
.loader .hint h2 > div:not(.first_hint):not(.first_hint_delay) {
    position: absolute;
    right: 0;
    bottom: -1.5em;
    font-size: .8em;
}
.loader h2 {
    color: #ffffff;
    width: 60%;
    margin: auto;
    font-size: 1.3em;
    line-height: 1.3em;
}
.loader h2 > span {
    color: #f99f1c;
    margin: 0 auto 1em;
    font-size: 1.1em;
    display: inline-block;
}
.loader h3 {
    opacity: 0;
    color: #f99f1c;
    transition: .5s;
    cursor: pointer;
    line-height: 2.5em;
    margin-top: 2em;
    animation: h3blinking 1s infinite alternate;
}
.loading {
    position: absolute;
    bottom: 2em;
    left: 3em;
    color: #f99f1c;
    /* display: block; */
    z-index: 2;
}
.loading span {
    animation: loadingblinking 1s infinite alternate;
    transition: .5s;
}
.loading span:nth-of-type(2) {
    animation: loadingblinking 1s .25s infinite alternate;
    transition: .5s;
}
.loading span:nth-of-type(3) {
    animation: loadingblinking 1s .5s infinite alternate;
    transition: .5s;
}
@keyframes h3blinking {
  0%   { text-shadow: 0px 0px 0em #f99f1c; }
  50%   { text-shadow: 0px 0px 0.5em #00e4f3; }
  100% { text-shadow: 0px 0px 0.5em #f99f1c;
  color: #00e4f3; }
}
@keyframes loadingblinking {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* INDEX */
.button {
    opacity: 0;
    position: absolute;
    color: #00e4f3;
    border: .1em solid #00e4f3;
    border-radius: 50%;
    width: 7em;
    line-height: 7em;
    font-size: 1.2em;
    cursor: pointer;
    transition: all .75s, opacity 2s;
    white-space: nowrap;
    box-shadow: inset 0px 0px 0.5em 0px #00e4f3, 0px 0px 0.5em 0px #00e4f3;
    outline: none;
    transform: translate3d(0,0,0);
}
.button_about {
    top: 26%;
    left: 12%;;
}
.button_contacts {
    top: 66%;
    left: 8%;
}
.button_game {
    top: 50%;
    left: 75%;
    font-size: 1.5em;
    color: #f99f1c;
    border: .1em solid #f99f1c;
    box-shadow: inset 0px 0px 0.5em 0px #f99f1c, 0px 0px 0.5em 0px #f99f1c;
}
.button:hover {
    box-shadow: inset 0px 0px 1em 0px #00e4f3, 0px 0px 1em 0px #00e4f3;
    border: .1em solid #ffffff;
    text-shadow: 0px 0px 0.1em #00e4f3;
}
.button.button_game:hover {
    box-shadow: inset 0px 0px 1.5em 0px #f99f1c, 0px 0px 1.5em 0px #f99f1c;
    border: .1em solid #ffffff;
    text-shadow: 0px 0px .1em #f99f1c;
}
/* CONTACTS */
.contacts {
    display: none;
    background: rgba(0, 0, 0, .9);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    text-align: left;
    font-size: 1.2em;
}
.contacts > * {
    line-height: 1.3em;
}
.contacts .download {
    /*position: fixed;
    bottom: 1em;
    text-align: center;
    margin: .5em 0;
    left: calc(50% - 4em);
    width: 8em;*/
    cursor: pointer;
}
.contacts .download:hover {
    text-decoration: underline;
}
.contacts .download i {
    margin-left: 0.5em;
    border-bottom: 2px solid;
}
.contacts h3 {font-size: 1.35em;}
/* ABOUT */
.about {
    display: none;
    background: rgba(0, 0, 0, .9);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    text-align: left;
    font-size: 1.2em;
}
.about > * { 
    line-height: 1.3em;
}
.about h3 {font-size: 1.35em;}
.about a, .about h5 {
    color: #00e4f3;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
}
.about a.replay {
    font-size: 1em;
    box-shadow: inset 0px 0px 0.5em 0px #f99f1c, 0px 0px 0.5em 0px #f99f1c;
    border: .08em solid #f99f1c;
    color: #f99f1c;
    font-size: 1.5em;
}
.about a:hover, .about h5:hover {
    text-decoration: underline;
}
.about a.replay:hover {
    text-decoration: none;
}
.about h5 + div {max-height: 0; transition: 1s; overflow: hidden;}
.about h5 + div.opened {max-height: 2500px;}
.about h5:after {
    content: '>';
    transform: rotate(90deg)  translateX(.3em)  translateY(-0.3em);
    transition: .5s;
    display: inline-block;
    width: 1em;
    height: 1em;
}
.about h5 + div h3 {
    font-size: 1em;
}
.about h5.opened:after {
    transform: rotate(-90deg)  translateX(.1em)  translateY(0.3em);
}

@media( pointer: coarse) and (orientation : portrait) {
    .button {
        font-size: 2.5em;
    }
    .second {
        width: 80%;
    }
    .text {
        font-size: 2.5em;
        width: 100%;
    }
    .second .text span {
        padding: 0;
    }
    .retry {
        width: 4em;
        height: 4em;
        margin-top: 2em;
    }
    .logo {
        width: 14em;
        height: 5em;
    }
    .parallax {
        background-size: contain;
    }
    .par1 {
        background-position: 50% 100%;
    }
    .par3 {
        background-position: 50% 0%;
    }
}

/* GAME */
.game {
    display: none;
}
.timer {
    width: 10%;
    /*min-width: 190px;*/
    font-size: 1.2em;
    text-align: center;
    position: absolute;
    top: 6em;
}
.timer span {

}
.question {
    display: none;
    width: 100%;
    text-align: left;
    padding: 0 8em;
    box-sizing: border-box;
}
.level {
    font-size: 1.4em;
}
.level span {
    border: .1em solid #00e4f3;
    border-radius: 50%;
    width: 1.6em;
    line-height: 1.8em;
    height: 1.6em;
    margin: 0 .5em;
    box-shadow: inset 0px 0px 0.5em 0px #00e4f3, 0px 0px 0.5em 0px #00e4f3;
    display: inline-block;
    text-align: center;
}
.question .text {
    color: #fff;
    font-size: 2em;
    margin: .5em 0;
    opacity: .8;
}
.question_wrap {
    max-width: 40em;
    transition: .5s;
}
.question_wrap.disabled {
    filter: grayscale(75%);
    opacity: .6;
}
.question_wrap > div {
    display: inline-block;
    border: .08em solid #00e4f3;
    border-radius: .5em;
    padding: .4em 0;
    font-size: 1.2em;
    width: 11em;
    text-align: center;
    overflow: hidden;
    margin: 1em 2em 0 0;
    transition: .5s;
    cursor: pointer;
    outline: none;
    transform: translate3d(0,0,0);
}
.question_wrap > div:hover {
    box-shadow: inset 0px 0px 0.5em 0px #00e4f3, 0px 0px 0.5em 0px #00e4f3;  
}
#countdown {
    font-family: "Circe" !important;
}
.five_hint_button {
    position: absolute;
    right: 0;
    top: 50%;
    top: calc(50% - 1em);
    background: url(../img/check_eye.png) no-repeat 50% 50%;
    background-size: contain;
    width: 3em;
    height: 2em;
    right: 3em;
    cursor: pointer;
}
.five_hint_button:before {
    content: 'Подсказка:';
    margin-top: -1.5em;
    display: block;
    margin-left: -2em;
    width: 7em;
}
.english .five_hint_button:before {
    content: 'Hint:';
}
.five_hint_text {
    position: absolute;
    width: 60%;
    left: 20%;
    margin: auto;
    bottom: 2em;
    text-align: center;
}
.five_hint_text span {
    color: #fff;
    background: #000;
    line-height: 1.5em;
}

/* FOOTER */
footer {
    position: absolute;
    z-index: 90;
    right: 3em;
    bottom: 2em;
    text-align: right;
}
footer div {
    margin: .5em 0;
    cursor: pointer;
}
footer div:hover {
    text-decoration: underline;
}
footer div i {margin-left: .5em;}

/* POPUP */
.popup_body {display: none;}
.popup_wrap {
    background: rgba(0, 0, 0, .9);
    background-size: cover;
    z-index: 95;
}
.popup {
    display: none;
    background: url(../img/popup_bg.png) no-repeat 50% 50%;
    background-size: cover;
    width: 30%;
    border-radius: .5em;
    padding: 3em 0;
    opacity: 0.9;
    /*max-height: 50vh;*/
    overflow: auto;
}
.popup_showed {
    display: block;
    background: url(../img/popup_bg.png) no-repeat 50% 50%;
    background-size: cover;
    width: 30%;
    border-radius: .5em;
    padding: 3em 2em;
    opacity: 0.9;
    max-height: 70vh;
    overflow: auto;
}
.contacts .popup_showed {width: 20%;}
.contacts .popup_showed .blue {text-decoration: underline;}
.contacts .popup_showed .blue:hover {text-decoration: none;}
.popup h4 {
    font-size: 1.5em;
    width: 80%;
    margin: 1em auto;
}
.popup_win h4 {
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.popup_win h3 span {
    font-style: 1.2em;
}
.popup h5 {
    font-size: 1.5em;
    margin: 1em 0 0;
}
.popup_win h5 {
    text-transform: uppercase;
    font-size: 0.9em;
    line-height: 1.6em;
    margin: 2.4em auto 0;
}
.popup_win h5 span a {
    color: #f99f1c;
    text-decoration: underline;
}
.popup_win h5 span a:hover {
    color: #f99f1c;
    text-decoration: none;
}
.popup h3 {
    font-size: 2em;
    margin: .8em;
}
.popup_win h3 {
    font-size: 3em;
    margin: .8em 0 1em 0;
    color: #00e4f3;
    font-weight: bold;
}
.popup_win p {
    width: 80%;
    margin: 1em auto 2em;
    line-height: 1.2em;
    color: #7ca4b0;
}
.popup_line {
    border-bottom: 1px solid #00e4f3;
    width: 80%;
    margin: auto;
}
.popup_more h3, .popup_more h4, .popup_rules h3 {
    margin: .8em 0;
}
.popup .restart {
    cursor: pointer;
}
.popup .restart:hover {
    text-decoration: underline;
}
.popup .restart span {
    text-decoration: underline;
}
.popup_more, .popup_rules {
    padding: 3em;
    max-height: 80vh;
    text-align: left;
    position: relative;
}
.popup_rules_close {
    position: sticky;
    top: 0em;
    /* right: 1em; */
    font-size: 1.5em;
    width: 1em;
    transition: .5s;
    text-align: right;
    cursor: pointer;
    /* margin-top: -3em; */
    margin: -3em 0 0 100%;
    transform: translateY(-1em);
}
ul {
    padding: 0 0 0 2em;
}
li {
    margin-bottom: .5em;
}
.popup_more > div > div {
    max-height: calc(80vh - 20em);
    overflow: auto;
    /* overflow-x: visible; */
    padding: 0 2em;
    width: calc(100% - 2em);
    margin-left: -2em;
}
.popup_more h4 {
    margin: 1.5em 0 0 0;
    font-size: 1em;
}
.popup_more h3 {
    font-size: 1.5em;
}
/*.popup i {
    font-size: 2em;
}
.popup_correct i {
    color: #00e4f3;
}
.popup_wrong i {
    color: #FF0000;
}*/
.check_eye {
    background: url(../img/check_eye.png) no-repeat 50% 50%;
    background-size: contain;
    width: 3em;
    height: 2em;
    margin: auto;
}
.cross_eye {
    background: url(../img/cross_eye.png) no-repeat 50% 50%;
    background-size: contain;
    width: 3em;
    height: 2em;
    margin: auto;
}
.popup_win i {
    font-size: 2em;
    border: .08em solid #00e4f3;
    border-radius: 50%;
    margin: .5em;
    font-size: 1em;
    width: 2em;
    line-height: 2em;
    color: #00e4f3;
    transition: .5s;
    cursor: pointer;
    transform: translate3d(0,0,0);
}
.next, .replay, .pay, .subscribe_button, input {
    display: inline-block;
    border: .08em solid #00e4f3;
    border-radius: .5em;
    padding: .4em 1em .2em;
    font-size: 1.5em;
    min-width: 7em;
    text-align: center;
    overflow: hidden;
    margin: 0;
    transition: .25s;
    cursor: pointer;
    color: #00e4f3;
    text-transform: uppercase;
    transform: translate3d(0,0,0);
}
input {
    background: transparent;
    width: 9em;
    min-width: 1em;
    text-align: center;
    padding: .4em 0 0.2em;
    margin-top: .5em;
    cursor: default;
    outline: none;
}
.subscribe_button {
    margin-left: 1em;
    width: 3em;
    cursor: pointer;
}
.next:hover, .replay:hover, .pay:hover, .popup_win i:hover, .subscribe_button:hover {
    box-shadow: inset 0px 0px 0.5em 0px #00e4f3, 0px 0px 0.5em 0px #00e4f3;  
}
.fivehint {
    padding: 2em 2em 0;
    font-size: 1.2em;
}
.fivehint > div {
    color: #f99f1c;
}

video {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
}
@keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.noportrait {
    display: none;
    font-size: 2em;
    z-index: 200;
}
.noportrait_wrap {
    background: #000000;
    z-index: 250;
}

.popup::-webkit-scrollbar, .popup_showed::-webkit-scrollbar, .popup_more > div > div::-webkit-scrollbar {
    width: .25em;
}
 
.popup::-webkit-scrollbar-track, .popup_showed::-webkit-scrollbar-track, .popup_more > div > div::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
 
.popup::-webkit-scrollbar-thumb, .popup_showed::-webkit-scrollbar-thumb, .popup_more > div > div::-webkit-scrollbar-thumb {
  background-color: #f99f1c;
  outline: 1px solid slategrey;
}

.buorg {
    background: #f99f1c;
    font: inherit;
}
#buorgig, #buorgul, #buorgpermanent {
    background: #1ce2f9;
    border-radius: 0;
    box-shadow: none;
}

#vk_like_wrap {
    z-index: 999;
    position: relative;
    display: inline-block;
    border: .08em solid #00e4f3;
    border-radius: .5em;
    padding: .4em 0;
    font-size: 1.2em;
    width: 45%;
    text-align: center;
    text-transform: uppercase;
    overflow: hidden;
    margin: 1em 0 0 0;
    transition: .5s;
    cursor: pointer;
    outline: none;
    transform: translate3d(0,0,0);
}
#vk_like {
    margin: 1em auto 0;
    top: 0;
    position: absolute !important;
    left: 0;
    transform-origin: left center;
    transform: scaleY(3) scaleX(8);
    opacity: .01;
}
#vk_like_wrap:hover span {
    text-decoration: underline;
}
#vk_like_wrap span {
    letter-spacing: .1em;
}
.pay {
    font-size: 1.2em;
    width: 45%;
    background: #00e4f3;
    color: #000000;
    margin-bottom: 1em;
    box-sizing: border-box;
    letter-spacing: .1em;
}
.pay:hover {
    box-shadow: none;
}
.pay:hover span {
    text-decoration: underline;
}



@media only screen and (orientation: portrait) {
    .noportrait {display: block;}
}

@media( pointer: coarse) {
    html, body {
        font-size: 1.2vmax;
    }
    .loader .hint {
        font-size: 1.5em;
    }
    .game_wrap {
        flex-direction: row-reverse;
    }
    .timer {
        position: relative;
        top: auto;
    }
    .question {
        width: 55%;
        padding: 0;
    }
    .five_hint_button {
        right: calc(50% - 1.5em);
        top: auto;
        bottom: 3em;
    }
    .pay, #vk_like_wrap {
        font-size: .8em;
    }
    .popup_win h3 {
        font-size: 2.5em;
    }
}




