body { padding-top: 56px; }
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #fff9ea !important; }
.bg-hero { background-color: #fff9ea; }

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom:.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/* footer */
footer a { color: #2f4858; font-weight: bold; text-decoration: none; }
footer a:hover { color: #2f485845; text-decoration: underline; }

/* Keyframes for the fly-in animation */
@keyframes flyIn {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
/* Base class to apply the fly-in effect */
.fly-in {
opacity: 0;
transform: translateX(-100%);
transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* Class to trigger the fly-in effect */
.fly-in-visible {
animation: flyIn 1.5s forwards;
}

/* Keyframes for the fly-in animation from the right */
@keyframes flyInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
/* Base class to apply the fly-in effect */
.fly-in-right {
opacity: 0;
transform: translateX(100%);
transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* Class to trigger the fly-in effect */
.fly-in-right-visible {
animation: flyInRight 1.5s forwards;
}

/* To top */
.totop {
  position: fixed; /* Fixes the element in a specific position relative to the viewport */
  bottom: 50px;
  right: 10px; /* 20px from the right side of the viewport */
  width: 80px; /* Sets a specific width for the image */
  z-index: 1000; /* Ensures it's on top of other elements */
}

.totop img {
  width: 100%; /* Ensures the image takes the full width of its container */
  height: auto; /* Maintains the aspect ratio of the image */
  object-fit: contain; /* Ensures the image is contained within the div without distortion */
  object-position: center; /* Centers the image */
}

.totop-text {
  font-size: 10px; /* Sets the font size for the text */
  color: #000; /* Sets the text color (black in this case) */
  opacity: 0; /* Hides the text initially */
  transition: opacity 0.3s ease; /* Smooth transition for showing text */
  position: absolute; /* Positions the text absolutely within the .totop container */
  bottom: -20px; /* Places the text below the image */
  transform: translateX(-50%); /* Centers the text horizontally */
  text-align: center;
}

.totop:hover {
  transform: scale(1.04);
}
.totop:hover .totop-text{
  opacity: 1; /* Shows the text */
}

/* Table of contents */
.toc {
  position: sticky;
  width: 250px;
  margin-right: 20px;
  margin-bottom: 100px;
  top: 140px;
  padding: 20px;
  border-radius: 10px;
  flex-shrink: 0;
}

.toc a {
  display: block;
  padding: 5px;
  margin-bottom: 5px;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  transition: color 0.3s ease;
}

.toc ul {
  list-style-type: none;
  padding: 0;
}

.toc a.active,
.toc a:hover {
  color: #8b4513;
  font-weight: bold;
}

/* Button for facts about insects */
/* Popup container */
.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* The actual popup (appears on bottom) */
.popup .popuptext {
  visibility: hidden;
  width: 300px;
  background-color: #ecd5aa;
  color: #8b4513;
  text-align: center;
  border-radius: 20px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  top: 125%;
  left: 10%;
  margin-left: -100px;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  bottom: 100%; 
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #d8b0617e transparent;
}


/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

/* Boxes for insect name */
.insect {
  background-color: #E3D6AD84;
  width: 100%;
  max-width: 100px;
  border-radius: 20px;
  box-shadow: 6px 6px #c3b895;
  padding: 5px;
  margin: 5px;
  text-align: center;
  color: #8b4513;
}



/* PAGE CONTENT BLOCKS */

.page_content{
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
}


.content {
  flex: 1;
  margin-left: 5px;
  padding: 20px;
  border-radius: 20px;
}

p{
  text-align: justify;
}

.content_block{ /*Same as "section" in bioinformatics.html*/ 
  margin: 0 auto 30px auto;
  padding: 20px;
  background-color: #E3D6AD84;
  border-radius: 8px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}


/* Active section heading styles */
.content_block.active h2 {
  color: #8b4513; /* Dark brown text color when active */
}



.image-container {
  background-color: #FFF9EA;
  /* Light Beige */
  margin: 20px 0;
  text-align: center;
  padding: 10px;
  border-radius: 8px;

}

.image-container img {
  height: auto;
  /* Maintain aspect ratio */
  display: block;
  margin-left: auto;
  margin-right: auto;
}



.image-large {
  width: 80%;
  max-width: 1200px;
}




