body {
  font-family: "Poppins", sans-serif;
  background: #a27eac;
  color: #5f2568;
}

#quiz-container {
  max-width: 600px;
  margin: 40px auto;
  background: #f2f0f5;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.question-block {
  margin-bottom: 20px;
}

.question-block h3 {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.question-block button {
  display: block;
  margin: 6px 0;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #e5d4ea;
  color: #5f2568;
  font-weight: bold;
  font-size: 14px;
  font-family: "Noto Serif JP", serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;

}

.question-block button:hover {
  background: #d1b3d6;
}

.question-block button.selected {
  background: #b37eb5;
  color: #fff;
}

#progress-bar {
  width: 100%;
  background: #e5d4ea;
  border-radius: 10px;
  height: 18px;
  margin: 20px 0;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #b37eb5, #5f2568);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.nav {
  display: flex;
  justify-content: space-evenly;
  margin-top: 20px;
}

.nav button {
  padding: 10px 20px;
  width: 100px;
  border: none;
  border-radius: 8px;
  background: #b37eb5;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.nav button:hover {
  background: #5f2568;
}

.center-btn {
  display: block;
  margin: 20px auto;
  padding: 12px 30px;
  background: #b37eb5;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
}

.center-btn:hover {
  background: #a27eac;
}

.result {
  text-align: center;
}

.result h2 {
  font-family: "Noto Serif JP", serif;
}

.result img {
  margin-top: 15px;
  max-width: 200px;
  border-radius: 8px;
  filter: drop-shadow(0 0 15px #a27eac);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px 0px #a27eac;
  }
  50% {
    box-shadow: 0 0 20px 10px #a27eac;
  }
  100% {
    box-shadow: 0 0 5px 0px #a27eac;
  }
}

.result-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.result-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  background: #b37eb5;
  color: #fff;
}

.result-buttons button:hover {
  background: #a27eac;
}

.share-menu {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}
.share-menu button {
  padding: 8px 15px;
  border-radius: 8px;
  border: none;
  background: #5f2568;
  color: #fff;
  cursor: pointer;
}
.share-menu button:hover {
  background: #b37eb5;
}