/* Import bold slab font */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@500&display=swap');

/* Splash background */
body.splash {
  background-image: url('../images/woodgrain-texture.png'); /* ensure correct path */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-color: #4b1c1c; /* fallback crimson */
}

/* Deep red velvet vibe */
body {
  background: linear-gradient(135deg, #4b1c1c, #1e0a0a);
  background-image: url('../images/woodgrain-texture.png'); /* consistent path */
  background-size: cover;
  background-blend-mode: multiply;
  color: #ffeccf; /* soft parchment */
  font-family: 'Roboto Slab', serif;
  margin: 0;
  text-align: justify;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scene container */
.scene {
  background: radial-gradient(circle at center, rgba(80,20,20,0.98), rgba(30,10,10,0.95) 80%); /* vignette effect */
  border: 2px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  padding: 2em;
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Spotlight glow */
.scene::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 215, 100, 0.25), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(80px);
}

.scene::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 160, 60, 0.15), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(50px);
}

/* Text box */
.scene-text {
  position: relative;
  z-index: 1;
  font-size: 1.25em; /* larger, more dramatic */
  line-height: 1.9;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  padding: 2em;
  background-color: rgba(90, 30, 30, 0.9); /* warm stage overlay */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  min-height: 80px;
  overflow-y: auto;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.05);
  color: #fff8e1;
}

/* Image frame */
.image-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  height: 360px;
  overflow: hidden;
  background-color: #5a1f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
}

.image-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border: none;
  filter: brightness(1.1) contrast(1.25) saturate(1.2);
  border-radius: 8px;
}

/* Buttons */
button {
  padding: 1em 2em;
  font-size: 1.1em;
  background: transparent;
  color: #ffd54f; /* spotlight gold */
  font-family: 'Roboto Slab', serif;
  border: 2px solid #ffd54f;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 215, 100, 0.4);
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

button:hover {
  background: rgba(255, 215, 100, 0.1);
  color: #ffe082;
  border-color: #ffca28;
  animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
  from { box-shadow: 0 0 14px rgba(255, 215, 100, 0.4); }
  to   { box-shadow: 0 0 28px rgba(255, 215, 100, 0.8); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .scene {
    padding: 1em;
    min-height: auto;
  }

  .scene-text {
    font-size: 1rem;
    line-height: 1.6;
    padding: 1.5em;
    max-width: 95%;
    overflow-y: visible;
  }

  .image-frame {
    height: auto;
    max-height: 40vh;
  }

  .image-frame img {
    max-height: 40vh;
  }

  button {
    font-size: 1rem;
    padding: 0.8em 1.2em;
    width: 90%;
    max-width: 320px;
  }
}

/* Extra-small phones */
@media (max-width: 480px) {
  .scene-text {
    font-size: 0.9rem;
    padding: 1.2em;
  }
}
