@import url('https://fonts.googleapis.com/css2?family=Playwrite+HU:wght@100..400&family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

body {
  font-family: "Roboto";
  margin: 0;
  height: 100%;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure footer stays at the bottom */
}

#screen1, #screen2 {
  flex: 1; /* Allow screens to take up available space */
}

/* Footer */
footer {
  margin-top: 100px; /* space above footer */
  background-color: #000;
  color: white; /* text color */
  text-align: center; /* center the text */
  padding: 1rem; /* some vertical padding */
  position: relative; /* relative positioning for footer */
  width: 100%; /* full width */
  box-sizing: border-box; /* ensure padding doesn't affect width */
}

.title {
    background-color: #f9c74f; /* yellow color */
    color: black; /* text color */
    text-align: center; /* center the text */
    padding: 1rem; /* some vertical padding */
    margin: 0; /* remove default margins */
    width: 100%; /* full width */
    box-sizing: border-box; /* ensure padding doesn't affect width */
}

/* Navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000; /* Black background */
  padding: 1rem 2rem;
  color: #fff;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none; /* Remove underline from links */
}

.logo {
  width: 40px; /* adjust logo size */
  height: 40px;
  margin-right: 10px;
}

.business-name {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-right a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem;
}

.navbar-right a:hover {
  background-color: #333;
  border-radius: 4px;
}

/* Dropdown styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #000;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; /* Prevent hover-trigger until visible */
  z-index: 1;
}

.dropdown-content a {
  color: #000;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  white-space: nowrap; /* Keep dropdown items on a single line */
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* Enable interaction once visible */
}

/* Hamburger styling */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001; /* Make sure it's clickable */
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar-right {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: #000;
    flex-direction: column;
    gap: 0;
    text-align: center;
    transition: left 0.3s ease-in-out;
    z-index: 1000; /* On top */
  }

  .navbar-right.active {
    left: 0;
  }

  .nav-item {
    margin: 16px 0;
  }
}

/* Main content */
.title {
  background-color: white;
  color: black;
  text-align: center;
  padding: 1rem;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.form-container {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-direction: column;
  align-items: center;
}

#syllabus-container {
  display: flex;
  justify-content: center;
  gap: 38px;
}

.syllabus-btn {
  border: 2px solid black;
  background-color: transparent;
  color: black;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.horizontal_arrangement {
  display: flex;
  gap: 2.3rem;
}

.syllabus-btn.active {
  color: black;
}

#biology-btn.active {
  background-color: #38b000;
}

#chemistry-btn.active {
  background-color: #f9c74f;
}

#physics-btn.active {
  background-color: #00a5cf;
}

#year {
  width: 100%;
  height: 25px;
}

.question-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.2rem;
}

.q-number {
  font-weight: 600;
}

.options {
  display: flex;
  gap: 1rem;
}

.option {
  width: 40px;
  height: 40px;
  border: 2px solid #001f2f;
  background: white;
  font-size: 1rem;
  transition:
  border-radius 300ms ease,
  font-weight 300ms ease;
  border-radius: 4px; /* square by default */
  cursor: pointer;
  color: black;
}

/* selected option becomes a circle + bold */
.option.selected {
  border-radius: 50%;
  font-weight: bold;
  background-color: #333;
  color: whitesmoke;
}

.mcq-container {
  margin-top: 50px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.ten-group {
  display: flex;
  flex-direction: column;
  gap: 35px;

  opacity: 0;
  transform: translateX(-100px);
}

.ten-group.visible {
  animation: bounceInLeft 0.9s ease forwards;
}

@keyframes bounceInLeft {
  0% {
    opacity: 0;
    transform: translateX(-200px);
  }
  60% {
    opacity: 1;
    transform: translateX(30px);
  }
  80% {
    opacity: 1;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1; 
    transform: translateX(0);
  }
}

.twenty {
  display: flex;
  gap: 35px;
}

@media (max-width: 1200px) {
  .twenty {
    flex-direction: column;
  }
}

@media (max-width: 786px) {
  .twenty {
    flex-direction: column;
    gap: 35px;
  }

  .ten-group {
    gap: 35px;
  }

  .mcq-container {
    display: flex;
    flex-direction: column;
  }
}

/* Basic style for the buttons */
.mobile-buttons {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
}

/* Style each button */
.mobile-buttons button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

/* Hide buttons on larger screens */
@media (min-width: 768px) {
    .mobile-buttons {
      display: none;
    }
}

.hidden {
   display: none;
}

.check-button {
    width: 16rem;
    font-size: 20px;
    padding: 5px 10px 5px 10px;
    border-radius: 40px;
    border-color: black;
    color: black;
    transition: 0.2s ease-in;
}

.check-button:hover {
    transition: 0.2s ease-in;
    background-color: black;
    color: white;
    cursor: pointer;
}

/* Screen switch */
#screen1, #screen2 {
    transition: opacity 0.5s ease;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
    display: block;
}

