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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.quiz-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quiz-content {
  width: 100%;
  max-width: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.5s ease;
}

.question-wrapper {
  flex: 1;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  height: 600px;
}

.question-number {
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
  font-weight: 500;
}

.question-content {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: slideIn 0.5s ease;
}

.question-content.active {
  display: flex;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.question-title {
  font-size: 32px;
  color: #2d3748;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.title-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto 30px;
  display: block;
  border-radius: 12px;
}

.question-content[data-question="1"] .question-title {
  font-size: 42px;
}

.question-description {
  font-size: 18px;
  color: #718096;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: left;
}

.start-button,
.continue-button,
.restart-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 20px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.start-button:hover,
.continue-button:hover,
.restart-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.start-button:active,
.continue-button:active,
.restart-button:active {
  transform: translateY(0);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.option-button {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  color: #2d3748;
  width: 100%;
}

.option-button:hover {
  background: #edf2f7;
  border-color: #667eea;
  transform: translateX(5px);
}

.option-button:active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.text-input {
  width: 100%;
  padding: 18px 20px;
  font-size: 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 20px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.text-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.text-input.error {
  border-color: #e53e3e;
  animation: shake 0.3s ease;
}

.text-input.error:focus {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

[data-question="thinking-screen"] .question-description {
  text-align: center;
}

.loading-progress-bar {
  width: 50%;
  max-width: 200px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 30px auto 0;
}

.loading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
}

.loading-progress-fill.animating {
  width: 100%;
}

.lightbulb-icon {
  font-size: 80px;
  text-align: center;
  margin-top: 40px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.lightbulb-icon.show {
  opacity: 1;
  transform: scale(1);
  animation: lightbulbPop 0.3s ease;
}

@keyframes lightbulbPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .quiz-container {
    padding: 0;
  }

  .quiz-content {
    border-radius: 0;
    min-height: 100vh;
  }

  .question-wrapper {
    padding: 30px 25px;
    height: 700px;
  }

  .question-title {
    font-size: 28px;
  }

  .question-content[data-question="1"] .question-title {
    font-size: 36px;
  }

  .title-image {
    max-width: 300px;
    margin-bottom: 25px;
  }

  .question-description {
    font-size: 16px;
  }

  .start-button,
  .continue-button,
  .restart-button {
    width: 100%;
    padding: 16px 30px;
    font-size: 16px;
  }

  .option-button {
    padding: 18px 20px;
    font-size: 16px;
  }

  .text-input {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .question-wrapper {
    padding: 25px 20px;
    height: 650px;
  }

  .question-title {
    font-size: 24px;
  }

  .question-content[data-question="1"] .question-title {
    font-size: 32px;
  }

  .title-image {
    max-width: 250px;
    margin-bottom: 20px;
  }

  .question-number {
    font-size: 12px;
  }
}
