/* Custom fonts */
@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Regular.ttf') format('truetype');
    font-weight: normal;
}
@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Bold.ttf') format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Regular.ttf') format('truetype');
    font-weight: normal;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Medium.ttf') format('truetype');
    font-weight: medium;
}

html, body {
    overflow-x: hidden;
}

body {
    padding-top: 56px;
}
table th {
    width: auto !important;
}


.left-aligned {
    margin-left: auto;
}
.bg-dark {
    background-color: #343a40 !important;
}
.bg-hero {
    background-color: #45b06cff;
}

/* 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 { text-decoration: none; }
footer a:hover { text-decoration: none; }

/* Dark theme overrides */
[data-bs-theme="light"] {
    footer {
        background-color: #ecc823;
    }
    .fancy-text {
        color: #6c2c91;
        font-family: 'Lato';
        font-weight: bold;
    }
    .fancy-big-text{
        color: #6c2c91;
        font-family: 'Oswald';
    }
    .regular-text {
        font-family: 'Lato';
    }
    .title-text {
        color: #6c2c91;
        font-family: 'Oswald';
        font-size: 40px;
    }
    .subtitle-text {
        color: #6c2c91;
        font-family: 'Oswald';
        font-size: 35px;
    }
    .subsubtitle-text {
        color: #6c2c91;
        font-family: 'Oswald';
        font-size: 25px;
    }
    .subsubsubtitle-text {
        color: #6c2c91;
        font-family: 'Oswald';
        font-size: 20px;
    }
    .figuretitle-text {
        color: #6c2c91;
        font-family: 'Oswald';
        font-size: 18px;
        font-style: italic;
        text-decoration: underline;
    }
    .quote-text {
        color: #6c2c91;
        font-family: 'Oswald';
        font-size: 20px;
        font-style: italic;
    }
    .table-head {
        background-color: #b24ded;
        border: 1px solid #660099;
    }
    .human-practices-tabs .nav-link.active {
        background-color: #edc9ff;
    }
    .contents-button-area .nav-link {
        color: #6c2c91;
    }
    .contents-button-area .nav-link.active {
        background-color: #6c2c91;
        color: white;
    }
}

[data-bs-theme="dark"] {
    footer {
        background-color: #FFC107;
    }
    .fancy-text {
        color: #b24ded;
        font-family: 'Lato';
        font-weight: bold;
    }
    .fancy-big-text{
        color: #b24ded;
        font-family: 'Oswald';
    }
    .regular-text {
        font-family: 'Lato';
    }
    .title-text {
        color: #b24ded;
        font-family: 'Oswald';
        font-size: 40px;
    }
    .subtitle-text {
        color: #b24ded;
        font-family: 'Oswald';
        font-size: 35px;
    }
    .subsubtitle-text {
        color: #b24ded;
        font-family: 'Oswald';
        font-size: 25px;
    }
    .subsubsubtitle-text {
        color: #b24ded;
        font-family: 'Oswald';
        font-size: 20px;
    }
    .figuretitle-text {
        color: #b24ded;
        font-family: 'Oswald';
        font-size: 18px;
        font-style: italic;
        text-decoration: underline;
    }
    .quote-text {
        color: b24ded;;
        font-family: 'Oswald';
        font-size: 20px;
        font-style: italic;
    }
    .table-head {
        background-color: #6c2c91;
        border: 1px solid #b24ded;
    }
    .human-practices-tabs .nav-link.active {
        background-color: #370052;
    }
    .contents-button-area .nav-link {
        color: #b24ded;
    }
    .contents-button-area .nav-link.active {
        background-color: #6c2c91;
        color: white;
    }
}

/* specific media sizes */

/* XS */
.fancy-text {
    font-size: 12px;
}
.fancy-big-text{
    font-size: 20px;
}
.custom-container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* SM */
@media (min-width: 576px) {
    .fancy-text {
        font-size: 14px;
    }
    .fancy-big-text{
        font-size: 25px;
    }
    .custom-container {
        max-width: 600px;
    }
    .image-title {
        font-size: 25px;
    }
    .image-subtitle {
        font-size: 20px;
    }
    .image-description {
        font-size: 15px;
    }
}

/* MD */
@media (min-width: 768px) {
    .fancy-text {
        font-size: 16px;
    }
    .fancy-big-text{
        font-size: 30px;
    }
    .custom-container {
        max-width: 760px;
    }
    .image-title {
        font-size: 22px;
    }
    .image-subtitle {
        font-size: 17px;
    }
    .image-description {
        font-size: 13px;
    }
}

/* LG */
@media (min-width: 992px) {
    .fancy-text {
        font-size: 18px;
    }
    .fancy-big-text{
        font-size: 35px;
    }
    .custom-container {
        max-width: 980px;
    }
    .image-title {
        font-size: 25px;
    }
    .image-subtitle {
        font-size: 20px;
    }
    .image-description {
        font-size: 15px;
    }
}

