@font-face {
    font-family: Play;
    src: url(fonts/Play-Bold.ttf);
    font-weight: bold;
}    

@font-face {
    font-family: PT Astra Fact;
    src: url(fonts/PTAstraFact-Regular.ttf);
    font-weight: regular;
}

body {
    overflow: hidden;
    margin: 0px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background-color: #060c22;
    overscroll-behavior-y: none;
    transform-origin: center top;
    height: 100vh;
}

.rope {
    position: fixed;
    transform-origin: top center;
    width: 4.5vh;
    height: 50vh;
    top:-32vh;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('img/crane.png');
    background-position: center bottom;
}

.hook {
    position:relative;
    width: 13vh;
    height: 0vh;
    top: 36vh;
    margin-left: -4.1vh;
    margin-top: 14.2vh;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('img/chain.png');
    background-position: center bottom;
    transition: opacity 300ms;
}

.fixpoint {
    position:relative;
    width: 1px;
    height: 1px;
    top: 36vh;
    left: 2.275vh;
}

.box {
    position: fixed;
    height: 13.6vh;
    width: 13.6vh;
    transform-origin: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: opacity 500ms;
}

.box.tower {
    background-size: auto 13.6vh;
    background-position: left;
    animation-name: sprite;
    animation-duration: 1000ms;
    animation-timing-function: steps(2, jump-none);
    animation-iteration-count: infinite;
}

@keyframes sprite {
    from { background-position: left; }
    to { background-position: right; }
}

.box1 {background-image: url('img/block1-off.png');}
.box2 {background-image: url('img/block2-off.png');}
.box3 {background-image: url('img/block3-off.png');}
.box4 {background-image: url('img/block4-off.png');}
.box5 {background-image: url('img/block5-off.png');}
.box6 {background-image: url('img/block6-off.png');}

.box1.tower {background-image: url('img/block1-a.png');}
.box2.tower {background-image: url('img/block2-a.png');}
.box3.tower {background-image: url('img/block3-a.png');}
.box4.tower {background-image: url('img/block4-a.png');}
.box5.tower {background-image: url('img/block5-a.png');}
.box6.tower {background-image: url('img/block6-a.png');}




.animate {
    transition: 2500ms ease-out;
}

.animate-fast {
    transition: 500ms ease-out;
}

#gamefield {
    width: 100vw;
    height: 100vh;
    background-color: #060c22;
    margin: auto;
    position: relative;
    overflow: hidden;
}

#bg {
    width: 100vw;
    height: 500vw;
    top: calc(-500vw + 100vh);
    position: absolute;
    background-repeat: repeat;
    background-size: auto 100vh;
    background-image: url('img/bg.png');
    background-position: center bottom;
}

#towercount {
    width: 14vh;
    height: 5.6vh;
    top: 73vh;
    left: 5vh;
    border-radius: 5vh;
    background-color: #56beb7;
    position: absolute;
    color: white;
    display: flex;
    justify-content: center;
    font-size: 1.8vh;
    display: none;
}

#lostcount {
    width: 14vh;
    height: 5.6vh;
    top: 80vh;
    left: 5vh;
    border-radius: 5vh;
    background-color: #efa95d;
    position: absolute;
    color: white;
    display: flex;
    justify-content: center;
    font-size: 1.8vh;
    display: none;
}


#timer {
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('img/timer.png');
    width: 26vh;
    height: 8vh;
    z-index: 15;
}

#back {
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('img/back.png');

    width: 8vh;
    height: 8vh;
    position: absolute;
    left: 2vw;
    top:0;
    z-index: 15;
}

.modal {
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 0px 1000vw rgba(0, 0, 0, 0.5);
    color: #1A1A1A;
    transition: opacity 500ms;
    width: 40vh;
    height: 53vh;
    top: 23vh;
    left: calc((100vw - 40vh) / 2);
    border-radius: 1.5vh;
    overflow: scroll-y;
}

.extended.modal.leadermodal {
    height: 84vh;
    top: 8vh;
}

.modal.leadermodal {
    height: 74vh;
    top: 13vh;
}

.modal h1 {
    font-family: "Play";
    font-size: 3vh;
    margin-top: 4vh;
    margin-left: 4vh;
    color: #000AA6;
}

.modal>p {
    font-family: "PT Astra Fact";
    font-size: 1.6vh;
    margin-left: 4vh;
    margin-right: 4vh;
    margin-top: 2vh;
    color: #1D202B;
}

