.nav_container {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  top: 0;
  z-index: 999;
  margin-top: 10px;
}

.navbar {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.3rem;
  border-radius: 45px;
  background: var(--clr5);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.navbar-nav {
  display: flex;
  width: 90%;
}

.nav-item {
  background-color: var(--clr4);
  border-radius: 25px;
  height: min-content;
  display: flex;
  place-content: center;
  white-space: nowrap;
}
.nav-item:hover {
  background-color: var(--clr3);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border-radius: 25px;
  height: min-content;
  display: flex;
  place-content: center;
  white-space: nowrap;
}
.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar li {
  position: relative;
}

.navbar a {
  color: var(--clr3);
  padding: 14px 20px;
  text-decoration: none;
  background-color: var(--clr4);
  display: block;
  border-radius: 25px;
}


.navbar a:hover {
color: var(--clr4);
padding: 14px 20px;
text-decoration: none;
background-color: var(--clr3);
display: block;
border-radius: 25px;
}

.navbar .dropdown-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  border: 4px solid var(--clr5);
  background-color: var(--clr3);
  
  padding: 0.3rem;
  margin-top: 0.3rem;
  z-index: 1000;
  /* Increased z-index */
  border-radius: 25px;
  transition: visibility 0s 0.3s, opacity 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 11rem;
}

.navbar .dropdown-item {
  padding: 12px 16px;
  color: var(--clr5);
  background-color: transparent;
  text-decoration: none;
  display: flex;
  /* Changed to flex */
  align-items: center;
  /* Align items vertically 
  background-image: url(https://static.igem.wiki/teams/5036/assets/gauze.svg);
background-repeat: no-repeat;
background-size:auto  */
}
.navbar .dropdown-item:hover {
  padding: 12px 16px;
  color: var(--clr3);
  background-color: var(--clr1);
  text-decoration: none;
  display: flex;
  /* Changed to flex */
  align-items: center;
  /* Align items vertically 
  background-image: url(https://static.igem.wiki/teams/5036/assets/gauze.svg);
background-repeat: no-repeat;
background-size:auto  */
}

.navbar .nav-item.dropdown {
  position: relative;
}

.navbar .nav-item.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}

.navbar .nav-item.dropdown:hover .dropdown-menu,
.navbar .dropdown-menu:hover {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.dropdown-dot {
  width: 2rem;
  height: auto;
  padding: 0;
  margin-right: 10px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  transition: transform 0.3s;
}

.dropdown-item:hover {
  transform: scale(1.05);
}

.home_icon {
  height: 4rem;
  width: auto;
  padding: 0;
}

.nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  margin-right: 1rem;
  background-color: var(--clr3);
  height: 100%;
  border-radius: 50%;
  padding: 0.5rem;
  transition: transform 0.3s;
}

.nav-home:hover {
  transform: scale(1.1);
}

.paper-and-sidenav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 5rem;
}

.side-nav {
margin-top: 19rem;
width: 25vw;
font-size: 1.4rem;
min-width: 150px;
background: #FDEBBB;
padding: 1rem;
border-radius: 25px;
position: sticky;
top: 19rem;
height: min-content;
display: flex;
flex-direction: column;
text-align: left;
align-items: left;
gap: 0.5rem;
padding-right: 2rem;
align-self: flex-start;
margin-right: 0;
box-shadow: 0 0 1000px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.2), 0 0 40px rgba(255, 255, 255, 0.1);
border: solid .31rem var(--clr4);
z-index: 99;
}

.side-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s;
}

.side-nav-item.active {
  transform: translateX(0.5rem);
  transform: scale(1.1);

  /* Adjust the scale factor as needed */
  font-weight: bold;
  /* Optional: make the active link bold */
}

.sidebar-icon {
  height: 2rem;
  padding: 0;
  opacity: 0.5;

}

.sidebar-link {
  text-decoration: none;
  color: var(--clrletter);
}

h1,
h2,
h3,
h4,
h5 {
  scroll-margin-top: 10rem;
  /* Adjust the value as needed */
}

.menu-item {
  transition: transform 0.3s;
}

.menu-item:hover {
  transform: scale(1.1);
}


