/* Full background image styling */
body {
  margin: 0;
  padding: 0;
  background-image: url('welcome_bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Courier New', Courier, monospace;
  color: white;
  text-align: center;
  font-size: 1.2em;
  line-height: 1.6;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: auto;
}

.welcome-text {
  max-width: 600px;
  padding: 2em;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

/* Content container */
main {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2em;
}

/* Title styling */
h1 {
    font-family: 'Cinzel', serif;
    font-size: 3em;
    margin-bottom: 1em;
    color: #ff3c00;
    text-shadow: 0 0 10px #ff3c00aa;
}

/* Paragraph styling */
main p {
    font-size: 1.3em;
    margin-bottom: 1.5em;
    color: #e0e0e0;
    line-height: 1.8;
}

main p {
    font-weight: 700;
    color: #ffffff;
    font-family: 'EB Garamond', serif;
    font-size: 1.3em;
    line-height: 1.8;
    text-shadow: none;
}


h1 {
    font-weight: 900;
    color: #ffffff;
    font-family: 'Cinzel', serif;
    text-shadow: none;
}

.welcome-text {
  max-width: 600px;
  padding: 2em;
  margin: 2em;
  background-color: rgba(0, 0, 0, 0.4); /* optional, for readability */
  border-radius: 10px;
}

.forge-salutation {
  position: relative;
  max-height: 6em;
  overflow-y: auto;
  margin: 2em auto;
  width: 90%;
  max-width: 600px;
  padding-right: 1em;
}

/* Optional inner padding */
.forge-salutation-inner {
  padding: 1em 0;
}

/* Subtle fading effect at the bottom */
.forge-salutation::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2em;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.embers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ember {
  position: absolute;
  bottom: -10px;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #ff6600 0%, #ff3300 60%, transparent 100%);
  border-radius: 50%;
  opacity: 0.6;
  animation: rise 6s linear infinite;
}

.ember:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
  animation-duration: 7s;
}

.ember:nth-child(3) {
  left: 40%;
  animation-delay: 2s;
  animation-duration: 5s;
}

.ember:nth-child(4) {
  left: 60%;
  animation-delay: 3s;
  animation-duration: 6s;
}

.ember:nth-child(5) {
  left: 80%;
  animation-delay: 4s;
  animation-duration: 8s;
}

.ember:nth-child(6) {
  left: 50%;
  animation-delay: 0.5s;
  animation-duration: 9s;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) scale(0.5);
    opacity: 0;
  }
}
@keyframes flicker {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  10% {
    opacity: 0.8;
    transform: scale(1.1);
  }
  20% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  30% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  90% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

.ember {
  position: absolute;
  bottom: -10px;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #ff6600 0%, #ff3300 60%, transparent 100%);
  border-radius: 50%;
  opacity: 0.6;
  animation: rise 6s linear infinite, flicker 1.5s infinite ease-in-out;
}