body {
    padding-top: 56px;
}

.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 {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* File: ais-china.css */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /*cursor: default;*/
}

::selection {
    color: white;
    background-color: midnightblue;
}

body * {
    scroll-margin-top: 100px;
}

html {
    scroll-behavior: smooth;
}

/*Custom Cursor Hidden except for <p>*/
body {
    background: white;
    cursor: url("https://static.igem.wiki/teams/5186/pointer-final.png") 2 2, auto;
}

a:hover,
.sidebarTab:hover {
    cursor: url("https://static.igem.wiki/teams/5186/pointer-final.png") 2 2, auto;
}

p {
    cursor: url('https://static.igem.wiki/teams/5186/text-select.png') 5 25, auto;
    /* Text cursor for text */
}

#loading {
    position: fixed;
    z-index: 100000000;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    flex-direction: column;
}

#loading h1 {
    text-align: center;
    color: white;
    font-size: 4rem;
}

#loading img {
    height: 50%;
    width: 50%;
    object-fit: cover;
    display: block;
}


/*Blood element created after click via js*/
.blood {
    opacity: 60%;
    /*transform: rotate(90deg);*/
    z-index: 10000;
    position: absolute;
    pointer-events: none;
    user-select: none;
    transition: opacity 2s ease;
    /* Transition for opacity */
}

#icon img {
    height: 100%;
}

.navbar {
    background-color: rgb(14 19 46);
    min-height: 70px;
}

.navbar-brand {
    height: 60px;
}

.dropdown-toggle::after {
    color: white;
}

.dropdown-menu {
    transform: translate(0px, 10px);
    background: transparent;
    background-image: url("https://static.igem.wiki/teams/5186/dropdown-menu-background.png");
    /*background-repeat: no-repeat;*/
    background-position: center;
    background-size: 100% 100%;
    border: none;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1rem;
    clear: both;
    font-weight: 400;
    color: white;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0
}

.dropdown-item:focus,
.dropdown-item:hover {
    /*color: #f4e3bf;*/
    color: #c9f2f7;
    background-color: transparent;
}


.image-wrapper {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 50px;
    /*margin: 5px;*/
}

.image-wrapper img {
    position: absolute;
    top: -15px;
    left: 0;
    transition: opacity 0.3s;
    height: 80px;
}

.image-wrapper .nav-icon-active {
    opacity: 0;
}

.image-wrapper:hover .nav-icon-active {
    opacity: 1;
}

.image-wrapper:hover .nav-icon {
    opacity: 0;
}

/* Scroll Indicator */
#progress-container {
    position: fixed;
    top: 80px;
    z-index: 1040;
    width: 100%;
    left: 0;
    pointer-events: none;
}

#progress-bar {
    height: 10px;
    background: linear-gradient(90deg, #f7e4ba, #f47971);
    width: 0;
    border-radius: 5px;
}

#progress-gif {
    background-image: url('https://static.igem.wiki/teams/5186/flying-mosquito.gif');
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    top: -25px;
    left: -20px;
    width: 40px;
    height: 40px;
    z-index: 100000;
}

#progress-attract {
    position: absolute;
    right: 0;
    transform: rotateY(180deg) rotate(90deg);
}

#display_sidebar {
    position: fixed;
    bottom: 10px;
    left: 10px;
    width: 70px;
    display: none;
    z-index: 10;
}

#toTopButton {
    z-index: 99;
    position: fixed;
    bottom: 30px;
    right: 10px;
    height: 80px;
    background: none;
    border: none;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    padding: 0;
    display: none;
}

#toTopButton img {
    height: 135%;
    object-fit: cover;
    /*width: auto;*/
    /*height: auto;*/
    transition: transform 0.3s ease-in-out;
}

#toTopButton:hover img:not(.clicked) {
    content: url('https://static.igem.wiki/teams/5186/to-top-hover.png');
}

.clicked {
    content: url('https://static.igem.wiki/teams/5186/to-top-clicked.png');
}

@keyframes shoot {
    0% {
        bottom: 10px;
        opacity: 1;
    }

    100% {
        bottom: 100%;
        opacity: 0.5;
    }
}

body::-webkit-scrollbar {
    display: none;
}


body {
    background-color: #c9f2fd;
    overflow-x: hidden;
}


/* FIXME:Fonts */

h1 {
    font-size: 28px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
}

h2 {
    font-size: 23px;
    font-family: 'Times New Roman', Times, serif;
}

h3 {
    font-size: 23px;
    font-family: 'Times New Roman', Times, serif;
}

p {
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
}

.captions {
    font-size: 15px;
}

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

.head {
    margin-left: 0;
    margin-right: 0;
}

.normal_texts h1 {
    font-size: 2em;
    color: #000000;
    z-index: 5;
    font-weight: 1;
    line-height: 1.2;
    letter-spacing: 0.6px;
    margin-left: 2vw;
    margin-right: 4.5vw;
}

/* NOT IN USE */
/* .normal_texts h2 {
    font-size: 20pt;
    font-weight: 520;
    margin-left: 2.4vw;
    margin-right: 2.4vw;
    line-height: 2.3vw;
} */

