body {
    overflow-x: hidden;
    background: var(--white);
    scroll-behavior: smooth;
}

.left-aligned {
    margin-left: auto;
}

.bg-dark {
    background-color: var(--black) !important;
}

.bg-hero {
    background: var(--white);
}

/* colors */
:root {
    --primary-graphics-light: #97BF04;
    --primary-graphics: #699704;
    --content-text: #1E79AE;
    --heading-text: #1A4895;
    --highlights: #FACA2A;
    --accents: #EF8F83;
    --secondary-graphics-light: #F15942;
    --secondary-graphics: #EE3A23;
    --white: #fff;
    --black: #000;
}

/* fonts */
@font-face {
    font-family: stolzl-light;
    src: url("https://static.igem.wiki/teams/4738/wiki/stolzl-light.otf");
}

@font-face {
    font-family: stolzl;
    src: url("https://static.igem.wiki/teams/4738/wiki/stolzl.otf");
}

@font-face {
    font-family: reross-quadratic;
    src: url("https://static.igem.wiki/teams/4738/wiki/reross-quadratic.otf");
}

:root {
    --heading-font: reross-quadratic, cursive;
    --content-font: stolzl-light, sans-serif;
}

body,
p {
    font-family: var(--content-font);
    font-weight: 500;
    font-size: 1.3rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: bold;
    color: var(--heading-text);
    scroll-margin-top: 15vh;
}

/* 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: var(--primary-graphics-light)
}

.bd-callout-warning {
    border-left-color: #f0ad4e
}

.bd-callout-danger {
    border-left-color: #d9534f
}

/* footer */
footer {
    background-color: var(--white);
}

#footer_design {
    position: absolute;
    z-index: 0;
    width: 100%;
    stroke-dasharray: 1 0.8;
    stroke-dashoffset: 1;
    animation: dash 10s linear infinite;
    pointer-events: none;
}

.container svg {
    margin: 8px;
}

#sponsors {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.sponsor {
    width: 40%;
    margin: 15px;
}

#integrated_dna {
    scale: 0.8;
}

#snap_gene {
    scale: 0.7;
}

#new_england_bio {
    scale: 1.2;
}

footer .container {
    z-index: 1;
    margin-top: 2vh;
}

.container-flex svg {
    height: 4vh;
    margin: 5px;
}

.isolate {
    isolation: isolate;
}

#footer_design path {
    mix-blend-mode: multiply;
}

@keyframes dash {
    from {
        stroke-dashoffset: 2;
    }

    to {
        stroke-dashoffset: 0;
    }
}

#footer_logo {
    height: 25vh;
    transform: translateY(-20%);
}

#logo {
    height: 5vh;
}

#inst_logo {
    height: 5vh;
}

#youtube_logo {
    height: 7vh;
}

/* progress bar */
#progress-bar {
    bottom: 0;
    position: sticky;
    height: 14px;
    width: 0;
    z-index: 100;
    background: var(--secondary-graphics);
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
}

/* navbar */
#nav-logo {
    position: fixed;
    top: 50px;
    left: 50px;
    height: 60px;
    width: 60px;
    z-index: 1050;
    transition: 1.2s ease;
}

#nav-logo img {
    width: 100%;
}

#nav-button {
    position: fixed;
    top: 50px;
    right: 30px;
    margin: 0;
    height: 60px;
    width: 60px;
    padding: 0;
    border: none;
    z-index: 1050;
    transition: 0.2s ease;
    transform-origin: center;
    cursor: pointer;
}

.nav-button-menu {
    position: absolute;
    background-color: var(--heading-text);
    width: 50px;
    height: 8px;
    margin-top: 15px;
    border-radius: 4px;
}

#nav-button:hover {
    transform: scale(1.1);
}

.animate-nb.nav-button-menu {
    animation-name: menu-menu;
    animation-duration: 0.3s;
}

