*{
    margin: 0;
    padding: 0;
    border: none;
    font-family: 'LibreBaskerville';
    color: #3C3530;
    scroll-margin-top: calc(70px + 2rem);
}
:root{
    --base: 14px;
    --root: 14px;
}
mjx-container *{
    font-family: MJXZERO, MJXTEX;
}
::selection{
    background-color: #1F696A;
    color: #FFFFFF;
}
html{
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    font-size: 16px;
}
body{
    width: 100%;
    background-color: #FBE9CE;
}
main{
    padding-top: 2rem;
    display: flex;
    flex-direction: row;
}
section{
    width: 100%;
}
section.gap{
    width: 100vw;
    height: 2rem;
}
.loading{
    width: 100dvw;
    height: 100dvh;
    /* background-image: url("https://static.igem.wiki/teams/5542/img/loading-bg.webp"); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 998;
}
.loading-container{
    width: 100dvw;
    height: 100dvh;
    background-image: url("https://static.igem.wiki/teams/5542/img/loading5.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 998;
}
.sec-main{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    --text-height: calc(100dvh - 70px);
}
body[data-screen="desktop"] .sec-main{
    --text-width: calc(100dvw - 12rem - 25rem);
}
body[data-screen="mobile"] .sec-main{
    --text-width: calc(100dvw - 12rem);
}
#main{
    padding: 1rem 9rem 1rem 3rem;
    width: calc(100dvw - 25rem - 12rem);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    flex-shrink: 0;
}
body[data-screen="mobile"] #main{
    padding: 1rem 3rem;
    width: calc(100% - 6rem);
}
.container{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}
p{
    margin-block-start: 0;
    margin-block-end: 0;
    line-height: 1.5rem;
}
.emphasis{
    font-weight: bold;
    color: #465A18;
    filter: brightness(1.5);
}
span[data-title="h0"]{
    /* width: 100%; */
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 150%;
    display: block;
}
span[data-title="h1"]{
    /* width: 100%; */
    text-align: center;
    font-family: Cinzel;
    /* font-size: 2rem; */
    /* font-size: 2vw; */
    font-weight: bold;
    line-height: 150%;
    display: block;
}
body[data-screen="desktop"] span[data-title="h1"]{
    max-width: calc(100% - 12.5rem);
    font-size: 2.7rem;
}
body[data-screen="mobile"] span[data-title="h1"]{
    max-width: calc(100% - 7.5rem);
    /* font-size: 2rem; */
    font-size: 1.5rem;
}
span[data-title="h2"]{
    /* width: 100%; */
    width: fit-content;
    font-family: EagleLake;
    font-weight: bold;
    line-height: 150%;
    display: block;
}
body[data-screen="desktop"] span[data-title="h2"]{
    font-size: 1.6rem;
    margin-block-start: 1rem;
    margin-block-end: -0.5rem;
}
body[data-screen="mobile"] span[data-title="h2"]{
    font-size: 1.35rem;
    margin-block-start: 0.5rem;
}
span[data-title="h3"]{
    /* width: 100%; */
    font-weight: bold;
    line-height: 150%;
    display: block;
    margin-block-start: 0.5rem;
    margin-block-end: -0.25rem;
}
body[data-screen="desktop"] span[data-title="h3"]{
    font-size: 1.25rem;
}
body[data-screen="mobile"] span[data-title="h3"]{
    font-size: 1.2rem;
}
span[data-title="h4"]{
    /* width: 100%; */
    font-weight: bold;
    line-height: 150%;
    display: block;
    font-size: 1.1rem;
}
/* body[data-screen="desktop"] span[data-title="h4"]{
}
body[data-screen="mobile"] span[data-title="h4"]{
    font-size: 1.1rem;
} */
span[data-title="h5"]{
    /* width: 100%; */
    font-size: 1rem;
    font-weight: bold;
    line-height: 150%;
    display: block;
}
span[data-title="h6"]{
    /* width: 100%; */
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 150%;
    display: block;
}
span[data-title="text"]{
    width: 100%;
    font-size: 1rem;
    font-weight: normal;
    line-height: 175%;
    text-align: justify;
    display: block;
}
span[text-type="quote"]{
    /* margin-left: 2rem; */
    /* width: calc(100% - 2rem); */
    font-size: 0.9rem;
    line-height: 150%;
    text-align: justify;
    display: block;
}
span[text-type="quote"]::before{
    content: "* ";
    font-size: 0.9rem;
}
span[text-type="equation"]{
    width: 100%;
    line-height: 100%;
    margin: -1rem 0;
    overflow-x: auto;
}
span[data-texttype="equation"]{
    width: 100%;
    line-height: 100%;
    margin: -1rem 0;
    overflow-x: auto;
}
span[data-highlight="underline"]{
    background: linear-gradient(to right, #FFD89E, #FFD89E) no-repeat center bottom;
    background-size: calc(100% + 2rem) 40%;
}
span[data-title="h1"][data-highlight="numbered"]{
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-left: 5rem;
    position: relative;
}
span[data-title="h1"][data-highlight="numbered"]::before{
    content: attr(data-prefix);
    font-size: 2rem;
    position: absolute;
    left: 0;
    bottom: 0;
    /* align-self: baseline; */
}
span[data-highlight="starring"]{
    padding: 2rem 0 1rem 3rem;
    align-self: center;
    position: relative;
}
span[data-highlight="starring"]::before{
    content: " ";
    width: 3rem;
    aspect-ratio: 1 / 1;
    border-style: solid;
    border-width: 1rem;
    border-color: #FFD89E;
    border-radius: 50%;
    z-index: 0;
    position: absolute;
    left: 0;
    bottom: 50%;
    transform: translate(0, 50%);
}
span[data-title="h1"][data-titlespec="quaint"]{
    color: #465A18;
    align-self: center;
    margin-top: 4rem;
    margin-bottom: 1rem;
    position: relative;
}
span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="background"]{
    height: calc(100% + 1rem);
    z-index: -1;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
body[data-screen="desktop"] span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="background"]{
    width: calc(100% + 8rem);
}
body[data-screen="mobile"] span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="background"]{
    width: calc(100% + 4rem);
}
span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="leave-left"]{
    position: absolute;
    bottom: -0.5rem;
}
body[data-screen="desktop"] span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="leave-left"]{
    width: 7rem;
    left: -7.5rem;
}
body[data-screen="mobile"] span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="leave-left"]{
    width: 5rem;
    left: -4rem;
}
span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="leave-right"]{
    position: absolute;
}
body[data-screen="desktop"] span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="leave-right"]{
    width: 9rem;
    top: -2.2rem;
    right: -6rem;
}
body[data-screen="mobile"] span[data-title="h1"][data-titlespec="quaint"] img[data-titleimg="leave-right"]{
    width: 6rem;
    top: -1.5rem;
    right: -3.5rem;
}
*[data-highlight="underline"]{
    background: linear-gradient(to bottom, transparent, transparent calc(100% - var(--highlightThickness)), var(--highlightColor)calc(100% - var(--highlightThickness)));
}
*[data-vspace="1rem"]{
    width: 100%;
    height: 1rem;
}
*[data-vspace="2rem"]{
    width: 100%;
    height: 2rem;
}
*[data-vspace="4rem"]{
    width: 100%;
    height: 4rem;
}
/* leading */
.leading{
    margin: 0 auto;
    width: 60rem;
    max-width: calc(100dvw - 4rem);
    padding: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}
