* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #020205;
  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

header {
  width: 100%;
  max-width: 64rem;
  text-align: center;
  margin-bottom: 3rem;
}

header h1 {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  margin: 0;
}

header p {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  opacity: 0.8;
  display: block;
}

main {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 48rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  main {
    grid-template-columns: 1fr 1fr;
  }
}

main a {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
  text-align: center;
  border-radius: 1rem;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: background 0.25s ease, transform 0.25s ease;
}

main a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

main a h2 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

main a p {
  display: block;
  margin-top: 1rem;
}

#content-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 0;
  display: none;
  background: white;
}

#transition-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

#slider-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600vw;
  height: 600vh;
  transform: translate(-50%, -50%) rotate(-45deg);
  display: flex;
  align-items: center;
}

.swipe-stripe {
  height: 100%;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

#stripe-trail {
  width: 80vw;
  background: rgba(20, 20, 50, 0.4);
}

#stripe-white {
  width: 25vw;
  background: rgba(255, 255, 255, 0.6);
}

#stripe-purple {
  width: 6vw;
  background: #5f4f97;
}

#stripe-blue {
  width: 18vw;
  background: #00bfff;
}

#solid-cover {
  width: 800vw;
  height: 100%;
  background: #020205;
  flex-shrink: 0;
}

@keyframes slideOpen {
  from {
    transform: translate(-50%, -50%) rotate(-45deg) translateX(0);
  }
  to {
    transform: translate(-50%, -50%) rotate(-45deg) translateX(700vw);
  }
}

@keyframes slideClose {
  from {
    transform: translate(-50%, -50%) rotate(-45deg) translateX(700vw);
  }
  to {
    transform: translate(-50%, -50%) rotate(-45deg) translateX(0);
  }
}

.start-anim {
  animation: slideOpen 2.25s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.close-anim {
  animation: slideClose 2.25s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

footer {
  margin-top: 4rem;
  font-size: 0.875rem;
  opacity: 0.6;
}

.discord-invite {
  display: inline-flex;
  min-width: 300px;
  padding: 10px;
  gap: 10px;
  background-color: #2b2d31;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: default;
  user-select: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.discord-invite:hover {
  transform: translateX(-50%);
}

p {
  display: block;
  margin-top: 1rem;
}
