 body {
    font-family: "Apple SD Gothic Neo", sans-serif;
    margin: 0;
    padding-top: 90px;
  }

  h2 {
    text-align: center;
    margin-bottom: 5px;
  }

  h3 {
    text-align: center;
    font-weight: normal;
    color: #666;
    margin-bottom: 30px;
  }

  h5{
    text-align: center;
    font-weight: 500;
    color: #000000;
  }


  /* ===== POEM VIEW ===== */
  .poem-frame {
    max-width: 700px;
    margin: 0 auto 60px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 28px 30px;
  }

  .poem-title{
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    text-align: center;
  }

  .poem-line {
    margin: 10px 0;
    font-size: 17px;
    line-height: 1.5;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
  }
  .poem-line:hover {
    background: #f1f1f1;
  }
    .poem-stanza {
        height: 16px;
    }

  /* ===== MODAL ===== */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;              /* 기본은 숨김 */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 18px;
  }
  .modal-overlay.open {
    display: flex;
  }

  .modal {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    overflow: hidden;
  }

  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
  }

  .modal-title {
    font-size: 14px;
    color: #555;
    margin: 0;
  }

  .modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 8px;
  }
  .modal-close:hover {
    background: #f3f3f3;
  }

  .modal-body {
    padding: 18px 16px 22px;
  }

  .clicked-line {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 10px;
    font-weight: 600;
    text-align: center;
    font-style: italic;
  }

  .hint {
    font-size: 13px;
    color: #777;
    margin-top: 20px;
    text-align: center;
  }

  .heatmap{
    display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  }

/* .iframe-wrapper {
  width: 100%;
  height: 500px;
  overflow: hidden;
}
iframe {
  border: none;
  transform: translateX(-60px);
  display: block;
}

.iframe-wrapper-line {
  max-width: 80%;
  height: 500px;
  overflow: hidden;
} */

.iframe-wrapper-line {

  width: 80vw;          /* 최대 너비 */
  max-width: 1400px;    /* 너무 커지는 것 방지 */

  margin: 0 auto;       /* 화면 중앙 정렬 */

  display: flex;
  justify-content: center;

}

.iframe-wrapper iframe,
.iframe-wrapper-line iframe {

  width: 100%;

  border: none;

  border-radius: 20px;

  background: white;

  box-shadow:
    0 8px 30px rgba(0,0,0,0.08);
}

#heatmapFrame iframe {
  transform: scale(0.95);
}

.poem-list {
  max-width: 500px;
  margin: 40px auto;
}

.poem-card {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 24px;
}

.poem-card .poem-frame {

  border-radius: 20px;

  background: #fafafa;

  border: 1px solid #e5e5e5;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.poem-card .poem-frame:hover {

  transform: translateY(-4px);

  border-color: #d0d0d0;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08);
}

.poem-title {

  font-size: 20px;

  font-weight: 500;

  margin-bottom: 18px;
}

.poem-preview {

  font-size: 15px;

  line-height: 1.9;

  color: #555;
}

.home-intro {
    max-width: 800px;
    margin: 100px auto;
    padding: 0 40px;
    line-height: 1.9;
    color: #333;
}

.home-intro h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.home-intro h2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #777;
    margin-bottom: 48px;
}

.home-intro p {
    font-size: 1rem;
    margin-bottom: 28px;
    text-align: justify;
}

.home-intro p:last-child {
    margin-bottom: 0;
}


.credits {
  max-width: 800px;
  margin: 120px auto 80px;
  padding: 0 40px;
  color: #333;
  line-height: 1.7;
}

.credits h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.credit-group {
  margin-bottom: 28px;
}

.credit-group h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #777;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.credit-group p {
  font-size: 1rem;
  margin: 0;
  text-align: center;
}

.credit-group a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #aaa;
}

.credit-group a:hover {
  color: #000;
  border-bottom-color: #000;
}

.copyright {
  margin-top: 50px;
  font-size: 0.85rem;
  color: #888;
}