body {
  font-family: 'Segoe UI', sans-serif;
  background: #111;
  color: #f5f5f5;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 500px;
  margin: auto;
  padding: 20px;
  animation: fadeInUp 0.6s ease;
}

h2 {
  color: #ff414d;
  font-size: 30px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

/* Final Score Heading */
h2.result-heading {
  font-size: 32px;
  margin-top: 10px;
  margin-bottom: 25px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Emoji icon or animated GIF */
.emoji-icon {
  width: 48px;
  height: 48px;
  animation: bounce 1.3s infinite;
}

form label {
  display: block;
  margin: 15px 0;
  font-weight: bold;
  font-size: 15px;
}

input, select, button {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
}

button {
  background-color: #ff414d;
  color: white;
  cursor: pointer;
  margin-top: 20px;
  font-weight: bold;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #e03641;
}

/* Result Box */
.result-box {
  background: #222;
  padding: 24px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 4px 20px rgba(255, 65, 77, 0.3);
}

/* Verdict message split into title and body */
.verdict-title {
  font-size: 22px;
  font-weight: 700;
  color: #ff4d4d;
  margin-bottom: 10px;
  text-align: center;
}

.verdict-body {
  font-size: 18px;
  color: #eee;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Result breakdown */
.result-details p {
  margin: 10px 0;
  padding: 10px;
  font-size: 17px;
  background-color: #1c1c1c;
  border-left: 4px solid #ff414d;
  border-radius: 6px;
  font-weight: 500;
  animation: fadeInUp 0.5s ease;
  white-space: pre-line;
  line-height: 1.6;
}

/* Bar */
.bar {
  width: 100%;
  height: 20px;
  background: #333;
  border-radius: 10px;
  margin: 20px 0;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: linear-gradient(to right, #ff414d, #ffcc00);
  width: 0;
  transition: width 1s ease-in-out;
  border-radius: 10px;
}

/* Try Again */
a.try-again {
  display: inline-block;
  margin-top: 20px;
  color: #4fc3f7;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

a.try-again:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Ensure all form fields are full-width and box-safe */
form label {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

input[type="number"],
input[type="text"],
select {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  color: #000;
  border-radius: 6px;
}

/* Dropdown appearance consistency */
select {
  background-color: #fff !important;
  color: #000 !important;
}

/* Mobile-specific adjustments */
@media (max-width: 600px) {
  .container {
    padding: 16px;
  }

  input, select {
    font-size: 16px;
    padding: 10px;
  }

  form label {
    font-size: 14px;
    margin: 12px 0;
  }
}
.share-btn {
  display: inline-block;
  background-color: #ff414d;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin: 8px 0;
  transition: background 0.3s ease;
}

.share-btn:hover {
  background-color: #e03641;
}

