/* Background team image */
.bg-hero { 
  background-image: url('https://static.igem.wiki/teams/5253/header/etreprenieurr.png');
  background-size: 40% 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: 45% auto; /* Make the image cover the full width */
      background-position: right bottom -20px; /* 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 */
  }
} 


 /* 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 */
}

/* -------------------- Introduction ---------------- */

.container1 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Ensure the content takes up the full width */
  flex-direction: column; /* Stacks elements vertically */
  }


/* Image */
.unmet-1-image {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center;    /* Centers vertically */
  max-width: 800px; /* Ensure the container's width matches the image */
  border-radius: 10px; /* Round corners */
  }
  
  .unmet-1-image img {
  max-width: 100%; /* Ensure the image takes up the full width of the container */
  border-radius: 10px; /* Round corners */
  }
  

/* -------------------- Unmet needs ---------------- */

.container2 {
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 */
.unmet-1-text {
flex: 1;
margin-right: 20px; /* Space between text and image container */
top: 50%;
font-size: 15px;
}

/* Text under table */
.detailed-results {
padding-top: 30px;
padding-bottom: 20px;
}


.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;
  font-family: 'Avenir', 'Century Gothic', sans-serif;
}

/* --- End of Enlarged image styling --- */



/* -------------------- Technology ---------------- */

.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 */
.technology-text {
top: 50%;
font-size: 15px;
}


/* -------------------- Opportunity ---------------- */

.container4 {
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 */
.Opportunity-text {
top: 50%;
font-size: 15px;
}





/* -------------------- Market ---------------- */

.container5 {
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 */
.viability-text {
top: 50%;
font-size: 15px;
}
.market1-text {
top: 50%;
font-size: 15px;
}
.market2-text {
top: 50%;
font-size: 15px;
}
.market3-text {
top: 50%;
font-size: 15px;
}



/* Image */
.market-image {
display: flex;
flex-direction: column; /* Stack items vertically */
align-items: center;    /* Centers vertically */
max-width: 600px; /* Ensure the container's width matches the image */
background-color: #FFDE5A;
border-radius: 10px; /* Round corners */
}

.market-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;
}



/* -------------------- Feasibility ---------------- */

.container6 {
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 */
.Feasibility-text {
flex: 1;
margin-right: 20px; /* Space between text and image container */
top: 50%;
font-size: 15px;
}

/* Text under table */
.detailed-results {
padding-top: 30px;
padding-bottom: 20px;
}

/* Image */
.Feasibility-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 */
}

.Feasibility-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 text styling */
.Competition-text {
flex: 1;
margin-right: 20px; /* Space between text and image container */
top: 50%;
font-size: 15px;
}


/* -------------------- Feasibility ---------------- */

.container7 {
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 */
.Product-text {
flex: 1;
margin-right: 20px; /* Space between text and image container */
top: 50%;
font-size: 15px;
}

/* Text under table */
.detailed-results {
padding-top: 30px;
padding-bottom: 20px;
}

/* Image */
.BMC-image {
display: flex;
flex-direction: column; /* Stack items vertically */
align-items: center;    /* Centers vertically */
max-width: 800px; /* Ensure the container's width matches the image */
background-color: #FFDE5A;
border-radius: 10px; /* Round corners */
}

.BMC-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;
}

/* Experiment text styling */
.Intellectual-text {
flex: 1;
margin-right: 20px; /* Space between text and image container */
top: 50%;
font-size: 15px;
}

/* Experiment text styling */
.Impacts-text {
flex: 1;
margin-right: 20px; /* Space between text and image container */
top: 50%;
font-size: 15px;
}

/* -------------------- Feasibility ---------------- */

.container8 {
display: flex;
width: 100%; /* Ensure the content takes up the full width */
flex-direction: column; /* Stacks elements vertically */
}

/* Experiment text styling */
.Finance-text {
flex: 1;
margin-right: 20px; /* Space between text and image container */
top: 50%;
font-size: 15px;
}

/* Text under table */
.detailed-results {
padding-top: 30px;
padding-bottom: 20px;
}
/* -------------------- 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 */ 
} 



/* -------------------- 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;
font-family: 'Avenir', 'Century Gothic', sans-serif;
}

.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 */
.unmet-1-image img,
.technology-image img, 
.Opportunity-image img, 
.Feasibility-image img,
.BMC-image img {
transition: transform 0.3s ease; /* Smooth transition for scaling */
}

/* Hover Effect */
.technology-image img:hover,
.Opportunity-image img:hover,
.Feasibility-image img:hover,
.BMC-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 */
  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);
}

