body,
html {
  height: 100%;
  margin: 0;
  background: linear-gradient(to right, #cea6ff 0%, #fcb69f 100%);
  font-family: "Montserrat", sans-serif;
  display: flex;
  font-size: 18pt;
  flex-direction: column; /* Set the main axis to vertical */
  min-height: 100vh; /* Ensure the body takes at least the viewport height */
}

:root {
  --tick-color: #265926; /* Default color for tick */
  --cross-color: #b44a4a; /* Default color for cross */
}

.svg-icon .path {
  stroke-width: 4;
  fill: none;
}

#tick .path {
  stroke: var(--tick-color);
}

#cross .path {
  stroke: var(--cross-color);
}

button {
  background-color: #8662b3; /* Theme color */
  color: #ffffff;
  border: none;
  padding: 10px 30px;
  border-radius: 8px;
  margin: 10px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px; /* Space between buttons */
  transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

button:hover {
  background-color: #e5891f; /* Hover effect color */
}

p {
  padding: 5px;
}
footer {
  background-color: #8662b3;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header {
  background-color: transparent;
  text-align: center;
  padding: 10px 0;
}

.logo {
  width: 150px;
  height: auto;
  margin-left: 40pt;
}

.main-content {
  flex: 1; /* This will make the main content flexible */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 10px;
  box-sizing: border-box;
}

.quiz-container {
  text-align: center;
  position: relative;
  padding: 20px;
  flex-wrap: wrap;
}

.quiz-content {
  background-color: #31313175; /* Darker background for quiz */
  border-radius: 8px;
  padding: 20px;
  max-width: 30rem;
  color: #f1e6ff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 10px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.alttext {
  color: #f59410;
}

#question-container label {
  text-align: left;
  display: block; /* Makes each option appear on a new line */
}

h1 {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #f1e6ff;
  letter-spacing: 1px;
  width: 100%;
}

#quiz {
  display: none;
}
#welcome-screen {
  background-color: #f1e6ff;
  border-radius: 8px;
  padding: 40px;
  color: #313131;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 10px auto;
  width: 50%; /* Adjust width as needed */
  display: flex;
  flex-direction: column;
  align-items: center;
}
input[type="text"],
input[type="email"] {
  font-size: 0.8em;
  padding: 10px; /* Adjust the value as needed */
  margin: 5px 0; /* Optional: Adds space around the input field */
  border-radius: 5px; /* Optional: Rounds the corners of the input field */
  border: 1px solid #ccc; /* Optional: Adds a border to the input field */
}

button {
  font-size: 0.8em;
}
#welcome-screen button {
  background-color: #8662b3;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 20px;
  cursor: pointer;
  z-index: 100;
}

#welcome-screen button:hover {
  background-color: #e5891f;
}

#progress-bar {
  background-color: #ddd;
  border-radius: 20px;
  width: 98%;
  height: 20px;
  margin: 10px;
  position: relative;
  overflow: hidden;
}

.coupon {
  padding: 15px;
  font-size: 1.5em;
  border: 3px solid #ff9b26; /* Corrected border property */
  border-radius: 10px;
  width: 60%;
  margin: auto; /* Center the coupon div */
  text-align: center; /* Center the text inside the coupon div */
  font-weight: bold;
  margin-top: 20px;
}

#progress {
  background-color: #ff9b26;
  height: 100%;
  width: 0%;
  border-radius: 20px;
  transition: width 0.5s ease-in-out;
}

@keyframes rotateAnimation {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.rotating {
  animation: rotateAnimation 1s ease-in-out 1; /* Adjust duration and timing function as needed */
}

.redirect-button {
  background-color: #31313175;
  color: #ff9b26;
  border: none;
  padding: 10px 10px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 20px;
  cursor: pointer;
  display: block; /* Center the button */
  margin-left: auto;
  margin-right: auto;
  width: 50%; /* Adjust width as needed */
  font-size: 22px;
}
#welcome-message {
  margin: 15px;
}

.redirect-button:hover {
  background-color: #313131;
}

@media (max-width: 768px) {
  button {
    width: 100%; /* Full width for easier touch */
    padding: 12px 0; /* Larger padding for easier touch */
    font-size: 1em; /* Larger font size for readability */
  }
  h1 {
    font-size: 1.5em; /* Reduce font size for smaller screens */
    padding: 0 10px; /* Add padding to prevent text touching the edges */
  }

  .logo {
    order: 3; /* Move logo below the quiz container */
    width: smaller; /* Further reduce logo size for smaller screens */
    margin: 0px; /* Center logo with automatic margins */
  }

  #welcome-message {
    margin: 0px;
  }

  .main-content {
    gap: 0rem;
    flex-direction: column; /* Stack elements vertically */
    align-items: stretch; /* Stretch children to fill width */
  }

  .quiz-container {
    padding: 00px; /* Reduce padding */
  }

  .quiz-content {
    margin: 0; /* Remove margin */
  }

  #welcome-screen {
    width: 90%; /* Full width for welcome screen and quiz */
    padding: 15px; /* Adjust padding */
  }

  #quiz {
    width: 100%; /* Full width for welcome screen and quiz */
    padding: 0px; /* Adjust padding */
  }

  input[type="text"],
  input[type="email"] {
    width: calc(100% - 20px); /* Full width for input fields, minus padding */
  }

  #next-btn,
  #welcome-screen button {
    width: auto; /* Auto width for buttons */
    padding: 8px 15px; /* Adjust padding for buttons */
  }
  #next-brn {
    font-size: larger;
  }
  footer {
    position: static; /* Ensure footer is at the bottom */
    padding: 15px 5px; /* Adjust padding */
  }

  #progress-bar {
    width: 95%; /* Adjust progress bar width */
    margin: 5px auto; /* Center progress bar with automatic margins */
  }

  /* Adjustments for label and paragraph text */
  #question-container label,
  p {
    font-size: 0.9em; /* Reduce font size for readability */
    text-align: left; /* Align text to the left */
    padding: 5px; /* Add padding for touch targets */
    margin-top: 0;
  }

  /* Animation adjustments if needed */
  .rotating {
    animation: rotateAnimation 0.5s ease-in-out 1; /* Faster rotation for mobile */
  }
  .redirect-button {
    width: 80%; /* Larger button for smaller screens */
    padding: 15px; /* Larger padding for easier touch */
    background-color: #31313175;
    text-align: center;
    color: #ff9b26;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 22px;

    padding-left: 10px;
    border: 1px solid #ff9b26; /* Corrected border property */
    cursor: pointer;
    display: block; /* Center the button */
  }
}

/* Ensure header and footer are always visible */
header,
footer {
  z-index: 10; /* High z-index to keep them on top */
}

/* Overlay */
.overlay {
  position: absolute; /* Position relative to quiz-container */
  top: 0;
  left: 0;
  right: 0; /* Stretch to the right edge */
  bottom: 0; /* Stretch to the bottom edge */
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.svg-icon {
  width: 100px;
  height: 100px;
  visibility: visible; /* Make the SVG visible */
}

/* Path styles for drawing animation */
.path {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: draw 1s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.social-sidebar {
  position: fixed;
  right: 2%;
  top: 20%;
  bottom: 20%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  z-index: 50;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  background-color: #313131;
  opacity: 0.8;
  transition: opacity 0.3s;
  color: white; /* Add text color for icons */
  text-decoration: none; /* Remove underline from links */
}

.social-link:hover {
  opacity: 1;
}

.social-link i {
  font-size: 20px; /* Adjust icon size */
}
