:root {
    --base-text-size: 1.5em;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

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

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

:target::before {
    content: "";
    display: block;
    height: 3em; /* fixed header height*/
    margin: -3em 0 0 0; /* negative fixed header height */
}

html, body {
    height: 100%;
}

body {
    padding-top: 56px;
    /* background-color: #f5f5ff; */
    font-family: "museo-300";
    /* background-image: linear-gradient(to right, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)), */
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9)),
                      url('https://static.igem.wiki/teams/4435/wiki/template/bg-body.svg'),
                      linear-gradient(to left, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9)),
                      url('https://static.igem.wiki/teams/4435/wiki/template/bg-body-double-flip.svg');
    /* background: linear-gradient(to right, white, rgba(0, 255, 0, 0.25)); */
    background-size: 50% auto;
    background-position: 0 0, 0 0, 50vw 0, 50vw 0;
    background-repeat: repeat-y;
}

li {
    font-size: 1.3em;
}

/* .spinner-border { */
/*     position: absolute; */
/*     top: 50%; */
/*     left: 50%; */
/* } */

/* .page-content, .container, .pt-5, .wiki-tools-footer { */
/*     display: none; */
/* } */

h1, h2, h3, h4, h5, h6 {
    font-family: "museo-700";
}

.navbar-light .navbar-nav a:hover {
    background-color:rgba(35, 35, 35, 0);
    /* text-decoration: underline; */
    font-weight: bold;
}

.left-aligned { margin: auto; }
.bg-dark {
    background-color: #fff !important;
}
.bg-footer {
    /* background-color: #018f67 !important; */
    /* background-image: linear-gradient(to right, transparent, rgba( 94, 96, 204, 0.5) 0vw, */
    /*                                   rgba( 94, 96, 204, 0.5) 100vw, transparent); */
    background-image: linear-gradient(to bottom, transparent, rgba( 94, 96, 204, 0.5) 5%,
                                      rgba( 94, 96, 204, 0.5) 100%);
}
/* .bg-hero { background-color: #429EBD; } */
.bg-hero {
    /* background-color: #f5f5ff; */
    background-image: linear-gradient(to right, transparent, rgba( 94, 96, 204, 0.15) 20vw, transparent);
    margin-top: 2em;
}

.navbar {
    /* background-color: rgba(230, 230, 255, 1.0); */
    /* background-color: #000000; */
    -webkit-transition: all 0.75s ease;
    -moz-transition: all 0.75s ease;
    -o-transition: all 0.75s ease;
    transition: all 0.75s ease;
    background-color: rgba(0, 0, 0, 0);
}

#navbar-top {
    z-index: 49;
}

/* #navbarSupportedContent { */
/*     margin-left: 50vh !important; */
/* } */

/* .collapse navbar-collapse navbar-default { */
/* navbar-expand-xl.navbar-nav { */
/*     /\* display: block; *\/ */
/*     margin-left: 15vw; */
/* } */

@media (max-width: 1000px) {
    .navbar-collapse {
        background: #FFFFFF !important;
    }
}

.navbar:after{
    content: '';
    width: 100%;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 0;
    /* background: rgba(0, 0, 0, 0); */
    background: rgba(0, 0, 0, 0.1);
    /* border-radius: 5px; */
}

.navbar-custom {
    height: 200px;
}

.navbar-light .navbar-nav .nav-link {
    /* .navbar-dark .navbar-nav .nav-link { */
    color:rgb(35, 35, 35);
    /* color:rgb(255, 255, 255); */
    /* font-size: 1.4vw; */
    /* padding-top:0.75rem;
       padding-bottom:0.75rem; */
    margin-right:0.5rem;
    margin-left:0.5rem;
}

.nav-link.dropdown-toggle {
    pointer-events: none;
}

