body {
    background-color: #f8fcff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    text-align: justify;
}

h2{
    text-align: center;
}

section[id^="subcat"] {
    margin-top: 6vh;
}

/* Overview Top */

.overviewtop {
    margin-bottom: 3vh;
}


/* Side nv bar & Page Layout */

@media (max-width: 992px) {
    .fixed-pos {
      width: 90vw !important;
    }
}

.sdbar-photo1, .sdbar-photo2 {
    width: 4vh;
    height: auto;
    position: relative;
    transition: display 0.3s ease-out;
}

.sdbar-photo2 {
    margin-right: 0.3vw;
}

#introd h2 {
    margin-top: 2vh !important;
}

h2 {
    margin-top: 8vh;
    margin-bottom: 2vh;
}

.spech2 {
    margin-bottom: -3vh;
}

html {
    scroll-behavior: smooth;
}

.sidebar h3 {
    padding-top: 1vh;
    position: relative;
    text-align: center;
    color: orange;
}



.sidebar ol, .sidebar ul {
    list-style-type: none;
}

.sidebar a, .sidebar a:hover {
    text-decoration: none;
    color: darkblue;
}

.fixed-pos {
    padding-right: 1vw;
    position: sticky;
    border: thin groove purple;
    border-radius: 2%;
    padding-left: 0.5vw;
    top: 15vh;
    width: 22vw;
    transform: translateY(-5%);
    margin-left: 1vw;
    overflow-y: auto;
    background-color: #f3ecff;
    
}

.fixed-pos li{
    margin-bottom: 1vh;
    font-size: medium;
}

.subcat-sdbar {
    margin-left: 2vw;
}

.container-fluid {
    margin-top: 20px;
}

#side-nav {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 200px;
}

#side-nav ul {
    list-style-type: none;
    padding: 0;
}

#side-nav ul li {
    margin: 0 0;
}

#side-nav ul li a {
    text-decoration: none;
    color: #000;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    position: relative;
    transition: background-color 0.3s, color 0.3s, padding-left 0.3s;
}

#side-nav ul li a.active {
    background-color: orange;
    color: white;
    padding-left: 40px !important;
}

#side-nav ul li a:hover {
    background-color: orange;
    color: white;
}

.butterfly {
    display: none;
    position: absolute;
    left: 5px;  /* Adjust position as needed */
    font-size: 1.5rem;  /* Adjust size as needed */
    transition: display 0.3s ease-out;
}

/*Tabs*/

.Our-opinion-container {
    max-width: 800px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 25px;
    border: 1px solid purple;
    background-color: #f8fcff;
}

.Our-opinion-tabs {
    padding-right: 5px;
    list-style-type: none;
    border-bottom: 3px solid black;
    display: flex;
    justify-content: center;
}

.yellow-icon {
    color: yellow;
}

.Our-opinion-tabs li {
    margin-right: 10px;
    font-size: 14px;
}

.Our-opinion-tabs > .tab {
    color: #343333;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0 0 10px;
    cursor: pointer;
}

.Our-opinion-tabs > .tab.active {
    border-bottom: 3px solid #E47A2E;
    color: #323A45;
}

.tabs-content > .tab-content-pane {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tabs-content > .tab-content-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tabs-content > .tab-content-pane p {
    font-size: 16px;
    line-height: 28px;
}

#fundmain h3 {
    margin-top: 5vh;
    margin-bottom: 1.5vh;
}

.Our-opinion-tabs li {
    text-align: center;
}

@media (max-width: 600px) {
    .Our-opinion-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .Our-opinion-tabs li {
        flex: 1 1 auto;
        margin: 5px 0;
        padding: 15px;
        font-size: 1rem; /* Increase font size for better readability */
    }

    .tabs-content {
        padding: 15px;
        font-size: 1rem;
    }
}

/* Content */

.des-con{
    border-radius: 25px;
    border: 1px solid black;
    background-color: #fffaf3;
    
}

h2{
    color: darkblue;
}

.sub-title{
    color: purple;
}

/*References*/

.container {
    max-width: 800px;
    margin: 0 auto; /* Center the container */
}

.btn-ref {
    background-color: #7c6daa33; 
    color: #fff; 
    border: none; 
    padding: 8px 25px;
    border-radius: 5px; 
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    width: 100%; 
    box-sizing: border-box; 
}

