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

body {
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  background: linear-gradient(120deg, #e0eafc, #cfdef3);
  color: #333;
  padding: 40px 20px;
  min-height: 100vh;
}

#app {
  max-width: 720px;
  margin: 4rem auto;
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 30px;
  margin-bottom: 24px;
  text-align: center;
  color: #222;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #111;
}

textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #ccc;
  outline: none;
  background-color: #f9faff;
  resize: vertical;
}

textarea:focus {
  border-color: #5b9df9;
  box-shadow: 0 0 10px rgba(91, 157, 249, 0.3);
}

#generate {
  width: 100%;
  background: #5b9df9;
  color: white;
  margin-top: 16px;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  transition: 0.1s;
}

#status {
  font-size: 18px;
  text-align: center;
  color: #666;
  margin-top: 20px;
}

#quiz {
  background: #fefefe;
  padding: 24px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
}

.answer {
  display: block;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 14px;
  background-color: #f0f4f8;
  border-radius: 12px;
  border: 1px solid #d1d9e6;
  text-align: left;
  font-size: 16px;
  transition: 0.1s;
}

.answer.correct {
  background-color: #c8f7c5 !important;
  border-color: #8fda8c;
  color: #222;
  box-shadow: 0 4px 12px rgba(100, 200, 100, 0.2);
}

.answer.wrong {
  background-color: #f7c5c5 !important;
  border-color: #f28c8c;
  color: #222;
  box-shadow: 0 4px 12px rgba(250, 100, 100, 0.2);
}

#next-btn {
  display: block;
  width: 100%;
  margin: 24px auto 0 auto;
  background: #5b9df9;
  color: white;
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  transition: 0.1s;
}

#quiz p {
  text-align: center;
  margin-top: 16px;
  color: #555;
  font-size: 14px;
  letter-spacing: 0.5px;
}

@media (max-width: 500px) {
  #app {
    padding: 20px;
  }

  textarea {
    min-height: 140px;
  }

  button,
  .answer {
    font-size: 14px;
    padding: 12px 16px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }
}

#generate:not(:disabled):hover {
  background: #3c7bd2;
}

#next-btn:not(:disabled):hover {
  background: #3c7bd2;
}

.answer:not(:disabled):hover {
  background-color: #e0e8f8;
}
