html {
  font-size: 70%;
  overflow-y: scroll;       /* Enables vertical scrolling */
  scroll-behavior: smooth;
}
/* For Chrome, Edge, Safari */
#result-page::-webkit-scrollbar {
  display: none;            /* Hides scrollbar on WebKit browsers */
}

body {
  background-image: url("./images/background.png");
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  justify-content: center;
  align-items: center;

  height: 100vh;
  overflow: visible;
  margin: 0;
  padding: 0;
  font-family: "Gloria Hallelujah", cursive;
  font-size: 70%;
}


.wrapper-main { /* not in use */
    width: 1000px;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
    align-items: center;
} 

/* Updated phone container to allow scrolling */
.phone-container {
  width: 400px;
  height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;    /* or flex-start */
  align-items: center;
  gap: 20px;
  text-align: center;
  overflow-y: auto;           /* Changed from hidden to auto */
  overflow-x: hidden;         /* Prevent horizontal scroll */
  scrollbar-width: none;      /* Hide scrollbar for Firefox */
  -ms-overflow-style: none;   /* Hide scrollbar for IE/Edge */
}

/* Hide scrollbar for Chrome/Safari */
.phone-container::-webkit-scrollbar {
  display: none;
}

h1 {
  font-size: 50px;
    font-family: 'Gloria Hallelujah', cursive;
    color: #333;
    font-weight: 800;
    text-align: center;
    max-width: 100%; /* use full width */
    margin: 0; margin-bottom: 16px;
    line-height: 1.1; /* tighter line height for better visual balance */
}

h2 {
  font-size: 16px;
    font-family: 'Gloria Hallelujah', cursive;
    color: #333;
    font-weight: 400;
    text-align: center;
    width: auto;
    line-height: 1.4;
    margin: 0 24px;
}

h3 {
  font-size: 20px;
    font-family: 'Gloria Hallelujah', cursive;
    color: #333;
    font-weight: 800;
    text-align: left;
    max-width: 100%; /* use full width */
    margin: 0; margin-bottom: 16px;
    line-height: 1.1; /* tighter line height for better visual balance */
}

h4 {
  font-size: 16px;
    font-family: 'Gloria Hallelujah', cursive;
    color: #333;
    font-weight: 400;
    text-align: left;
    width: auto;
    line-height: 1.4;
    margin: 0 24px;
}
/*==============*/
/* FLEX CLASSES */
/*==============*/

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

.justify-center {
  display: flex;
  justify-content: center;
  align-items: center;
}


/*=========*/
/* BUTTONS */
/*=========*/

.gloria-hallelujah-regular {
  font-family: "Gloria Hallelujah", cursive;
  font-weight: 400;
  font-style: normal;
}


.begin-quiz-container {
  display: flex;
  justify-content: center; /* Horizontally center the button */
  align-items: center;   /* Vertically center the button */
  flex-direction: column; gap: 15px;
}

#begin-quiz, #begin-intro {
  font-size: 1.8rem;
  font-weight: 600;
  padding: 1rem 6rem;
  text-align: center;
  border: 0.1rem solid #FFD989;
  text-decoration: none;
  font-family: 'Gloria Hallelujah', cursive;
  color: #3B2921;
  background-color: #FFD989;
  border-radius: 37px;
  margin: 0 auto;
}

#begin-quiz:hover {
  cursor: pointer;
  background-color: #FFCD64;
  color: #fbfbfb;
  transform: none;
  transition: transform 150ms;
}

#begin-intro:hover {
  cursor: pointer;
  background-color: #FFCD64;
  color: #fbfbfb;
  transform: none;
  transition: transform 150ms;
}
/* -- choice buttons -- */ 
.choices {
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: flex-start; /* or center */ 
  width: 100%;
  gap: 1rem;
  flex-grow: 1; /* Allow it to grow */
}

.choice-button {
    display: block;
    width: 100%; max-width: 350px;
    height: auto; min-height: 60px; line-height: 1.3;
    margin: 0;
    padding: 1rem 2rem;
    border: 0.1rem solid #FFD989; border-radius: 37px;

    word-wrap: break-word;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; font-weight: 600;
    text-align: center; text-decoration: none;
    font-family: 'Gloria Hallelujah', cursive;
    color: #3B2921;
    background-color: #FFD989;
}

.choice-button:hover {
    cursor: pointer;
    background-color: #FFCD64;
    color: #fbfbfb;
    transform: none;
    transition: transform 150ms;
}

/* -- back to home button -- */
#back-to-home,.share-button, #contact-page-btn {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 12px;
  text-align: center;
  border: 2px solid #ffd989;
  margin-bottom: 15px;
  text-decoration: none;
  font-family: "Gloria Hallelujah", cursive;
  color: #3b2921;
  background-color: #ffd989;
  border-radius: 25px;
  margin: 0 auto;
  max-width: 300px;
  width: 100%;
  box-sizing: border-box;
  display: block;
}
 