.btn-ref:hover {
    background-color: #005bb5; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.ref-circle {
    width: 30px;
    height: 30px;
    background-color: #fff; 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

.ref-circle svg {
    width: 1em;
    height: 1em;
    fill: #0066cc; /* Blue icon */
    transition: transform 0.3s ease;
}

.rotate-45 {
    transform: rotate(45deg);
}

.collapse {
    transition: height 0.3s ease;
    overflow: hidden;
}

.card {
    background-color: #f2f2f2; /* Light grey background */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

.sref {
    display: inline-flex; 
    justify-content: center; 
    align-items: center;
    width: 2.2vh; 
    height: 2.2vh; 
    border-radius: 50%; 
    background-color: orange; 
    color: purple; 
    font-size: 0.7em; 
    line-height: 1; 
    text-align: center; 
}

.sref a {
    color: inherit; /* Inherit text color from parent */
    text-decoration: none; /* Remove underline from the link */
}

/* Figure Captions Style */

figcaption {
    text-align: center;
}

/* Dropdown-button */

.collapse-button {
    background-color: rgb(111, 118, 211);
    box-shadow: 0 0 10px rgba(230, 144, 227, 0.5);
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    border-radius: 5px;
    position: relative;
}

.specdropdown {
    height: auto;
}

.collapse-content {
    display: none;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    background-color: white;
}

.collapse-button::after {
    content: '▼';
    position: absolute;
    right: 20px;
    font-size: 16px;
    transition: transform 0.3s;
}

.collapse-button.active::after {
    transform: rotate(180deg);
}

/*Table*/

.container-table {
    display: flex;
    justify-content: center;
    height: auto; /* This makes the container take the full height of the viewport */
}
  
table {
    border-collapse: collapse;
    width: 60vw;
    height: auto;    
}
  
th, td {
    border: 1px solid rgb(116, 28, 113);
    box-shadow: 0 0 10px rgba(230, 144, 227, 0.5);
    padding: 8px;
    text-align: left;
    text-align: center;
    background-color: white;/*#fffaf3;*/
}
  
th {
     background-color: #f2f2f2;
}

/* Carousel */

.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto;
    overflow: hidden;
  }
  
  .carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .carousel-images img {
    width: 100%;
    display: none;
  }
  
  .carousel-images img.active {
    display: block;
  }
  
  .carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
  }
  
  .carousel button.prev {
    left: 10px;
  }
  
  .carousel button.next {
    right: 10px;
  }
  
  .carousel button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

  /* Dropdown-button */

.collapse-button {
    background-color: rgb(111, 118, 211);
    box-shadow: 0 0 10px rgba(230, 144, 227, 0.5);
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    border-radius: 5px;
    position: relative;
}

.specdropdown {
    height: auto;
}

.collapse-content {
    display: none;
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

.collapse-button::after {
    content: '▼';
    position: absolute;
    right: 20px;
    font-size: 16px;
    transition: transform 0.3s;
}

.collapse-button.active::after {
    transform: rotate(180deg);
}

/* Bar for photos */

.line-bar, .line-bar2, .line-bar3 {
    position: relative;
    width: 48vw;
    height: 5vh;
    margin: 40px auto;
    
}

/* The line itself */
.line-bar::before, .line-bar2::before, .line-bar3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #333;
    transform: translateY(-50%);
}

/* The buttons on the line */
.line-bar button, .line-bar2 button, .line-bar3 button {
    position: absolute;
    width: 4vh;
    height: 4vh;
    border-radius: 50%;
    border: 2px solid #333;
    background-color: rgb(71, 131, 215);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.3s;
    color: white;
}

/* Spacing buttons evenly */
.line-bar button:nth-child(1) { left: 0%;  transform: translateX(-50%); }
.line-bar button:nth-child(2) { left: 25%;  transform: translateX(-50%); }
.line-bar button:nth-child(3) { left: 50%;  transform: translateX(-50%); }
.line-bar button:nth-child(4) { left: 75%;  transform: translateX(-50%); }
.line-bar button:nth-child(5) { left: 100%; transform: translateX(-50%); }

.line-bar2 button:nth-child(1) { left: 0%;  transform: translateX(-50%); }
.line-bar2 button:nth-child(2) { left: 25%;  transform: translateX(-50%); }
.line-bar2 button:nth-child(3) { left: 50%;  transform: translateX(-50%); }
.line-bar2 button:nth-child(4) { left: 75%;  transform: translateX(-50%); }
.line-bar2 button:nth-child(5) { left: 100%; transform: translateX(-50%); }

.line-bar3 button:nth-child(1) { left: 0%;  transform: translateX(-50%); }
.line-bar3 button:nth-child(2) { left: 25%;  transform: translateX(-50%); }
.line-bar3 button:nth-child(3) { left: 50%;  transform: translateX(-50%); }
.line-bar3 button:nth-child(4) { left: 75%;  transform: translateX(-50%); }
.line-bar3 button:nth-child(5) { left: 100%; transform: translateX(-50%); }

/* Button hover effect */
.line-bar button:hover, .line-bar2 button:hover, .line-bar3 button:hover {
    background-color: #f0f0f0;
    color: black;
}

/* Active button style */
.line-bar button.active, .line-bar2 button.active, .line-bar3 button.active {
    background-color: orange;
    color: white;
}

/* Hidden images initially */
.image-container, .image-container2, .image-container3 {
    display: none;
    margin: 4vh auto;
}

.image-container img, .image-container2 img, .image-container3 img {
    display: block;
}

/*Section Buttons */

.sub-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 100%;
    margin-bottom: 5vh;
    margin-top: 5vh;
}

.sub-categories .row {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 5vw;
}

.subtitle-unselected{
    height: 0;
}

.subtitle-unselected:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.CAAR, .CRISPR, .miRNA {
    font-size: 1.5vw; /* Adjust font size as needed */
}

.sectionwhole {
    padding: 0;
}

#caarPart, #crisprPart, #mirnaPart{
    border: 2px solid rgb(48, 42, 199);
    border-radius: 25px;
    background-color: rgb(111, 118, 211);
    box-shadow: 0 0 10px rgba(230, 144, 227, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    height: 7vh;
    width: 12vw;
    text-decoration-color: rgb(218, 149, 23);
}

#CAAR_part_div, #CRISPR_part_div, #miRNA_part_div {
    display: none;
    height: auto;
}

.sub-categories h1 {
    color: white;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}