
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 40px;
}

.card {
  background-color: #f9f9f9;
  border-radius: 24px;
  padding: 5vw;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.4s ease;
  margin-bottom: 20px;
}

h1, h2, p {
  color: #222;
  margin: 0 0 20px;
  line-height: 1.5;
  font-size: 1.1rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

input, button {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #ccc;
  width: 100%;
  margin-bottom: 15px;
  box-sizing: border-box;
}

button {
  background-color: #000;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  word-break: break-word;
  white-space: normal;
}

button:hover {
  background-color: #333;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answers button {
  text-align: left;
  color: #222;
  background-color: #f1f1f1;
  white-space: normal;
  word-break: break-word;
}

.answers button:hover {
  background-color: #e1e1e1;
}

.progress-bar {
  height: 6px;
  background: #eee;
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #000;
  width: 0%;
  transition: width 0.3s ease;
}

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

@media (max-width: 480px) {
  h2 {
    font-size: 1rem;
  }
  input, button {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  .card {
    padding: 6vw;
  }
}