/* footer */
.footer-bg {
position:absolute;
z-index:-1;
left:0;
bottom:0;
width: 100vw;
max-width:100%;
margin:0;
padding:0;
filter: drop-shadow(0px 0px 2px #c5deff);
}
footer {
position:relative;
width:100vw;
bottom:0;
max-width:100%;
display: block; z-index:30;
color:#c5deff !important;
height:17vw; 
padding-bottom:0;
padding-top: 550px;
margin:0;
overflow-y: hidden;
background: transparent !important;
}
footer section.acknowledgements {
position:absolute;
left:1.4vw;
bottom:4.2vw;
z-index:2;
}
.acknowledgements {
filter: drop-shadow(0px 0px 2px #c5deff);
}
section.footer-nav {
position:absolute;
bottom:1vw;
left:57vw;
width:30vw;
height:10vw;
}
.footer-nav h5 {
margin:0.1vw
}
.footer-links {
display:flex;
flex-wrap:wrap;
align-items:flex-start;
width:30vw;
height:8vw;
}
.footer-links li {
list-style:none;
width:15vw;
}
.footer-links a {
color:#54428E;
font-size:1.2vw;
text-decoration: none;
align-items: center;
}
.footer-links a:hover {
color:#1D61B7;
text-shadow: 0px 0px 3px #c5deff;

}
footer section.copyright {
font-size:1vw;
position: absolute;
left: 1.4vw;
bottom:0vw;
}
.copyright p {
font-weight:600 !important;
color: #c5deff;
line-height:1vw;
font-weight:400;

}
.copyright a {
color:#c5deff;
text-decoration: none;
}
.copyright a:hover {
color:#ffffff;
text-shadow: 0px 0px 3px #c5deff;
}
section.contact-us {
 position: absolute;
 right: 3vw;
 bottom:3vw;
}
.contact-icon {
display:flex;
}
.contact-icon img{
margin:0 0.5vw;
}
.contact-icon img:hover{
filter: drop-shadow(0px 0px 1.5px #c5deff);
}

.contact-email {
transform: translateY(0.2vw)
}

div.contact-wechat:hover::before {
content:"";
width:5vw;
height:5vw;
background-image: url(afcm-qrcode.svg);
position:absolute;
z-index:4;
bottom:3.7vw;
left:-1.3vw;
}
div.contact-wechat:hover::after {
content:"";
width:6.5vw;
height:6.5vw;
background-color: #c5deff;
border-radius: 1vw;
position:absolute;
bottom:3vw;
left:-2vw;
box-shadow: 0px 0px 5px #a4c7f5;
}

div.contact-email:hover::before {
content:"igem@afcm.edu.eg";
text-align: center;
font-size:1vw;
line-height: 3vw;
color:#54428E;
width:17vw;
height:3vw;
background-color:#c5deff;
box-shadow: 0px 0px 5px #a4c7f5;
border-radius:1vw;
position:absolute;
z-index:4;
bottom:3vw;
left:-14vw;
}




.popup-container .button {
  height: 40px;
  line-height: 40px;
  background: var(--clr1);
  padding: 0 30px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  color: var(--clr3);
  cursor: pointer;
}
.popup-container .popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: 400ms all;
}
.popup-container .popup > label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.popup-container .popup .inner {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--clr3);
  min-width: 300px;
  box-sizing: border-box;
  transition: 400ms all;
  z-index: 10;
  max-height: 80%;
  overflow: auto;
  border-radius: 10px;
  border: solid 5px var(--clr1);
}
.popup-container .popup .inner .title {
  height: fit-content;
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  position: sticky;
  top: 0;
  background: var(--clr1);
  color: var(--clr3);
  font-size: 2rem;
}
.popup-container .popup .inner .title h6 {
  font-size: 1.95rem;
  font-weight: 500;
}
.popup-container .popup .inner .title label {
  font-size: 1.75rem;
  color: #999;
  cursor: pointer;
  right: 0px;
  margin-right: 0px;
}
.popup-container .popup .inner .title label:hover {
  color: #222;
}
.popup-container .popup .inner .content {
  padding: 5px 15px 15px;
}
.popup-container .popup .inner .content ul li {
  margin-bottom: 15px;
}
.popup-container .popup .inner .content ul li:last-child {
  margin-bottom: 0;
}
.popup-container .popup .inner .content ul li input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  font-size: 12px;
}
.popup-container .popup .inner .content ul li input:focus {
  outline: 0;
  border-color: #272643;
}
.popup-container .popup .inner .content ul li button {
  width: 100%;
  height: 30px;
  border-radius: 25px;
  border: none;
  background: var(--clr1);
  color: var(--clr3);
  cursor: pointer;
}
.popup-container .popup .inner .content p {
  font-size: 1.45rem;
  margin-bottom: 15px;
}
.popup-container .popup .inner .content p:last-child {
  margin-bottom: 0;
}
.popup-container .popup .inner .content .close-btn {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}
.popup-container .popup .inner .content .close-btn label {
  background: rgba(0, 0, 0, 0.05);
  display: block;
  line-height: auto;
  text-align: center;
  font-size: 1.75rem;
  color: var(--clr4);
  border-radius: 3px;
  cursor: pointer;
}
.popup-container .popup .inner .content .close-btn label:hover {
  background: rgba(0, 0, 0, 0.1);
}
.popup-container > input {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.popup-container > input:checked + .popup {
  opacity: 1;
  visibility: visible;
}

.popup-container > input:checked + .popup .inner {
  top: 50%;
}



.headbgd{
position: relative;
height: 100vh;
width: 100%;
 object-fit: cover;
padding-bottom: 50px;
top: -70px;
z-index: -3;
}

.headbgd::after{
content:'' ;
position: absolute;
height: 110vh;
width: 110%;
background-image: url(https://static.igem.wiki/teams/5036/headers/trans.png);
background-size: contain;
background-repeat: no-repeat;
bottom:-115vh;
z-index: 91;
left:-30px
} 

.headimg {
width: 100%;
height: 115vh;
}
.headhead {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 5rem;   
color: var(--clr3);
font-family: 'font', serif;
text-align: center;
z-index: 1000;
border: #0E1522;
width:80%;
text-decoration: border solid 50px #0E1522;
-webkit-text-stroke-width: .1rem;
-webkit-text-stroke-color: var(--clr4);
border-radius: 25px;
padding: 10px;
-webkit-animation: glow 5s ease-in-out infinite alternate;
-moz-animation: glow 5s ease-in-out infinite alternate;
animation: glow 5s ease-in-out infinite alternate;
}


@-webkit-keyframes glow {
from {
text-shadow: 0 0 10px #ffffff00, 0 0 20px #ffffff00, 0 0 30px #0e152200, 0 0 40px  #0e152200, 0 0 50px  #0e152200, 0 0 60px  #0e152200, 0 0 70px  #0e152200;
}
to {
text-shadow: 0 0 20px var(--clr1), 0 0 30px var(--clr1), 0 0 40px var(--clr1);
}
}