body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* --- background stuff --- */
.background-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.background {
  position: absolute;
  width: 4000%;
  height: 4000%;
  left: 50%;
  top: 105%;
  transform: translate(-50%, -50%);
}

.background-svg {
  position: absolute;
  animation: spin 30s linear infinite;
  width: 100%;
  height: 100%;
  background-color: lightpink;
}

.background-svg polygon {
  fill: hotpink;
}

@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* --- header --- */

header {
  position: absolute;
  background-color: lavenderblush; /* alternate #b1e9ff;*/
  display: flex;
  justify-content: space-between;
  top: 0;
  width: 100%;
  box-shadow: 0px -12px 30px black;
  animation: 0.3s ease-out 0s 1 slideInFromTop;
  z-index: 2;
}

h1 {
  font-family: "Vibur", cursive;
  margin: 4px 35px;
  display: inline-block;
}

.kelli-title {
  font-weight: lighter;
  white-space: nowrap;
}

nav {
  display: inline-block;
  font-family: "Vibur", cursive;
  padding: 15px;
  word-spacing: 5px;
}

nav a:not(:hover) {
  text-decoration: none;
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

/* pile, flames, kelli */

@keyframes slideInFromBottom {
  0% {
    transform: translateY(500%) translateX(-50%);
  }
  100% {
    transform: translateY(0) translateX(-50%);
  }
}

.flame {
  height: 80%;
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  animation: 0.2s ease-out 0s 1 slideInFromBottom;
  mix-blend-mode: color-burn;
  z-index: 1;
}

.pile-of-computers {
  height: 35%;
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  animation: 0.3s ease-out 0s 1 slideInFromBottom;
  z-index: 1;
}

.kelli {
  height: 40%;
  position: absolute;
  bottom: 20%;
  left: calc(50% - 1vh);
  transform: translateX(-50%);
  animation: 0.6s ease-out 0s 1 slideInFromBottom;
  z-index: 1;
}

@keyframes crownFall {
  0% {
    transform: translateY(-1000%) translateX(-50%) rotate(-25deg);
  }
  100% {
    transform: translateY(0) translateX(-50%) rotate(-25deg);
  }
}

.crown {
  height: 11%;
  position: absolute;
  bottom: 56%;
  left: calc(50% - 5vh);
  transform: translateX(-50%) rotate(-25deg);
  animation: 2s ease-out 0s 1 crownFall;
  z-index: 1;
}

#loading {
  position: absolute;
  background: white;
  opacity: 0.6;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: opacity 0.3s;
}

#loading.hidden {
  opacity: 0;
}

#loading svg {
  animation: spin 1s linear infinite;
  position: absolute;
  width: 50px;
  top: calc(50% - 25px);
  left: calc(50% - 25px);
}

/* hahah */

#content {
  display: none;
}

#confetti-container {
  z-index: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  opacity: 0.8;
}

@keyframes confetti {
  0% {
    top: 0;
    transform: rotate(0);
  }
  100% {
    top: 110%;
    transform: rotate(1600deg);
  }
}
