.poster .title {
  top: 80%;
}

.main .menu {
  display: none;
}

.main #content::before {
  display: none;
}
.main {
  margin-top: 0; /* Reduce top margin */
  padding-top: 0; /* Remove padding at the top */
  width: 100%;
  max-width: none; /* Ensure full width */
  padding: 0;
  box-sizing: border-box; /* Include padding and border in width calculations */
}

.main #content {
  background-color: transparent !important;
  max-width: none; /* Allow full width for content */
  width: 100%;
  flex: 1;
  padding: 0;
  margin: 0 auto; /* Center the content */
}

.main #content .s1 .h1-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0px;
}

.h1-wrap {
  margin-top: 20px; /* Reduce the margin above the "Members" heading */
  margin-bottom: 0; /* Ensure no margin below the heading */
}

.s1 {
  padding-top: 0; /* Remove padding above Members section */
  margin-top: 0; /* Remove margin above Members section */
}

.main #content .s1 .h1-wrap h1 {
  position: relative;
  color: var(--mg);
  font-family: 'DM Sans', sans-serif;
  font-size: 40px;
}

.main #content .s1 .line {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 40px;
  column-gap: 20px;
}

.h1-wrap h1 {
  position: relative;
  color: var(--mg);
  font-family: 'DM Sans', sans-serif;
  font-size: 40px;
}

.main #content .s1 .h1-wrap h1::after {
  content: attr(data-text);
  display: block;
  position: absolute;
  z-index: 1;
  left: -8px;
  top: -8px;
  width: fit-content;
  height: 100%;
  word-wrap: nowrap;
  color: var(--mg);
  padding: 2px;
  -webkit-text-stroke: 8px transparent;
  background-color: var(--bg);
}

#content .card {
  position: relative;
  background-color: #fffdf7;
  width: 300px;
  border-radius: 20px;
  box-shadow: 6px 6px var(--mg);
  padding: 20px;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  transition: 1s;
  transform: scale(1);
}

#content .card .hole {
  top: 20px;
  right: 20px;
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--mg);
  overflow: hidden;
}

#content .card .hole::after {
  position: absolute;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--bg);
  top: 6px;
  left: 6px;
}

#content .card .mid {
  width: 75%;
  aspect-ratio: 1;
  position: relative;
}

#content .card .mid .avatar {
  position: relative;
  transform-style: preserve-3d;
  z-index: 4;
  width: 100%;
  height: 100%;
  border-radius: 10%;
  border: 10px solid var(--mg);
  background-color: #fffdf7;
  opacity: 1;
  transition: 1s;
  background-position: center;
  background-size: cover;
}

#content .card .mid .avatar::after,
#content .card .mid .avatar::before {
  width: 100px;
  height: 140px;
  display: block;
  content: "";
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
}

#content .card:hover .mid .avatar {
  opacity: .3;
}

#content .card .bot {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

#content .card .bot .name {
  color: var(--mg);
  color: #3f2b96;
  font-family: 'DM Sans', sans-serif;
  font-size: 25px;
  letter-spacing: .05px;
  font-weight: bold;
  text-align: center; /* Center the text horizontally */
  display: flex; /* Flexbox layout */
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Center items vertically */
}

#content .card .bot .tag {
  font-family: Nunito-Bold;
  background-color: var(--mg);
  font-size: 18px;
  color: #fffdf7;
  padding: 0 15px;
  border-radius: 20px;
}

#content .card .star {
  position: absolute;
  width: 50px;
  height: 80px;
  top: -30px;
  right: -20px;
  background-image: url(https://static.igem.wiki/teams/4628/wiki/star.svg);
  background-size: contain;
  background-repeat: no-repeat;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: 1s;
}

#content .card:hover .star {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

#content .card:hover {
  transform: scale(1.04);
  box-shadow: 15px 15px var(--mg);
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrollbars */
}

.slideshow {
  margin-top: 60px; /* Adjust as needed to push the carousel down */
  position: relative;
  width: 100%;
  height: calc(100vh - 60px); /* Adjust height to accommodate header */
  display: flex;
  justify-content: flex-start; /* Align text overlay to the left */
  align-items: center;
  margin-bottom: 0; /* Remove any bottom margin */
  overflow: hidden;
}