@media (max-width: 1198px) {
    .photo-lg-scale {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* XL */
@media (min-width: 1200px) {
    .fancy-text {
        font-size: 20px;
    }
    .fancy-big-text{
        font-size: 40px;
    }
    .custom-container {
        max-width: 1200px;
    }
    .image-title {
        font-size: 20px;
    }
    .image-subtitle {
        font-size: 17px;
    }
    .image-description {
        font-size: 13px;
    }
}

/* XXL */
@media (min-width: 1400px) {
    .fancy-text {
        font-size: 24px;
    }
    .fancy-big-text{
        font-size: 50px;
    }
    .custom-container {
        max-width: 1400px;
    }
    .image-title {
        font-size: 25px;
    }
    .image-subtitle {
        font-size: 20px;
    }
    .image-description {
        font-size: 15px;
    }
}

/* Bar (hr element) animations */
.electric-line {
    height: 6px; /* Thickness of the line */
    background-image: repeating-linear-gradient(
        to right, 
        #fff200 0%,
        #fff200 3%,
        #6f00ff 10%
      );
    background-size: 200% 100%; /* Stretching the background for animation */
    animation: electric-flow 10s linear infinite; /* Animation for straight movement */
    box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.7); /* Glowing effect */
    border-radius: 3px; /* Rounding the corners */
    margin: 20px 0;
    width: 100%; /* Full width line */
}

.electric-line-reverse {
    height: 6px; /* Thickness of the line */
    background-image: repeating-linear-gradient(
        to left, 
        #fff200 0%,
        #fff200 3%,
        #6f00ff 10%
      );
    background-size: 200% 100%; /* Stretching the background for animation */
    animation: electric-flow-reverse 10s linear infinite; /* Animation for straight movement */
    box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.7); /* Glowing effect */
    border-radius: 3px; /* Rounding the corners */
    margin: 20px 0;
    width: 100%; /* Full width line */
}

@keyframes electric-flow {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

@keyframes electric-flow-reverse {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 0;
    }
}

/* Progress bar animation */
#scrollProgress {
    position: fixed;
    top: 70px; /* Adjust this value based on your navbar height */
    left: 0;
    width: 100%;
    z-index: 999; /* Make sure it stays above the content */
    height: 7px; /* Adjust the height of the progress bar */
}
  
#scrollProgressBar {
    transition: width 0.1s ease-out;
    background-color: #b24ded;
}

/* Image fade in animation */
.fade-left {
    opacity: 0;
    transform: translateX(20px); /* Optional: slight move upwards */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
}
  
.fade-left.visible {
    opacity: 1;
    transform: translateX(0); /* Move back to original position */
}

.fade-right {
    opacity: 0;
    transform: translateX(-20px); /* Optional: slight move upwards */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
}
  
.fade-right.visible {
    opacity: 1;
    transform: translateX(0); /* Move back to original position */
}

.fade-up {
    opacity: 0;
    transform: translateY(20px); /* Optional: slight move upwards */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
}
  
.fade-up.visible {
    opacity: 1;
    transform: translateY(0); /* Move back to original position */
}

.fade-down {
    opacity: 0;
    transform: translateY(-20px); /* Optional: slight move upwards */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
}
  
.fade-down.visible {
    opacity: 1;
    transform: translateY(0); /* Move back to original position */
}


/* TEAM PAGE */
.photo-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 50px;
}

.photo-container img {
    width: 100%;
    height: auto;
}

.photo-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
}

.photo-container:hover .overlay {
    opacity: 1;
}

.image-title {
    font-family: 'Oswald';
    font-size: 22px;
}

.image-subtitle {
    font-family: 'Oswald';
    font-size: 17px;
}

.image-description {
    font-family: 'Lato';
    font-weight: bold;
    font-size: 15px;
}


/* Contents styling */
.contents-button-area {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Oswald';
}
.contents-button-area .dropdown-menu {
    padding-left: 10px;
    padding-right: 10px;
    width: 300px;
    border-radius: 20px;
    max-height: 500px;
    overflow-y: auto;
}
.contents-button {
    height: 70px;
    width: 120px;
    border-radius: 50px;
    border: none;
    background-color:#6c2c91;
    color: white;
}
.contents-button:hover {
    background-color:#660099;
}



/* EXPERIMENTS PAGE STYLES */
.embed-size {
    width: 100%;
    height: 700px;
    border: none;
    overflow: auto; /* Ensure scrolling is allowed */
}

/* For mobile devices */
@media (max-width: 768px) {
    .embed-size {
        height: 500px; /* Adjust the height for mobile devices */
        overflow: scroll; /* Ensure mobile can scroll */
    }
}

/* For tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .embed-size {
        height: 600px; /* Adjust the height for tablet devices */
        overflow: scroll; /* Ensure scrolling for tablet devices */
    }
}


/* Styling for accordion */
.accordion-button:not(.collapsed) {
    background-color: #370052;
}

.accordion-button:focus {
    outline: none;
    box-shadow: none;
}

/* Model page styling */
.table-image {
    max-height: 200px;
}