.normal_texts h3 {
    font-size: 2.5em;
    font-weight: 500;
    margin-left: 1vw;
    margin-right: 2.4vw;
}

.normal_texts h4 {
    font-size: 1.5em;
    font-weight: 500;
    margin-left: 2.3vw;
    margin-right: 2.4vw;
    color: #555;
}

.normal_texts h4::before {
    content: "•";
    color: rgb(14, 19, 46);
    display: inline-block;
    width: 1em;
}


.block-title {
    font-size: 3em;
    font-weight: 520;
    margin-left: 3vw;
    display: inline-block;
    border-radius: 24px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    padding: 1vh 5vw;
    margin-bottom: 2vh;
    background: rgb(14, 19, 46);
    color: white;
    position: relative;
    text-decoration: underline;
}

.block-title:before {
    content: "";
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-60%);
    width: 100%;
    height: 200%;
    background-image: url('https://static.igem.wiki/teams/5186/title-before.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
}

.block-title:after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translate(-39px, -60%);
    width: 100%;
    height: 200%;
    background-image: url('https://static.igem.wiki/teams/5186/title-after.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
}

.main-block:nth-of-type(odd)::before {
    content: "";
    position: absolute;
    transform: translate(-51%, -171%);
    width: 5vw;
    height: 5vw;
    background-image: url("https://static.igem.wiki/teams/5186/title-before-icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.main-block:nth-of-type(even)::before {
    content: "";
    position: absolute;
    transform: translate(-77%, -175%) rotate(147deg);
    width: 6vw;
    height: 6vw;
    background-image: url(https://static.igem.wiki/teams/5186/title-after-icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.main-block {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin-left: 3.0vw;
    margin-right: 2vw;
    margin-bottom: 10vh;
    padding: 3vw;
}

.normal_texts {
    font-family: Verdana;
}

.normal_texts p {
    margin: 1.6vw 2.5vw;
    font-size: 1.3em;
    line-height: 1.4;
}

.normal_texts ol {
    margin: 1.4vw 4.5vw;
    font-size: 1em;
    font-weight: 300;
}

.normal_texts li {
    margin: 0.7vw;
    font-weight: 300;
}

blockquote {
    font-size: 1em;
    line-height: 1.6;
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 10px solid #ccc;
    margin-left: 30px;
}

blockquote:before {
    content: "\201C";
    font-size: 4em;
    color: #ccc;
    vertical-align: -0.4em;
    line-height: 0;
    margin-right: 10px;
}

blockquote:after {
    content: "\201D";
    font-size: 4em;
    color: #ccc;
    vertical-align: -0.4em;
    line-height: 0;
    margin-left: 10px;
}

blockquote p {
    display: inline;
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
    text-align: right;
}

blockquote cite:before {
    content: "\2014 \00A0";
    /* em dash and non-breaking space */
    color: #555;
}

.picture_and_explanation {
    text-align: center;
}

.picture_and_explanation img {
    max-width: 100%;
    height: auto;
}

.picture_and_explanation p {
    font-size: 1em !important;
    font-family: Arial;
    color: grey;
    text-align: center;
    margin-left: 5vw !important;
    margin-right: 5vw !important;
}

.imgtextcol {
    display: flex;
    text-align: center;
    align-items: center;
    margin: 0 5vw;
}

.imgtextcol img {
    width: 30%;
    height: auto;
}

.imgtextcol p {
    text-align: start;
    font-size: 2em;
    font-weight: bold;
    color: gray;
    border-left: gray 5px solid;
    padding-left: 20px;
}

.header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(40%);
    z-index: -1;
}

.header-title {
    position: relative;
    z-index: 1;
    font-size: 7vw;
    font-weight: bold;
    /*padding-bottom: 100px;*/
    text-shadow: 0px 0px 100px #fff;
    /*text-decoration: underline 25px #3b3d6b;*/
    text-align: center;
}

.underline {
    position: relative;
    left: 50%;
    bottom: 80px;
    width: 0;
    height: 30px;
    background-color: #3b3d6b;
    transition: width 0.3s ease;
    transform: translateX(-50%);
    /*opacity: .8;*/
    border-radius: 10px;
}

.title-container:hover .underline {
    width: 110%;
}

.title-container {
    padding: 50px;
}

.container-page {
    width: 100%;
    padding-right: .75rem;
    padding-left: .75rem;
    margin-right: 0;
    margin-left: 0;
    margin-top: 80px;
}

.container-everything {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.sidebar {
    /*margin-top: 30px;*/
    margin-bottom: 10vh;
    margin-left: 2vw;
    margin-right: 0px;
    padding: 0;
    width: calc(300px + 2.7vw);
    position: sticky;
    height: auto;
    overflow: visible;
    top: 100px;
    border-radius: 0px 20px 20px 0px;
    align-self: flex-start;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar img {
    width: 100%;
    height: auto;
    margin: auto;
    position: sticky;
    top: 0px;
    backdrop-filter: blur(4px);
}

.sidebar a {
    display: block;
    color: white;
    padding: 16px;
    text-decoration: none;
    font-size: 18px !important;
    font-family: "Kanit", sans-serif;
}

@media (max-width: 950px) {
    .sidebar {
        display: none;
    }

    #display_sidebar {
        display: none !important;
    }
}

.sidebarTab {
    margin-top: 2vw;
    margin-bottom: 2vw;
    margin-left: 2em;
    margin-right: 20px;
    font-family: Verdana;
    font-size: 18px;
}

.sidebarTab::before {
    content: "• ";
    color: rgb(14, 19, 46);
    display: inline-block;
    /*width: 1em;*/
    margin-left: -1em;
}

.sidebarTabTab {
    margin-left: 3em;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.references {
    margin: 20px;
    overflow-wrap: anywhere;
}

.references h2 {
    font-size: 24pt;
    font-weight: 520;
}

.references ol {
    margin: 0;
    padding: 0;
    list-style-position: inside;
}

.references li {
    margin-bottom: 10px;
}

.references a {
    text-wrap: initial;
    color: #1a0dab;
    text-decoration: none;
}

.references a:hover {
    text-decoration: underline;
}

iframe {
    border-radius: 20px;
}

/* ExpandBox */
/* ihp and entre */

.expandable-box {
    justify-self: center;
    background-color: #ffa4a4;
    color: white;
    margin: auto;
    border-radius: 3px;
    /* box-shadow: 3px 3px 3px #de775b; */
    width: 90%;
    margin-bottom: 20px;
    /* border: solid 1px #EBEBF1; */
}

.expandable-box-title {
    min-height: 60px;
    font-size: 1rem;
    padding: 0.5rem 3rem 0.5rem 1rem;
    line-height: 1.5;
    font-weight: 500;
    display: flex;
    align-items: center;
    position: relative;
}

.expandable-box-title::after {
    content: "\002B";
    font-size: 1.5rem;
    position: absolute;
    right: 1rem;
}

.expandable-box-title.active::after {
    content: "\2212";
}

.expandable-box-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    padding-left: 20px;
    padding-right: 20px;
}

.expandable-box-body-content {
    padding: 1rem;
    line-height: 1.5rem;
    border-top: 1px solid;
    border-image: linear-gradient(to right, transparent, white, transparent) 1;
    justify-content: center;
    text-align: justify;
    margin-left: 20px;
    margin-right: 20px;
}



/* Footer */

footer {
    position: relative;
    width: 100%;
    background-color: rgb(14, 19, 46);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    border-top: 1px solid #000000;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.footer-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.mains {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.mains img {
    width: 150px;
    height: auto;
    margin: 50px;
    padding: 20px;
    background: white;
    border-radius: 50px;
}

.autoscroll {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 80vw;
    margin: 20px;
    border-radius: 20px;
}

.autoscroll::after {
    content: "";
    width: 80vw;
    height: 150px;
    background: linear-gradient(to right, rgb(14, 19, 46) 0%, transparent 10%, transparent 90%, rgb(14, 19, 46) 100%);
    display: flex;
    position: absolute;
    top: 0;
}

.scroll-container {
    display: inline-flex;
    align-items: center;
    animation: scroll 20s linear infinite;
    gap: 50px;
    transform: translateX(100%);
    justify-content: space-around;
    padding-right: 50px;
}

.autoscroll:hover .scroll-container {
    animation-play-state: paused;
}

.scroll-container img {
    display: inline-block;
    margin-right: 10px;
    height: 150px;
    background-color: white;
    border-radius: 20px;
    padding: 10px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.top {
    height: 50px;
    background-color: #f8f9fa;
}


h1 {
    font-size: 24px;
    margin-bottom: 10px;
}




.message-container {
    position: relative;
    margin: 1vw 1vw 3vw;
    display: inline-block;
    border: 2px solid #000000;
    border-radius: 20px;
    padding-top: 5em;
}

.message-avatar {
    display: flex;
    width: 5vw;
    aspect-ratio: 1;
    border: #000000 2px solid;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    left: 1vw;
    z-index: 1;
    justify-content: center;
    align-items: center;
    background-color: rgb(14 19 46);
}

.message-avatar.answer {
    left: auto;
    right: 1vw;
}

.message-avatar img {
    width: 95%;
    height: 95%;
    object-fit: contain;
}

.message-sender {
    color: #000000;
    position: absolute;
    transform: translateY(-2.5em);
    text-wrap: nowrap;
    font-size: 1.5em;
    background: #ffe0e0;
    padding: 5px;
    border-radius: 10px;
    left: 7vw;
    right: auto;
}

.message-sender.answer {
    right: 0;
    right: 7vw;
    left: auto;
}

.message-content {
    display: flex;
    flex-direction: column;
    background: #fff9e6;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    /* margin-left: 6vw; */
    margin: 0 7vw 4em;
    position: relative;
    /* bottom: 5vw;*/
}

.message-content:last-child {
    margin: 0 7vw 1em;
}

.message-content.lonely {
    margin: 0 1vw 1vw 7vw;
}

.message-content img {
    /* height: 60vh; */
    width: auto;
    margin: 20px auto;
    max-width: 70%;
}