/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f001f;
  color: #fff;
  min-height: 100vh;
}
 
/* Header Section */
.main-header {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background-color: #080024;
}
 
.header-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.main-header i.fa-right-to-bracket {
  position: absolute;
  top: 50%;
  right: 50px;
  transform: translateY(-50%);
  font-size: 28px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}
 
.main-header i.fa-right-to-bracket:hover {
  transform: translateY(-50%) scale(1.1);
  color: #fff;
}
 
/* banner section */
 
.banner-section {
  width: 100%;
  /* background-color: #060023; */
  padding-top: 80px;
}
 
.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 900px;
  margin: auto;
  gap: 20px;
  flex-wrap: wrap;
}
 
.left-banner {
  position: relative;
  flex: 1;
  min-width: 320px;
  max-width: 450px;
}
 
.form-background-image {
  width: 100%;
  height: auto;
  /* border-radius: 20px; */
}
 
.form-overlay {
  position: absolute;
  top: 5%;
  left: 8%;
  width: 84%;
  /* background: rgba(0, 0, 0, 0.7); */
  padding: 10px;
  border-radius: 15px;
  color: white;
}
 
.form-title {
  font-size: 1.5rem;
  /* font-weight: bold; */
  margin-bottom: 20px;
  text-align: center;
}
 
.form-overlay form {
  display: flex;
  flex-direction: column;
}
 
.form-overlay label {
  margin: 10px 0 5px;
  font-size: 0.95rem;
  font-weight: 600;
}
 
.form-overlay input,
.form-overlay select {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: #CBCDF1;
  color: black;
  /* margin-bottom: 10px; */
}
 
.form-overlay input::placeholder {
  color: black;
}
 
.form-overlay button {
  margin-top: 20px;
  padding: 8px;
  background-color: #BB0000;
  border: none;
  width: 30%;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
 
  /* Center the button */
  display: block;
  margin-left: auto;
  margin-right: auto;
}
 
#guardianFields{
  padding-top: 10px;
}
 
#guardianFields label {
  font-size: 0.95rem;
  font-weight: 600;
}
 
#guardianFields input,
#guardianFields select {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: #CBCDF1;
  color: black;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 5px;
  margin-top: 5px;
}
 
#guardianFields input::placeholder {
  color: black;
}
 
.form-overlay button:hover {
  background-color: #800404;
}
.right-banner {
  flex: 1;
  max-width: 60%;
  position: relative;
  top: -50px;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* images aligned to right */
  justify-content: flex-start;
  margin-left: auto;
  /* background-color: aqua; */
  padding-right: 40px;
}
 
/* Top logo */
.step-image-1 {
  width: 230px;
  height: auto;
  margin-bottom: 20px;
  z-index: 3;
}
 
/* Image stack */
.step-images {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}
 
/* Common style for all images */
.right-image {
  opacity: 0.95;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}
 
/* Step 2 - Enlarged image */
.step-image-2 {
  width: 270px;
  margin-bottom: 0;
  margin-top: -35px;
  position: relative;
  z-index: 1;
}
 
/* Step 3 - Overlapping Step 2 from above */
.step-image-3 {
  width: 250px;
  margin-top: -30px; /* overlap from top */
  position: relative;
  z-index: 2; /* appears above */
}
/* Image 4 - background image (partially overlapped) */
.step-image-4 {
  width: 400px;
  height: 400px;
  margin-top: -40px;
  margin-right: -40px;
  position: relative;
  border-radius: 50%;
  z-index: 1;
}
 
/* Image 5 - foreground image (overlapping on top) */
.step-image-5 {
  width: 550px;
  /* height: 390px; */
  margin-top: -460px;
  margin-right: -160px;
  position: relative;
  z-index: 2;
  /* box-shadow: 0 0 10px 3px red; */
}
 
 
 
/* leaderboard section */
.leaderboard-section {
  margin-top: 0px;
  padding: 20px;
  text-align: center;
  /* background-color: aqua; */
}
 
