*,
*::before,
*::after {
    box-sizing: border-box;
}

header,
section,
div {
    margin: 0;
    padding: 0;
}


header.bg-hero {
    display: none !important;
}

@font-face {
    font-family: "Inknut Antiqua";
    src: url("/static/fonts/InknutAntiqua-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}


html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: black !important;
    font-family: "Inknut Antiqua", serif;
}

.our-team-section {
    position: relative;
    width: 1440px !important;
    max-width: 1920px !important;
    min-height: 80vh;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;

    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.2) 25%,
            rgba(0, 0, 0, 0.05) 50%,
            rgba(0, 0, 0, 0.25) 75%,
            rgba(0, 0, 0, 0.6) 100%),
        url("https://static.igem.wiki/teams/5972/uploads/page/pagebackground1.webp");

    background-size:
        100% 45%,
        auto 100%;
    background-position:
        center bottom,
        center center;

    background-repeat: no-repeat, no-repeat;
}



.overlay-text {
    position: absolute;
    top: 64%;
    right: 8%;
    transform: translateY(-175%);
    text-align: right;
}

.overlay-text h3 {
    font-size: 64px;
    margin: 0;
    color: #EBCF9C;
}

.overlay-text h1 {
    font-size: 76px;
    margin: 0;
    font-weight: bold;
    color: #D3B68F;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.stage {
    width: 1440px !important;
    max-width: 1440px !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 50px !important;
    padding-top: -40px !important;
    background: url("https://static.igem.wiki/teams/5972/uploads/page/pagebackground2.webp") no-repeat;
}

.layout {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    margin: 90px auto;
    padding: 0;
    max-width: none;
}

.sidebar {
    box-sizing: border-box;
    width: 238px;
    position: fixed;
    left: calc(50% - 720px);
    top: 0;
    padding-left: 28px;
    height: 100vh;
    z-index: 100;
}

/* Vertical bar */
.stage::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 80%;
    width: 10px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, #ffe28a 0%, #e7b21a 45%, #c48b0b 100%);
    pointer-events: none;
    z-index: 1;
}

/* Vertical bar */
.indicator {
    position: fixed;
    left: calc(50% - 720px + 12px);
    top: 220px;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 16px solid #e7b21a;
    border-right: 0;
    transition: top .2s ease;
}

.sidebar-inner {
    position: fixed;
    top: 1px;
}

.side-title {
    margin: 0 0 24px 0;
    color: #e7c86a;
    letter-spacing: .06em;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.menu a {
    display: block;
    padding: 10px 8px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transform-origin: left center;
    transition:
        transform .18s ease,
        color .18s ease,
        background-color .18s ease,
        letter-spacing .18s ease;
    will-change: transform;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.active {
    background-image: linear-gradient(135deg,
            rgba(212, 167, 106, 1) 0%,
            rgba(254, 239, 197, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
    .menu a {
        transition: none;
        transform: none;
    }
}

.content {
    width: 1047px;
    margin-left: 346px;
    padding-right: 0;
    display: block;
}

.paper {
    width: 100%;
    min-height: 1650px;
    background: #fbf8f0;
    color: #222;
    border: 3px solid #DFB155;
    border-radius: 26px;
    padding: 28px 40px 28px 40px;
    position: relative;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    overflow: visible;
}

.content section {
    padding: 32px 0 40px;
    border: none;
    margin: 0;
}

.content section+section {
    border-top: 1px dashed rgba(0, 0, 0, .08);
    padding-top: 44px;
}

h2 {
    padding-top: 50px;
    font-family: "Inknut Antiqua", serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0;
    color: black;
    margin: 0 0 15px;
}

h2:first-of-type {
    padding-top: 0;
}

.sub {
    margin: 0 0 18px;
    color: black;
    font-family: "Abhaya Libre Medium", serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 39px;
    letter-spacing: 0;
    margin-top: 15px;
    margin-bottom: 15px;
    text-indent: 40px;
}

p {
    line-height: 1.85;
    color: black;
}

ul li,
ol li {
    margin: 0 0 15px;
    padding-left: 0.5em;
    font-family: "Abhaya Libre Medium", serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 39px;
    letter-spacing: 0;
    text-indent: 0;
}

ul,
ol {
    margin: 0 0 15px 40px;
    padding: 0;
}


/* Go back to the top */
.logo-ring {
    position: fixed;
    top: 720px;
    left: 1240px;
    transform: translate(46px, 0);
    z-index: 1000;
    pointer-events: auto;
    width: 167px;
    aspect-ratio: 1;
    cursor: pointer;
}

/* Up */
.logo-ring::before {
    content: "";
    position: absolute;
    inset: 3%;
    background: url("https://static.igem.wiki/teams/5972/uploads/page/up.webp") center/contain no-repeat;
    border-radius: 50%;
    z-index: 2;
}

/* Upsurround */
.logo-ring::after {
    content: "";
    position: absolute;
    inset: 3%;
    background: url("https://static.igem.wiki/teams/5972/uploads/page/upsurround.webp") center/contain no-repeat;
    border-radius: 50%;
    animation: spin 6s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 1100px) {
    .paper {
        position: sticky;
        top: 24px;
        height: calc(100vh - 48px);
        overflow: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .paper::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }
}

.figurecaption {
    text-align: center;
    font-weight: bold;
    padding-top: 10px;
}

h1 {
    background: linear-gradient(to right, #D4A76A 45%, #FEEFC5 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    position: relative;
    display: block;
    padding-bottom: 5px;
    margin-bottom: 20px;
    text-align: left;
}

h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #D4A76A 70%, #FEEFC5 100%);
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #000;
}

.video-container iframe {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

img.formula {
    height: 30px;
}

.usage {
    color: black;
    font-family: "Abhaya Libre Medium", serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 39px;
    letter-spacing: 0;
    width: 80%;
    line-height: 1.8;
}

.usage h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #111;
}

.usage a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.usage a:hover {
    color: #0056b3;
    text-decoration: none;
}