@font-face {
  font-family: 'Chonky';
  src:  url('../fonts/Chonky-Regular.woff2') format('woff2'),
        url('../fonts/Chonky-Regular.woff') format('woff');
}

@font-face {
  font-family: 'DominosSecondary';
  src:  url('../fonts/dominossecondary-medium-webfont.woff2') format('woff2'),
        url('../fonts/dominossecondary-medium-webfont.woff') format('woff');
}

@font-face {
  font-family: 'DominosHeadline';
  src:  url('../fonts/dominosheadline-headline-webfont.woff2') format('woff2'),
        url('../fonts/dominosheadline-headline-webfont.woff') format('woff');
}

html {
  background: #900506;
  background-image: url('../images/background.png');
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}

body {
  background: transparent;
  padding: 20px;
  font-size: 16px;
}

header {
  text-align: center;
}

header img {
  max-width: 500px;
}

.strapline {
  font-family: 'Chonky';
  font-size: 2.5rem;
  color: white;
  text-align: center;
  line-height: 2.5rem;
}

footer {
  padding-top: 40px;
  max-width: 750px;
  margin: 0 auto;
}

footer .left {
  text-align: right;
}

footer .right {
  text-align: left;
}

footer img {
  max-height: 50px;
}

#advent {
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.window {
  text-align: center;
  position: relative;
}

.gap {
  padding-top: 50px;
}

::placeholder {
  color: #999999;
  opacity: 1;
}

form {
  text-align: center;
}

form input, form select {
  display: block;
  color: #999999;
  text-transform: uppercase;
  font-family: 'DominosSecondary';
  padding: 8px 8px 8px 18px;
  width: 100%;
  margin-bottom: 25px;
  border-radius: 5px;
  border: 1px solid white;
}

form button {
  background: transparent;
  border: none;
  max-width: 200px;
  margin-top: 20px;
}

@keyframes vibrate {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(-5deg); }
  20% { transform: rotate(5deg); }
  30% { transform: rotate(0deg); }
  40% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
  60% { transform: rotate(0deg); }
  70% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
  90% { transform: rotate(0deg); }
  100% { transform: rotate(-5deg); }
}

.window img.clicked {
  /* Start the vibrate animation with duration 0.5 seconds */
  animation: vibrate 1s;

  /* When the animation is finished, start again */
  animation-iteration-count: infinite;
}

.box {
  background: rgba(229, 219, 219, 0.7);
  overflow: hidden;
  border-radius: 10px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s linear;
  transition-delay: 1s;
  pointer-events: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
}

.box.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

.box .title {
  text-align: center;
  background: rgba(229, 219, 219, 0.8);
  padding: 10px;
}

.box .content {
  text-align: center;
  padding: 20px;
}

.box h1 {
  color: #32080e;
  font-family: 'Chonky';
  font-size: 3rem;
}

.box h2 {
  color: white;
  font-family: 'DominosHeadline';
  font-size: 2.5rem;
  text-shadow: 3px 3px #d41b34;
}

.box h3 {
  color: #282828;
  font-family: 'DominosHeadline';
  font-size: 2rem;
}

.box a {
  text-decoration: underline;
  color: #282828;
}

.box a:hover {
  text-decoration-line: underline;
  text-decoration-style: double;
  color: black;
}

.box p {
  text-align: center;
  margin-top: 10px;  
  font-family: 'DominosSecondary';
  color: white;
  padding: 0 10px;
  text-transform: uppercase;
}

.terms {
  color: white;
}

.terms a {
  color: #FBD750;
  text-decoration: none;
}

.term a:hover {
  color: #FBD750;
  text-decoration: underline;
}

.coke {
  position: absolute;
  z-index: -1;
  max-height: 100px;
}

.pizza {
  position: absolute;
  z-index: -1;
  max-width: 75px;
}

.star {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.0);
  border-radius: 5px;
  z-index: -10;
}

@keyframes twinkle {
  0% {
    transform: scale(1, 1);
    background: rgba(255,255,255,0.0);
    animation-timing-function: ease-in;
  }
  60% {
    transform: scale(0.8, 0.8);
    background: rgba(255,255,255,1);
    animation-timing-function: ease-out;
  }
  80% {
    background: rgba(255,255,255,0.00);
    transform: scale(1, 1);
  }
  100% {
    background: rgba(255,255,255,0.0);
    transform: scale(1, 1);
  }
}