.leaderboard-heading {
  font-style: italic;
  font-weight: bold;
  color: #fff;
  font-size: 40px;
  margin-bottom: 35px;
}
 
.leaderboard-images {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 30px;
}
 
.prize-img {
  height: 600px;
  position: relative;
  left: -10%;
}
 
.rank-img {
  height:900px;
  position: relative;
  right: 5%;
}
 
 
 
/* Ball stays fixed at top-left */
/* Wrapper to keep stacking context controlled */
.next-section {
  position: relative;
  /* width: 100%; */
  height: 500px; /* Adjust as needed */
  overflow: visible;
 
}
 
/* Ball image on top */
.ball-image {
  position: absolute;
  top: -70%;
  left: 0;
  width: 300px;
  height: auto;
  z-index: 1000;
  /* border-radius: 50%; */
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); */
}
 
/* Background image behind the ball */
.image-6 {
  position: absolute;
  top: -50%;  
  left: -26%;
  width: 600px;
  height: auto;
  opacity: 0.5;
  z-index: 1;
}
 
 
.next-sect {
  position: relative;
  /* width: 100%; */
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: #800404; */
 
}
 
.image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
 
/* Center image styling */
.center-img {
  position: relative;
  width: 55%;
  z-index: 2;
  top: -10rem;
}
 
.below-right-img {
  position: absolute;
  top: 15%;
  left: 59rem;    
  transform: translate(-50%, -50%);
  width: 400px;
  z-index: 1;
}
 
/* footer section */
.footer {
  padding: 60px 40px;
  background-color: #230022; /* match deep maroon-purple background */
  color: #ccc;
  position: relative;
  top: 7rem;
  /* font-family: 'Segoe UI', sans-serif; */
}
 
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  /* align-items: flex-start; */
  gap: 40px;
  flex-wrap: wrap;
}
 
.footer-column {
  flex: 1;
  min-width: 340px;
  /* background-color: #8d6cf5; */
}
 
.footer-column h4 {
  font-weight: 600;
  color: #A892F5;
  margin-left: 10%;
  font-size: 16px;
  margin-bottom: 20px;
}
 
.footer-column p {
  line-height: 1.6;
  font-size: 15px;
  margin-left: 10%;
  color: #d4c8e5;
  margin-bottom: 12px;
}
.footer-column i{
  color: #7D78D5;
  margin-right: 8px;
  font-size: 14px;
}
 
 
.phone-lines {
  display: inline-block;
  vertical-align: top;
  line-height: 1.6;
}
 
 
.footer-column p:last-child {
  margin-bottom: 0;
}
 
.about p {
  margin-bottom: 20px;
}
 
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  margin-left: 10%;
}
 
