/* Background team image */
.bg-hero { 
    background-image: url('https://static.igem.wiki/teams/5253/header/resultss.png');
    background-size: 95% auto;
    background-position: center center;
    background-repeat: no-repeat;
    height: 300px;
  }

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .bg-hero {
        background-size: 100% auto; /* Make the image cover the full width */
        background-position: right center; /* 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 center; /* 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 */

  }

/* Padding */
.main-content {
    padding-right: 45px; /* Space for back to top button */
   
}

/* Container for entire page */
.Results {
    display: flex;
    flex-direction: column; /* Stack the header on top of the content */
    align-items: center; /* Center the header horizontally */
    padding-right: 35px; /* Space for back to top button */
}

/* Design of all headers */
.header {
    margin-bottom: 10px;
    width: 100%; /* Make the header as wide as the container */
}

/* -------------------- Overview ---------------- */

.container1 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%; /* Ensure the content takes up the full width */
    margin-bottom: 20px;
}

.Overview-of-results-text {
    flex: 1;
    margin-right: 20px; /* Space between text and image container */
}

/* Box designs */
.subbox{ 
    font-family: "Lato", Helvetica, Arial, sans-serif; 
    padding: 15px; 
    width: 300px; 
    height: 300px; 
    margin: 15px; 
    border-radius: 30px; 
    background-color: #fafafa; 
    transition: all 0.3s ease 0s; 
    z-index: -10px; 
    animation : translate1 5s; 
    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; 
} 
  
.subbox-title{ 
    color: #1d3357; 
    font-size: 16px; 
    font-weight: 600; 
    line-height: 27px; 
    margin: 0 0 10px; 
    transition: all 0.3s ease 0s; 
} 
  
.subbox-description{ 
    color: #1d3357; 
    font-size: 12px; 
    line-height: 27px; 
    margin: 0 0 10px; 
    text-align: justify; 
    transition: all 0.3s ease 0s; 

} 

/* -------------------- Introduction ---------------- */

.container2-1 {
    display: flex;
    width: 100%; /* Ensure the content takes up the full width */
    flex-direction: column; /* Stacks elements vertically */
}

/* Experiment text styling */
.introduction-text {
    top: 50%;
    font-size: 15px;
}


/* -------------------- Experiment 1 ---------------- */

.container2 {
    display: flex;
    width: 100%; /* Ensure the content takes up the full width */
    flex-direction: column; /* Stacks elements vertically */
}

/* Experiment text styling */
.experiment-1-text {
    top: 50%;
    font-size: 15px;
}

.summary-table-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
    border: 5px solid #FFDE5A; /* Border around image */ 
} 
    
.summary-table { 
    width: 100%; /* Adjust this width to control the size of the table */ 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    overflow: hidden; 
    font-family: Arial, sans-serif;   
} 
    
.summary-table .row { 
    display: flex; 
    align-items: center; 
    padding: 15px; 
    border-bottom: 1px solid #ddd;   
} 
   
.summary-table .row:last-child { 
    border-bottom: none; 
} 
  
.summary-table .icon { 
    flex: 0 0 50px; 
    text-align: center;   
} 
  
.summary-table .icon img { 
    max-width: 40px;   
} 

.summary-table .content { 
    flex: 1; 
    padding-left: 15px;   
} 

.summary-table .content h3 { 
    margin: 0; 
    font-size: 1.5em; 
    color: #333;   
} 
    
.summary-table .content p { 
    margin: 5px 0 0; 
    font-size: 1em; 
    color: #555;   
} 

.summary-table .row.goal { 
    background-color: #f4b0b0;   
} 
  
.summary-table .row.method { 
    background-color: #FAD8D8;   
} 

.summary-table .row.hypothesis { 
    background-color: #f4b0b0; 
} 
  
.summary-table .row.conclusion { 
    background-color: #FAD8D8; 
}

/* Text under table */
.detailed-results {
    padding-top: 30px;
    padding-bottom: 20px;
}

/* Image */
.experiment-1-image {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;    /* Centers vertically */
    max-width: 700px; /* Ensure the container's width matches the image */
    background-color: #FFDE5A;
    border-radius: 10px; /* Round corners */
    margin: 0 auto;
}

.experiment-1-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;
}

.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;
    font-family: 'Avenir', 'Century Gothic', sans-serif;
}

/* --- Enlarged image styling --- */

/* Overlay styles */
.overlay {
    position: fixed; /* Positioned relative to the viewport */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Make sure it covers other content */
}

/* Enlarged container styles */
.enlarged-container {
    display: flex; /* Use flexbox for layout */
    align-items: flex-start; /* Align items to the start */
    padding: 20px;
    background-color: #fff; /* Background for the enlarged view */
    border: 5px solid #FFDE5A; /* Border around the enlarged view */
    border-radius: 10px;
    max-width: 1000px; /* Set a larger max width for the container */
    width: 100%; /* Use a percentage width for responsiveness */
}

/* Close button styles */
.close {
    position: absolute; /* Position absolute to place it anywhere within the overlay */
    top: 10px; /* Adjust as needed */
    right: 15%; /* Adjust as needed */
    font-size: 30px;
    color: #25336b;
    cursor: pointer;
    z-index: 101; /* Ensure the close button is on top of other elements */
}

