html, body { height: 100%; }
body{
    margin:0;
    overflow: hidden;
}
/* div,p {
    border-color: white;
    border: 0.1px;
    border-style: dashed;
} */
:root {
    touch-action: pan-x pan-y;
    height: 100% 
  }
  body{
    touch-action: manipulation;
}
#stage{
    position: fixed;
    width:100%;
    height:100%;
    overflow: hidden;
    /* background-image: url(images/wallpaper.jpg); */
    background-color: #489e38;
    background-size: cover;
}

#app{
    position: relative;
    width:100%;
    height:100%;
    max-width: 450px;
    max-height: 800px;
    justify-content: space-between;
    font-family: 'Bariol-Bold';
    flex-direction: column;
    overflow: hidden;
    border-radius: 2vh;
    filter: drop-shadow(2px 2px 50px black);
}
#header{
    height: 26%;
    /* background-color: antiquewhite; */
    width:100%;
    z-index: 1;
    transition: opacity .5s ease-out;
}
#txt-start{
    /* display:none; */
    background-image: url(images/txt-start.svg);
    background-position-y: 87%;
    background-size: 80%;
    transform: scale(0);
    transition: opacity .5s ease-out, transform .6s cubic-bezier(0, 0, 0, 0.99);
}
#active-time{
    pointer-events: none;
    width:100%;
    height: 16%;
    /* max-height: 128px; */
    opacity:0;
    margin-top:-100%;
    /* height:20vw; */
    background: linear-gradient(to right, #ddce01 , #fff360);
    box-shadow: -1px -5px 8px 0px #00000057 inset;
    top:0;
    position: absolute;
    transition: opacity .5s ease-out, margin-top 1s cubic-bezier(0, 0, 0, 0.99);
}
#active-time > div:nth-child(1){
    background-image: url(images/logotype.svg);
    width: 82%;
    height: 100%;
    /* margin-top:4%; */
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 100%;
}
#active-time > div > div:nth-child(1){
    display: flex;
    position: absolute;
    width: 24%;
    height: 20%;
    margin-top: -3%;
    text-align: right;
    right: 12%;
    color:
    white;
    background-position: right;
    font-size: 13px;
    align-items: center;
    flex-direction: row-reverse;
}
#clock{
    width: 15%;
    /* left: -16%; */
    /* top: -10%; */
    margin-right: 5%;
    position: relative;
    background-image: url(images/clock.svg);
    animation: clockPulse 3s ease-in-out infinite;
}
@keyframes clockPulse {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1);
    }
    90% {
        transform: scale(1) rotate(360deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}
#active-time > div > div:nth-child(2){
    position: relative;
    display: flex;
    width: 35%;
    height: 70%;
    text-align: center;
    margin-top: 12%;
    margin-left: 3%;
    /* background-color: aquamarine; */
    color:
    white;
    align-items: center;
    justify-content: center;
}
#main{
    width:100%;
    height: 100%;
    /* background-color: beige; */
}
#game{
    filter: brightness(40%);
    /* width: 97%; */
    /* height:90%; */
    background-image: url(images/game.png);
    transition: filter 1s ease-out, opacity 1s ease-out;
    background-size: contain;
    opacity:0;
    margin-top: 15%;
    /* border: 10px black; */
    /* border: 5px solid #ffffff; */
    /* outline: 5px solid #14763c; */
}
#gameBackground{
    position: absolute;
    width: 100%;
    height: 100%;
    /* top: 13%; */
    background-image: url(images/gameBackground.png);
    /* background-color: #7fffd48c; */
    background-size: contain;
    /* background-position: 48% 31.5%; */
    padding: 26%;
    pointer-events: none;
    /* filter: brightness(50%); */
    /* transition: filter 1s ease-out, opacity 1s ease-out; */
}
#mint-photo{
    position: absolute;top:0;
    transform: translateX(-50%);
    left: 50%;
    /* background-image:url(images/mint.png); */
    /* filter: drop-shadow(0px 10px 5px #0b0a0a78); */
    height: 20%;
    width: 50%;
    margin-top: -6%;
    pointer-events: none;
    /* background-color: antiquewhite; */
    /* z-index: 200000; */
}
#final-scene{
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #254719;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity:0;
    transition: opacity 1s ease-out;
    pointer-events: none;
    color:
    white;
}
#footer{
    height: 23%;
    width:100%;
    /* background-color: #7fffd429; */
}
#btn-start-game{
    /* background-color: green; */
    background-image: url(images/btn-zagraj.png);
    margin-bottom: -80%;
    height: 32% !important;
    transition: opacity 1s ease-out, margin-bottom 1s cubic-bezier(0, 0, 0, 0.99), transform .5s cubic-bezier(0,.75,.54,1.12);
    animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1.5);
    }

    50% {
        transform: scale(1.6);
    }

    100% {
        transform: scale(1.5);
    }
}
#active-points{
    position: absolute;
    width: 100%;
    /* background-color: aqua; */
    /* display:none; */
    display: flex;
    justify-content: center;
    margin-top: 100%;
    opacity:0;
    pointer-events: none;
    transition: opacity 1s ease-out, margin-top 1s cubic-bezier(0, 0, 0, 0.99);
}
#txt-active{
    position: absolute;
    width: 22%;
    height: 72%;
    /* right: 7%; */
    top: -89%;
    /* top: -68%; */
    margin-left: 0%;
    font-size: 10px;
    text-align: right;
    color:
    white;
    /* background-color: #84ba87; */
}
#txt-points{
    color:
    white;
}
#bar-points{
    position: absolute;
    width: 63%;
    height: 80%;
    border-radius: 5vh;
    background-color: #84ba87;
    margin-top: 8%;
    overflow: hidden;
}
.progress-toggle{
    max-width:100%;
    background-color: coral;
}
#progress-line{
    position: absolute;
    width:1%;
    height:100%;
    background-color: #e1db42;
    border-radius: 50px;
    transition: width 1s ease-out;
    -webkit-transition: width 1s ease-out;
}
#btn-product-url{
    bottom: 14%;
    position: absolute;
    opacity: 0;
    transition: opacity .5s ease-out;
    width: 51%;
    height: 3%;
    background-image: url(images/txt-information.svg);
    cursor: pointer;
    transition: transform .3s ease-out;
    pointer-events: none;
}
#btn-product-url:hover{
    transform:scale(1.1);
}
#result-bar{
    width:60%;
    height: 8%;
    border: 0.2vh solid #6aaf22;
}
/*
#btn-fb-url{
    margin-bottom: 3%;
    background-image: url(images/logotype-fb.png)
    background-position: center center;
}
*/
#txt-gratulations{
     margin-bottom:4%;
     font-size: 3.4vh;
     animation: pulse 1s ease-in-out infinite;
}
#txt-hero{
    margin-top:4%;
    margin-bottom:4%;
    text-align: center;
    font-size: 3.4vh;
}
#tantum-branding{
    width:100%;
    height: 15%;
    /* background-color: #60a50a; */
}
#scene-1{
    opacity:0;
    position: absolute;
    /* top:0; */
    width: 92%;
    height: 15%;
    background-image: url(images/final-c2a.png);
    /* background-color: #415daa; */
}
#scene-2{
    opacity:0;
    position: absolute;
    width: 100%;
    height: 20%;
    background-image: url(images/final-products.png);
}
#btn-close{
    position: absolute;
    right: 1vh;
    top: 1vh;
    width: 4vh;
    height: 4vh;
    /*
    background-color: #00010373;
    */
    cursor: pointer;
    z-index: 100;
    border-radius: 20%;
    /*
    background-image: url(images/btn-close-icon.svg);
    */
    background-size: 50%;
}
#btn-check-url{
    opacity:0;
    margin-top: 2vh;
    margin-bottom: 27%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* width: 233px !important; */
    /* height: 37px !important; */
    background-image: url(images/btn-sprawdz.png);
}
#btn-check-url > div:nth-child(2){
    font-size: 1.4vh;
    margin-top: -0.5vh;
}
#copyrights{
    width: 80%;
    bottom: 2%;
    position: absolute;opacity:0;
    transition: opacity .5s ease-out;
    text-align: center;
    color: white;
    pointer-events: none;
    font-size: 1vh;
}
#background{
    filter: brightness(40%);
    position: absolute;
    background-image: url(images/background.jpg);
    z-index: -1;
    background-size: cover;
    transition: filter 1s ease-out;
}
.btn{
    /* box-shadow: -1px -5px 8px 0px #00000057 inset; */
    filter: drop-shadow(0px 5px 5px #0b0a0a38);
    /* padding:10px 40px 10px 40px; */
    color:
    white;
    /* border-radius: 10px; */
    cursor: pointer;
    transition: opacity .2s ease-out, transform .5s cubic-bezier(0,.75,.54,1.12);
    /* background-color: #f0f8ff14; */
    height: 6% !important;
    width: 56% !important;
}
.btn:hover{
    filter: brightness(110%);
    transform: scale(1.1);
}
.img{
    width:100%;
    height:100%;
    background-size:
    contain;
    background-repeat: no-repeat;
    background-position: center center;
    transition: opacity .5s ease-out;
}
.flex-center-column{
    display:
    flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.txt-small{
    font-size: 0.5vh;
}
.txt-normal{
    font-size:1.5vh;
}
.txt-big{
    font-size: 2vh;
}
@media (orientation: portrait) {
    .txt-big{
        font-size: 3vh;
    }
    .btn{
        width: 22vh !important;
        /* background-color: aqua; */
    }
    #btn-start-game{
        width: 20vh !important;
    }
  }

.pn{
    pointer-events: none;
}
#txt-your-result{
    color: #a2aca0;
    font-size: 2.8vh;
}
#txt-final-points {
    margin-top: 1%;
    font-size:2vh;
}
.verde-green{
    position: absolute;
    width:5vh;
    height:5vh;
    background-image: url(images/verde-green.png);
}
.verde-yellow{
    position: absolute;
    width:5vh;
    height:5vh;
    background-image: url(images/verde-yellow.png);
}
.verde-orange{
    position: absolute;
    width:5vh;
    height:5vh;
    background-image: url(images/verde-orange.png);
}
.verde-blue{
    position: absolute;
    width:5vh;
    height:5vh;
    background-image: url(images/verde-blue.png);
}
#txt-start > div:nth-child(1){
    position: absolute;
    top:-10%;
    left:5%;
    animation-delay: 1s;
}
#txt-start > div:nth-child(1) > div:first-child{
    transform:rotate(20deg);
}
#txt-start > div:nth-child(2){
    position: absolute;
    top:20%;
    left:-5%;
    animation-delay: 2s;
}
#txt-start > div:nth-child(2) > div:first-child{
    transform:rotate(-40deg) scale(.8);
}
#txt-start > div:nth-child(3){
    position: absolute;
    top: 93%;
    left:7%;
    animation-delay: .2s;
}
#txt-start > div:nth-child(3) > div:first-child{
    transform:rotate(-40deg) scale(1.1);
}
#txt-start > div:nth-child(4){
    position: absolute;
    top: 108%;
    left:27%;
    animation-delay: .4s;
}
#txt-start > div:nth-child(4) > div:first-child{
    transform: rotate(-78deg) scale(.8);
}
#txt-start > div:nth-child(5){
    position: absolute;
    top: 5%;
    left:65%;
    animation-delay: .8s;
}
#txt-start > div:nth-child(5) > div:first-child{
    transform:rotate(120deg);
}
#txt-start > div:nth-child(6){
    position: absolute;
    top: 105%;
    left:70%;
    animation-delay: 1.2s;
}
#txt-start > div:nth-child(6) > div:first-child{
    transform:rotate(120deg) scale(.6);
}
#txt-start > div:nth-child(7){
    position: absolute;
    top:80%;
    left:85%;
    animation-delay: 2.2s;
}
#txt-start > div:nth-child(7) > div:first-child{
    transform:rotate(-20deg) scale(.9);
}
#txt-start > div:nth-child(8){
    position: absolute;
    top:-10%;
    left:89%;
    animation-delay: .2s;
}
#txt-start > div:nth-child(8) > div:first-child{
    transform:rotate(-40deg) scale(.9);
}
.rotating{
    animation: rotating 3s ease-in-out infinite;
}
@keyframes rotating {
    0% {
        transform: rotate(0deg) translateY(0px);
    }
    50% {
        transform: rotate(-10deg) translateY(-10px);
    }
    100% {
        transform: rotate(0deg) translateY(0px);
    }
}
#last-time{
    display:
    flex;
    flex-direction: row-reverse;
}
#lastTXT{
    width: 100%;
    height: 100%;
    position: relative;
    background-image: url(images/txt-pozostaly.svg);
}
#btn-reload{
    margin-bottom: 2vh;
    background-image: url(images/btn-reload.png);
    /* background-size: cover; */
    background-position: center center;
    /* width: 213px; */
}
#txt-active{
    background-image: url(images/txt-aktualny.svg);
}
#btn-start-game > div:nth-child(1){
    position: absolute;
    top: 30%;
    left: 0%;
    animation-delay: .2s;
}
#btn-start-game > div:nth-child(2){
    position: absolute;
    top: -23%;
    left: 77%;
    animation-delay: .6s;
}
#btn-start-game > div:nth-child(1) > div:first-child{
    transform:rotate(0deg) scale(.6);
}
#btn-start-game > div:nth-child(2) > div:first-child{
    transform:rotate(20deg) scale(.9);
}
#viewport{
    background-color:
    rgba(255, 255, 255, 0);
}
#txt-instruction{
    background-image: url(images/txt-instrukcja.svg);
    position: absolute;
    width: 78%;
    filter: drop-shadow(-1px 14px 8px black);
    transition: opacity .5s ease-out;
    opacity:0;
    pointer-events: none;
    margin-top: 15%;
}