@keyframes menu-menu {
    0% {
        width: 0px;
        height: 0px;
    }
    50% {
        width: 0px;
        height: 0px;
    }
    51% {
        position: absolute;
        background-color: var(--heading-text);
        width: 50px;
        height: 5px;
    }
}

.nav-button-menu:after {
    content: "";
    position: absolute;
    background-color: var(--heading-text);
    width: 50px;
    height: 8px;
    margin-top: -15px;
    border-radius: 4px;
}

.animate-nb.nav-button-menu:after {
    animation-name: menu-after;
    animation-duration: 0.3s;
}

@keyframes menu-after {
    0% {
        transform: rotate(-45deg);
        margin-top: 0px;
    }
    50% {
        transform: rotate(0deg);
        margin-top: 0px;
    }
    100% {
        transform: rotate(0deg);
        margin-top: -15px;
    }
}

.nav-button-menu:before {
    content: "";
    position: absolute;
    background-color: var(--heading-text);
    width: 50px;
    height: 8px;
    margin-top: 15px;
    border-radius: 4px;
}

.animate-nb.nav-button-menu:before {
    animation-name: menu-before;
    animation-duration: 0.3s;
}

@keyframes menu-before {
    0% {
        transform: rotate(45deg);
        margin-top: 0px;
    }
    50% {
        transform: rotate(0deg);
        margin-top: 0px;
    }
    100% {
        transform: rotate(0deg);
        margin-top: 15px;
    }
}

.nav-button-close {
    position: absolute;
    margin-top: 15px;
    margin-left: 0;
}

.nav-button-close.animate-nb {
    animation-name: close-close;
    animation-duration: 0.3s;
}

@keyframes close-close {
    0% {
        position: absolute;
        background-color: var(--heading-text);
        width: 50px;
        height: 8px;
        margin-top: 15px;
    }
    50% {
        display: none;
        width: 50px;
        height: 8px;
    }
    100% {
        width: 0px;
        height: 0px;
    }
}

.nav-button-close:after {
    content: "";
    position: absolute;
    background-color: var(--heading-text);
    width: 50px;
    height: 8px;
    transform: rotate(45deg);
    border-radius: 4px;
}

.animate-nb.nav-button-close:after {
    animation-name: close-after;
    animation-duration: 0.3s;
}

@keyframes close-after {
    0% {
        transform: rotate(0deg);
        margin-top: 15px;
    }
    50% {
        transform: rotate(0deg);
        margin-top: 0px;
    }
    100% {
        transform: rotate(45deg);
    }
}

.nav-button-close:before {
    content: "";
    position: absolute;
    background-color: var(--heading-text);
    width: 50px;
    height: 8px;
    transform: rotate(-45deg);
    border-radius: 4px;
}

.animate-nb.nav-button-close:before {
    animation-name: close-before;
    animation-duration: 0.3s;
}

@keyframes close-before {
    0% {
        transform: rotate(0deg);
        margin-top: -15px;
    }
    50% {
        transform: rotate(0deg);
        margin-top: 0;
    }
    100% {
        transform: rotate(-45deg);
    }
}

#dna-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-42%);
}

#dna-svg {
    height: 140vh;
    position: absolute;
    top: -22vh;
}

#spiral1 {
    stroke: var(--content-text);
    stroke-dasharray: 0.98 1.02;
    stroke-dashoffset: -1.01;
}

#spiral2 {
    stroke: var(--content-text);
    stroke-dasharray: 0.98 1.02;
    stroke-dashoffset: -1.01;
}

.nav-active #spiral1 {
    animation: 1s spiral1appear linear forwards;
    stroke-dasharray: 1 1;
}

.nav-active #spiral2 {
    animation: 1s spiral2appear linear forwards;
    stroke-dasharray: 1 1;
}

.nav-active #bases line {
    animation: basemeet 0.5s linear forwards;
    opacity: 1;
}

.nav-inactive #spiral1 {
    animation: 1s spiral2appear linear reverse;
}

.nav-inactive #spiral2 {
    animation: 1s spiral1appear linear reverse;
}