/* Enlarged image styles */
.enlarged-image {
    max-width: 60%; /* Limit the width of the image */
    height: auto; /* Maintain aspect ratio */
    border-right: 5px solid #FFDE5A; /* Add right border to the image */
    background-color: #FFDE5A;
}

/* Enlarged figure text styles */
.enlarged-figure-text {
    margin-left: 20px; /* Space between the image and text */
    text-align: center; /* Align text to the left */
    font-size: 14px; /* Same size as the original figure text */
    color: #25336b; /* Same text color */
    max-width: 40%; /* Set a max width for the text box */
    flex-shrink: 0; /* Prevent text box from shrinking */
    overflow-wrap: break-word; /* Allow long words to break to the next line */
    margin: 0 auto;
    padding: 5px;
}

/* --- End of Enlarged image styling --- */

/*--------------- Table -----------------------*/

.custom-table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    border: 5px solid #FFDE5A; /* Outer yellow border */
    border-radius: 10px;
}

.custom-table th,
.custom-table td {
    padding: 15px;
    border: 1px solid #dddddd;
    text-align: left;
    font-family: 'Avenir', 'Century Gothic', sans-serif;
}

.custom-table th {
    font-size: 18px;
    background-color: #EDCDCD; /* Header background color */
    font-family: 'Avenir', 'Century Gothic', sans-serif;
}

.custom-table td {
    font-size: 16px;
    font-family: 'Avenir', 'Century Gothic', sans-serif;
}

/* Links in the table */
.custom-table a {
    text-decoration: none;
    color: #000; /* Set a default link color */
    font-family: 'Avenir', 'Century Gothic', sans-serif;
}

.custom-table a:hover {
    text-decoration: underline;
    color: #FF5A00; /* Optional: change color on hover for better visibility */
}

/* Style for every even row */
.custom-table tr:nth-child(even) {
    background-color: #EDCDCD; /* Even row background color */
}

/* Style for every odd row */
.custom-table tr:nth-child(odd) {
    background-color: #fad8d8; /* Odd row background color */
}


/* -------------------- Experiment 2 ---------------- */

.container3 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure the content takes up the full width */
    flex-direction: column; /* Stacks elements vertically */
}

/* Experiment text styling */
.experiment-2-text {
    top: 50%;
    font-size: 15px;
}



/* Text under table */
.detailed-results {
    padding-top: 30px;
    padding-bottom: 20px;
}

/* Image */
.experiment-2-image {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;    /* Centers vertically */
    max-width: 500px; /* Ensure the container's width matches the image */
    background-color: #FFDE5A;
    border-radius: 10px; /* Round corners */
}

.experiment-2-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;
}

.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;
    font-family: 'Avenir', 'Century Gothic', sans-serif;
}

/* -------------------- Experiment 3 ---------------- */

.container3 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure the content takes up the full width */
    flex-direction: column; /* Stacks elements vertically */
}

/* Experiment text styling */
.experiment-3-text {
    top: 50%;
    font-size: 15px;
}

/* Text under table */
.detailed-results {
    padding-top: 30px;
    padding-bottom: 20px;
}

/* Image */
.experiment-3-image {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;    /* Centers vertically */
    max-width: 500px; /* Ensure the container's width matches the image */
    background-color: #FFDE5A;
    border-radius: 10px; /* Round corners */
}

.experiment-3-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;
}

.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;
    font-family: 'Avenir', 'Century Gothic', sans-serif;
}



/* -------------------- Experiment 4 ---------------- */

.container3 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure the content takes up the full width */
    flex-direction: column; /* Stacks elements vertically */
}

/* Experiment text styling */
.experiment-4-text {
    top: 50%;
    font-size: 15px;
}


/* Text under table */
.detailed-results {
    padding-top: 30px;
    padding-bottom: 20px;
}

/* Image */
.experiment-4-image {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;    /* Centers vertically */
    max-width: 500px; /* Ensure the container's width matches the image */
    background-color: #FFDE5A;
    border-radius: 10px; /* Round corners */
}

.experiment-4-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;
}

.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;
    font-family: 'Avenir', 'Century Gothic', sans-serif;
}



/* -------------------- Future plans ---------------- */

.container2-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure the content takes up the full width */
    flex-direction: column; /* Stacks elements vertically */
}

/* Experiment text styling */
.future-plans-text {
    top: 50%;
    font-size: 15px;
}

/* -------------------- Replication ---------------- */

.container2-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure the content takes up the full width */
    flex-direction: column; /* Stacks elements vertically */
}

/* Experiment text styling */
.replication-text {
    top: 50%;
    font-size: 15px;
}



/* -------------------- 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 */
.experiment-1-image img,
.experiment-2-image img, 
.experiment-3-image img, 
.experiment-4-image img {
    transition: transform 0.3s ease; /* Smooth transition for scaling */
}

/* Hover Effect */
.experiment-1-image img:hover,
.experiment-2-image img:hover,
.experiment-3-image img:hover,
.experiment-4-image img:hover {
    transform: scale(1.05); /* Slightly enlarge the image on hover */
    cursor: pointer; /* Change cursor to indicate clickable */
}

/* 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 */
}

/* 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 */
}

/* 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);
}
