@font-face {
    font-family: 'fontello';
    src: url('../fonts/fontello.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: local('Roboto'), local('Roboto Regular'), local('Roboto-Regular'),
    url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: local('Roboto Bold'), local('Roboto-Bold'),
    url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}

html {
    font-family: Roboto;
    height: 100%;
    width: 100%;
    display: table;
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
}

body {
    width: 100%;
    max-width: 740px;
    height: 100%;
    max-height: 740px;
    padding: 0;
    margin: 0;
    display: table-cell;
    vertical-align: middle;
    overflow-x: hidden;
    overflow-y: hidden;
}

.background {
    background: url(../images/alien-planet.jpg) no-repeat;
    background-position: 70% 50%;
    background-size: auto;
    position: absolute;
    filter: blur(1px);
    -ms-filter: blur(1px);
    -moz-filter: blur(1px);
    -webkit-filter: blur(1px);
    z-index: 1;
    margin: 0 auto;
    width: 70vw;
    margin-left: 30vw;
    margin-top: 150px;
    height: calc(100vh - 150px);
    overflow: hidden;
    top: 0;
    left: 0;
}

.playground {
    background: url('../images/spacebeach.png') no-repeat center center;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    filter: saturate(1.3);
    -ms-filter: saturate(1.3);
    -moz-filter: saturate(1.3);
    -webkit-filter: saturate(1.3);
    padding: 148px;
    position: relative;
    z-index: 2;
}

@-webkit-keyframes blink-effect {
    0% {}

    75% {
        opacity: 0.01;
    }

    60% {
        opacity: 0.2;
    }

    75% {
        opacity: 0.01;
    }

    100% {}
}

@keyframes blink-effect {
    0% {}

    75% {
        opacity: 0.01;
    }

    60% {
        opacity: 0.2;
    }

    75% {
        opacity: 0.01;
    }

    100% {}
}

.tiles {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 200px;
    margin: 0;
    float: left;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    pointer-events: none;
    z-index: 3;
    transform: perspective(5px);
    -webkit-transform: perspective(5px);
    -moz-transform: perspective(5px);
    -ms-transform: perspective(5px);
    -webkit-animation: blink-effect 6s infinite;
    animation: blink-effect 6s infinite;
}

.platform {
    position: absolute;
    width: 137px;
    height: 137px;
    transform: rotateZ(45deg) rotate3d(2.5, 2.5, 1.8, 3.142rad) perspective(9999px);
    -webkit-transform: rotateZ(45deg) rotate3d(2.5, 2.5, 1.8, 3.142rad) perspective(9999px);
    -moz-transform: rotateZ(45deg) rotate3d(2.5, 2.5, 1.8, 3.142rad) perspective(9999px);
    -ms-transform: rotateZ(45deg) rotate3d(2.5, 2.5, 1.8, 3.142rad) perspective(9999px);
    top: 10px;
    left: 32px;
    z-index: 9999999;
    background: none;
    cursor: pointer;
    pointer-events: all;
}

.t2 {
    top: -145px;
    left: 98px;
    z-index: 4;
    transform: perspective(10px);
    -webkit-transform: perspective(10px);
    -ms-transform: perspective(10px);
    -moz-transform: perspective(10px);
}

.t3 {
    top: -290px;
    left: 0;
    z-index: 5;
    transform: perspective(15px);
    -webkit-transform: perspective(15px);
    -ms-transform: perspective(15px);
    -moz-transform: perspective(15px);
}

.t4 {
    top: -440px;
    left: 96px;
    z-index: 6;
    transform: perspective(20px);
    -webkit-transform: perspective(20px);
    -ms-transform: perspective(20px);
    -moz-transform: perspective(20px);
}

.t5 {
    top: -585px;
    left: 0;
    z-index: 7;
    transform: perspective(25px);
    -webkit-transform: perspective(25px);
    -ms-transform: perspective(25px);
    -moz-transform: perspective(25px);
}

.platform:hover {
    background: #2cc0fc40;
}

.built {
    opacity: 1;
    -webkit-animation: none;
    animation: none;
}

.hovering {
    opacity: 0.5;
    -webkit-animation: none;
    animation: none;
}

.hovering .platform {
    filter: saturate(3.5);
    -ms-filter: saturate(3.5);
    -webkit-filter: saturate(3.5);
}

.first .platform {
    filter: saturate(5.5);
    -ms-filter: saturate(5.5);
    -webkit-filter: saturate(5.5);
}

.built .platform:after {
    display: none !important;
}

.mark {
    background: url(../images/empty.png) no-repeat center center;
    opacity: 0;
    width: 100px;
    height: 100px;
    position: relative;
    left: 0;
    z-index: 9999999;
    transition: background 0.4s ease;
}

.placed {
    opacity: 1;
}

.bhovering {
    opacity: 0.5;
}

.tto {
    background: url(../images/o.png) no-repeat center center;
    height: 95px;
    width: 150px;
    left: 20px;
    top: 30px;
    -webkit-animation: up-down-effect 1.1s linear infinite;
    animation: up-down-effect 1.1s linear infinite;
}

.ttx {
    background: url(../images/x.png) no-repeat center center;
    height: 95px;
    width: 150px;
    left: 20px;
    top: 26px;
    -webkit-animation: up-down-effect 1.1s linear infinite;
    animation: up-down-effect 1.1s linear infinite;
}

.tap {
    -webkit-filter: grayscale(1);
            filter: grayscale(1);
    opacity: 0.3;
    pointer-events: none;
}

#logo,
#desc {
    width: 100%;
    top: 10px;
    z-index: 999999999;
    display: block;
    position: absolute;
    left: 0;
    color: #8adff0;
    text-align: center;
    font-size: 40px;
    text-transform: uppercase;
    font-weight: 700;
    pointer-events: none;
}

