@import url('https://fonts.googleapis.com/css?family=Montserrat:500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Dancing+Script&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html {
	scroll-behavior: smooth;
}

/*Styling SCROLLBAR*/
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: #8ab92d;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8ab92d; 
}


/* Navbar Container */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 1px 1px 10px rgba(0,0,0,0.1);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

/* Logo */
.logo img {
  height: 45px;
  width: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}
.logo img:hover {
  opacity: 0.8;
}

/* Navigation Links */
.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav ul li a {
  font-size: 14px;
  font-weight: 500;
  color: #2E3D49;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.3s;
}

.nav ul li a:hover {
  color: #8ab92d;
}

.nav ul li img.icon {
  width: 20px;
  margin-right: 8px;
}
/* Hamburger Icon */
.switch-tab {
  display: none;
  cursor: pointer;
}
.switch-tab img {
  width: 28px;
  height: 28px;
}
/* Basic styles */
.hamburger {
  font-size: 24px;
  cursor: pointer;
  display: none; /* hidden on desktop */
}

/* Mobile view: show hamburger, hide menu */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 10px;
  }
  .nav-links.active {
    display: flex;
  }
}

/* MOBILE STYLES */
@media only screen and (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* Show hamburger on mobile */
  .switch-tab {
    display: block;
  }

  /* Hide menu by default */
  .nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
  }

  /* Show when active */
  .nav ul.active {
    display: flex;
  }

  .nav ul li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
  }
  .nav ul li:last-child {
    border-bottom: none;
  }
}
/* MOBILE MENU */
@media (max-width: 768px) {
  #list-switch {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 10px;
  }
  #list-switch.active {
    display: flex;
  }
}


/*TITLE*/
.title {
	margin-top: 50px;
	display: grid;
	justify-content: center;
	align-items: center;
}
.title span{
	margin-top: 20px;
	font-weight: bold;
	font-family: 'Open Sans', sans-serif;
	font-size: 30px;
	/*color: #2E3D49;*/
	color: #000000;
}
.title .shortdesc {
	font-family: 'Open Sans', sans-serif;
	font-size: 20px;
	color: #efefef;
	margin-bottom: 50px;
	text-align: center;
	/*display: none;*/
}

.title button {
	padding: 20px 2%;
	border: none;
	border-radius: 5px;
	color: #fff;
	background: #8ab92d;
	outline: none;
	cursor: pointer;
	box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
.title button:hover {
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/*PANEL*/
.panel {
	display: none;
	width: 100%;
	height: 100vh;
	position: fixed;
}
/*Different Topics Container*/
.left-side {
	background: #FFF;
	height: 100%;
	width: 25%;
	display: flex;
	justify-content: center;
	box-shadow: inset 0 0 20px rgba(0,0,0,0.7),
					0 0 30px rgba(0,0,0,0.5);
}

/*Google Form Container*/
.right-side {
	background: #fff;
	height: 100%;
	width: 75%;
}
.left-side ul {
	margin: 50px;
	margin-top: 150px;
}
.left-side li {
	list-style-type: none;
	cursor: pointer;
	color: #8ab92d;
	font-weight: 700;
	font-size: 1.2em;
	margin-bottom: 20px;
}
.left-side li:hover {
	color: #000;
	font-size: 1.5em;
	font-weight: 900;
	transition: .3s ease-in-out;
}

#quiz-container {
	margin-top: 80px;
	width: 100%;
	height: 100%;
}

.quiz-frame {
	width: 100%;
	height: 95vh;
	border: none;
}
.main-frame {
	background: url(../images/extra/quiz.jpg);
	background-size: cover;
	background-position: center;
}
.main-frame p {
	font-size: 5em;
	font-weight: 900;
	color: #2E3D49;
}


.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
  }
  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease-in-out;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 768px) {
  .panel {
    flex-direction: column;
    display: block;
    height: auto;
    overflow-y: auto;
    z-index: 1000;
  }

  .left-side {
    display: none;
    width: 100%;
    height: auto;
    box-shadow: none;
    padding: 20px 10px;
  }

  .left-side ul {
    margin: 0;
    padding: 0;
    margin-top: 20px;
  }

  .left-side li {
    font-size: 1.1em;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
  }

  .left-side.show {
    display: block;
    position: absolute;
    top: 50px;
    left: 0;
    background: #fff;
    width: 80%;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  }

  .right-side {
    width: 100%;
    height: auto;
    padding-top: 10px;
  }
}
@media screen and (max-width: 768px) {
  .quiz-menu-toggle {
    display: block;
    position: fixed;
    top: 60px;
    left: 10px;
    z-index: 1001;
    background-color: #8ab92d;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 16px;
  }
}
@media screen and (max-width: 768px) {
  .title {
    margin-top: 80px;
    padding: 0 20px;
    text-align: center;
  }

  .title span {
    font-size: 24px;
  }

  .title .shortdesc {
    font-size: 16px;
    color: #ddd;
  }

  .title button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
  }
}
@media screen and (max-width: 768px) {
  .quiz-frame {
    height: calc(100vh - 120px); /* Adjust height for mobile screen minus toggle button */
  }
}
.left-side.show {
  animation: slideInLeft 0.3s ease forwards;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background: #000; /* fallback */
}