.social-icons img {
  width: 50px;
  height: 50px;
  /* background-color: #A892F5; */
  padding: 7px;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
 
.social-icons img:hover {
  background-color: #8d6cf5;
  transform: scale(1.1);
}
 
.copyright {
  font-size: 13px;
  margin-top: 10px;
  color: #aaa;
}
 
/* Tablets and below */
@media (max-width: 1024px) {
  .banner-content {
    flex-direction: column;
    align-items: center;
  }
 
  .right-banner {
    position: relative;
    top: 0;
    max-width: 100%;
    padding-right: 0;
    align-items: center;
  }
 
  .right-banner img {
    max-width: 90%;
    height: auto;
  }
 
  .step-image-4 {
    width: 300px;
    height: 300px;
    margin-top: -30px;
    margin-right: 0;
  }
 
  .step-image-5 {
    width: 400px;
    margin-top: -320px;
    margin-right: 0;
  }
 
  .form-overlay {
    top: 2%;
    left: 5%;
    width: 90%;
  }
}
 
@media (max-width: 1024px) {
  .right-banner{
    display: none;
  }
}
 
/* Mobile phones */
@media (max-width: 768px) {
  .main-header i.fa-right-to-bracket {
    right: 20px;
    font-size: 22px;
  }
 
  .form-title {
    font-size: 1.2rem;
  }
 
  .form-overlay button {
    width: 50%;
    padding: 10px;
  }
 
  .step-image-1,
  .step-image-2,
  .step-image-3,
  .step-image-4,
  .step-image-5 {
    max-width: 100%;
    margin-right: 0;
  }
 
  .step-image-5 {
    margin-top: -280px;
  }
 
  .leaderboard-heading {
    font-size: 28px;
  }
 
  .prize-img,
  .rank-img {
    height: auto;
    width: 45%;
  }
 
  .rank-img {
    right: 0;
  }
 
  .ball-image {
    width: 180px;
    top: -60%;
  }
 
  .image-6 {
    width: 300px;
    left: -10%;
  }
 
  .center-img {
    width: 90%;
    top: -6rem;
  }
 
  .below-right-img {
    display: none;
  }
}
 
/* Hide the below-right-img section only on screens <= 450px */
@media screen and (max-width: 450px) {
  .below-right-img {
    display: none !important;
  }
}
 
@media screen and (max-width: 650px) {
  .main-header{
   width: 100%;
  }
}
 
 
 
@media (max-width: 400px) {
  .image-6{
    display: none;
  }
  .prize-img{
    height: 60px;
    display: none;
  }
  .rank-img{
    height: 35rem;
    width: 60rem;
  }
  .center-img{
    top: -20rem;
  }
  .footer{
    top: -10rem;
    height: 30rem;
    background-color: #080024;
  }
 
}
 
 
 
/* Extra small devices */
@media (max-width: 480px) {
  .form-title {
    font-size: 1rem;
  }
 
  .form-overlay label {
    font-size: 0.85rem;
  }
 
  .form-overlay input,
  .form-overlay select {
    font-size: 0.85rem;
  }
 
  .form-overlay button {
    width: 70%;
  }
 
  .banner-section {
    padding-top: 40px;
  }
 
  .main-header {
    height: 70px;
  }
 
  .main-header i.fa-right-to-bracket {
    font-size: 20px;
    right: 10px;
  }
 
  .step-image-5 {
    margin-top: -200px;
  }
 
  .ball-image {
    width: 150px;
    top: -50%;
  }
 
  .image-6 {
    width: 250px;
    top: -40%;
  }
}
 
 
/* Responsive (Mobile) */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    margin-left: -20%;
  }
 
  .social-icons {
    justify-content: center;
  }
}
 
 
/* Background setup */
.background {
  background: url('../images/OTP.png') no-repeat center center/cover;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}
 
/* Top-left Logo */
.top-left-logo {
  position: absolute;
  top: 20px;
  left: 20px;
}
 
.top-left-logo img {
  height: 80px;
  width: auto;
  margin-left: 40px;
}
 
 
/* Center Content Box */
.otp-form-container {
  max-width: 400px;
  margin: 0 auto;
  /* background-color: rgba(0, 0, 0, 0.3); transparent overlay */
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(5px);
  margin-top: 120px;
}
 
.otp-title {
  font-size: 55px;
  font-weight: bold;
  color: #fff;
}
 
.otp-subtitle {
  color: #ddd;
  font-size: 16px;
  margin: 15px 0 30px;
}
 
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
 
.otp-inputs input {
  width: 60px;
  height: 60px;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  border: none;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #000;
}
 
.resend-text {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 25px;
}
 
.resend-text a {
  color: #b6b6ff;
  text-decoration: underline;
}
 
.submit-btn {
  background-color: #d80000;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 18px;
  color: white;
  cursor: pointer;
  text-transform: lowercase;
}
 
/* complete section */
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;  /* Adjust as needed */
  height: auto;
  z-index: 2;
}
 
.completion-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  z-index: 3;
}
 
.completion-text h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}
 
.completion-text p {
  font-size: 20px;
  line-height: 1.5;
  color: #ccc;
}
 
