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;

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

#text1 {
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0;
}

#text2 {
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0;
}

#button {
  border-radius: 50%;
  box-shadow: 1px 2px 3px 0px rgba(0,0,0,.4);
  text-shadow:1px 1px 0 rgba(255,255,255,0.1);
  display: block;
  opacity: 0;
}

#color-slot1 {
  position: absolute;
}

#color-slot2 {
  position: absolute;
}

.photo {
  box-shadow: 0px 2px 3px rgba(0,0,0,0.2);
  border-radius: 5px;
  overflow: hidden;
}

[data-variation='towerA'] #text1,
[data-variation='towerA'] #text2,
[data-variation='squareC'] #text1,
[data-variation='squareC'] #text2 {
  text-align: center;
}

[data-variation='smallBanner'] #text1 {
  font-weight: bold;
}

/* Default animations */
[data-variation]:not([data-variation*='small']) #text1 {
  opacity: 1;
}

[data-variation]:not([data-variation*='small']) #text2 {
  opacity: 1;
}

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

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

@-webkit-keyframes
fadein_keyframes {
    0% {opacity: 0;}
  100% {opacity: 1;}
}

@keyframes
fadein_keyframes {
    0% {opacity: 0;}
  100% {opacity: 1;}
}

/* Small size animations */
#adContent[data-variation*='small'],
#adContent[data-variation*='small'] > * {
  opacity: 1;
}

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

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

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

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

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

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