/* styles.css */

body {
    background-color: #f5f7fa;
    font-family: 'Roboto', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background: #007bff;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

h1 {
    margin: 0;
}

.container {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.btn, button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px;
}

.btn:hover, button:hover {
    background-color: #0056b3;
}

form {
    text-align: center;
}

.question-container {
    text-align: center;
    margin: 20px 0;
}

.image-container {
    margin: 20px 0;
}

.xray-image {
    display: block;
    max-width: 100%;
    margin: 0 auto 20px;
    border-radius: 4px;
}

.results {
    margin: 20px 0;
    font-size: 18px;
}

#quiz-page,
#result-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Center text in each paragraph under result */

/* Make “Next Image” a block‐level element so auto margins center it */
#result-page .btn {
  display: block;
  margin: 20px auto 0;
}
/* Center the AI/Real answer pills */
.answer-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
  margin: 0 4px;
}


.stats {
    display: flex;
    justify-content: space-between;
    background: #f0f4f8;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-weight: 500;
}

footer {
    text-align: center;
    padding: 20px 0;
    background: #007bff;
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-notice {
  max-width: 800px;
  margin: 0.5rem auto;
  padding: 0 1rem;
  line-height: 1.6;
  text-align: justify;
}

/* NEW: Justify paragraphs & lists */
.container p,
.container li {
    text-align: justify;
    text-justify: inter-word;
}

/* NEW: Home-page background */
.home {
    background: url('https://images.pexels.com/photos/12227297/pexels-photo-12227297.jpeg') no-repeat center center fixed;
    background-size: cover;
}
.home .container {
    background: rgba(255, 255, 255, 0.85);
}

/* HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeIn 1.2s ease-out;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5em;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 1em;
}
.btn-cta {
  padding: 14px 32px;
  font-size: 18px;
}

/* FEATURES GRID */
.features {
  display: flex;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.feature-item {
  flex: 1;
  min-width: 180px;
  text-align: center;
  animation: fadeIn 1s ease-out;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.feature-item img {
  width: 60px;
  margin-bottom: 12px;
}
.feature-item h3 {
  margin-bottom: 8px;
}

/* pill‑style answer badges */
.answer-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
  margin: 8px 0;
}
.answer-ai   { background-color: #007bff; }
.answer-real { background-color: #28a745; }

/* FOOTER */
footer {
  text-align: center;
  padding: 20px 0;
  background: #007bff;
  color: #fff;
  margin-top: 40px;
}

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