
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Courier New", Courier, monospace; line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #f0f2f5;
}

.quiz-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quiz-header {
  text-align: center;
  margin-bottom: 32px;
}

.quiz-header h1 {
  font-size: 2.5em;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.question {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 8px;
  background: #f8f9fa;
}

.question h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #2c3e50;
}

.answers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.answer-label {
  flex: 1 1 calc(50% - 16px);
  min-width: 200px;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.answer-label:hover {
  transform: translateY(-2px);
}

.answer-content {
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked + .answer-content {
  border-color: #3498db;
  background: #ebf5fb;
}

.submit-btn {
  display: block;
  width: 200px;
  margin: 32px auto;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: #468a4b;
  color: white;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s ease;
  
}

.submit-btn:hover {
  background: #2980b9;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.result {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: white;
  padding: 32px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  z-index: 1001;
  animation: modalShow 0.5s ease forwards;
}

.result.active {
  display: block;
}

.result img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 20px 0;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

@keyframes modalShow {
  from {
      transform: translate(-50%, -50%) scale(0) rotate(0deg);
  }
  to {
      transform: translate(-50%, -50%) scale(1) rotate(360deg);
  }
}

.error {
  display: none;
  color: #e74c3c;
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .answer-label {
      flex: 1 1 100%;
  }
}