/* Arezou Quiz Website - Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* Base Styles */
:root {
  --primary-color: #ffffff;
  --accent-color: #0a2463; /* Navy blue */
  --highlight-color: #7cb9e8; /* Light blue */
  --correct-color: #78e08f;
  --incorrect-color: #ff7979;
  --text-color: #333333;
  --shadow: 0 4px 8px rgba(10, 36, 99, 0.1);
  --border-radius: 15px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="3" fill="%237cb9e8" opacity="0.2"/></svg>');
  background-size: 100px 100px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--accent-color);
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
}

/* Header Styles */
.header {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 3px;
}

.header h1 {
  margin-bottom: 0.5rem;
}

.header p {
  font-size: 1.2rem;
  color: var(--accent-color);
  opacity: 0.8;
}

/* Sound Button */
.sound-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.sound-button:hover {
  transform: scale(1.1);
  background-color: var(--highlight-color);
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Button Styles */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  margin: 0.5rem;
}

.btn:hover {
  background-color: var(--highlight-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(10, 36, 99, 0.15);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-large {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

/* Quiz Styles */
.quiz-container {
  display: none;
}

.quiz-container.active {
  display: block;
}

.question-container {
  margin-bottom: 2rem;
}

.question {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .options {
    grid-template-columns: 1fr 1fr;
  }
}

.option {
  background-color: white;
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.option:hover {
  background-color: var(--highlight-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.option.selected {
  background-color: var(--accent-color);
  color: white;
}

.option.correct {
  background-color: var(--correct-color);
  border-color: var(--correct-color);
  color: white;
}

.option.incorrect {
  background-color: var(--incorrect-color);
  border-color: var(--incorrect-color);
  color: white;
}

/* Results Styles */
.results {
  text-align: center;
  display: none;
}

.results.active {
  display: block;
}

.score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feedback {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Animation Styles */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-20px);}
  60% {transform: translateY(-10px);}
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

/* Decorative Elements */
.bubble {
  position: absolute;
  border-radius: 50%;
  background-color: var(--highlight-color);
  opacity: 0.1;
  z-index: -1;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--highlight-color);
  opacity: 0;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--accent-color);
  width: 0%;
  transition: width 0.5s ease;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  color: var(--accent-color);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Special Elements for Kids */
.star {
  display: inline-block;
  color: var(--highlight-color);
  font-size: 1.5rem;
  margin: 0 0.2rem;
}

.balloon {
  position: fixed;
  bottom: -30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--highlight-color);
  opacity: 0.7;
  animation: float 15s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Ana's Birthday Special */
.birthday-banner {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.birthday-banner h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.birthday-banner p {
  margin-bottom: 0;
}

.birthday-banner::before,
.birthday-banner::after {
  content: '🎂';
  position: absolute;
  font-size: 2rem;
}

.birthday-banner::before {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.birthday-banner::after {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Certificate Styles */
#certificate {
  background-color: #f9f9f9;
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

#certificate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M95,50 C95,74.8528137 74.8528137,95 50,95 C25.1471863,95 5,74.8528137 5,50 C5,25.1471863 25.1471863,5 50,5 C74.8528137,5 95,25.1471863 95,50 Z" stroke="%230a2463" stroke-width="1" fill="none" stroke-dasharray="5,5" opacity="0.2"/></svg>');
  background-size: 100px 100px;
  opacity: 0.1;
  z-index: -1;
}

#certificate h3 {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#certificate p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Text alignment helper */
.text-center {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .question {
    font-size: 1.1rem;
  }
  
  .birthday-banner::before,
  .birthday-banner::after {
    font-size: 1.5rem;
  }
}

/* Sound effect animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.sound-pulse {
  animation: pulse 0.5s ease;
}