:root {
    --border-col: #7a608b;
}


/* Fonts */
/*
@font-face { 
	font-family: Atkinson-Hyperlegible;
	font-style: regular;
	src: url("https://static.igem.wiki/teams/5277/fonts/atkinson-hyperlegible-regular-102a.woff2");
}
@font-face { 
	font-family: Atkinson-Hyperlegible;
	font-style: italic;
	src: url("https://static.igem.wiki/teams/5277/fonts/atkinson-hyperlegible-italic-102a.woff2");
}
@font-face { 
	font-family: Atkinson-Hyperlegible;
	font-weight: bold;
	src: url("https://static.igem.wiki/teams/5277/fonts/atkinson-hyperlegible-bold-102a.woff2");
}
@font-face { 
	font-family: Atkinson-Hyperlegible;
	font-style: italic;
	font-weight: bold;
	src: url("https://static.igem.wiki/teams/5277/fonts/atkinson-hyperlegible-bolditalic-102a.woff2");
}
@font-face {
    font-family: juliussans;
    font-style: regular;
    src: url("https://static.igem.wiki/teams/5277/fonts/juliussansone-regular.woff");
}
@font-face {
    font-family: librebaskerville;
    font-style: regular;
    src: url("https://static.igem.wiki/teams/5277/fonts/librebaskerville-regular.woff");
}
@font-face {
    font-family: librebaskerville;
    font-style: italic;
    src: url("https://static.igem.wiki/teams/5277/fonts/librebaskerville-italic.woff");
}
*/

html {
    scroll-padding-top: 122px;
    image-rendering: auto;
    /*overflow-y: scroll;
    overflow-x: hidden;*/
    max-width: 100vw;
}
.pagecontent {
    /*overflow-x: auto; This appears to break sticky-top */
}
.pagecontent h1, .pagecontent h2, footer h4 {
    /*font-family: juliussans, sans;*/
    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif; 
    font-weight: normal;
}
.pagecontent h3 {
    font-size: 1.2rem;
    /* font-family: librebaskerville; */
    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif; 
    font-style: italic;
    padding-bottom: 0.5rem;
}
.pagecontent h4 {
    font-size: 1rem;
    /* font-family: librebaskerville; */
    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif; 
    font-style: italic;
}
body {
    padding-top: 4.5rem;
    max-width: 100vw;
    /*overflow-x: hidden;*/
    /*border: 6px ridge var(--border-col);*/
    /*font-family: serif;*/
    font-family: system-ui, sans-serif;
    font-weight: normal;
}

.pagecontent {
    padding: 4rem 2.5% 0 2.5%;
}
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-light { background-color: #E9D5BFff !important; }
/* .bg-hero { background-color: #45b06cff; } */
/* .bg-hero { background-color: #6699AAff; } */
.bg-hero { background-color: #F3D590ff; }
// .lead { color: #FFFFFF !important; }

/* 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 }


.row { margin-bottom: 5rem; }
.nobreak { margin-bottom: 0rem; }


nav {
    height: 4.25rem;
    z-index: 10; width: 100vw; 
    image-rendering: -webkit-optimize-contrast;
}
.navbar-brand img {
    height: 2.75rem;
    margin: 0.15rem;
    image-rendering: auto;
}
.navbar, .navbar * {
    background-color: #4b325c !important;
    /* background-color: #00000000 !important;*/
    color: #E5E5E5 !important;
    /* font-family: sans, sans-serif, monospace;*/
    font-family: system-ui, sans-serif;
    font-weight: normal;
}
.navbar {
    border-bottom: 8px solid var(--border-col);
    border-top: none;
    /*outline: 2px solid #2b224c;*/
}
/*44
.navbar .dropdown-menu {
    border: 6px ridge var(--border-col);
    border-top: none;
    margin-top: 1.1rem;
}
*/
.navbar .dropdown-menu {
    margin-top: 1rem;
}

.progress {
    width: 100%;
    height: 4px;
    position: fixed;
    top: calc(4rem - 2px);
    z-index: 1037;
    background-color: #8b729c;
    background-image: linear-gradient(to right, #5a406b, #ffe996)
}
.progress-bar {
    position: fixed;
    height: 4px;
    top: calc(4rem - 2px);
    z-index: 1038;
    transition: none;
    background-color: #f5a3fd;
}
#progressbac {
    margin-left: -3.35rem;
    height: 2.5rem;
    width: auto;
    position: fixed;
    top: calc(3rem - 4.5px);
    z-index: 1040;
}

/* header */
header {
    z-index: -1;
    background-color: #393156 !important;
    background-image: url("https://static.igem.wiki/teams/5277/images/banner/banneranim16x3.webp") !important; /* 7 to revert */
    background-position: 90%;
    background-size: cover;
    height: 22rem;
    margin: -.25rem 0 0 0;
    /*border-bottom: 6px ridge var(--border-col);*/
    border-bottom: 4px ridge #F0F0F0;
    image-rendering: -webkit-optimize-contrast;
}
#bannertext {
    color: white;
    /* text-shadow: 2px 2px 2px #000000B0;*/
    margin-top: calc(-6px + 1.5rem);
    /* margin-left: auto; */
    /* background-color: #5a406b; */

    /*
    font-family: librebaskerville;
    font-style: regular;
   */
    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif; 
    font-weight: bold;

    /* Chrome ignores paint-order... :|
    -webkit-text-stroke: 2px #111111;
    -webkit-text-fill-color: white;
    paint-order: stroke fill;
   */
    text-shadow:
	-1px -1px 0 #000,  
	1px -1px 0 #000,
	-1px 1px 0 #000,
	1px 1px 0 #000;
}
#bannertextrow {
    margin-left: 0rem;
}
.lead { display: none; }

