body {
    margin: 0;
    padding: 0;
}

#adContainer {
    width: 100%;
    height: 100vh;
    max-width: 600px;
    position: absolute;
    overflow: hidden;
    display: block;
    background: url('loading.png') center center no-repeat #fff;
}

#contents {
    width: 100%;
    height: 100%;
    position: absolute;
    display: block;
    background-color: gray;
    overflow: hidden;
    visibility: hidden;
}

img {max-width: 100%; display: block; overflow: hidden;}

#close {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
    z-index: 5000;
    background-image: url('close.png');
}


/* LANDSCAPE CONTROL */
#rotate {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background: url('rotation.png') center center no-repeat black;
    display: none;
}


@media only screen and (orientation: landscape) {
    #adContainer {max-width: 100%;}
    #rotate {display: block;}
  }

/* START STYLING HERE */
/* @import url('video.css');
@import url('carousel.css'); */
#exit, #exitFail {
    width: 50%;
    left: 25%;
    bottom: 5%;
    display: block;
    position: absolute;
    transform: translateY(300%);
}


#field {
    width: 100%;
    height: 500vh;
    position: absolute;
    top: -400vh;
    background: url('bg.jpg') center center;
    display: block;
}

#homebase {
    width: 100%;
    aspect-ratio: 1.43;
    position: absolute;
    top: 0%;
    left: 0%;
    background:url('gate.png') top center / cover;
}

#hero {
    position: absolute;
    width: 20%;
    bottom: 20%;
    aspect-ratio: 1/1;
    left: 40%;
    overflow: hidden;
    transform: translateY(300%);
    background-image:  url('hero-sprite.png');
    background-size: auto 100%;
    
}

#dragControl {
    position: absolute;
    width: 20%;
    aspect-ratio: 1.98;
    bottom: 2%;
    left: 40%;
    overflow: hidden;
    background: url('drag.png') center center / cover;
    z-index:2000;
}

.animate {
    animation: heroAnim 0.5s steps(3) infinite;
}


@keyframes heroAnim {
    from { background-position: 0 top; }
    to { background-position: 300% top; }
}
.friend {
    
    position: absolute;
    /* animation: pop 1.5s ease-in-out infinite; */
}

@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.foe {
    width: 15%;
    aspect-ratio: 0.65;
    background: url('monster.png') center center / cover;
    position: absolute;
    animation: glow 1s infinite ease-in-out;
}

@keyframes glow {
    0% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.2;
    }
    
}

#b1 {
    width: 15%;
    top: 21%;
    left: 75%;
    transform: rotate(-30deg);
    aspect-ratio: 0.732;
    background: url('pack3.png') center center / cover;
}

#b2 {
    top: 35%;
    left: 70%;
    width: 15%;
    transform: rotate(-20deg);
    aspect-ratio: 0.85;
    background: url('pack2.png') center center / cover;
}

#b3 {
    width: 10%;
    top: 55%;
    left: 50%;
    transform: rotate(40deg);
    aspect-ratio: 0.81;
    background: url('egg1.png') center center / cover;
}

#b4 {
    width: 15%;
    top: 65%;
    left: 80%;
    transform: rotate(30deg);
    aspect-ratio: 0.731;
    background: url('pack3.png') center center / cover;
}

#b5 {
    width: 10%;
    top: 79%;
    left: 25%;
    transform: rotate(10deg);
    aspect-ratio: 0.81;
    background: url('egg2.png') center center / cover;
}


#c1 {
    top: 24%;
    left: 30%;
    width: 10%;
    transform: rotate(-45deg);
    aspect-ratio: 0.81;
    background: url('egg2.png') center center / cover;
}

#c2 {
    width: 15%;
    top: 32%;
    left: 20%;
    transform: rotate(12deg);
    aspect-ratio: 0.731;
    background: url('pack3.png') center center / cover;
}

#c3 {
    width: 10%;
    top: 50%;
    left: 30%;
    transform: rotate(-50deg);
    aspect-ratio: 0.81;
    background: url('egg1.png') center center / cover;
}

#c4 {
    width: 15%;
    top: 70%;
    left: 15%;
    transform: rotate(10deg);
    aspect-ratio: 0.85;
    background: url('pack2.png') center center / cover;
}

#c5 {
    top: 77%;
    width: 15%;
    left: 55%;
    transform: rotate(-30deg);
    aspect-ratio: 0.731;
    background: url('pack3.png') center center / cover;
    
}

#f1 {
    top: 15%;
    left: 80%;
}

#f2 {
    top: 27%;
    left: 80%;
}

#f3 {
    top: 45%;
    left: 10%;
}

#f4 {
    top: 60%;
    left: 5%;
}

#f5 {
    top: 73%;
    left: 15%;
}


#failBox {
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    z-index: 2000;
}

.btn {
    width: 50%;
    text-align: center;
    min-height: 5%;
}

#reset {
    width: 50%;
    position: absolute;
    left: 25%;
    bottom: 10%;
}

.promopages {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#promoPageFail {
    background: url('fail-bg.jpg') center center / cover;
}

#promoPage {
    background: url('final-bg.jpg') center center / cover;
}


#intro {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('intro_bg.jpg') center center / cover;
    z-index: 2000;
}

#startBtn {
    width: 50%;
    min-height: 30px;
    transform: scale(0);
}


.tree {
    width: 40%;
    aspect-ratio: 0.865;
    background: url('tree.png') center center / contain;
    position: absolute;
    z-index: 1000;
}

.treeLeft {
    left: -10%
}

.treeRight {
    right: -10%
}

#tree1 {
    top:5%
}

#tree2 {
    top:23%
}

#tree3 {
    top: 36%;
}

#tree4 {
    top: 67%;
}

#tree5 {
    top: 85%;
}



#kinderito {
    width: 70%;
    margin-top: 6%;
    transform: translateY(150%);
}

#kinderino {
    width: 60%;
    transform: scale(0);
    transform-origin: bottom center;
}

#introText {
    width: 70%;
    margin-bottom: 3%;
    transform: scale(0);
}


#failMsg {
    width: 70%;
    aspect-ratio: 1.28;
    background: url('fail-msg.png') center center / cover;
    position: relative;
    transform: scale(0);
}

#logo {
    width: 50%;
    left: 25%;
    position: absolute;
    top: 3%;
    z-index: 3000;
    transform: translateY(-200%);
}

#failText, #finalText {
    width: 70%;
    transform: scale(0);
}

#failHero {
    width: 70%;
    margin-top: 10%;
    transform: scale(0);
    transform-origin: bottom center;
}