.dropdown .dropdown-menu {
    /* display: block; */
    margin-top: 0; /* remove the gap so it doesn't close */
    background-color: rgba(230, 230, 255, 1.0);
    border-color: rgba(180, 180, 200, 1.0);
    border: none;
    /* border-radius: 10% 20% 50% 20% / 10% 50% 10% 40%; */
    border-radius: 1em 2em 5em 2em / 1em 5em 1em 4em;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #9FE7F5; 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 }

/* Three columns side by side */
.column {
    float: left;
    width: 33.3%;
    margin-bottom: 16px;
    padding: 0 8px;
}

/* Display the columns below each other instead of side by side on small screens */
@media screen and (max-width: 650px) {
    .column {
        width: 100%;
        display: block;
    }
}

/* Add some shadows to create a card effect */
.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* Some left and right padding inside the container */
.container {
    /* margin-left: min(6em, 11vw); /\* Same as the width of the sidenav *\/ */
    /* margin-left: 0vw; /\* Same as the width of the sidenav *\/ */
    padding: 0 0px;
    width: calc(90vw - min(6em, 11vw));
}

.container p {
    font-size: 1.5em;
    text-align: justify;
}

/* Clear floats */
.container::after, .row::after {
    content: "";
    clear: both;
    display: table;
}

.team_function {
    color: grey;
}

.container_team {
    position: relative;
    width: 100%;
}

.image_team {
    display: block;
    width: 100%;
    height: 100%;
}

.main {
    display: grid;
    grid-template-columns: repeat(auto-fit, calc(var(--s) + 2*var(--mh)));
    justify-content: center;
    --s: 20vw; /* size */
    --r: 1; /* ratio */
    /* clip-path */
    --h: 0.5;
    --v: 0.25;
    --hc:calc(clamp(0,var(--h),0.5) * var(--s)) ;
    --vc:calc(clamp(0,var(--v),0.5) * var(--s) * var(--r));

    /*margin */
    --mv: 0.8vw; /* vertical */
    --mh: calc(var(--mv) + (var(--s) - 2*var(--hc))/2); /* horizontal */
    /* for the float*/
    --f: calc(2*var(--s)*var(--r) + 4*var(--mv)  - 2*var(--vc) - 2px);
}

.container_card {
    font-size: 0; /*disable white space between inline block element */
    grid-column: 1/-1;
    filter: drop-shadow(-1px 6px 3px rgba(50, 50, 0, 0.5));
    padding-bottom:calc(var(--s)*var(--r) + var(--mv));
}

.container_card div {
    width: var(--s);
    margin: var(--mv) var(--mh);
    height: calc(var(--s)*var(--r));
    display: inline-block;
    font-size: initial;
    clip-path: polygon(var(--hc) 0, calc(100% - var(--hc)) 0,100% var(--vc),100% calc(100% - var(--vc)), calc(100% - var(--hc)) 100%,var(--hc) 100%,0 calc(100% - var(--vc)),0 var(--vc));
    margin-bottom: calc(var(--mv) - var(--vc));
}

.container_card::before{
    content: "";
    width: calc(var(--s)/2 + var(--mh));
    float: left;
    height: 140%;
    shape-outside: repeating-linear-gradient(
        #0000 0 calc(var(--f) - 2px),
        #000  0 var(--f));
}

.team_card {
    width: 100%;
    bottom: 0;
    right: 0;
    background: #008CBA;
    position: relative;
    cursor: pointer;
}

.team_card:hover .overlay {
    display: none;
    height: 100%;
    opacity: 0.95;
}

.overlay {
    position: absolute;
    background: #008CBA;
    top: calc(var(--mv) * -1);
    bottom: 0;
    left: calc(var(--mh) * -1);
    right: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.overlay::before {
    content: "";
    float: left;
    height: 100%;
    width: 100%;
    shape-margin: 0%;
    shape-outside: polygon(0% 0%, 100% 0%, 100% 25%, 0% 25%, 0% 75%, 100% 75%, 100% 100%, 50% 100%, 0% 100%)
}

.overlay p {
    position: relative;
}

hr.team {
    border-top: 4px solid rgb(1, 143, 29);
    margin-top: 1%;
}

.progress-container {
    position: fixed;
    z-index: 47;
    width: 100%;
    height: 4px;
    background: rgb(204, 204, 204);
}

.progress-bar {
    position: fixed;
    z-index: 48;
    height: 4px;
    background: #04AA6D;
    width: 0%;
}

#div-sidenav {
    background-image:
        url('https://static.igem.wiki/teams/4435/wiki/template/lateral-extendido-espacado-arrow3-cropped-transparent.svg');
    background-size: cover;
    /* top: 5.5em; */
    /* height: calc(100vh - 5.5em); */
    top: 0px;
    height: 100vh;
    width: 31vh;
    display: inline-block;
    /* display: flex; */
    position: fixed;
    z-index: 49;
    /* bottom: -3.3%; */
    /* left: min(calc(9vw - 33vh), -22vh); */
    /* right: calc(100vw - 11vw); */
    /* right: max(calc(100vw - 9vh), calc(100vw - 11vw)); */
    left: min(calc(9vh - 31vh), calc(11vw - 31vh));
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    overflow-x: hidden;
    padding-top: 7.5em;
    vertical-align: center;
}

#div-sidenav::-webkit-scrollbar {
    width: 1px;
}

#div-sidenav::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid darkgrey;
}

