body {
  font-family: Arial, sans-serif;
  padding: 20px;
  max-width: 800px;
  margin: auto;
}

.container {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
}

.question {
  margin-bottom: 30px;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
}

.answers label {
  display: block;
  margin: 10px 0;
}

.photo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}

button {
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 10px;
}

#submitBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.restart-button {
  background: #2196F3;
  color: white;
  margin-left: 10px;
  transition: 0.3s;
}

.restart-button:hover {
  background: #1976D2;
}

/* Анимация скрытия формы */
.quiz-fade-out {
  animation: fadeOut 0.5s ease-in-out;
}

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

/* Сообщение "Спасибо" */
.thank-you-message {
  display: none;
  text-align: center;
  padding: 20px;
  background: #4CAF50;
  color: white;
  font-size: 20px;
  border-radius: 5px;
  margin: 20px auto;
}

.message-show {
  animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Гистограмма */
.histogram-item {
  margin: 10px 0;
  position: relative;
  height: 24px;
}

.histogram-bar {
  height: 24px;
  background-color: #4CAF50;
  border-radius: 4px;
  transition: width 0.3s ease;
  float: left;
}

.histogram-bar:hover {
  background-color: #45a049;
}

.histogram-label {
  position: absolute;
  left: 10px;
  top: 0;
  color: white;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  z-index: 1;
}

.histogram-count {
  position: absolute;
  right: 10px;
  top: 0;
  color: #333;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.stats-question {
  font-weight: bold;
  margin-top: 20px;
}