/* footer */
footer {
    font-family: system-ui, sans-serif;
    font-weight: normal;
}
  
footer a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}
footer a:hover {
    color: white;
    text-decoration: underline;
}


/* links */
.link-dark {
    color: #222222 !important;
}

/* quote */
blockquote { border-left: 1px solid #f0ad4e; padding-left: 1em; }

figure {
    border: 4px groove #F0F0F0;
    padding: 1rem;
    margin: 1rem;
}
/* figures */
figcaption {
    
    /*font-family: librebaskerville;
    font-style: italic;*/
    font-family: system-ui, sans-serif;
    font-weight: normal;
    text-align: center;
    border-top: 1px solid #c6c7c8;
    margin-top: 1rem;
    padding-top: 0.5rem;
    width: 100%;
    color: #666666;
}

/* notebook */
/* .accordion-body { padding: 0; } */
#notebook .carousel img { width: auto; height: 90vh; object-fit: contain; }
#notebook .carousel { background-color: gray; }

/* team */
#team {
    max-width: 80rem;
    min-width: 8rem;
    margin: 0 auto;
    padding: 0;
}
#team .card { 
    width: 18rem;
    padding: 0;
    margin: 0 auto 1.75rem auto;
}
#team .card img { 
    object-fit: cover;
    height: 24rem !important;
}
#team .card-title {
    font-size: 1.5rem;
    /*font-family: juliussans;*/
    font-family: system-ui, sans-serif;
    font-weight: normal;
}
#team .card-subtitle {
    /*
    font-family: librebaskerville;
    font-style: italic;
   */
    font-family: system-ui, sans-serif;
    font-weight: normal;
    padding-top: 0.25rem;
}
.card .carousel {
    border-radius: 5px;
    overflow: hidden;
}

#toc {
    top: 12rem;
    width: 100%;
    background: white !important;
    color: black !important;
}
#toc:nth-child(2 of ul), #toc:nth-child(2 of ul) * {
    display: none;
}

/* three */
.render { 
    width: 100%; 
    height: 100%; 
    padding: 0px;
    margin: 0px;
}
.render canvas { 
    margin: 0; 
    padding: 0; 
    height: 100%; 
    width: 100%; 
    border: 1px solid grey;
    aspect-ratio: 1.5;
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}
.render canvas:hover {
    cursor: grab;
}
.render canvas:active {
    cursor: grabbing;
}

summary {
    border: 4px groove #F0F0F0;
}
pre {
    border: 4px groove #F0F0F0;
    border-top: 0;
    margin-top: -2px;
}
pre code {
    padding: 0 1rem 0 1rem;
}

/* Portrait settings */
@media (max-aspect-ratio: 1.2) {
    #bannertext {
	width: 10%;
	white-space: nowrap;
	margin-top: 1.5rem;
    }
    #bannertextrow {
	margin-left: -3rem;
    }
    .pagecontent {
	padding: 1.5rem;
    }
}

/* Mobile settings */
@media (max-aspect-ratio: 0.75) {
    @media screen and (max-width: 800px) {
	header {
            height: 16rem;
            background-image: url("https://static.igem.wiki/teams/5277/images/banner/banneranim16x7.webp") !important;
            background-position: 85%;
            border-bottom: 0;
	}
	/*
	.navbar .dropdown-menu {
	    border-top: 6px ridge var(--border-col);
	}
       */
	.navbar-brand img {
	    height: 2.7rem;
	    margin: 0;
	}
	#bannertext {
	    width: 10%;
	    white-space: nowrap;
	    margin-top: 1.75rem;
	}
	#bannertextrow {
	    margin-left: -0.2rem;
	}
	#bannertext h1 {
            font-size: 1.5rem;
	}
	#bannertext p {
            font-size: 1rem;
	}
	nav[data-toggle="toc"] {
	    position: static;
	    display: none;
	}
	nav[data-toggle="toc"] .nav .active .nav {
	    display: none;
	}
	#notebook img { width: 100%; height: 60vh; object-fit: contain; }
	#team .card { width: 100%; }
	#team .card img { object-fit:cover; margin: auto; width: 20rem; height: 20rem !important; }
    }
}


.downloadlink {
    display: none;
}
.pdf {
    display: block;
}

@media (max-aspect-ratio: 0.75) {
    @media screen and (max-width: 800px) {
	.pdf {
	    display: none;
	}
	.downloadlink {
	    display: inline;
	}
    }
}
