.ad-container {
  width: 100vw;
  max-width: 1600px;
  height: auto;
  position: relative;
}

#ad-pizza {
  display: block;
  width: 56vw;
  height: auto;
  border-radius: 50%;
  /* Animation to spin and move the pizza */
  -webkit-animation: spin 3000ms linear infinite, pizzamoveLeftToRight 5s linear 1;
  -moz-animation: spin 3000ms linear infinite, pizzamoveLeftToRight 5s linear 1;
  -ms-animation: spin 3000ms linear infinite, pizzamoveLeftToRight 5s linear 1;
  animation: spin 3000ms linear infinite, pizzamoveLeftToRight 5s linear 1;
  animation-delay: 2s;
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
  position: absolute;
  left: -60%;
  top: -4vw;
}

/* Spinning the pizza using key frames */
@-ms-keyframes spin {
  from {
    -ms-transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
  }
}

@-moz-keyframes spin {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(360deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}

/* Move pizza from left to right */
@-moz-keyframes pizzamoveLeftToRight {
  0% {
    left: -60%;
  }
  100% {
    left: 100%;
  }
}

@-ms-keyframes pizzamoveLeftToRight {
  0% {
    left: -60%;
  }
  100% {
    left: 100%;
  }
}

@keyframes pizzamoveLeftToRight {
  0% {
    left: -60%;
  }
  100% {
    left: 100%;
  }
}

@-webkit-keyframes pizzamoveLeftToRight {
  0% {
    left: -60%;
  }
  100% {
    left: 100%;
  }
}

#ad-chucks {
  display: block;
  /* Animation to move the flipcard */
  -webkit-animation: chucksmoveLeftToRight 6s linear 1;
  -moz-animation: chucksmoveLeftToRight 6s linear 1;
  -ms-animation: chucksmoveLeftToRight 6s linear 1;
  animation: chucksmoveLeftToRight 6.3s linear 1;
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
  position: absolute;
  left: 0;
  top: 0;
}

/* Move flipcard from left to right */
@-moz-keyframes chucksmoveLeftToRight {
  0% {
    left: -122%;
  }
  40% {
    left: -122%;
  }
  100% {
    left: 0;
  }
}

@-ms-keyframes chucksmoveLeftToRight {
  0% {
    left: -122%;
  }
  40% {
    left: -122%;
  }
  100% {
    left: 0;
  }
}

@keyframes chucksmoveLeftToRight {
  0% {
    left: -122%;
  }
  40% {
    left: -122%;
  }
  100% {
    left: 0;
  }
}

@-webkit-keyframes chucksmoveLeftToRight {
  0% {
    left: -122%;
  }
  40% {
    left: -122%;
  }
  100% {
    left: 0;
  }
}

.flip-card {
  background-color: transparent;
  width: 100vw;
  height: auto;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100vw;
  height: auto;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:active .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100vw;
  height: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  color: black;
}

.flip-card-back {
  transform: rotateY(180deg);
  position: relative;
  text-align: center;
  color: white;
}

#chuckstypography {
  max-width: 100vw;
  max-height: auto;
}

#ad-flip-pizza {
  display: block;
  width: 100vw;
  height: auto;
  border-radius: 50%;
  opacity: 100%;
  /* Animation to spin the pizza */
  -webkit-animation: spin 15s linear infinite;
  -moz-animation: spin 15s linear infinite;
  -ms-animation: spin 15s linear infinite;
  animation: spin 15s linear infinite;
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
  position: absolute;
  left: 0;
  top: -10vw;
}

/* Spinning the pizza using key frames */
@-ms-keyframes spin {
  from {
    -ms-transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
  }
}

@-moz-keyframes spin {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(360deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}

#ad-flip-text {
  font-size: 1.25rem;
  font-family: 'Times New Roman', Times, serif;
  color: #447204;
  font-weight: bolder;
  top: 2.5vw;
  opacity: 0;
  animation-name: ad-flip-text-blink_effect;
  animation: ad-flip-text-effect 2s linear 10;
}

/* ad text disappears effect using key frames*/
@keyframes ad-flip-text-effect {
  0% {
    opacity: 100%;
  }
  90% {
    opacity: 100%;
  }
  100% {
    opacity: 0%;
  }
}

/* ad text blinks effect using key frames*/
@keyframes ad-flip-text-blink_effect {
  50% {
    opacity: 1.0;
  }
}

#ad-flip-pizza-text {
  top: 40vw;
}

#ad-flip-pizza-text > h1 {
  font-size: 5rem;
  font-weight: bolder;
  text-shadow: 2px 2px 4px white;
}

#ad-flip-pizza-text > span {
  font-size: 1.75rem;
  color: white;
  font-weight: bolder;
  text-shadow: 2px 2px 4px #000000;
}

