/* Learn Boxes Section */
.learn-boxes-section {
  max-width: 900px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
}
.learn-box {
  background: #fff;
  border-left: 6px solid #8C5E3C;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  margin: 32px 0; /* larger gap between boxes */
  padding: 32px 32px; /* more interior breathing room */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learn-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* remove top gap when the first box follows the intro section */
.learn-boxes-section {
  margin-top: 0;
}
.learn-box h3 {
  margin-top: 0;
  color: #8C5E3C;
  margin-bottom: 10px;
}
.learn-box p {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
}

/* extended vocabulary table styling */
.vocab-list {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: auto;
  margin-top: 10px;
}
.vocab-list table {
  width: 100%;
  border-collapse: collapse;
}

/* special styling for song/story box */
.song-box {
  background: #FAF3E0; /* light parchment color */
  border-left-color: #5B3A29;
  font-style: italic;
  white-space: pre-wrap; /* preserve line breaks */
  max-height: 400px;
  overflow-y: auto;
}
.song-box h3 {
  color: #5B3A29;
}
.song-box pre {
  margin: 0;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  line-height: 1.4;
}
.vocab-list th,
.vocab-list td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: left;
  font-size: 0.95rem;
}
.vocab-list th {
  background: #f0f0f0;
}
.titlecontainer .titleimage {
  filter: brightness(75%);
}

.image-wrapper {
  position: relative;
  width: 100vw;
  height: 120vh; /* match titlecontainer so no blank below image */
  margin: 0;
  overflow: hidden;
}

.titleimage {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* adjust title position specifically for learn and other pages */
.title.overlay-title {
  top: 30% !important;
}
}

#information {
  padding-top: 100px;
}

#question-boxes {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.question {
  width: 45%;
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.question:hover {
  transform: translateY(-6px);
}

.question h1 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.question p {
  font-size: 0.95rem;
  text-align: center;
}

/* Translation Style (plan) */
.translation-box {
  margin: 60px auto;
  max-width: 600px;
  text-align: center;
}

.translation-box input {
  width: 80%;
  padding: 12px;
  border: 1px solid #CCC;
  border-radius: 4px;
  margin-bottom: 10px;
}

.translation-box button {
  padding: 10px 20px;
  border: none;
  background-color: #5B3A29;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.translation-box button:hover {
  background-color: #8C5E3C;
}

/* Responsive */
@media (max-width: 900px) {

  .question {
    width: 90%;
  }

}