.nav-inactive #bases line {
    animation: baseleave 0.5s linear forwards;
    opacity: 1;
    --base-scale: 0.04s;
}

@keyframes spiral2appear {
    from {
        stroke-dashoffset: -1;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes spiral1appear {
    from {
        stroke-dashoffset: 1;
    }
    to {
        stroke-dashoffset: 0;
    }
}

#bases line {
    stroke: var(--accents);
    opacity: 0;
    stroke-dasharray: 0 1.01;
    stroke-dashoffset: 0.001;
    --base-scale: 0.07s;
    transform-origin: center;
}

@keyframes basemeet {
    from {
        opacity: 0;
        stroke-dasharray: 0 1;
        transform: rotate(5deg);
    }

    to {
        opacity: 1;
        stroke-dasharray: 0.45 0.10;
        transform: rotate(0deg);
    }
}

@keyframes baseleave {
    from {
        opacity: 1;
        stroke-dasharray: 0.45 0.1;
        transform: rotate(0deg);
    }

    to {
        opacity: 0;
        stroke-dasharray: 0 1;
        transform: rotate(-5deg);
    }
}

#bases :nth-child(1) {
    animation-delay: calc(var(--base-scale) * 1) !important;
}

#bases :nth-child(2) {
    animation-delay: calc(var(--base-scale) * 2) !important
}

#bases :nth-child(3) {
    animation-delay: calc(var(--base-scale) * 3) !important
}

#bases :nth-child(4) {
    animation-delay: calc(var(--base-scale) * 4) !important
}

#bases :nth-child(5) {
    animation-delay: calc(var(--base-scale) * 5) !important
}

#bases :nth-child(6) {
    animation-delay: calc(var(--base-scale) * 6) !important
}

#bases :nth-child(7) {
    animation-delay: calc(var(--base-scale) * 7) !important
}

#bases :nth-child(8) {
    animation-delay: calc(var(--base-scale) * 8) !important
}

#bases :nth-child(9) {
    animation-delay: calc(var(--base-scale) * 9) !important
}

#bases :nth-child(10) {
    animation-delay: calc(var(--base-scale) * 10) !important
}

#bases :nth-child(11) {
    animation-delay: calc(var(--base-scale) * 11) !important
}

#bases :nth-child(12) {
    animation-delay: calc(var(--base-scale) * 12) !important
}

#bases :nth-child(13) {
    animation-delay: calc(var(--base-scale) * 13) !important
}

#navbar-container {
    z-index: 1000;
    position: fixed;
    right: 0;
    top: 0;
    width: 450px;
    height: 100vh;
    pointer-events: none;
}

.nav-level {
    padding-left: 10vw;
    transform: translateX(100%);
    width: 100%;
    height: 100%;
    transition: all 0.8s ease;
    display: flex;
    align-items: center;
    pointer-events: all;
    background: linear-gradient(to left, white, transparent);
}

.nav-active .nav-level {
    transform: translateX(0);
}

.nav-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.menu-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.menu-dropdown .menu-option {
    color: var(--heading-text);
    font-size: 1.8em;
}

.menu-option {
    font-size: 40px;
    font-family: stolzl, sans-serif;
    color: var(--content-text);
    text-decoration: none;
    transition: color 0.5s ease, transform 0.5s ease;
    transform-origin: center;
}

.menu-option:hover {
    transform: translate(10px, 0);
    color: var(--accents);
}

.menu-option path {
    transition: fill 0.5s ease;
}

.menu-option:hover path {
    fill: var(--accents) !important;
}

.drop-arrow {
    transition: transform 0.6s ease;
}

.menu-option[aria-expanded="true"] .drop-arrow {
    transform: rotate(180deg);
}

/* Sidebar */
.sidebar {
    z-index: 100;
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    height: auto;
    overflow-x: hidden;
    align-self: flex-start;
    margin-top: 200px;
}

#sidebar_content {
    padding: 10px;
    width: 100%;
}