body > img {
  height: 49vw;
}

@media only screen and (min-width: 600px) {
  #ad-flip-pizza {
    width: 60vw;
    height: auto;
    position: absolute;
    left: 20vw;
    top: -4vw;
  }
  #ad-flip-pizza-text {
    top: 25vw;
  }
}

@media only screen and (min-width: 992px) {
  #ad-pizza {
    display: block;
    width: 475px;
    height: auto;
    border-radius: 50%;
    /* Animation to spin and move the pizza */
    -webkit-animation: spin 3000ms linear infinite, pizzamoveLeftToRight 7.45s linear 1;
    -moz-animation: spin 3000ms linear infinite, pizzamoveLeftToRight 7.45s linear 1;
    -ms-animation: spin 3000ms linear infinite, pizzamoveLeftToRight 7.45s linear 1;
    animation: spin 3000ms linear infinite, pizzamoveLeftToRight 8s linear 1;
    animation-delay: 2s;
    -webkit-transition: all 1s ease;
    transition: all 1s ease;
    position: absolute;
    left: -50%;
    top: 10px;
  }
  /* Spinning the pizza using key frames */
  @-ms-keyframes spin {
    from {
      -ms-transform: rotate(0deg);
    }
    to {
      -ms-transform: rotate(360deg);
    }
  }
  @-moz-keyframes spin {
    from {
      -moz-transform: rotate(0deg);
    }
    to {
      -moz-transform: rotate(360deg);
    }
  }
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  @-webkit-keyframes spin {
    from {
      -webkit-transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
    }
  }
  /* Move pizza from left to right */
  @-moz-keyframes pizzamoveLeftToRight {
    0% {
      left: -26%;
    }
    100% {
      left: 100%;
    }
  }
  @-ms-keyframes pizzamoveLeftToRight {
    0% {
      left: -26%;
    }
    100% {
      left: 100%;
    }
  }
  @keyframes pizzamoveLeftToRight {
    0% {
      left: -50%;
    }
    100% {
      left: 125%;
    }
  }
  @-webkit-keyframes pizzamoveLeftToRight {
    0% {
      left: -26%;
    }
    100% {
      left: 100%;
    }
  }
  #ad-chucks {
    display: block;
    /* Animation to move the flipcard */
    -webkit-animation: chucksmoveLeftToRight 6s linear 1;
    -moz-animation: chucksmoveLeftToRight 6s linear 1;
    -ms-animation: chucksmoveLeftToRight 6s linear 1;
    animation: chucksmoveLeftToRight 6s linear 1;
    -webkit-transition: all 1s ease;
    transition: all 1s ease;
    position: absolute;
    left: 45px;
    top: 45px;
  }
  /* Move flipcard from left to right */
  @-moz-keyframes chucksmoveLeftToRight {
    0% {
      left: -50%;
    }
    40% {
      left: -50%;
    }
    100% {
      left: 11%;
    }
  }
  @-ms-keyframes chucksmoveLeftToRight {
    0% {
      left: -50%;
    }
    40% {
      left: -50%;
    }
    100% {
      left: 11%;
    }
  }
  @keyframes chucksmoveLeftToRight {
    0% {
      left: -75%;
    }
    40% {
      left: -75%;
    }
    100% {
      left: 45px;
    }
  }
  @-webkit-keyframes chucksmoveLeftToRight {
    0% {
      left: -50%;
    }
    40% {
      left: -50%;
    }
    100% {
      left: 11%;
    }
  }
  .flip-card {
    background-color: transparent;
    width: 800px;
    height: 400px;
    perspective: 1000px;
  }
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
  }
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  #chuckstypography {
    max-width: 800px;
    max-height: 400px;
  }
  #ad-flip-pizza {
    display: block;
    width: auto;
    height: 450px;
    border-radius: 50%;
    opacity: 100%;
    /* Animation to spin the pizza */
    -webkit-animation: spin 15s linear infinite;
    -moz-animation: spin 15s linear infinite;
    -ms-animation: spin 15s linear infinite;
    animation: spin 15s linear infinite;
    -webkit-transition: all 1s ease;
    transition: all 1s ease;
    position: absolute;
    left: 175px;
    top: -25px;
  }
  #ad-flip-text {
    font-size: 1.7rem;
    font-family: 'Times New Roman', Times, serif;
    color: #447204;
    font-weight: bolder;
    top: 20px;
    opacity: 0;
    animation-name: ad-flip-text-blink_effect;
    animation: ad-flip-text-effect 2s linear 10;
  }
  #ad-flip-pizza-text {
    top: 10vw;
  }
  body > img {
    width: 100%;
    height: auto;
  }
}