.main-frame {
  background: url(../images/extra/b1.jpg) no-repeat center center;
  background-size: cover;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.title span {
  font-size: 24px;
  font-weight: bold;
  color: #8ab92d;
}

.shortdesc p {
  font-size: 16px;
  color: white;
  margin: 10px 0;
}

.title button {
  padding: 15px 30px;
  font-size: 18px;
  background-color: #8ab92d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Hide quiz panel initially */
#panel {
  display: none;
  height: 100vh;
  background: url(../images/extra/b1.jpg) no-repeat center center;
  background-size: cover;
}


.title {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Full screen height */
  text-align: center;
}

.title-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-box {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(239, 239, 239, 0.2);
}

.text-box span {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #8ab92d;
  margin-bottom: 10px;
}

.shortdesc p {
  font-size: 16px;
  color: #ffffff;
  margin: 0;
}

button {
  padding: 12px 24px;
  font-size: 16px;
  background-color: #8ab92d;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}


/*FOOTER*/
footer {
  color: #e5e8ef;
  background: #000d;
  padding: 50px 0;
}
footer .footer-container {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap-reverse;
}
footer .social-media img {
  width: 22px;
}
footer .logo {
  width: 180px;
  color: #fff;
}
footer .social-media a {
  margin-right: 10px;
  font-size: 22px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.social-media a img {
  width: 30px; /* Set consistent size */
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.social-media a:hover img {
  transform: scale(1.2); /* Slight zoom */
  filter: brightness(1.2) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2)); /* Glow */
  cursor: pointer;
}
footer .right-col h1 {
  font-size: 26px;
}
.footer-container p a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 6px;
}

.footer-container p a:hover {
  color: #8ab92d;
  text-decoration: underline;
}

.footer-container p img {
  vertical-align: middle;
  width: 18px;
  margin-right: 6px;
}

footer .border {
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #8ab92d, #8ab92d);
  margin: 2px;
}
footer .newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
footer input::placeholder {
  color: white !important;
}
footer .txtb {
  flex: 1;
  padding: 18px 40px;
  font-size: 16px;
  background: #343a40;
  border: none;
  font-weight: 700;
  outline: none;
  border-radius: 5px;
  min-width: 260px;
  margin-top: 20px;
  color: white;
}
footer .btn {
  margin-top: 20px;
  padding: 18px 40px;
  font-size: 16px;
  color: #f1f1f1;
  background: linear-gradient(to right, #8ab92d, #8ab92d);
  border: none;
  font-weight: 700;
  outline: none;
  border-radius: 5px;
  margin-left: 20px;
  cursor: pointer;
  transition: opacity 0.3s linear;
}
footer .btn:hover {
  opacity: 0.7;
}

.developer {
  text-align: center;
  color: #e5e8ef;
  margin-top: 30px;
  font-size: 1.2rem;
}
.rishav-name {
  font-weight: bold;
  color: #b0a8a8;
}

.rishav-name {
  color: #b0a8a8;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  cursor: pointer;
}

.rishav-name:hover {
  color: #8ab92d;
  text-decoration: underline;
}

@media only screen and (max-width: 768px) {
  footer {
    text-align: center;
    padding: 30px 0;
  }

  footer .footer-container {
    flex-direction: column;
    align-items: center;
  }

  footer .left-col,
  footer .right-col {
    width: 100%;
    margin-bottom: 30px;
  }

  footer .logo {
    margin: 0 auto 20px;
  }

  footer .social-media {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  footer .social-media a {
    margin-right: 0;
  }

  .footer-container p {
    text-align: center;
    line-height: 1.6;
  }

  .footer-container p a {
    display: inline-block;
    margin: 5px 0;
  }

  footer .newsletter-form {
    flex-direction: column;
  }

  footer .txtb,
  footer .btn {
    width: 90%;
    margin: 10px auto 0;
    text-align: center;
  }

  footer .btn {
    margin-left: 0;
  }

  .developer {
    font-size: 1rem;
    padding: 0 20px;
    line-height: 1.4;
  }
}


/*For Responsive Website*/
@media screen and (max-width: 960px) {
	.footer-container {
		max-width: 600px;
	}
	.right-col {
		width: 100%;
		margin-bottom: 60px;
	}
	.left-col {
		width: 100%;
		text-align: center;
	}
	.social-media {
		display: flex;
		justify-content: center;
	}
}

@media screen and (max-width: 700px) {
	footer .btn{
		margin: 0;
		width: 100%;
		margin-top: 20px;
	}
}