@media (max-width: 600px) {
 
  .center {
  transform: translate(-50%, -50%);
  max-width: 400px;  /* Adjust as needed */
  height: auto;
  z-index: 2;
}
 
.completion-text {
  position: absolute;
  top: 47%;
  left: 50%;
}
 
 .completion-text h2 {
  font-size: 18px;
  font-weight: 600;
  /* margin-bottom: 10px; */
}
 
.completion-text p {
  font-size: 12px;
  /* line-height: 1.5; */
  color: #ccc;
}
}
 
/* new */
.quiz-container {
  display: flex;
  height: 100vh;
  position: relative;
}
 
/* Sidebar styling */
.sidebar {
  position: relative;
  width: 300px;
}
 
.sidebar img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
 
.sidebar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 8px;
}
 
/* Main content */
.main-content {
  position: relative;
  flex: 1;
  padding: 20px;
}
 
/* Top-right image */
.top-right-img {
  position: absolute;
  top: -23%;
  right: -17%;
  width: 50%;
  height: auto;
}
 
/* Center + overlapping images */
.center-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 55%;
  left: -2%;
}
 
/* .center-img {
  width: 200px;
  height: auto;
  z-index: 1;
} */
 
.overlap-img {
  position: absolute;
  width: 200px;
  height: auto;
  top: 55%; /* Adjust to control overlap */
  left: 45%;
  transform: translate(-50%, -50%) translate(50px, -50px);
  z-index: 2;
}
/* Hamburger icon */
.hamburger {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 30px;
  color: white;
  z-index: 1100;
  cursor: pointer;
  display: none;
}
 
/* Back arrow inside sidebar */
.back-arrow {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 2;
}
 
/* Sidebar hidden by default on mobile */
.sidebar {
  transition: left 0.3s ease-in-out;
}
 
.hamburger,
.back-arrow {
  display: none;
}
 
@media (max-width: 968px) {
  .hamburger,.back-arrow {
    display: block;
  }
 
  .sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* hide */
    height: 60vh;
    z-index: 1000;
    background-color: #000;
  }
 
  .sidebar.sidebar-open {
    left: 0;
  }
 
  .main-content {
    padding-left: 0;
  }
  .overlap-img{
    position: absolute;
  width: 200px;
  height: auto;
  top: 55%;
  left: 38%;
  transform: translate(-50%, -50%) translate(50px, -50px);
  z-index: 2;
}
}
 
.quiz-box {
  /* background: linear-gradient(to bottom right, #120e34, #1b1745); */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 700px;
  text-align: center;
  z-index: 10;
  position: absolute;
  top: 60%;
  left: 60%;
  transform: translate(-50%, -50%);
}
 
.question-count {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}
 
.question-text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #fff;
}
 
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
 
