/* Import western-style font */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

/* Western color palette */
body {
  background-color: #3b2f2f; /* Deep canyon brown */
  color: #f5e6c8;            /* Antique parchment tone */
  font-family: 'Special Elite', 'Courier New', monospace;
  margin: 0;
  text-align: center;
  overflow-x: hidden;
}

/* Scene container with rustic border and wood texture */
.scene {
  border: 4px solid #a67c52; /* Saddle leather tone */
  box-shadow: 0 0 20px #5c4033;
  background-image: url('images/wood-texture.png'); /* Adjust path if needed */
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #5c4033; /* Fallback canyon brown */
  color: #f5e6c8;
  font-family: 'Georgia', serif;
  font-style: italic;
  padding: 2em; /* Added padding for breathing room */
  box-sizing: border-box;
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* Text box with vintage frame and generous padding */
.scene-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  padding: 2em 2.5em; /* Increased padding */
  background-color: rgba(60, 40, 20, 0.9);
  border: 2px dashed #d2b48c;
  border-radius: 8px;
  width: 100%;
  max-width: 540px;
  min-height: 80px;
  overflow-y: auto;
  line-height: 1.8;
  box-shadow: 0 0 10px #5c4033;
  user-select: none;
}

/* Image frame with sepia filter and scaled size */
.image-frame {
  width: 100%;
  max-width: 640px;
  height: 320px;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.image-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
  filter: sepia(0.6) contrast(1.1);
  border-radius: 6px;
}

/* Western-style button */
button {
  padding: 1em 2em;
  font-size: 1.2em;
  background: #a52a2a;
  color: #fff8dc;
  font-family: 'Georgia', serif;
  font-weight: bold;
  border: 2px solid #8b4513;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #8b0000;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

button:hover {
  background: #8b0000;
  box-shadow: 0 0 15px #ffdead;
}

/* 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;
  }
}