#desc {
    font-size: 16px;
    top: 75px;
}

.embed {
    position: absolute;
    bottom: 00px;
    text-align: center;
    width: 100%;
    left: 0;
}

.embed textarea {
    width: calc(100% - 22px);
    height: calc(90px - 2px);
    font-size: 12px;
    color: #009ac4;
    outline: none;
    border-radius: 5px;
    border: 0;
    padding: 10px;
    margin: 0;
    max-width: 400px;
    max-height: 90px;
    min-height: 90px;
    background: #010d15;
    resize: none;
}

.embed h3 {
    color: #76e4fa;
}


@-webkit-keyframes sonar-effect {
    0% {
        z-index: 11;
        opacity: 0.1;
        transform: scale(0.9) perspective(100px);
        -webkit-transform: scale(0.9) perspective(100px);
        -moz-transform: scale(0.9) perspective(100px);
        -ms-transform: scale(0.9) perspective(100px);
    }

    45% {
        opacity: 0.3;
        box-shadow: 0 0 0 5px #2edb00, 0 0 5px 5px #2edb00, 0 0 0 5px #2edb00;
    }

    60% {
        box-shadow: 0 0 0 3px #2edb00, 0 0 3px 3px #2edb00, 0 0 0 3px #2edb00;
        transform: scale(0.2);
        -webkit-transform: scale(0.2);
        -moz-transform: scale(0.2);
        -ms-transform: scale(0.2);
    }

    75% {
        opacity: 0.3;
        box-shadow: 0 0 0 5px #2edb00, 0 0 5px 5px #2edb00, 0 0 0 5px #2edb00;
    }

    100% {
        z-index: 11;
        opacity: 0.1;
        transform: scale(0.9) perspective(100px);
        -webkit-transform: scale(0.9) perspective(100px);
        -moz-transform: scale(0.9) perspective(100px);
        -ms-transform: scale(0.9) perspective(100px);
    }
}