.option-btn {
  background: linear-gradient(145deg, #2a2750, #46426f);
  color: #fff;
  padding: 5px 10px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  text-align: left;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}
 
.option-btn span {
  background: #292361;
  color: #fff;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
}
 
.option-btn:hover {
  background: linear-gradient(145deg, #4d4a84, #39356c);
  transform: scale(1.02);
}
 
.footer-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #333;
}
 
.timer {
  font-size: 14px;
  color: #ccc;
  text-align: left;
}
 
.timer span {
  font-size: 22px;
  font-weight: bold;
  display: block;
  color: #fff;
}
 
.next-btn {
  background-color: #e40000;
  color: white;
  border: none;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}
 
.next-btn:hover {
  background-color: #5f0c0c;
}
 
@media (max-width: 768px) {
  .quiz-box {
    width: 85%;
    padding: 20px;
    top: 64%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
 
  .question-text {
    font-size: 18px;
  }
 
  .options-grid {
    grid-template-columns: 1fr; /* stack options vertically */
    gap: 15px;
  }
 
  .option-btn {
    font-size: 15px;
    /* padding: 10px 12px; */
  }
 
  .option-btn span {
    padding: 6px 12px;
    font-size: 14px;
    /* margin-bottom: 5px; */
  }
 
  .footer-section {
    /* flex-direction: column; */
    gap: -45%;
    align-items: flex-start;
  }
 
  .timer {
    font-size: 13px;
  }
 
  .timer span {
    font-size: 18px;
  }
 
  .next-btn {
    align-self: flex-end;
    /* padding: 10px 20px; */
    font-size: 14px;
  }
}
 
 
/* quiz.html section */
 
    .image-container {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 40%;
      top: 20%;
      left: 32%;
      max-width: 35%;
    }
 
    .center_image {
      width: 100%;
      height: auto;
      display: block;
    }
 
    .quiz-text {
      position: absolute;
      text-align: center;
    }
 
    .quiz-text h2 {
      font-size: 2em;
      font-weight: bold;
      margin-bottom: 5%;
    }
 
    .quiz-text p {
      font-size: 1em;
      line-height: 2;
      text-align: left;
      position: relative;
    }
 
    .quiz-text p i {
      margin-right: 8px;
    }
 
    .quiz-text .link-line {
      font-size: 1em;
      margin-top: 10px;
      position: relative;
      top: -85px;
    }
 
    .website {
      color: #9895EE;
    }
 
    .quiz-text a {
      color: #BB0000;
      text-decoration: none;
      margin-bottom: 60px;
    }
 
    .quiz-text .link-line a:hover {
      text-decoration: underline;
    }
 
    @media (max-width: 500px) {
  .image-container img {
    /* width: 90%; */
    display: none;
  }
   .quiz-text{
    position: relative;
    top: -20px;
   }
 
  .quiz-text h2 {
    font-size: 0.15em;
    }
 
  .quiz-text p {
    font-size: 0.15em;
    line-height: 0;
    text-align: left;
  }
 
  .quiz-text .link-line {
    font-size: 0.9em;
    top: -50px;
  }
 
}
 
 @media screen and (max-width: 767px) {
  .image-6{
    display: none;
  }
  .prize-img{
    height: 20rem;
    margin-right: -5rem;
  }
  .below-right-img{
    display: block;
    left: 25rem;
    top: -5rem;
    height: 100%;
    width: 50%;
  }
  .rank-img{
    width: 20rem;
  }
 }
 
 
    @media screen and (max-width: 767px) {
      .image-container {
        /* width: 90%; */
        left: 30%;
        top: 30%;
        flex-direction: column;
      }
        .center_image {
      width: 150%;
      height: auto;
      display: block;
    }
 
      .quiz-text {
        position: absolute;
        text-align: center;
        width: 120%;
        padding: 10px;
      }
 
      .quiz-text h2 {
        font-size: 1.4em;
        padding-bottom: 10px;
      }
 
      .quiz-text p {
        font-size: 0.95em;
        /* margin-top: 4px; */
        line-height: 1.6;
        text-align: left;
      }
 
      .quiz-text .link-line {
        position: static;
        margin-top: 10px;
      }
 
      .website {
        font-size: 0.95em;
        text-align: center;
        padding: 0 10px;
      }
    }
 
    /* login page */
    .email-input-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  width: 100%;
  max-width: 400px;
}
 
.email-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 12px;
  transition: 0
}
 
 
 
   @media screen and (max-width: 670px) {
  .image-container {
    position: relative;
    flex-direction: column;
    width: 90%;
    left: 5%;
    top: 25%;
    max-width: none;
  }
 
  .center_image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: none;
    margin-bottom: 20px;
  }
 
  .quiz-text {
    position: relative;
    width: 100%;
    text-align: left;
    padding: 0 15px;
  }
 
  .quiz-text h2 {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 10px;
  }
 
  .quiz-text p {
    font-size: 1em;
    line-height: 1.6;
    text-align: left;
  }
 
  .quiz-text p i {
    margin-right: 6px;
  }
 
  .website {
    font-size: 1em;
    text-align: center;
    margin-top: 10px;
    display: block;
  }
 
  .quiz-text a {
    color: #BB0000;
    text-decoration: none;
  }
 
  .quiz-text a:hover {
    text-decoration: underline;
  }
}
 