.text-overlay {
  width: 30%; /* Set the text overlay width to 30% */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding-left: 5vw;
  z-index: 2;
  background-color: rgba(45, 43, 61, 1); /* Solid background for better text visibility */
   /* Smoother gradient transition */
}

.carousel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 100%;
  background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(45, 43, 61, 1));
  background-size: 100% 100%;
  z-index: 1;
}


.text-overlay h1 {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
  font-family: 'DM Sans', sans-serif;
}

.text-overlay p {
  font-size: 1.2em;
}

.carousel {
  width: 70%; /* Set the carousel width to 70% */
  height: 100%;
  position: relative;
}

.carousel-images {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the entire slide area without distortion */
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-indicators .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-indicators .dot.active {
  background-color: white;
}

/* Add this CSS to create the overlay on the right side */
.carousel-right-side {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%; /* Cover the right half of the carousel */
  height: 100%;
  cursor: pointer;
  background-color: transparent; /* Ensure the background is transparent */
}


.modal {
  display: none; /* Ensures the modal is hidden */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
  position: relative;
  background-color: #fefefe; /* Ensures the background color is consistent */
  margin: auto;
  border: 1px solid #888;
  width: 80%; /* Adjust width */
  max-width: 800px; /* Ensures it doesn't get too wide */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation-name: animatetop;
  animation-duration: 0.4s;
  border-radius: 10px; /* Adds rounded corners to the modal */
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-body img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .modal-content {
        width: 90%;
    }
}

.modal {
  display: flex; /* Change to flex to center the modal box */
  align-items: center; /* Center modal vertically */
  justify-content: center; /* Center modal horizontally */
  position: fixed;
  z-index: 1050; /* High z-index to keep it above other content */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  overflow-y: auto; /* Allow vertical scroll if needed */
  background-color: rgba(0, 0, 0, 0.4);
  display: none; /* Ensure the modal is hidden by default */
}


.modal-content {
  padding: 0;
  position: relative;
  background-color: #FFF;
  margin: auto;
  border: 1px solid #888;
  width: 80%; /* Adjust width */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation-name: animatetop;
  animation-duration: 0.4s
}


.modal-header span {
  margin: 0;
  font-weight: normal;
  color: #333;
  display: inline-block;
}

.modal-body {
  position: relative;
  padding: 20px;
  display: flex;
  justify-content: start;
  align-items: center;
  border-radius: 0 0 10px 10px; /* Matches the rounding of the modal at the bottom */
}

.modal-body img {
  width: 100%; /* Set the width to 100% of its container */
  height: auto; /* Maintain the aspect ratio by adjusting the height automatically */
  max-width: 250px; /* Limit the maximum width to 200px */
  max-height: 250px; /* Limit the maximum height to 200px */
  object-fit: contain; /* Preserve the image's aspect ratio and ensure it fits within the container */
  border-radius: 10px;
  margin-right: 20px;
}

.modal-body .bio {
  font-size: 16px;
  color: #666;
  overflow: hidden;
  text-align: left;
  line-height: 1.5;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px; /* Decrease the font size */
  font-weight: normal; /* Make the font weight normal */
  position: relative;
  right: 10px; /* Shift the button slightly to the left */
  top: 10px; /* Adjust vertical alignment */
}

.close:hover, .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Animation for the modal appearing */
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

.modal-header {
  padding: 5px 10px; /* Reduce padding */
  margin-bottom: 0; /* Ensure there's no extra margin */
  background-color: #fefefe;
  color: #333;
  border-bottom: 1px solid #dee2e6;
  border-radius: 10px 10px 0 0;
}


#modal-tag {
  font-size: 25px; /* Adjust the font size slightly smaller than the header */
  color: #555; /* Slightly lighter color for the tag */
  margin-top: 5px; /* Add some space between the header text and tag */
  width: 100%; /* Ensure the tag takes full width */
  text-align: left; /* Align the text to the left */
}

.modal-content .modal-header #modal-tag {
  margin: 0; /* Remove any margin that might add extra space */
  padding: 0; /* Remove padding */
}

#modal-tag {
  margin-top: 5px; /* Add space between the name and tag */
  text-align: left;
}