/* -- share button -- */
.share-button {
    background-color:#FFD989;
}

#back-to-home:hover,.share-button:hover, #contact-page-btn:hover {
    background-color:#FFCD64;
    border-color: #FFCD64;
    color: #fbfbfb;
}

/* -- Add margin between the buttons -- */


/*========*/
/* OTHERS */
/*========*/

#quiz, #intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100%;     /* Allow it to expand */
  padding-bottom: 20px; /* Add some bottom padding */
}

/*-- progress bar -- */

#progress-container {
  width: 100%; height: 12px;
  background-color: #eee;
  margin-bottom: 16px;
  border-radius: 5px;
  /*overflow: hidden;*/
}

#progress-bar {
  width: 0%; height: 100%;
  background-color: #ffb347;
  border-radius: 5px;
  transition: width 0.3s ease-in-out;
}

#progress-text {
  text-align: right;
  font-size: 14px;
  color: #555;
  margin-top: 5px;
}

.tip-box {
  position: fixed;
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  box-shadow: 0 12px 25px rgb(0 0 0 / 65%);
  padding: 220px 25px;
  margin: 15px 0;
  border-radius: 8px;
  max-width: 600px;
  z-index: 1000;

  text-align: center;
  font-style: italic;
  font-size: 1.5rem;
}


/*-- Images -- */

/* Update question image for better mobile experience */
#question-image {
  width: 100%;           /* Takes full width of parent container */
  max-width: 100%;       /* Ensures it doesn't overflow */
  height: auto;          /* Maintains aspect ratio */
  margin-bottom: 16px;
  object-fit: contain;   /* Changed from cover to contain to show full image */
  border-radius: 8px;    /* Adds subtle rounded corners */
  max-height: 60vh;      /* Increased from 40vh to 60vh for taller images */
}

/*#question-image {
  max-width: 100%;
  height: auto;
  width: 200px;
  margin-bottom: 16px;
}*/

.cover-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;      /* maintain aspect ratio */
}

#result-image, .result-image { 
  display: block;
  height: auto; 
  max-width: 200px;
  margin: 0 auto;
}

/* Special background for quiz pages only */
body.quiz-background {
  background-image: url("./images/background.png");
}

/*==============*/
/* CONTACT FORM */
/*==============*/

#insurance-form input:focus,
#insurance-form select:focus {
  outline: none;
  border-color: #ffcd64;
  box-shadow: 0 0 0 3px rgba(255, 217, 137, 0.3);
}

#submit-contact:hover {
  background-color: #ffcd64;
  border-color: #ffcd64;
  color: #fbfbfb;
}

#skip-contact {
  font-size: 1.8rem;
  font-weight: 600;
  padding: 1rem 6rem;
  text-align: center;
  border: 0.1rem solid #ccc;
  text-decoration: none;
  font-family: "Gloria Hallelujah", cursive;
  color: #666;
  background-color: #f5f5f5;
  border-radius: 37px;
  margin: 0 auto;
}

#skip-contact:hover {
  background-color: #e0e0e0;
  border-color: #bbb;
  color: #333;
}

#form-message.success {
  color: #28a745;
  font-weight: 600;
}

#form-message.error {
  color: #dc3545;
  font-weight: 600;
}

/* Quiz page specific styles - make it scrollable */
.quiz-page {
  display: block;
  width: 100%;
  min-height: 100%; /* Ensure it can expand */
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quiz-page::-webkit-scrollbar {
  display: none;
}

/* Contact and result pages - scrollable with consistent styling */
#contact-page,
#result-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 20px;
}

#contact-page::-webkit-scrollbar,
#result-page::-webkit-scrollbar {
  display: none;
}

/* Add some padding to the bottom of all page content */
.quiz-page,
#contact-page,
#result-page {
  padding-bottom: 40px;
}

/* Result content styling */
#result-content {
  text-align: center;
  margin-bottom: 20px;
}

#result-type {
  font-size: 24px;
  font-weight: 600;
  margin: 16px 0;
  color: #3b2921;
}

#result-description {
  font-size: 16px;
  line-height: 1.4;
  margin: 16px 0;
  color: #333;
}

/*============================================*/
/* Responsive adjustments for form and mobile */
/*============================================*/

@media (max-width: 480px) {
  .phone-container {
    width: 100vw;
    height: 100vh;
    padding: 16px;
  }
  
  #question-image {
    max-height: 35vh; /* Slightly smaller on mobile */
  }
  
  #insurance-form {
    max-width: 280px;
  }

  #insurance-form input, #insurance-form select {
    font-size: 12px;
    padding: 10px;
  }
}


