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 black;
}

#contents {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background: url('bg.jpg') center center / cover; */
    background: black;
    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: 1000;
    background-image: url('close.png');
}

#exit {
    width: 40%;
    display: block;
    position: absolute;
    transform: scale(0);
    bottom: 5vh;
}

/* 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'); */

#skyline {
    width: 230vw;
    aspect-ratio: 1189/559;
    background: url('skyline.jpg') no-repeat;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
}

#road {
    width: 3000vw;
    height: 20vh;
    background: url('road.jpg') repeat-x;
    background-size: auto 100%;
    position: absolute;
    top: 55vh;
    left: 0;
}

#carHolder {
    width: 90vw;
    aspect-ratio: 640/238;
    position: absolute;
    top: 50vh;
    transform: translateX(-100vw);
    background: url('car-shadow.png') center center / cover;
}

#car {
    position: absolute;
    left: 0;
}

.wheels {
    aspect-ratio: 1/1;
    background: url('wheels.png') center center / cover;
    position: absolute;
    width: 18%;
    bottom: 0;
}

#wheel1 {
    left: 72%;
}

#wheel2 {
    left: 13%;
}

#logo,
#logoFinal {
    width: 25%;
    position: absolute;
    top: 2vh;
}

#headline {
    width: 100%;
    position: absolute;
    top: 18vh;
    transform-origin: bottom center;
    transform: scale(0);
}

#compoment {
    width: 90%;
    position: absolute;
    bottom: 10vh;
    aspect-ratio: 3/1;
}

.battery {
    width: 40%;
    aspect-ratio: 1/1;
    position: absolute;
    top: 0;
    transform: scale(0);
}

.battery:first-child {
    left: 10%;
}

.battery:last-child {
    right: 10%;
}

#finalFrame {
    width: 100vw;
    height: 100vh;
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

#finalHead {
    position: absolute;
    top: 25vh;
    width: 100vw;
    height: auto;
    aspect-ratio: 640/50;
    transform: scale(0);
}

#promoHead {
    position: relative;
    width: 100vw;
    height: auto;
    transform: scale(0);
}

#promoHolder {
    position: absolute;
    top: 15vh;
    width: 100vw;
    height: auto;
}

.head, .phead {
    position: absolute;
    opacity: 0;
}

#finalWhy {
    transform: scale(0);
}

#finalSub {
    position: relative;
    width: 100vw;
    height: auto;
    transform: scale(0);
}

.sub {
    position: absolute;
    /* opacity: 0; */
}

#finalKeep {
    position: absolute;
    bottom: 15vh;
    width: 100vw;
    transform: scale(0);
    aspect-ratio: 64/10;
}

#exitHolder {
    width: 80vw;
    display: flex;
    margin-top: 10vh;justify-content: center;

}

.btn {
    margin: 2%;
    transform: scale(0);
}

#drag {
    position: absolute;
    width: 100vw;
    bottom: 0;
    transform: translateY(20vh);
}

#warning {
    position: absolute;
    width: 20vw;
    top: 35vh;
    animation: blink-animation 0.5s steps(2, start) infinite;
    -webkit-animation: blink-animation 0.5s steps(2, start) infinite;
    display: none;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.smoke {
    position: absolute;
    width: 90%;
    right: 0;
    opacity: 1;
    top: 100%;
}

.smoke:nth-child(2) {
    right: 3%;
} 

.smoke:nth-child(3) {
    right: 8%;
} 

#smoker {
    width: 40%;
    height: 30vh;
    position: absolute;
    bottom: 50%;
    right: 0;
    overflow: hidden;
}

#finalIcon {
    width: 50%;
    aspect-ratio: 1/1;
    position: absolute;
    margin-top: 15vh;
    transform: scale(0);
}

#carLights {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
}