.btn>p {
    font-family: "Play";
    font-size: 1.9vh;
    pointer-events: none;
}

.btn {
    font-size: 1.5vh;
    background-color: #202125;
    border-radius: 1vh;
    height: 6vh;
    width: 34vh;
    display: flex;
    justify-content: center;
    align-content: center;
    cursor: pointer;
    color: white;
}

.cancel-btn {
    left: 23vw;
    bottom: 5vw;
    background-color: #fff;
    border: 0;
    color: #52B665;
}

.ok-btn {
    margin-left: 3vh;
    margin-top: 3vh;
    opacity: 0.1;
}

.ok-btn.active {
    opacity: 1;
    background-color: #000AA6;
}


.ok-btn.active:hover {
    opacity: 0.8;
}

.btn.active:hover {
    /* background-color: #2f3036; */
    box-shadow: 0px 0px 3vw rgb(0 0 0 / 7%);
    text-decoration: underline;
}

#time-remained {
    position: absolute;
    font-size: 3.7vh;
    margin-left: 4vh;
    margin-top: 1.8vh;
    font-family: "Play";
    position: absolute;
    color: #000AA6;
    font-size: 3.7vh;
}

#scores {
    font-family: "Play";
    position: absolute;
    color: #000AA6;
    font-size: 3.7vh;
    margin-left: 18vh;
    margin-top: 1.8vh;
}


.coins {
    font-size: 4vw;
    font-weight: bold;
    color: #fde439;
    display: flex;
    margin-left: 5vw;
    padding-left: 3.5vw;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 2.5vw;
    background-image: url('img/coin.png');
}

.modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom:0;
    right:0;
}

.gamelogo {
    width: 30vh;
    height: 20vh;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(img/game-logo.png);
    margin: auto;
}

.modal h1.reg-h1 {
    text-align: center;
    margin-left: 0;
    margin-top: 0;
}

#regform-main {
    width: 100%;
    margin: auto;
}

#regform-main input {
    -webkit-appearance: none;
}
#regform-main input {
    font-family: "PT Astra Fact";
    width: 28vh;
    height: 6vh;
    border-radius: 1vh;
    border: solid;
    border-width: 1px;
    border-color: #000AA6;
    margin: 1vh 0px;
    font-size: 2.2vh;
    padding: 0px 3vh;
    position: relative;
    padding-top: 0;
    outline: 0;
    line-height: 7vh;
    margin-left: 3vh;
}

.form-text {
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    position: absolute;
    pointer-events: none;
}

.form-text::after {
    position: absolute;
    left: 50px;
    top: 46px;
    font-size: 28px;
    content: attr(data-placeholder);
    font-family: 'Golos', Verdana, sans-serif;
    display: block;
    width: auto;
    color: #fff;
    transition: all 0.3s ease-in;
    z-index: 1;
}

.input-wrapper {
    position: relative;
}

.timer-wrpr {
    display: flex;
    justify-content: center;
    position: fixed;
    width: 100%;
    z-index: 2;
    
}

.leader-line:last-of-type{
    border-bottom-style: none;
}

.leader-line {
    display: flex;
    height: 4.5vh;
    border-bottom: #000aa6;
    border-bottom-style: solid;
    padding-left: 4vh;
    padding-right: 2vh;
    align-items: center;
    border-bottom-width: 1px;
}

.leader-num {
    min-width: 3vh;
    height: 3vh;
    border-radius: 4vh;
    background-color: #000AA6;
    color: white;
    align-content: center;
    text-align: center;
    line-height: 3vh;
    font-family: 'PT Astra Fact';
    font-size: 1.8vh;
    padding: 0.3vh;
}

.own .leader-num {
    background-color: #ff8c00;
}

.leader-name {
    width: 25vh;
    height: 3.5vh;
    color: #1D202B;
    text-align: left;
    line-height: 3.5vh;
    font-family: 'PT Astra Fact';
    padding-left: 2vh;
    font-size: 2vh;
}

.leader-score {
    width: 3vh;
    height: 3.5vh;
    color: #1D202B;
    text-align: left;
    line-height: 3.5vh;
    font-family: 'PT Astra Fact';
    font-size: 2vh;
}


#scroller {
    width: 100vw;
    height: 110vh;
}