/* More intuitive sizing behaviour. */
* {
  box-sizing: border-box;
}

body, html {
  font-size: 16px; /* Default font size for most browsers. */
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: hidden;
}

#background-video {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);

  filter: blur(0);
  transition: blur 4s ease-out;
  -webkit-transition: blur 4s ease-out;
  -moz-transition: blur 4s ease-out;

  animation: darken 10s forwards;
}

@keyframes darken {
  from { filter: blur(0) brightness(1); }
  to { filter: blur(10px) brightness(0.5); }
}

.content {
  display: none;
  z-index: 1;
  text-align: center;
  color: #fff;

  /* Move up slightly. */
  position: relative;
  top: -10%;

  /* Animate opacity. */
  opacity: 0;
  transition: opacity 1s ease-out;
  -webkit-transition: opacity 1s ease-out;
  -moz-transition: opacity 1s ease-out;
}

.align-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title, .subtitle, .buttons {
  margin-bottom: 16px;
}

#title {
  color: white;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 96px;
  margin-bottom: -10px;
}

#subtitle, #buttons {
  width: 649px;
}

#subtitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#subtitle h3 {
  color: #e9e9e9;
  font-family: 'Lato', sans-serif;
  font-weight: 100;
  font-size: 30px;
  margin-top: 0px;
  word-spacing: 15px;
}

#buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  height: 46px;

  /* Animate colors on hover. */
  transition: background 0.15s ease-out;
  -webkit-transition: background 0.15s ease-out;
  -moz-transition: background 0.15s ease-out;
}

.btn i.icon {
  font-size: 15px;
}

#debug-pause-btn {
  width: 200px;
  font-size: 18px;
  padding: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #a2a2a2;
  cursor: pointer;

  position: fixed;
  bottom: 10px;
  right: 10px;
}

/* Hovering logic for desktop devices. */
@media screen and (min-width: 700px) {
  .btn:hover {
    background: #fff;
    color: #000;
  }
  #debug-pause-btn:hover {
    background: #ddd;
    color: black;
  }
}

/* Generic classes to auto-swap items when hovering over parent. */
.on-parent-no-hover {
  display: block;
}
.on-parent-hover {
  display: none;
}
@media screen and (min-width: 700px) {
  *:hover > .on-parent-no-hover {
    display: none;
  }
  *:hover > .on-parent-hover {
    display: block;
  }
}

/* For small screens / phones, update text sizes. */
@media screen and (max-width: 700px) {
  #title {
    font-size: 48px;
    margin-bottom: 0px;
  }
  #subtitle, #buttons {
    width: 324px;
  }
  #subtitle h3 {
    font-size: 17px;
    word-spacing: 3px;
  }
  .btn {
    font-size: 12px;
    gap: 8px;
  }
  .btn i.icon {
    font-size: 12px;
  }
}

/* For very small screens, let items / text wrap. */
@media screen and (max-width: 328px) {
  #title {
    line-height: 1em;
    margin-bottom: 20px;
  }
  #subtitle, #buttons {
    width: 100vw;
    padding: 0 20px;
  }
  #buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}