body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

h1 {
  text-align: center;
  color: #333;
}

.question {
  font-size: 18px;
  font-weight: bold;
  margin: 20px 0;
  text-align: center;
  line-height: 1.5;
}

.options {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

button {
  padding: 15px 30px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  flex: 1 1 200px;
  font-weight: bold;
}

button:hover {
  transform: translateY(-2px);
}

.option-a {
  background-color: #4CAF50;
  color: white;
}

.option-b {
  background-color: #f44336;
  color: white;
}

.results {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.message {
  margin-top: 20px;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  display: none;
}

.error {
  background-color: #ffe0e0;
  color: #d32f2f;
}

.success {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.loading {
  text-align: center;
  color: #999;
  display: none;
}

/* Стиль кнопки переключения формы */
.toggle-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 20px auto;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-btn:hover {
  background-color: #0d47a1;
}

/* Форма добавления вопроса */
.add-form {
  margin-top: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  transition: opacity 0.4s, max-height 0.4s;
  opacity: 1;
  max-height: 300px;
}

.add-form.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.add-form input {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.add-form input:focus {
  border-color: #2196F3;
  outline: none;
}

.add-form button {
  background-color: #2196F3;
  color: white;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
}

.add-form button:hover {
  background-color: #0d47a1;
}
