@import url("https://fonts.cdnfonts.com/css/antique-olive-std");

:root {
  --yellow: #ffd074;
  --purple: #a374ff;
  --turquois: #15f0d1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -- Background -- */

body {
  width: 100vw;
  height: 100vh;
  background: #1d1d1f;
  overflow: hidden;
  font-family: "Antique Olive Std", sans-serif;
}

#background {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
}

/* -- Blob -- */

#blob {
  position: absolute;
  background-color: white;
  height: 36vmax;
  aspect-ratio: 1;
  background: linear-gradient(to right, #785599, #9e8548);
  border-radius: 50%;
  opacity: 0.8;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
}

#blur {
  height: 100%;
  width: 100%;
  position: absolute;
  backdrop-filter: blur(8vmax);
  -webkit-backdrop-filter: blur(8vmax);
}

/* -- Video, Title, & Button -- */

main {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 2000px;
  user-select: none;
}

/* -- Video -- */

#video-container {
  width: 480px;
  height: 420px;
  overflow: hidden;
  position: relative;
  pointer-events: none;
  border-radius: 40px;
  transform-style: preserve-3d;
  scale: 0;
}

#video-container > * {
  width: 115%;
  height: 115%;
  position: absolute;
  top: -7%;
  left: -7%;
  object-fit: cover;
}

/* -- Title Text -- */

#title {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transform: translate3D(300px, 0, 0);
  pointer-events: none;
}

.word {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fafaf5;
  font-size: 60px;
  font-weight: 800;
  line-height: 60px;
  letter-spacing: -2px;
}

.word:nth-child(2) {
  transform: translateX(-100px);
}

.word:nth-child(3) {
  transform: translateX(110px);
}

.char {
  opacity: 0;
}

/* -- Button -- */

#replay {
  position: absolute;
  overflow: hidden;
  transform: translate3D(220px, -5px, 0) scale(0);
  height: 50px;
  width: 180px;
  background: var(--yellow);
  border-radius: 30px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#replay > .text {
  font-weight: bold;
  font-size: 15px;
  pointer-events: none;
  transform: translateY(10px);
}

#replay > #text-reveal {
  opacity: 0;
}

#replay > #purple,
#replay > #turquois,
#replay > #yellow {
  position: absolute;
  width: 360px;
  top: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -1;
  transform: translateY(-60px);
  pointer-events: none;
}

#replay > #purple {
  background: var(--purple);
}

#replay > #turquois {
  background: var(--turquois);
}

#replay > #yellow {
  background: var(--yellow);
}

/* -- Link -- */

a {
  position: absolute;
  bottom: 0;
  margin: 8px;
  color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  font-size: 18px;
  text-decoration: none;
  padding: 10px 20px 7px 20px;
  border-radius: 20px;
}