:root {
    /*--theme-blue: #1637e6;
    --theme-indigo: #4d1de5;
    --theme-purple: #890ce4;
    --theme-magenta: #df00e4;
    --theme-pink: #f100a9;
    --theme-lighter-blue: #dde1fe;
    --theme-lighter-yellow: #fef4c1;
    --theme-light-yellow: #f0e186;
    --theme-brown: #403635;
    --theme-black: #281f20;
    --theme-dark-blue: #272c4a;
    --theme-light-blue: #c6cefc;*/

    --theme-gradient: linear-gradient(135deg, blue, magenta);
    --section-theme: red;
    --section-theme-project: hsl(218.35, 100%, 50%);
    --section-theme-team: hsl(240, 100%, 50%);
    --section-theme-wet-lab: hsl(260, 100%, 50%);
    --section-theme-dry-lab: hsl(270, 100%, 50%);
    --section-theme-human-practices: hsl(280, 100%, 50%);
    --section-theme-education: hsl(290, 100%, 50%);
    --section-theme-awards: hsl(300, 100%, 50%);

    --bg: black;
    --neon-cyan: #00f5ff;
    --neon-pink: #ff3cac;
    --neon-purple: #7b61ff;
    --muted: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.04);
    --card-radius: 14px;
    --max-width: 1200px;
    --text-color: #e6f7ff;
}

body {
    padding-top: 56px;
    overflow-y: overlay;
    background-color: var(--bg);
    color: #e6f7ff;
    scrollbar-gutter: stable both-edges;

    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 18px;
    line-height: 1.7;
}

body[data-section="home"] {
    --section-theme: var(--theme-gradient);
}

body[data-section="team"] {
    --section-theme: var(--section-theme-team);
}

body[data-section="project"] {
    --section-theme: var(--section-theme-project);
}

body[data-section="wet-lab"] {
    --section-theme: var(--section-theme-wet-lab);
}

body[data-section="dry-lab"] {
    --section-theme: var(--section-theme-dry-lab);
}

body[data-section="human-practices"] {
    --section-theme: var(--section-theme-human-practices);
}

body[data-section="education"] {
    --section-theme: var(--section-theme-education);
}

body[data-section="awards"] {
    --section-theme: var(--section-theme-awards);
}

/* TODO: switch to theme color. All theme colors has to be changed, but we can't make all pages neon-cyan. */
.main-content-wrapper>.container h2 {
    font-family: "Orbitron", sans-serif;
    font-size: 1.8rem;
    /* color: var(--neon-cyan); */
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
    position: relative;
    display: inline-block;
}

.main-content-wrapper>.container h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    /* background: linear-gradient(90deg, var(--neon-cyan), transparent); */
    background: linear-gradient(90deg, white, transparent);
}

.btn-primary {
    border: none;
    background-color: var(--section-theme);
    box-shadow: 0 0 6px var(--section-theme);
    transition: box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: color-mix(in srgb, var(--section-theme) 80%, white 20%);
    box-shadow: 0 0 8px var(--section-theme);
}

.btn-primary:active {
    background-color: color-mix(in srgb, var(--section-theme) 60%, white 40%);
    box-shadow: 0 0 8px var(--section-theme);
}

button.indigo {
    --bs-btn-bg: var(--theme-indigo);
    --bs-btn-hover-bg: var(--theme-indigo);
    --bs-btn-active-bg: var(--theme-indigo);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-bg: var(--theme-indigo);
    --bs-btn-disabled-border-color: var(--theme-indigo);
}

/*b,
strong {
    color: var(--theme-lighter-yellow);
    text-shadow: 0 0 0.25rem var(--theme-lighter-yellow);
}*/

.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: 1.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
}


.inline-image {
    display: block;
    float: right;
}

.block-image {
    display: block;
    margin: 1em auto;
    max-height: 300px;
    max-width: 100%;
}

.video-container {
    text-align: center;
    margin: 1em auto;
    max-width: 100%;
}

header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

#loading-animation {
    position: fixed;
    z-index: 9999 !important;
    background: var(--bs-body-bg);
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease-in-out;
}

#loading-animation .frame {
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    transition: all 1s ease 0s;
}

::-webkit-scrollbar-corner {
    background: none;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(127, 127, 127, 0.6);
    background-clip: padding-box;
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-image: initial;
    border-radius: 5px;
    transition: all 1s ease 0s;
}

::-webkit-scrollbar-thumb:active {
    background-color: rgba(127, 127, 127, 0.6);
    background-clip: padding-box;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    border-image: initial;
    border-radius: 5px;
    transition: all 1s ease 0s;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

button.btn-important {
    /* I don't want to use btn-primary because it is used more than btn-important */
    background: transparent;
    border: 3px solid #7b61ff;
    color: #7b61ff;
    transition: all 0.3s;
}

button.btn-important:hover {
    /* I don't want to use btn-primary because it is used more than btn-important */
    background: #7b61ff;
    border: 3px solid #7b61ff;
    box-shadow: 0 0 8px #7b61ff;
    color: white;
}

/*button.btn-important:hover {
    background: linear-gradient(135deg, hsl(250, 100%, 50%), hsl(310, 100%, 50%));
    box-shadow: 0 0 8px var(--theme-gradient);
}
button.btn-important:active {
    background: linear-gradient(135deg, hsl(250, 100%, 50%), hsl(310, 100%, 50%));
    box-shadow: 0 0 10px var(--theme-gradient);
}*/

img.border-transparent::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.main-content-wrapper img:not(.img-with-desc img),
.main-content-wrapper .img-with-desc {
    /* img is overridden by bs */
    max-width: 70%;
    display: block;
    margin: 8px auto;
}

.main-content-wrapper .img-with-desc img {
    width: 100%;
}

.main-content-wrapper .img-desc {
    display: block;
    margin: auto;
    color: rgb(187, 187, 187);
    text-align: center;
    font-size: 0.95rem;
}

.echarts {
    aspect-ratio: 1.618;
    max-width: 70%;
}

@media screen and (max-width: 768px) {
    .echarts {
        max-width: 100%;
    }
}

.jump-box {
    margin-top: 1.5rem;
    text-align: center;
}

.jump-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--neon-purple);
    background: rgba(123, 97, 255, 0.1);
    color: var(--neon-purple);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.jump-btn:hover {
    background: var(--neon-purple);
    color: white;
}

.pdf {
    width: 100%;
    text-align: left;
    padding: 15px;
}

.pdf-img {
    background: #e4474d;
    font-weight: 700;
    color: rgba(234, 232, 225, 1);
    border-radius: .5rem;
    text-align: center;
    padding: 10px 7px;
    margin-right: 10px;
}

.pdf .arrow {
    display: inline-block;
    width: 0px;
    height: 0px;
    border-bottom: 6px solid #fff;
    border-top: none;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    float: right;
    position: relative;
    top: 10px;
}

.pdf.collapsed .arrow {
    display: inline-block;
    width: 0px;
    height: 0px;
    border-bottom: none;
    border-top: 6px solid rgba(255, 255, 255, .7);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    float: right;
    position: relative;
    top: 10px;
}