.leading-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /* gap: 1rem; */
    position: relative;
}
.leading-container span{
    font-size: 1rem;
    line-height: 175%;
    margin-block-start: 0.5rem;
    margin-block-end: 0.5rem;
}
.leading-overview{
    margin: 4rem auto 1rem auto;
    text-align: center;
    color: #465A18;
    font-family: Cinzel !important;
    line-height: 150% !important;
    font-weight: bold;
    position: relative;
}
body[data-screen="desktop"] .leading-overview{
    max-width: calc(100% - 12.5rem);
    font-size: 3rem !important;
}
body[data-screen="mobile"] .leading-overview{
    max-width: calc(100% - 7.5rem);
    font-size: 1.5rem !important;
}
.leading-overview img[data-titleimg="background"]{
    height: calc(100% + 1rem);
    z-index: -1;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
body[data-screen="desktop"] .leading-overview img[data-titleimg="background"]{
    width: calc(100% + 8rem);
}
body[data-screen="mobile"] .leading-overview img[data-titleimg="background"]{
    width: calc(100% + 4rem);
}
.leading-overview img[data-titleimg="leave-left"]{
    position: absolute;
    bottom: -0.5rem;
}
body[data-screen="desktop"] .leading-overview img[data-titleimg="leave-left"]{
    width: 7rem;
    left: -7.5rem;
}
body[data-screen="mobile"] .leading-overview img[data-titleimg="leave-left"]{
    width: 5rem;
    left: -4rem;
}
.leading-overview img[data-titleimg="leave-right"]{
    position: absolute;
}
body[data-screen="desktop"] .leading-overview img[data-titleimg="leave-right"]{
    width: 9rem;
    top: -2.2rem;
    right: -6rem;
}
body[data-screen="mobile"] .leading-overview img[data-titleimg="leave-right"]{
    width: 6rem;
    top: -1.5rem;
    right: -3.5rem;
}
/* .leading-overview::after{
    content: "OVERVIEW";
    color: var(--gray6) !important;
    font-family: Cinzel !important;
    font-size: 3rem !important;
    line-height: 175% !important;
    font-weight: bold;
    z-index: -1;
    position: absolute;
    left: calc(50% + 0.25rem);
    top: calc(50% + 0.25rem);
    transform: translate(-50%, -50%);
} */
.leading-text{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-grow: 1;
}
.leading-nav{
    width: 100%;
    /* height: 8rem; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
body[data-screen="desktop"] .leading-nav{
    flex-direction: row;
}
body[data-screen="mobile"] .leading-nav{
    flex-direction: column;
}
.leading-nav-item{
    cursor: pointer;
    position: relative;
}
body[data-screen="desktop"] .leading-nav-item{
    /* width: calc(50% - 0.5rem); */
    /* height: 100%; */
    flex: 1;
    height: 8rem;
}
body[data-screen="mobile"] .leading-nav-item{
    width: 100%;
    height: 8rem;
}
.leading-nav-item-logo{
    width: 20%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    /* background-color: #A77B44; */
    /* box-shadow: 0 0 0.25rem 0 rgb(0 0 0 / 0.5); */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
}
.leading-nav-item-logo img{
    display: block;
    width: 80%;
}
.leading-nav-item:hover .leading-nav-item-logo{
    width: 25%;
    transform: translate(-10%, -50%);
}
.leading-nav-item-container{
    width: calc(80% - 4rem);
    padding: 2rem 2rem 2rem calc(10% + 2rem);
    height: calc(100% - 4rem);
    border-radius: 0.5rem;
    /* background-color: #ECDCC4; */
    background-color: #DAC199;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    position: absolute;
    top: 0;
    right: 0;
}
/* model-logos */
.model-logos{
    /* width: 6rem; */
    height: fit-content;
    padding: 1rem 1rem 1rem 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(-100% + 16rem));
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 1rem;
    position: sticky;
    left: 100%;
    top: 96px;
}
.model-logos[data-position="standby"]{
    transform: translateX(calc(-100% + 12rem));
    opacity: 0.5;
    visibility: visible;
}
.model-logos[data-position="active"]{
    transform: translateX(calc(-100% + 8rem));
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(2px);
}
.model-logo{
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}
.model-logo span{
    padding: 0.75rem;
    border-radius: 0.25rem;
    background-color: #DAC199;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: bold;
    visibility: hidden;
    opacity: 0;
    transform: translateX(25%);
    transition: all 0.3s ease;
}
.model-logos[data-position="active"] .model-logo span{
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}
.model-logo img{
    width: 6rem;
    display: block;
}
.tryit{
    width: fit-content;
    padding: 0.5rem 0.75rem;
    /* border: 0.125rem solid #BF8D4E; */
    background-color: #BF8D4E;
    border-radius: 0.25rem;
    box-shadow: 0 0 0.25rem 0.125rem rgb(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FDF7ED;
    font-weight: bold;
    line-height: normal;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -ms-touch-select: none;
    -webkit-user-select: none;
    display: inline-block;
}
.tryit:hover{
    transform: translateY(-0.25rem);
    filter: brightness(1.05);
}
/* list */
.ul{
    margin-left: 2rem;
    width: calc(100% - 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ol{
    margin-left: 2rem;
    width: calc(100% - 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.li{
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
}
.ol li::marker{
    content: counter(list-item) "   ";
    /* font-family: 'NotoSans'; */
    font-weight: bold;
    color: #465A18;
    /* font-size: 0.8rem; */
}
.li-emphasis{
    color: #465A18 !important;
    font-weight: bold !important;
}
.medal-icon{
    height: 1.25rem;
    display: block;
    justify-self: anchor-center;
}
.to-top{
    width: 4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: fixed;
    right: 0rem;
    bottom: 5.5rem;
}
.to-top:hover{
    filter: brightness(1.1);
    transform: translateY(-1rem);
}
.to-top img{
    width: 100%;
    display: block;
}