@keyframes sonar-effect {
    0% {
        z-index: 11;
        opacity: 0.1;
        transform: scale(0.9) perspective(100px);
        -webkit-transform: scale(0.9) perspective(100px);
        -moz-transform: scale(0.9) perspective(100px);
        -ms-transform: scale(0.9) perspective(100px);
    }

    45% {
        opacity: 0.3;
        box-shadow: 0 0 0 5px #2edb00, 0 0 5px 5px #2edb00, 0 0 0 5px #2edb00;
    }

    60% {
        box-shadow: 0 0 0 3px #2edb00, 0 0 3px 3px #2edb00, 0 0 0 3px #2edb00;
        transform: scale(0.2);
        -webkit-transform: scale(0.2);
        -moz-transform: scale(0.2);
        -ms-transform: scale(0.2);
    }

    75% {
        opacity: 0.3;
        box-shadow: 0 0 0 5px #2edb00, 0 0 5px 5px #2edb00, 0 0 0 5px #2edb00;
    }

    100% {
        z-index: 11;
        opacity: 0.1;
        transform: scale(0.9) perspective(100px);
        -webkit-transform: scale(0.9) perspective(100px);
        -moz-transform: scale(0.9) perspective(100px);
        -ms-transform: scale(0.9) perspective(100px);
    }
}

.first .platform:after {
    z-index: 11;
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #2edb00;
    -webkit-animation: sonar-effect 3s infinite;
    animation: sonar-effect 3s infinite;
    border-radius: 5px;
}

.first .platform:hover:after {
    background-color: #00d82c;
}

.disabled {
    opacity: 0;
    pointer-events: none;
    -webkit-animation: none;
    animation: none;
}

@-webkit-keyframes up-down-effect {
    0% {
        top: 26px;
    }

    45% {}

    60% {
        top: 23px;
    }

    75% {}

    100% {
        top: 26px;
    }
}

@keyframes up-down-effect {
    0% {
        top: 26px;
    }

    45% {}

    60% {
        top: 23px;
    }

    75% {}

    100% {
        top: 26px;
    }
}

.icon-vkontakte,
.icon-facebook,
.icon-twitter {
    text-decoration: none;
    color: #0091b2;
    width: 33%;
    font-size: 15px;
    margin: 0 2px;
    border-radius: 5px;
    padding: 8px;
    font-family: arial;
    background: #010d15;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
    font-family: "fontello";
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: .2em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    margin-left: .2em;
    font-size: 120%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-twitter:before {
    content: '\f099';
}

/* '' */
.icon-facebook:before {
    content: '\f09a';
}

/* '' */
.icon-vkontakte:before {
    content: '\f189';
}

/* '' */
#score {
    color: #fff;
    display: block;
    position: absolute;
    top: 110px;
    text-align: center;
    width: inherit;
}

#play_cont {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
    z-index: 999999;
    cursor: pointer;
}

.sharcont {
    position: absolute;
    bottom: 180px;
    text-align: center;
    width: 100%;
    left: 0;
}

.links {
    padding: 0px;
    position: absolute;
    bottom: 50px;
    width: 100%;
    text-align: center;
    left: 0;
}

.links li {
    display: inline-block;
    margin: 0 10px;
}

.links li a {
    text-decoration: none;
    color: #0091b2;
    font-family: arial;
}

[class^="icon-"]:hover,
[class*=" icon-"]:hover,
.links li:hover a {
    color: #2aade7;
}

#p {
    color: #07ff07;
}

#o {
    color: #ff5252;
}

#d {
    color: #76e4fa;
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
        overflow-y: scroll;
    }

    .embed {
        bottom: 0px;
    }

    .links li a,
    .icon-vkontakte,
    .icon-facebook,
    .icon-twitter {
        font-size: 12px;
    }

    .links {
        bottom: -10px;
    }

    .sharcont {
        bottom: 200px;
    }

    .background {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
        height: 100%;
        padding-top: 200px;
    }

    .playground {
        width: 310px;
        height: 300px;
        padding: 148px 0;
        background-size: 100%;
        overflow: hidden;
    }

    .tiles {
        width: 100px;
        height: 100px;
    }

    .platform {
        width: 68px;
        height: 68px;
        top: 5px;
        left: 16px;
    }

    .t2 {
        top: -75px;
        left: 55px;
    }

    .t3 {
        top: -145px;
        left: 4px;
    }

    .t4 {
        top: -220px;
        left: 52px;
    }

    .t5 {
        top: -290px;
        left: 7px;
    }

    .tto,
    .ttx {
        background-size: contain;
        height: 45px;
        width: 75px;
        left: 10px;
        margin-top: -10px;
    }

    #score {
        top: 110px;
    }

    #logo {
        top: -20px;
    }

    #desc {
        top: 45px;
    }

}