body {
  font-family: 'Arial', sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.form-section {
  text-align: center;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

textarea {
  padding: 10px;
  font-size: 16px;
  resize: vertical;
  min-height: 80px;
}

button {
  padding: 10px;
  background-color: #007acc;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
}

h1, h2 {
  color: #333;
}

ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

li {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.question-title {
  font-weight: bold;
  font-size: 16px;
  white-space: pre-wrap;
}

.question-answer {
  color: #007acc;
  font-style: italic;
  margin-top: 5px;
  white-space: pre-wrap;
}

.edit-btn, .delete-btn {
  margin-top: 10px;
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
}

.edit-btn {
  background-color: #ffa500;
  color: white;
}

.delete-btn {
  background-color: #e74c3c;
  color: white;
  margin-left: 5px;
}

/* 🧩 묶음별 스타일 */
.question-group {
  background-color: #eef2f7;
  border: 1px solid #cdd9ec;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.question-group h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  color: #005a99;
  text-align: center;
  cursor: pointer;
}

.question-group h3:hover {
  color: #007acc;
  text-decoration: underline;
}
