body {
  margin: 0;
  font-family: "Playfair Display", serif;
  background: #f6f2ff;
  color: #333;
}

#app {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#title-el {
  font-size: 32px;
  color: #5A3EA6;
  margin-bottom: 0;
}

#subtitle-el {
  font-size: 18px;
  color: #5A3EA6;
  margin-top: 4px;
}

#verse-ref {
  font-size: 20px;
  margin-top: 20px;
  font-weight: bold;
}

#verse-text {
  font-size: 20px;
  line-height: 1.6;
  margin-top: 10px;
}

.verse-word {
  color: #5A3EA6;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 1px dashed #5A3EA6;
}

#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
}

#popup-overlay.active {
  display: flex;
}

#popup {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#popup-title {
  font-size: 24px;
  margin-bottom: 10px;
}

#related-container {
  margin-top: 20px;
}

.related-link {
  display: block;
  margin: 4px 0;
  color: #5A3EA6;
  cursor: pointer;
}

#popup-close {
  margin-top: 20px;
  padding: 10px 20px;
  background: #5A3EA6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#back-to-main {
  background: transparent;
  color: #5A3EA6;
  border: 1px solid #5A3EA6;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 12px;
}

#explorer-image {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 24px auto;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  object-fit: cover;
}
