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;
    background: url('bg.jpg') center center / cover;
    overflow: hidden;
    visibility: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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: 50%;
    display: block;
    position: absolute;
    bottom: 5%;
    transform: translateY(300%);
}

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

#videoBg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #000000;
}

video {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#logo {
    width: 30%;
    position: absolute;
    left: 35%;
    top: 3%;
}

#introText {
    position: absolute;
    top: 20%;
    width: 100%;
}

#countDown {
    width: 50%;
    padding-top: 100%;
    border: #fff 1px solid;
    text-align: center;
}

.roach {
    width: 50px;
    height: 50px;
    background: url('roach-small.png');
    animation: roachMove  1s steps(4) infinite;
    position: absolute;
    transform-origin: center;
}

#roaches {
    width: 100%;
    height: 100%;
    position: relative;
}
#plant {
    width: 100%;
    height: 100%;
    position: absolute;
    background: url('flower.png') top left / cover; 
}

@keyframes roachMove {
    to { background-position: -200px;}
}

#btn {
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: 2%;
    animation: pop 1s ease-in-out infinite;
}

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

    100% {
        transform: scale(1);
    }
}

#bar {
    width: 100%;
    height: 70px;
    background: #790000;
    position: absolute;
    bottom: 0;
}

#spray {
    position: absolute;
    width: 20%;
    left: 40%;
    bottom: 0;
}

#roach1 {
    top: 50%;
    left: -50px;
    transform: rotate(45deg);
}

#roach2 {
    top: 50%;
    left: 110%;
    transform: rotate(-50deg);
}


#roach3 {
    top: 30%;
    left: 110%;
    transform: rotate(-90deg);
}

#roach4 {
    top: 20%;
    left: -100px;
    transform: rotate(100deg);
}

#roach5{
    top: 60%;
    left: -100ps;
    transform: rotate(90deg);
}

#roach6 {
    top: 30%;
    left: 110%;
    transform: rotate(-100deg);
}
#mist {
    width: 100%;
    height: 100%;
    position: absolute;
    background: url('mist.png') center bottom / cover;
    transform-origin: bottom center;
    opacity: 0;
}

#promoScreen {
    width: 100%;
    height: 100%;
    position: absolute;
    background: url('promoBg.jpg') center center / cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
}

#headline {
    width: 100%;
    opacity: 0;
}

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