.content_nav {
  width: 1024px;
  height: fit-content;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  display: flex;
  align-items: center;
}

ul#content_nav_links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

ul#content_nav_links li:nth-child(1) {
  font-weight: 100;
}

.content {
  width: 1024px;
  min-height: 500px;
  margin: 0 auto;
  padding: 20px 10px 20px 30px;
  background-color: white;
  display: flex;
  gap: 15px;
}

aside {
  min-width: 225px;
  max-width: 225px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  border-top: 1px solid lightgray;
  border-right: 1px solid lightgray;
}

.quiz {
  width: min(860px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin: 0 0 5px;
  font-size: 2rem;
}

.subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 20px;
}

.progress {
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #93c5fd, #c4b5fd);
  transition: width 0.25s ease;
}

.question {
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.4;
}

.answers {
  display: grid;
  gap: 10px;
}

.answer-btn {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.answer-btn:hover {
  background: #eef6ff;
  transform: translateY(-1px);
}

.answer-btn.selected {
  background: #dbeafe;
  border-color: #60a5fa;
  box-shadow: inset 0 0 0 1px #60a5fa;
}

.controls {
  text-align: center;
  margin-top: 15px;
}

button {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  color: #111827;
}

.next {
  background: #c7d2fe;
}

.restart {
  background: #86efac;
}

.share-btn {
  background: #93c5fd;
}

.result {
  display: none;
  text-align: center;
}

.result.active {
  display: block;
}

.result-image-wrap {
  margin: 8px auto 16px;
}

.result-card-art {
  width: 180px;
  margin: 0 auto;
  padding: 8px;
  background: linear-gradient(to bottom, #ffffff, #eef4ff);
  border: 1px solid #cdddec;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.result-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.result-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.result-desc {
  max-width: 620px;
  margin: 0 auto 14px;
  line-height: 1.6;
}

.result-extra {
  max-width: 620px;
  margin: 0 auto 16px;
  padding: 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  line-height: 1.6;
}

.share-box {
  background: #eef4ff;
  padding: 12px;
  border-radius: 10px;
  margin: 14px auto 10px;
  max-width: 620px;
  line-height: 1.6;
  font-weight: bold;
  word-break: break-word;
}

.share-status {
  margin-top: 8px;
  font-weight: bold;
  color: #2563eb;
  min-height: 22px;
}

.share-preview-note {
  font-size: 0.95rem;
  color: #6b7280;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .quiz {
    padding: 18px;
  }

  .question {
    font-size: 1.15rem;
  }

  .result-card-art {
    width: 150px;
  }
}