#div-sidenav:hover {
    /* color: #f1f1f1; */
    left: 0;
    /* right: calc(100vw - 31vh); */
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#div-sidenav-contents {
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    margin-top: 30%;
    /* padding: 6px 50px 3em 16px; */
}

#div-sidenav-contents span {
    /* background-color: white; */
    /* background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.7) 25%, transparent 50%); */
    /* background-image: radial-gradient(rgba(25, 25, 25, 0.5) 0%, rgba(25, 25, 25, 0.5) 25%, transparent 50%); */
    /* padding: 0.25em 1em; */
    /* margin-left: -1em; */
    /* color: black; */
    color: white;
    /* text-shadow: 2px 2px 5px rgba(25, 25, 25, 1.0), -2px -2px 5px rgba(25, 25, 25, 1.0), */
    /*              2px -2px 5px rgba(25, 25, 25, 1.0), -2px 2px 5px rgba(25, 25, 25, 1.0); */
    text-shadow: 2px 2px 0.5px rgba(25, 25, 25, 1.0), -2px -2px 0.5px rgba(25, 25, 25, 1.0),
                 2px -2px 0.5px rgba(25, 25, 25, 1.0), -2px 2px 0.5px rgba(25, 25, 25, 1.0),
                 2px 0px 0.5px rgba(25, 25, 25, 1.0), -2px 0px 0.5px rgba(25, 25, 25, 1.0),
                 0px -2px 0.5px rgba(25, 25, 25, 1.0), 0px 2px 0.5px rgba(25, 25, 25, 1.0);
    font-weight: bold;
    font-size: 0.8em;
}

#div-sidenav-contents a {
    text-decoration: none;
    font-size: 1.3em;
    color: #818181;
    display: block;
    padding: 6px min(9vh, 11vw) 1.5em 16px;
    line-height: normal;
}

/* .navbar { */
/*     position:relative; */
/*     display:flex; */
/*     flex-wrap:wrap; */
/*     align-items:center; */
/*     justify-content:space-between; */
/*     padding-top:.5rem; */
/*     padding-bottom:.5rem; */
/* } */
/* .navbar { */
/*     align-items:left; */
/* } */

.nav-background {
    z-index: 49;
}
.nav-brand {
    z-index: 51;
}
.nav-brand img {
    /* object-fit: cover; */
    /* width: 7vw; */
    /* background-size: contain; */
    /* position: absolute; */
    /* left: 10vw; */
    top: 1em;
    height: 5.0em;
    /* top: 20%; */
    background-position: right top;
    z-index: 51;
}

#logo-invisible {
    visibility: hidden;
    top: 0px;
    padding: 0px;
    height: 3.5em;
    /* display: none; */
}

#logo-outline {
    /* position: relative; */
    position: absolute;
    left: min(6em, 11vw);
    /* left: 0; */
    /* margin: 0; */
    /* padding: 0; */
    /* height: 5.0em; */
    /* top: 0em; */
    /* z-index: 100; */
}

