* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

body {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

.app {
  width: 100%;
  max-width: 550px;
  padding: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
}

h1 {
  color: #333;
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: 600;
}

label {
  display: block;
  text-align: left;
  font-weight: 500;
  margin: 10px 0 5px;
  color: #444;
}

input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 10px;
  outline: none;
}

input:focus {
  border-color: #7b68ee;
  box-shadow: 0 0 10px rgba(123, 104, 238, 0.2);
}

.btn {
  background: linear-gradient(135deg, #7b68ee, #9370db);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.btn:hover {
  background: linear-gradient(135deg, #6a5acd, #836fff);
  transform: scale(1.03);
}

.progress {
  width: 100%;
  height: 10px;
  background: #eee;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

#progressBar {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #7b68ee, #9370db);
  border-radius: 10px;
}

#questionText {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
}

.answer-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #f7f7ff;
  border: 2px solid #ddd;
  border-radius: 12px;
  margin: 10px 0;
  font-size: 16px;
  cursor: pointer;
}

.answer-btn:hover {
  background: #eae6ff;
  border-color: #7b68ee;
  transform: scale(1.02);
}

.fade-out {
  opacity: 0;
}

#resultText {
  text-align: left;
  background: #fefefe;
  padding: 15px;
  border-radius: 15px;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  border-left: 4px solid #7b68ee;
}

#resultSection h2 {
  color: #444;
  font-weight: 600;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .card {
    padding: 25px 20px;
  }
  h1 {
    font-size: 1.5em;
  }
}
