/* Import playful rounded font */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500&display=swap');

body {
  background: linear-gradient(180deg, #fff3e0 0%, #ffe9c9 100%);
  color: #000000; /* pure black for maximum contrast */
  font-family: 'Baloo 2', cursive;
  margin: 0;
  text-align: center;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scene container */
.scene {
  border: 6px solid #6ec5e9; /* sky blue */
  box-shadow: 8px 8px 0 #ffd53a; /* cartoon shadow */
  background-color: #ffffff; /* solid white background */
  padding: 2rem;
  box-sizing: border-box;
  max-width: 920px;
  margin: 2rem auto;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

/* Text box */
.scene-text {
  font-size: 1.2em;
  margin-bottom: 20px;
  padding: 1.8em 2.2em;
  background-color: #ffffff; /* solid white */
  border: 3px dashed #e64b2d;
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  line-height: 1.8;
  color: #000000; /* solid black text */
  box-shadow: inset 4px 4px 0 #ffd53a;
  z-index: 2;
  position: relative;
}

/* Headings */
h1, h2, h3 {
  color: #000000; /* force headings to black */
  font-weight: 700;
  margin: 0.5em 0;
}

/* Image frame */
.image-frame {
  width: 100%;
  max-width: 860px;
  height: 420px;
  background-color: #b07cc6; /* lavender */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 6px solid #6aa84f;
  border-radius: 20px;
  box-shadow: 8px 8px 0 #e64b2d;
}

.image-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 16px;
  filter: saturate(1.2) contrast(1.1);
}

/* Buttons */
button {
  padding: 1em 2em;
  font-size: 1.1em;
  background: #e64b2d;
  color: #ffffff;
  font-family: 'Baloo 2', cursive;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #2d2d2d;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

button:hover {
  background: #ffd53a;
  color: #000000;
  box-shadow: 6px 6px 0 #6ec5e9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scene {
    padding: 1rem;
    margin: 1rem;
  }

  .scene-text {
    font-size: 1rem;
    padding: 1.2rem;
  }

  .image-frame {
    height: auto;
    max-height: 40vh;
  }

  .image-frame img {
    max-height: 40vh;
  }

  button {
    width: 100%;
    font-size: 1rem;
  }
}