#logo-completo {
    /* position: relative; */
    position: absolute;
    left: min(6em, 11vw);
    /* left: 0; */
    --p: 0%;
    clip-path: polygon(0% 0%,0% 100%,var(--p) 100%,var(--p) 0%);
    /* margin: 0; */
    /* padding: 0; */
    /* height: 5.0em; */
    /* top: -5em; */
    /* z-index: 100; */
}

#logo-link {
    z-index: 100;
}

.sponsor-logo img {
    height: 8em;
    top: 0.5em;
    margin-right: 2em;
}

.contact-logos img {
    vertical-align: sub;
}

#email-logo {
    height: 1.4em;
}

#instagram-logo {
    height: 1.8em;
    margin-left: 0.25em;
    margin-right: 0.1em;
}

.navbar-toggler {
    position: absolute;
    right: 1em;
    top: 1em;
}

/* footer */
/* footer a { color: white; font-weight: bold; text-decoration: none; } */
/* footer a:hover { color: white; text-decoration: underline; } */
footer {
    color: black !important;
    font-weight: bold;
    text-decoration: none;
}

footer a {
    color: black;
    font-weight: bold;
    text-decoration: none;
}

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

/* Loader */
.no-js #loader { display: none;  }
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
.se-pre-con {
	/* position: fixed; */
	/* left: 0px; */
	/* top: 0px; */
	/* width: 100%; */
	/* height: 100%; */
	/* z-index: 100; */
	/* background: center no-repeat #fff; */
	/* background: url() center no-repeat #fff; */
	/* background-image: url('https://static.igem.wiki/teams/4435/wiki/template/logov4.gif'); */

    /* position: absolute; */
    /* top: 50%; */
    /* left: 50%; */

    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.se-pre-con img {
    height: 20vh;
}

/* The actual timeline (the vertical ruler) */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 10vh auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #7400b8;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Container around content */
.container-timeline {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.container-timeline::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: 0%;
    background-color: white;
    border: 4px solid #7400b8;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left {
    left: 0;
}

/* Place the container to the right */
.right {
    left: 50%;
}

/* Fix the circle for containers on the right side */
.right::after {
    left: 0%;
}

/* The actual content */
.content-timeline {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    /* border-color: rgba(0, 0, 0, 1.0); */
    /* font-size: 1.5em; */
    box-shadow: 3px 3px 10px black;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
    /* Place the timelime to the left */
    .timeline::after {
        left: 5%;
    }

    /* Full-width containers */
    .container-timeline {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Make sure all circles are at the same spot */
    .left::after, .right::after {
        left: 5%;
    }

    /* Make all right containers behave like the left ones */
    .right {
        left: 0%;
    }
}

/* #index-animation { */
/*     display: flex; */
/*     justify-content: center; */
/*     align-items: center; */
/*     width: 100vw; */
/*     height: calc(100vh - 5.5em); */
/*     position: fixed; */
/*     top: 5.5em; */
/*     left: 0; */
/*     /\* background-image: url('https://static.igem.wiki/teams/4435/wiki/pages/index/bottle.svg'); *\/ */
/*     background-size: contain; */
/*     background-repeat: no-repeat; */
/*     background-position: center center; */
/*     -webkit-transition: all 1.0s ease-in-out; */
/*     -moz-transition: all 1.0s ease-in-out; */
/*     -o-transition: all 1.0s ease-in-out; */
/*     transition: all 1.0s ease-in-out; */
/* } */

/* #index-animatext { */
/*     display: flex; */
/*     justify-content: center; */
/*     align-items: center; */
/*     width: 100vw; */
/*     height: calc(100vh - 5.5em); */
/*     position: fixed; */
/*     top: 5.5em; */
/*     left: 0; */
/*     /\* all: url('https://static.igem.wiki/teams/4435/wiki/pages/index/bottle.svg'); *\/ */
/*     background-size: contain; */
/*     background-repeat: no-repeat; */
/*     background-position: center center; */
/*     -webkit-transition: all 1.0s ease-in-out; */
/*     -moz-transition: all 1.0s ease-in-out; */
/*     -o-transition: all 1.0s ease-in-out; */
/*     transition: all 1.0s ease-in-out; */
/* } */

.index-elem {
    position: fixed;
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.;
    display: none;
}

.index-image {
    height: 80vh;
}

.index-text {
    font-size: 3vh;
    padding: auto;
    z-index: 10;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
}

#index-empty {
    height: 775vh;
}

.model-page-img {
    display: block;
    /* height: calc(100vh - 10em); */
    width: 40vw;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid lightgray;
    box-shadow: 3px 3px 5px darkgrey;
    padding: 1em;
    border-radius: 1em;
    background-color: white;
}

.model-page-eq {
    display: block;
    height: unset;
    width: unset;
    margin-left: auto;
    margin-right: auto;
    /* border: 1px solid lightgray; */
    /* box-shadow: 3px 3px 5px darkgrey; */
    /* padding: 3px; */
    /* background-color: white; */
}

.model-page-tbl {
    display: block;
    height: unset;
    width: unset;
    margin-left: auto;
    margin-right: auto;
}

.model-interactive {
    display: none;
    position: relative;
    height: 15vw !important;
    width: 20vw !important;
    margin-left: auto;
    margin-right: auto;
}

figure figcaption {
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.references p {
    font-size: 1.15em;
}

#results-diagram img {
    display: block;
    width: 100%;
    /* width: 100vw; */
    /* margin-left: auto; */
    /* margin-right: auto; */
    border: 1px solid lightgray;
    box-shadow: 3px 3px 5px darkgrey;
    padding: 1em;
    border-radius: 1em;
    background-color: white;
}

table {
    table-layout: auto;
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
    margin: 10px;
}

td, th{
    border-radius: 5px;
    -moz-border-radius: 5px;
    padding: 10px;
}

td {
    background-color: #efeffd;
    border: 1px solid #737373;
}

th {
    background-color: #5e60ce;
    text-align: center;
    border: 1px solid #000;
    color: white;
}

table a {
    text-decoration: underline;
    color: #0a58ca;
}

.collab-page-img {
    display: block;
    height: 90%;
    width: auto;
    max-width: 100%;
    border: 1px solid lightgray;
    box-shadow: 3px 3px 5px darkgrey;
    padding: 3px;
    background-color: white;
    margin: auto;
}

.attribution-img {
    height: 80vh;
    width: auto;
}

.implementation-img {
    height: 80vh;
}

figure img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.figure-left {
    float: left;
    width: 30vw;
    border: 1px solid lightgrey;
    margin: 1em;
}

.figure-right {
    float: right;
    width: 30vw;
    border: 1px solid lightgrey;
    margin: 1em;
}

.pages-img {
    /* max-height: 80vh; */
    max-width: 60vw;
    margin: auto;
    padding: auto;
    display: flex;
}

.emphasis-tr {
    background-color: rgba(230, 230, 255, 1.0);
}

.page-parts td {
    font-size: 0.75em;
}

#team_member_bg {
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 53;
}

/* #team_member_bg:hover { */
/*     cursor: pointer; */
/* } */

#team_member_text {
    display: none;
    position: fixed;
    top: 50%;
    /* height: 60vh; */
    left: 50%;
    /* width: 60vw; */
    transform: translate(-50%, -50%);
    text-align: justify;
    margin: 0;
    border: 0;
    padding: 2em;
    border-radius: 1em;
    background-color: rgba(230, 230, 255, 1.0);
}

#team_member_text:hover {
    cursor: default;
}

#team_member_text {
    font-size: var(--base-text-size);
}

#team_member_text_close {
    display: flex;
    justify-content: center;
}

#team_member_text_close:hover {
    cursor: pointer;
}

.pdf-protocol {
    display: flex;
    width: 70vw;
    height: 70vh;

}

/*
Adapted from:
https://css-tricks.com/hexagons-and-beyond-flexible-responsive-grid-patterns-sans-media-queries/
https://css-tricks.com/using-css-to-set-text-inside-a-circle/
https://smallenvelop.com/display-loading-icon-page-loads-completely/
*/
