html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: url('image.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  position: relative;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.wrapper {
    flex-grow: 1;
}

.codex-wrapper {
    margin-bottom: 10vh;
    text-align: right;
    width: 100%;
    max-width: 800px;
}

.title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 900;
  text-shadow: 0 0 2px #b57edc, 0 0 3px #d6a8ff, 0 0 30px #b57edc;
  animation: wave-glow 3s linear infinite;
  white-space: nowrap;
  padding: 1rem 2rem;
  line-height: 1.3;
  overflow: visible;
  margin-top: 2rem;
  z-index: 2;
}

.tagline {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(0.6rem, 4vw, 2rem);
  text-align: center;
  color: #fff;
  z-index: 2;
  text-shadow: 0 0 8px #b57edc, 0 0 12px #d6a8ff, 0 0 20px #b57edc;
  animation: wave-glow 3s linear infinite;
}

.ember {
  font-family: 'Cinzel', italic;
  font-size: clamp(0.5rem, 5vw, 1rem);
  text-align: center;
  margin-top: 25vh;
  color: #edd9ff;
  z-index: 3;
  /*text-shadow: 0 0 8px #b57edc, 0 0 12px #d6a8ff, 0 0 20px #b57edc;
  animation: wave-glow 3s linear infinite;*/
}
.ember a {
  color: #edd9ff;
  text-decoration: none;
  transition: color 0.4s ease;
}
.ember a:hover {
  color: #e54a11;
  text-shadow: 0 0 16px #dcb57e, 0 0 24px #ffb4a8, 0 0 40px #dc867e;
  text-decoration: none;
}

.contact {
  font-size: 0.8rem;
  text-align: right;
  z-index: 2;
  color: #ffffffbb;
  font-family: sans-serif;
  margin-bottom: 3rem;
}

.contact a {
  color: #ffffffbb;
  text-decoration: none;
}

.contact a:hover {
  color: #d6a8ff;
}

.codex-link {
  font-size: 1.25rem;
  text-align: right;
  z-index: 2;
  color: #ffffffbb;
  font-family: 'Great Vibes', cursive;
  margin-bottom: 3rem;
  text-decoration: none;
  display: inline-block;
  /*margin-top: 0.5rem;*/
  text-shadow: 0 0 4px #b57edc;
  transition: color 0.3s ease;
}

.codex-link:hover {
  color: #d6a8ff;
}

@keyframes wave-glow {
  0% { text-shadow: 0 0 6px #b57edc, 0 0 10px #d6a8ff, 0 0 16px #b57edc; }
  25% { text-shadow: 0 0 8px #d6a8ff, 0 0 14px #b57edc, 0 0 18px #d6a8ff; }
  50% { text-shadow: 0 0 10px #b57edc, 0 0 16px #d6a8ff, 0 0 20px #b57edc; }
  75% { text-shadow: 0 0 9px #d6a8ff, 0 0 13px #b57edc, 0 0 17px #d6a8ff; }
  100% { text-shadow: 0 0 6px #b57edc, 0 0 10px #d6a8ff, 0 0 16px #b57edc; }
}

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #1c1c1c;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px #b57edc;
  position: relative;
  color: white;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}