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 #004458;
}

#contents {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    overflow: hidden;
    background: url('bg.jpg') center center;
    background-size: cover;
    visibility: hidden;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    align-content: 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'); */

#logo {
    width: 70%;
    position: absolute;
    top: 5%;
}

.scratchBox {
    position: relative;
    margin: 0 auto;
    width: 70%;
    aspect-ratio: 1/1;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    transform: translateY(-300%);
}

#vibes {
    width: 100%;
    aspect-ratio: 1/1;
}

#headline {
    width: 100%;
    transform: scale(0);
    bottom: 5%;
    position: absolute;
}

.scratchBox canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scratchBox img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Where the scratchcard will be generate. */
.sc__container {
    position: relative;
    overflow: hidden;
    max-height: 300px;
    max-width: 300px;
  }
  
  .sc__inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
   /* Background image, the result... */
  .sc__container > img {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
  }
  
   /* The scratchcard generate with scratchcard-js */
  .sc__container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
  }
  
   /* Scratchcard informations */
  .sc__infos {
    text-align: center;
    height: 40px;
    line-height: 40px;
    margin-top: 5px;
    font-weight: bold;
    font-size: 16px;
  }
