html, body {
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#adContent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
}

#headline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  opacity: 0;
}

#description {
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0;
}

#button {
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 4px;
  opacity: 0;
}

#product-cover {
  background: #fff;
  opacity: .85;
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Common animations */
@-webkit-keyframes
zoom_in_keyframes {
    0% {opacity: 0; -webkit-transform: scale(0);}
  100% {opacity: 1;}
}

@keyframes
zoom_in_keyframes {
    0% {opacity: 0; transform: scale(0);}
  100% {opacity: 1;}
}

/* Default animations */
#adContent[data-variation]:not([data-variation*='small']) {
  -webkit-animation: zoomout_keyframes .4s both;
  animation: zoomout_keyframes .4s both;
  opacity: 1;
}

[data-variation]:not([data-variation*='small']) #button {
  -webkit-animation: zoom_in_keyframes .4s .6s both;
  animation: zoom_in_keyframes .4s .6s both;
}

[data-variation]:not([data-variation*='small']) #headline {
  -webkit-animation: fadein_keyframes .4s .2s both;
  animation: fadein_keyframes .4s .2s both;
}

[data-variation]:not([data-variation*='small']) #description {
  -webkit-animation: fadein_keyframes .4s .4s both;
  animation: fadein_keyframes .4s .4s both;
}

#adContent[data-variation]:not([data-variation*='small']),
#adContent[data-variation]:not([data-variation*='small']) > * {
  -webkit-animation-timing-function: cubic-bezier(.4, 0, .2, 1);
  animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}

@-webkit-keyframes
zoomout_keyframes {
    0% {-webkit-transform: scale(1.2);}
  100% {-webkit-transform: scale(1);}
}

@keyframes
zoomout_keyframes {
    0% {transform: scale(1.2);}
  100% {transform: scale(1);}
}

@-webkit-keyframes
fadein_keyframes {
    0% {opacity: 0; -webkit-transform: translateY(-20px);}
  100% {opacity: 1;}
}

@keyframes
fadein_keyframes {
    0% {opacity: 0; transform: translateY(-20px);}
  100% {opacity: 1;}
}

/* Small size animations */
[data-variation*='small'] #button {
  -webkit-animation: zoom_in_keyframes .4s both;
  animation: zoom_in_keyframes .4s both;
}

[data-variation*='small'] #headline {
  -webkit-animation: small_l1_keyframes 3.75s ease-in-out 4 alternate both;
  animation: small_l1_keyframes 3.75s ease-in-out 4 alternate both;
}

[data-variation*='small'] #description {
  -webkit-animation: small_l2_keyframes 3.75s ease-in-out 4 alternate both;
  animation: small_l2_keyframes 3.75s ease-in-out 4 alternate both;
}

@-webkit-keyframes
small_l1_keyframes {
   0%, 44% {opacity: 1; -webkit-transform: translateY(0);}
  56%,100% {opacity: 0; -webkit-transform: translateY(-30px);}
}

@keyframes
small_l1_keyframes {
   0%, 44% {opacity: 1; transform: translateY(0);}
  56%,100% {opacity: 0; transform: translateY(-30px);}
}

@-webkit-keyframes
small_l2_keyframes {
   0%, 44% {opacity: 0; -webkit-transform: translateY(30px);}
  56%,100% {opacity: 1; -webkit-transform: translateY(0);}
}

@keyframes
small_l2_keyframes {
   0%, 44% {opacity: 0; transform: translateY(30px);}
  56%,100% {opacity: 1; transform: translateY(0);}
}
