/* Font from project assets */
@font-face {
  font-family: 'League Spartan';
  src: url('../assets/fonts/LeagueSpartan-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Exercise Wrapper – reserve right space, postcard lower */
.exercise-wrapper {
  width: 100%;
  max-width: 80rem;
  min-height: 100%;
  margin: 0 auto;
  position: relative;
  padding: 2rem 1rem 1rem 1rem;
  padding-right: 14rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Postcard – size matches blue frame; address area with divider further left */
.postcard {
  font-family: 'League Spartan', sans-serif;
  background-color: #fff;
  border: 0.1rem solid #e0e8ee;
  border-radius: 0.5rem;
  box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
  padding-right: 7rem;
  width: 100%;
  max-width: 40rem;
  height: 25rem;
  position: relative;
  box-sizing: border-box;
  align-self: start;
}

/* Vertical divider at red line (left); address lines stretched to full column width */
.postcard-address {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 5.75rem;
  min-width: 0;
  border-left: 0.1rem solid #e0e8ee;
  padding-left: 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.5rem;
}

.postcard-stamp {
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  align-self: flex-end;
  margin-left: auto;
}

.stamp-image {
  width: 4.4rem;
  height: auto;
  object-fit: contain;
  display: block;
}

.address-line {
  height: 1.5rem;
  border-bottom: 0.08rem solid #c0c8d0;
  width: 100%;
  min-width: 4.5rem;
  flex: 1 1 auto;
  box-sizing: border-box;
}

.postcard-body {
  padding-right: 1rem;
  min-width: 0;
  margin-bottom: 0;
}

.postcard-line {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.postcard-line:last-child {
  margin-bottom: 0;
}

.postcard-signature {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-weight: 600;
}

/* Inline gap: small image + lightbulb hint always on same line */
.postcard-gap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  vertical-align: middle;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 4.5rem;
  flex-shrink: 0;
}

.postcard-line .postcard-gap {
  break-inside: avoid;
}

/* Keep period next to lightbulb (no line break between hint and period) */
.hint-with-period {
  white-space: nowrap;
  display: inline;
}

.gap-with-period {
  white-space: nowrap;
  display: inline;
}

.gap-tail {
  white-space: nowrap;
  display: inline;
  margin-left: -0.5rem;
}

.postcard-hint-img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
}

/* Hint container – lightbulb from E06_U08_1 */
.hint-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hint-button {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hint-icon {
  width: .8rem;
  height: .8rem;
  display: block;
}

.hint-text {
  display: none;
  position: absolute;
  left: 25px;
  top: 0;
  margin-left: 0.5rem;
  background-color: #fff;
  border: 0.0625rem solid #ddd;
  border-radius: 0.25rem;
  padding: 0.35rem 0.5rem;
  z-index: 10;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
  font-family: 'League Spartan', sans-serif;
  font-size: 0.85rem;
  color: #333;
  width: max-content;
  max-width: 24rem;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  line-height: 1.35;
}

.hint-container.active .hint-text {
  display: block;
}

/* Hide */
.hidden {
  display: none;
}

footer {
  display: none;
}