#sidebar_content a.nav-link {
    color: #000000;
    display: block;
    transition: all 0.4s ease;
    padding: 5px 0 5px 10px;
    transform-origin: center;
}

#sidebar_content a.nav-link:hover {
    color: var(--secondary-graphics);
    transform: translateX(4%);
}

#sidebar_content .nav.nav-pills .nav-link.active {
    background-color: var(--white);
    color: #F15942;
}

.collapsible-scrollspy {
    padding-left: 0;
}

.section {
    margin-top: 5px;
    margin-left: 15px

}

.sub_section {
    margin-top: 5px;
    margin-left: 15px
}

a.nav-link {
    font-size: 1.2rem;
}

/* sideline */
.sideline::before {
    content: "";
    --sideline-width: 20px;
    width: var(--sideline-width);
    height: 100%;
    position: absolute;
    transform: translateX(-200%);
    border-radius: calc(var(--sideline-width) / 2);
}

.sideline:nth-of-type(4n+1):before {background: var(--secondary-graphics-light);}
.sideline:nth-of-type(4n+2):before {background: var(--primary-graphics-light);}
.sideline:nth-of-type(4n+3):before {background: var(--highlights);}
.sideline:nth-of-type(4n+4):before {background: var(--content-text);}

.sideline {
    position: relative;
}

#ground {
    transition: all 1s ease;
}

.zone-out {
    filter: blur(5px);
    transform: scale(0.97);
}

/* header */
#header-container {
    width: 100vw;
    overflow: hidden;
    z-index: 100;
    position: relative;
}

#header-window {
    z-index: 1;
}

#loop-paths path {
    stroke-width: 25px;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 0.5 0.5;
    animation: choochoo 20s linear infinite;
}

@keyframes choochoo {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 1;
    }
}

#loop-paths path:nth-child(1) {
    stroke: #97BF04
}

#loop-paths path:nth-child(2) {
    stroke: #1E79AE
}

#loop-paths path:nth-child(3) {
    stroke: #FACA2A
}

#loop-paths path:nth-child(4) {
    stroke: #EF8F83
}

#loop-paths path:nth-child(5) {
    stroke: #F15942
}

.border-path {
    fill: #fff;
    stroke: none;
}

#headerbg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#header-content {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 8vw;
    text-align: center;
}

#header-content h1 {
    font-size: 10vh;
    color: var(--white);
}

#header-content p {
    color: white;
}

.link-right {
    width: 100%;
    display: flex;
    justify-content: right;
    font-size: small;
}

.elevated {
    box-shadow: 0 0 5px black;
}

/* Experiments */

.experiments table, .experiments ul, .experiments ol { 
    margin-left: 15%;
}

.experiments table {
    margin-top: 1.5vh;
    margin-bottom: 1.5vh;
}

.experiments th,td {
    padding: 8px 27px;
}

.experiments th {
    background: var(--accents);
}

.experiments th:first-of-type {
    border-top-left-radius: 16px;
}

.experiments th:last-of-type {
    border-top-right-radius: 16px;
}

.experiments tr:nth-of-type(even) {
    background-color: #e0e8e9;
}

.experiments tr:last-of-type td:first-of-type {
    border-bottom-left-radius: 16px;
}

.experiments tr:last-of-type td:last-of-type {
    border-bottom-right-radius: 16px;
}

small {
    font-size: 0.7em;
}

/* Parts */

.parts table {
    margin-top: 1.5vh;
    margin-bottom: 1.5vh;
}

.parts th,td {
    padding: 8px 27px;
}

.parts th {
    background: var(--accents);
}

.parts th:first-of-type {
    border-top-left-radius: 16px;
}

.parts th:last-of-type {
    border-top-right-radius: 16px;
}

.parts tr:nth-of-type(even) {
    background-color: #e0e8e9;
}

.parts tr:last-of-type td:first-of-type {
    border-bottom-left-radius: 16px;
}

.parts tr:last-of-type td:last-of-type {
    border-bottom-right-radius: 16px;
}

/* Project Description */

.project_description img {
    width: 50%;
}