/* Background team image */
.bg-hero { 
  background-image: url('https://static.igem.wiki/teams/5253/header/collaborationss.png');
  background-size: 40% auto; /* Ensure the whole image is visible */
  background-position: right -20px bottom -60px; /* Position image to the right */
  background-repeat: no-repeat;
  height: 300px; /* Height of the container */
  width: 100%; /* Full width */
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .bg-hero {
      background-size: 40% auto; /* Make the image cover the full width */
      background-position: right bottom -10px; /* Align to the bottom */
      height: 250px; /* Reduce height for smaller screens */
  }
}

@media (max-width: 480px) {
  .bg-hero {
      background-size: 40% auto; /* Ensure the image fully covers smaller devices */
      background-position: right bottom; /* Keep it centered and aligned at the bottom */
      height: 200px; /* Further reduce the height */
  }
}

/* CSS for the title block */
.title-block h1 {
  color: #25336b; /* Replace with your desired color */
  font-size: 60px; /* Adjust as needed */
  font-weight: bold; /* Adjust as needed */

}

.main-content {
    padding-right: 45px;
  }
  
  /* -------- Polaroid styling -------- */
   
  .wrapper {
    width: 100%;
    padding: 0 2rem;
    text-align: center;
  }
  .polaroid {
    background: #fff;
    padding: 1rem;
    box-shadow: 0 0.2rem 1.2rem rgba(0,0,0,0.2);
    font-family: 'Avenir', 'Century Gothic', sans-serif;
    
  }
  .polaroid > img{
    width: 100%;
    height: auto;
  }
  .caption {
    font-size: 1.8rem;
    text-align: center;
    line-height: 2em;
    font-family: 'Avenir', 'Century Gothic', sans-serif;
  }
  .item {
    width: 60%;
    display:inline-flex;
    margin-top: 2rem;
    filter: grayscale(50%);
  }
  
  .item .polaroid:before {
    content: '';
    position: absolute;
    z-index: -1;
    transition: all 0.35s;
  }
  .item:nth-of-type(4n+1) {
    transform: scale(0.8, 0.8) rotate(5deg);
    transition: all 0.35s;
  }
  .item:nth-of-type(4n+1) .polaroid:before {
    transform: rotate(6deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    right: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.4);
  }
  .item:nth-of-type(4n+2) {
    transform: scale(0.8, 0.8) rotate(-5deg);
    transition: all 0.35s;
  }
  .item:nth-of-type(4n+2) .polaroid:before {
    transform: rotate(-6deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    left: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.4);
  }
  .item:nth-of-type(4n+4) {
    transform: scale(0.8, 0.8) rotate(3deg);
    transition: all 0.35s;
  }
  .item:nth-of-type(4n+4) .polaroid:before {
    transform: rotate(4deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    right: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.3);
  }
  .item:nth-of-type(4n+3) {
    transform: scale(0.8, 0.8) rotate(-3deg);
    transition: all 0.35s;
  }
  .item:nth-of-type(4n+3) .polaroid:before {
    transform: rotate(-4deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    left: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.3);
  }
  .item:hover {
    filter: none;
    transform: scale(1, 1) rotate(0deg) !important;
    transition: all 0.35s;
  }
  .item:hover .polaroid:before {
    content: '';
    position: absolute;
    z-index: -1;
    transform: rotate(0deg);
    height: 90%;
    width: 90%;
    bottom: 0%;
    right: 5%;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.2);
    transition: all 0.35s;
  }
  


  /* -------------------- Pharma Danmark Article ---------------- */
  #pharma-danmark {
      padding-top: 30px;
    }
    
    .pharma-danmark {
      display: flex;  /* Use flexbox to align children horizontally */
      justify-content: space-between; /* Space out the child elements */
      flex-wrap: wrap; /* Allow wrapping if the screen is too small */
    }
    
    /* Flexbox container for the articles */
    .pharma-danmark-container {
      display: flex;
    }
    
    .pharma-danmark-article-1, .pharma-danmark-article-2 {
      flex: 1; /* Make sure both articles take equal space */
      max-width: 50%; /* Adjust the width to prevent overflow */
      text-align: center; /* Center the content within each article */
    }
    
    .pharma-danmark-article-1 img, .pharma-danmark-article-2 img {
      width: 100%; /* Ensure images take up the full width of their container */
      height: auto; /* Maintain aspect ratio */
    }
    
    .translation {
      padding-top: 20px;
    }
    
/* Specifically target the dropdown with ID "dropdown-1" */
#dropdown-1 {
  margin-top: 20px; /* Add space above this specific dropdown */
  margin-bottom: 20px; /* Add space below this specific dropdown */
  position: relative;
  display: inline-block;
  width: 100%; /* Full width */
  max-width: 1100px; /* Set a max width */
}

/* Styles for the button within this specific dropdown */
#dropdown-1 .dropbtn {
  background-color: #25336b;
  border-radius: 10px; /* Rounded corners */
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FAD8d8;
  box-sizing: border-box; /* Ensure padding is included in the width */
  font-family: 'Avenir', 'Century Gothic', sans-serif;
}

/* Dropdown content styles */
#dropdown-1 .dropdown-content {
  display: none;
  margin-left: 0;  /* Center it by removing excessive left margin */
  background-color: white;
  width: 100%;
  border: 5px solid #FFDE5A; /* Yellow border */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  padding: 10px;
  box-sizing: border-box; /* Ensure padding is included in the width */
  font-family: 'Avenir', 'Century Gothic', sans-serif;
}

/* Show the dropdown content when the button is clicked */
#dropdown-1.show .dropdown-content {
  display: block;
}

/* Rotate the arrow to point up when the dropdown is open */
#dropdown-1.show .fas.fa-chevron-down {
  transform: rotate(180deg);
}
   
    #zoomable-image {
      transition: transform 0.3s ease;
      cursor: pointer;
      width: 100%; /* Set the initial width of the image */
      height: auto; /* Maintain the aspect ratio */
    }
    
    .zoomed {
      transform: scale(1.8); /* Adjust the zoom level here */
      z-index: 1002; /* Ensure the zoomed image is above everything else */
      position: relative; /* Ensure it respects the z-index */
    }