:root {
  --gold: #D4AF37;
  --dark-bg: #0A0A0A;
  --card-bg: #111111;
  --text-light: #E0E0E0;
  --text-secondary: #888;
  --border-color: rgba(212, 175, 55, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  padding: 20px;
}

.quiz-container {
  background-color: var(--card-bg);
  padding: 2.5em;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 700px;
  text-align: center;
}

h1,
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

h1 {
  color: var(--gold);
  font-size: clamp(1.8em, 5vw, 2.5em);
  letter-spacing: 1px;
}

h2 {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: clamp(1.1em, 4vw, 1.3em);
  margin-top: 0.5em;
}

.progress-bar-container {
  width: 100%;
  background-color: #222;
  margin: 2em 0;
}

.progress-bar {
  width: 0;
  height: 5px;
  background-color: var(--gold);
  transition: width 0.5s ease-in-out;
}

.images-container {
  display: flex;
  justify-content: center;
  gap: 2em;
  margin: 2em 0;
  filter: grayscale(30%);
}

.angel-image {
  width: clamp(80px, 20vw, 120px);
  height: auto;
}

.quiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8em;
  margin-bottom: 1em;
  color: var(--gold);
}

input[type="number"],
input[type="text"] {
  font-family: 'Montserrat', sans-serif;
  width: 80%;
  max-width: 400px;
  padding: 1em;
  margin-bottom: 2em;
  border: 1px solid #333;
  background-color: #0A0A0A;
  color: var(--text-light);
  font-size: 1em;
  text-align: center;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

button {
  font-family: 'Montserrat', sans-serif;
  background: var(--gold);
  color: #000;
  border: none;
  padding: 1em 2.5em;
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

button:hover:not(:disabled) {
  background: #EAC645;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

button:disabled {
  background-color: #444;
  color: #777;
  cursor: not-allowed;
}

#loading {
  min-height: 600px;
}

.loading-animation {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  filter: blur(15px);
  opacity: 0.5;
  animation: pulse 4s infinite ease-in-out;
}

.numeric-progress {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3em;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
  z-index: 1;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.loading-status {
  font-size: 1.1em;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 2em;
  letter-spacing: 1px;
}

#result .angel-image-result {
  width: clamp(180px, 40vw, 250px);
  height: auto;
  margin: 1.5em 0;
}

#result-headline {
  font-size: clamp(1.5em, 5vw, 2em);
}

.subtext {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 90%;
  margin: 1em auto;
}

.subparagraph {
  font-size: 1em;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2em;
}

@media (max-width: 480px) {
  body {
    padding: 0;
    align-items: flex-start;
  }

  .quiz-container {
    padding: 2em 1.5em;
    border: none;
    background-color: var(--dark-bg);
    min-height: 100%;
  }
}