/* === General Reset === */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Unbounded', sans-serif;
  background: url('dystopia_bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #000;
}

/* === Main Container === */
.overlay {
  background-color: rgba(240, 240, 240, 0.18); /* Soft light grey */
  max-width: 720px;
  margin: 6vh auto;
  padding: 2em;
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 1.5s ease-in-out forwards;
}

/* === Entry Animations === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Typography === */
h1 {
  font-size: 2.4em;
  color: crimson;
  text-align: center;
  margin-bottom: 0.5em;
  text-shadow: 0 0 6px #000;
}

.overlay h2,
.overlay p {
  color: #000;
  font-weight: bold;
  font-size: 1.1em;
  line-height: 1.8em;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
}

/* === Link Styling === */
.glitch-link {
  color: crimson;
  text-decoration: none;
  font-weight: bold;
}

.glitch-link:hover {
  text-shadow: 0 0 8px red;
}

/* === Video Container === */
.video-container {
  margin-top: 2em;
}

iframe {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

/* === Exit Link === */
.exit-path {
  text-align: center;
  margin-top: 2em;
}

.return-link {
  display: inline-block;
  padding: 0.6em 1.5em;
  font-size: 1em;
  background-color: rgba(0, 0, 0, 0.6);
  color: crimson;
  border: 2px solid crimson;
  border-radius: 8px;
  text-decoration: none;
  font-family: monospace;
  transition: background 0.3s ease, color 0.3s ease;
}

.return-link:hover {
  background-color: crimson;
  color: black;
}

/* === Responsive === */
@media (max-width: 600px) {
  .overlay {
    margin: 4vh 1em;
    padding: 1.5em;
  }

  h1 {
    font-size: 1.8em;
  }

  iframe {
    height: 240px;
  }
}

/* === Keep background visible below overlay === */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('dystopia_bg.jpg') no-repeat center center fixed;
  background-size: cover;
  z-index: -2;
  opacity: 1;
}

html {
  background: transparent;
}