/* Import a cute Google Font */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;700&display=swap');

/* Wider Next buttons */
.next-btn {
  min-width: 180px;
  width: 70%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Progress bar styles */
.progress-bar-wrapper {
  width: 100%;
  max-width: 350px;
  margin: 0.5em auto 1.2em auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.progress-bar {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  height: 16px;
  background: linear-gradient(90deg, #fbeffb 0%, #c1e7fa 100%);
  border-radius: 1em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(123, 80, 198, 0.08);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb6e0 0%, #b6e9ff 100%);
  border-radius: 1em;
  transition: width 0.4s cubic-bezier(.4,2,.3,1);
}
.progress-bar-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: #6d2d7e;
  margin-top: 0.3em;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Progress bar styles */
.progress-bar-wrapper {
  width: 100%;
  max-width: 350px;
  margin: 0.5em auto 1.2em auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-bar {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  height: 16px;
  background: linear-gradient(90deg, #fbeffb 0%, #c1e7fa 100%);
  border-radius: 1em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(123, 80, 198, 0.08);
  margin-left: auto;
  margin-right: auto;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb6e0 0%, #b6e9ff 100%);
  border-radius: 1em;
  transition: width 0.4s cubic-bezier(.4,2,.3,1);
}
.progress-bar-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: #6d2d7e;
  margin-top: 0.3em;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body {
  background: linear-gradient(135deg, #fbeffb 0%, #c1e7fa 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Fredoka', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

#quiz-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2rem;
  box-shadow: 0 8px 36px rgba(123, 80, 198, 0.15), 0 2px 4px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  margin: 2rem;
}

p, h2, h3 {
  color: #6d2d7e;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-family: 'Fredoka', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

h2 {
  font-size: 2.2rem;
  margin-top: 0.2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

button {
  font-family: 'Fredoka', Arial, sans-serif;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #ffb6e0 0%, #b6e9ff 100%);
  color: #6d2d7e;
  border: none;
  border-radius: 1.4em;
  padding: 0.8em 2.2em;
  margin: 0.6em 0.5em;
  cursor: pointer;
  font-weight: 400;
  box-shadow: 0 2px 10px rgba(123, 80, 198, 0.1);
  transition: background 0.3s, transform 0.2s;
}



.answer-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  min-width: 180px;
  min-height: 2.7em;
  margin: 0.7em auto;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
  text-align: center;
}

.slot-image {
  max-width: 80%;
  border-radius: 1.1em;
  margin-bottom: 1.4em;
  box-shadow: 0 2px 16px rgba(123, 80, 198, 0.08);
}

/* Responsive for smaller screens */
@media (max-width: 600px) {
  #quiz-container {
    padding: 1.2rem 0.5rem;
    max-width: 98vw;
  }
  h2 {
    font-size: 1.5rem;
  }
  p, h3 {
    font-size: 1.07rem;
  }
  button, .answer-btn {
     font-size: 0.97rem;
     padding: 0.7em 0.7em;
     max-width: 98vw;
     min-width: 140px;
     min-height: 2.5em;
  }
  .next-btn {
    min-width: 140px;
    width: 90%;
    max-width: 98vw;
  }
}