#greeting {
  position: relative;
  height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(
    ellipse at center,
    var(--greeting-light),
    var(--third-color)
  );
  overflow: hidden;
}

#logoButton:hover ~ .bg-video {
  opacity: 1;
}

#greeting-container,
.greeting-default-logo-container {
  position: relative;
  z-index: 2;
}

#greeting .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;

  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.greeting-default-logo-container {
  position: relative;
  z-index: 2;
  height: 300px;
  width: 275px;
  animation: pulse 6s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

#greeting-container {
  height: 485px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#greeting-logo {
  height: 100%;
  width: 100%;
  transition: opacity 150ms ease-in-out;
  opacity: 1;
  will-change: opacity;
}

@media screen and (max-height: 600px) {
  #greeting {
    height: 100%;
    padding: 5%;
    align-items: center;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

#greeting h1 {
  font-size: 9vmin;
  color: var(--second-color);
  text-align: left;
  font-family: Lato, sans-serif;
  font-weight: 700;
  margin: 1rem 0 1rem 2rem;
}

#greeting a {
  text-decoration: none;
  color: var(--second-color);
}

/* NOTIFICATION */

#notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  background: rgba(255, 255, 255, 0.95);
  color: var(--first-color);
  font-family: var(--headers-font), sans-serif;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s ease-out;
  opacity: 0;
  z-index: 1000;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  will-change: transform, opacity;
  max-width: 90%;
  border: 0.5px solid rgba(0, 0, 0, 0.04);
}

#notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  animation: iosSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes iosSlideIn {
  0% {
    transform: translateX(-50%) translateY(-150%) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
  }
}
