/* Background team image */
.bg-hero { 
    background-image: url('https://static.igem.wiki/teams/5253/header/contributions.png');
    background-size: 30% auto; /* Ensure the whole image is visible */
    background-position: right center; /* 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;
}

/* --------- New basic part ----------- */

.new-basic-part-image {
    display: block;
    margin: 20px auto; /* Centers the image */
    max-width: 500px; /* Ensure the container's width matches the image */
    background-color: #FFDE5A;
    border-radius: 10px; /* Round corners */
}

.new-basic-part-image img {
    max-width: 100%; /* Ensure the image takes up the full width of the container */
    border-radius: 10px; /* Round corners */
    border: 5px solid #FFDE5A; /* Border around image */
    cursor: pointer;
}

/* Works for ALL images on the page */
.figure-text {
    text-align: center;
    font-size: 15px;
    padding: 10px 0;
    color: #25336b;
    background-color: #fff;
    border-radius: 10px; /* Rounded corners on all sides */
    width: 100%; /* Make figure text as wide as the image */
    box-sizing: border-box;
    border-left: 5px solid #FFDE5A; /* Border around image */
    border-right: 5px solid #FFDE5A; /* Border around image */
    border-bottom: 5px solid #FFDE5A; /* Border around image */
    margin-top: 0px;
}

/* --------- Plasmid design ----------- */

.plasmid-design-image {
    display: block;
    margin: 20px auto; /* Centers the image */
    max-width: 500px; /* Ensure the container's width matches the image */
    background-color: #FFDE5A;
    border-radius: 10px; /* Round corners */
}

.plasmid-design-image img {
    max-width: 100%; /* Ensure the image takes up the full width of the container */
    border-radius: 10px; /* Round corners */
    border: 5px solid #FFDE5A; /* Border around image */
    cursor: pointer;
}

/* --------- Education ----------- */

.education-image {
    display: block;
    margin: 20px auto; /* Centers the image */
    max-width: 500px; /* Ensure the container's width matches the image */
    background-color: #FFDE5A;
    border-radius: 10px; /* Round corners */
}

.education-image img {
    max-width: 100%; /* Ensure the image takes up the full width of the container */
    border-radius: 10px; /* Round corners */
    border: 5px solid #FFDE5A; /* Border around image */
    cursor: pointer;
}

/* --------- Keychains ----------- */

.keychains-image {
    display: block;
    margin: 20px auto; /* Centers the image */
    max-width: 500px; /* Ensure the container's width matches the image */
    background-color: #FFDE5A;
    border-radius: 10px; /* Round corners */
}

.keychains-image img {
    max-width: 100%; /* Ensure the image takes up the full width of the container */
    border-radius: 10px; /* Round corners */
    border: 5px solid #FFDE5A; /* Border around image */
    cursor: pointer;
}

/* -------------------- Makes images clickable ---------------- */

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-content-container {
    position: relative;
    max-width: 120%;
    max-height: 120%;
    top: 30px;
}

.modal-content {
    width: auto; /* Width of 70% of viewport width */
    max-width: 600px; /* Max width of 550px */
    max-height: 70vh; /* Max height of 70% of viewport height */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px 5px 0 0; /* Rounded corners */
    overflow: hidden; /* Hide overflow */
    border: 10px solid #FFDE5A;
}

.modal-figure-text {
    color: #fff;
    text-align: center;
    margin-top: 10px;
    font-size: 18px;
    color: #25336b;
    background-color: white; /* Background color for contrast */
    border-radius: 0 0 5px 5px; /* Rounded corners for bottom */
    border-left: 10px solid #FFDE5A;
    border-right: 10px solid #FFDE5A;
    border-bottom: 10px solid #FFDE5A;
    margin-top: 0%;
    padding: 10px;
}

.close {
    position: absolute;
    top: 100px;
    right: 25px;
    color: #FFDE5A;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #25336b;
}

/* General Image Styling */
.new-basic-part-image img,
.plasmid-design-image img,
.education-image img,
.keychains-image img {
    transition: transform 0.3s ease; /* Smooth transition for scaling */
}

/* Hover Effect */
.new-basic-part-image img:hover,
.plasmid-design-image img:hover,
.education-image img:hover,
.keychains-image img:hover {
    transform: scale(1.05); /* Slightly enlarge the image on hover */
    cursor: pointer; /* Change cursor to indicate clickable */
}