/* Screen 2 */
/* Correct #67AE1F */
/* Wrong #E62525 */
/* Missed #D3AF23 */
/* -------- */
/* -------- */
.heading-2 {
    font-family: Arial, sans-serif;
    color: black;
    display: flex;
    flex-direction: column;
    margin: 2% 10% 0px 10%;
    font-size: 1rem;
}

.custom-line-2 {
    border: none;
    height: 2px;
    background-color: black;
    width: 100%;
}

.heading-2 p {
    margin: 7px 0px 7px 0px;
    padding: 0;
}

.heading-2 img {
    width: 16px;
    height: 16px;
}

.heading-2 section {
    display: flex; 
    gap: 10px; 
    align-items: center;
}

.results-menu {
    margin-top: 15px;
    display: flex;
    justify-content: space-between; 
    align-content: center; 
    width: 100%;
}

@media (max-width: 500px) {
  .results-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

/* Percentage circle */
.circle-container {
  position: relative;
  width: 120px;
  height: 120px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: #e6e6e6;
  stroke-width: 10;
}

.ring-fill {
  fill: none;
  stroke: #007bff;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314.16; /* 2πr with r = 50 */
  stroke-dashoffset: 314.16;
  transition: stroke-dashoffset 1.2s ease-out;
}

.percentage-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 24px;
  color: #333;
}

/* Bar styles */
.bar-container {
  width: 100%;
  display: none;
  flex-direction: column;
  margin-bottom: 30px;
}

.bar-track {
  width: 100%;
  height: 18px;
  background: #e6e6e6;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: #007bff;
  border-radius: 6px;
  transition: width 1.2s ease-out;
}

/* Media Query: bar on mobile */
@media (max-width: 500px) {
  .circle-container {
    display: none;
  }

  .bar-container {
    display: flex;
  }
}

/* Student selected choices */
.question-box2 {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.2rem;
}

.q-number2 {
  font-weight: 600;
}

.options2 {
  display: flex;
  gap: 1rem;
}

.option2 {
  width: 40px;
  height: 40px;
  border: 2px solid #001f2f;
  background: white;
  font-size: 1rem;
  border-radius: 100%; /* square by default */
  color: black;
}

.mcq-container2 {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10%;
  margin-right: 10%;
  margin-bottom: 5%;
  gap: 63px;
}

.ten-group2 {
  display: flex;
  flex-direction: column;
}

.twenty2 {
  display: flex;
  gap: 63px;
}

.arrow-img {
  width: 27px;
  height: 27px;
}

/* User selection on hover */
@keyframes grey-out {
  to { opacity: 0.3; }
}
.question-box2:hover .option2 {
  animation: grey-out .45s forwards;
}

/* Show the arrow */
.arrow-img { 
  opacity:0;
  transform:translateX(-15px);
  transition:opacity .2s, transform .45s;
}
@keyframes arrow-appear {
  from { transform:translateX(-15px); opacity:0; }
  to   { transform:translateX(0);  opacity:1;  }
}
.question-box2:hover .arrow-img {
  animation: arrow-appear .45s forwards;
}

/* Mark scheme */
.answer-text { 
  opacity: 0; 
  transition: opacity .25s; 
  font-size: 1.6rem;
}
.question-box2:hover .answer-text {
  animation: fade-in .25s forwards;
  animation-delay:.45s;
}
@keyframes fade-in { to { opacity:1; } }

/* Change the layout of the options to make them visible across all devices */
@media (max-width: 1300px) {
  .twenty2 {
    flex-direction: column;
    gap: 0px;
  }

  .mcq-container2 {
    gap: 0px;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .twenty2 {
    flex-direction: column;
    gap: 0px;
  }

  .ten-group2 {
    gap: 0px;
  }

  .mcq-container2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile side navigation buttons */
.mobile-buttons-screen2 {
    position: fixed;
    top: 85%;
    left: 80%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 5px;
}

.mobile-buttons-screen2 button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-buttons-screen2 {
      display: none;
    }
}