:root {
    --lightest: #f6f6f4;
    --light: #edeae5;
    --light-blue: #ced9dd;
    --blue: #979fa5;
    --accent: #E07940;
    --topHeader: #8D1919;
    --dark: #002B5E;
    /* --dark: #2f3d4c; */
}

/* Fonts */
@font-face {
    font-family: Raleway;
    src: url("https://static.igem.wiki/teams/4858/wiki/raleway-regular.ttf");
    font-weight: 300;
    font-style: normal;
}

.section {
    scroll-margin-top: 4em;
}

body {
    font-family: Raleway, Helvetica, Arial, sans-serif;
    padding-top: 56px;
    font-weight: 400;
    color: var(--dark);
}

img {
    max-width: 100%;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 700;
    color: var(--topHeader);
}

h3 {
    font-weight: 600;
    color: var(--dark);
    font-style: italic;
}

h4 {
    font-size: 115%;
    font-style: italic;
    color: var(--dark);
}

p {
    font-size: 1.125em;
}

figcaption {
    text-align: center;
    padding-top: 3px;
}

.text-dark {
    color: var(--dark) !important
}

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

.bg-dark {
    background-color: #343a40 !important;
}

.bg-hero {
    background-image: url("https://static.igem.wiki/teams/4858/wiki/top-header-background.png");
    background-size: cover;
}

header {
    /* Initial padding to show entire background image */
    padding-top: 50px;
    padding-bottom: 200px;
}

header .header-title {
    text-transform: uppercase;
    font-weight: 700;
}

header .header-text {
    text-align: center;
}

.main-content {
    /* Separate page content from header */
    margin-top: 10px;
}

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

/* Progress Bar */
.progress-container {
    position: fixed;
    left: 0;
    width: 100%;
    height: 7px;
    background-color: #ccc;
    /* Keep progress bar on top of other elements (like sidebar) */
    z-index: 1;
}

.progress-bar {
    background-color: var(--accent);
    height: 7px;
    /* Hide progress initially */
    width: 0%;
}

/* Navigation */
.navbar {
    background-color: var(--light) !important;
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
    font-family: "Raleway", Helvetica, Arial, sans-serif;
    font-weight: 400;
}

.navbar-toggler {
    color: navbar-light-color;
}

.navbar-light a.navbar-brand,
.navbar-light .navbar-nav a.nav-link,
a.navbar-brand a.nav-link,
a.dropdown-item {
    /* navigation links and hamburger icon */
    color: var(--dark);
    font-weight: 500;
    font-size: 102%;
}

.navbar-light a.navbar-brand:hover,
.navbar-light a.navbar-brand:focus,
.navbar-light .navbar-nav a.nav-link:hover,
.navbar-light .navbar-nav a.nav-link:focus,
a.navbar-brand a.nav-link:hover,
a.dropdown-item:hover,
a.navbar-brand a.nav-link:focus,
a.dropdown-item:focus {
    color: var(--accent);
}

.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:hover {
    background-color: #f9f2ee;
    color: var(--accent);
}

/* Sidebar Navigation */
#sideNav {
    position: sticky;
    top: 100px;
    background-color: var(--dark);
    color: white;
    padding: 20px;
    border-radius: 5px;
    border: 2px solid var(--blue);
    margin-bottom: 25px;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.12);
}

h2#contents {
    color: white;
}

h2#contents::after {
    content: '';
    background-color: white;
    display: block;
    margin-top: 5px;
    height: 1px;
}

ul.sidebar-nav-links {
    list-style: none;
    padding: 5px 10px 10px 5px;
    margin-bottom: 0;
}

li.sidebar-nav-link {
    padding: 3px 0;
}

.sidebar-nav-link a {
    color: white;
    font-size: 110%;
    font-weight: 600;
    transition: color 0.25s ease;
    text-decoration: none;
}

.sidebar-nav-link.side-sub-link a {
    font-weight: 500;
}

.sidebar-nav .side-sub-link {
    padding-left: 20px;
    font-style: italic;
}

.sidebar-nav-link a:hover,
.sidebar-nav-link a:focus {
    color: var(--accent);
}

.side-section:target,
h4.table-name:target {
    /* Make sure headings are visible & not covered by header without changing page layout */
    padding-top: 70px;
    margin-top: -70px;
}

/* Sources dropdown */
.arrow {
    border: solid var(--topHeader);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 5px;
    margin-left: 8px;
}

.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.sources-click,
.database-click {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: start;
    align-items: center;
    background-color: var(--light);
    border-radius: 10px;
    padding: 10px;
}

h2.sources,
h4.database-drop {
    margin-bottom: 0;
}

h4.database-drop {
    font-weight: bold;
}

.arrow.arrow-table {
    border-color: var(--dark);
    margin-bottom: 3px;
}

.database-click {
    background-color: none;
}

/* Home */
div.row.home.main-content {
    gap: 50px;
    justify-content: center;
}

div.row.home.main-content p,
div.row.home.main-content li {
    font-size: 20px;
}

div.row.home-section {
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

div.row.home-section:first-child {
    margin-top: 50px;
}

div.row-light {
    background-color: var(--lightest);
    border-radius: 15px;
}

div.row-dark {
    background-color: var(--light);
    border-radius: 1px
}

header.home-header {
    padding: 0;
}

div.main-home-graphic {
    background-color: var(--lightest);
    padding: 25px;
}

div.main-home-graphic img {
    display: block;
    margin: 0 auto;
    max-height: 600px;
}

div.row h2.home-section-title {
    text-transform: uppercase;
    text-align: center;
    color: var(--dark);
    font-size: 250%;
}

div.home-section-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

div.home-section-header img {
    max-width: 200px;
    max-height: 200px;
}

div.home-section-header img.light-bulb-graphic {
    max-width: 100px;
    max-height: 100px;
}

div.home-section-header .heart-graphic {
    max-width: 150px;
    max-height: 150px;
}

.home-section-text {
    padding: 15px 50px 25px 50px;
}

.home-section-text p {
    padding-bottom: 25px;
}

div.what-are-snps {
    border: 3px var(--dark) solid;
    margin: 25px auto;
    padding: 25px 25px 15px 25px;
    background-color: var(--lightest);
    border-radius: 15px;
}

ul.what-are-snps-list {
    font-size: 125%;
}

li.what-are-snps-item {
    margin-bottom: 10px;
    text-align: left;
}

div.genetic-vs-lamp {
    max-width: 85%;
    display: block;
    margin: 0 auto;
}

figure.par4-thr120-graphic {
    display: block;
    margin: 25px auto;
    max-width: 75%;
}

div.platform-work {
    display: block;
    margin: 0 auto;
}

div.platform-work h3,
div.test-special h3 {
    font-size: 225%;
}

.medication-graphic {
    margin: 50px;
}

.medication-graphic img {
    max-width: 85%;
}

div.learn-more-links,
div.special-items {
    display: flex;
    justify-content: center;
}

div.special-items {
    gap: 10px;
}

div.special-item {
    max-width: 25%;
    border: 3px var(--dark) solid;
    background-color: var(--light);
    border-radius: 15px;
    padding: 10px;
    margin: auto;
}

div.special-item h4 {
    font-style: normal;
    font-weight: 700;
    font-size: 150%;
}

div.special-item p {
    padding-bottom: 0;
}

#homeSources {
    margin-top: 50px;
}

#homeSourcesList {
    /* Initially hide sources list */
    display: none;
}

/* Team */
.team-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.team-category {
    display: inline-block;
    background-color: var(--dark);
    color: white;
    border-radius: 15px;
    font-size: 2.5rem;
    padding: 10px 35px;
    text-transform: uppercase;
}

.team-category-container {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 100px 0 50px 0;
}

.team-category-container:first-child {
    margin: 0 0 50px 0;
}

.team-card-wrapper {
    /* border: 4px solid var(--dark); */
    border-radius: 10px;
    max-width: 225px;
}

.team-card-wrapper {
    background-color: var(--light);
}

.team-img {
    /* border-bottom: 3px solid var(--dark); */
    border-radius: 20px;
    padding: 10px;
}

.team-card h3,
.team-card p {
    text-align: center;
}

h3.team-name {
    font-size: 150%;
    font-weight: bold;
    padding-top: 15px;
    font-style: normal;
}

.team-name,
.team-title,
.team-description {
    padding-left: 10px;
    padding-right: 10px;
}

.team-description {
    font-size: 12px;
}

/* Attributions */


/* Experiments */


/* Protocols */
figure.cathode img {
    display: block;
    margin: 0 auto;
    max-height: 300px;
    padding: 10px;
}

div.protocols li.sidebar-nav-link {
    font-size: 85%;
}

h5.underline {
    text-decoration: underline;
}

h4.procedure-section,
h5.procedure-section {
    font-style: normal;
    font-weight: 600;
}

div.lamp-mix-table,
div.asymm-pcr-table {
    text-align: center;
    margin-bottom: 25px;
}

/* Notebook */
.notebook-image img {
    height: 250px;
    display: block;
    margin: 0 auto;
}

.week-content {
    margin-top: 10px;
}

.week-item a {
    color: var(--dark);
}

.week-item a:hover,
.week-item a:focus {
    color: var(--accent);
    transition: color 0.25s ease;
}

/* Parts */
div.parts figure {
    display: block;
    margin: 0 auto;
    max-width: 75%;
}

div.parts li.side-sub-link {
    font-size: 85%;
}

.parts-table caption,
.parts-table tr,
p.sequence {
    text-align: center;
}

#partsSourcesList {
    /* Initially hide sources list */
    display: none;
}

/* Description */
#descriptionSourcesList {
    /* Initially hide sources list */
    display: none;
}

#snp figure {
    display: block;
    margin: 0 auto;
    max-width: 90%;
}

/* Engineering */
#engineeringSourcesList {
    /* Initially hide sources list */
    display: none;
}

#cycle1 figure img {
    display: block;
    margin: 0 auto;
}

/* Results */
div.results .sidebar-nav-links {
    font-size: 85%;
}

#resultsSourcesList {
    /* Initially hide sources list */
    display: none;
}

/* Contribution */
#contributionSourcesList {
    /* Initially hide sources list */
    display: none;
}


/* Software */
#softwareSourcesList {
    /* Initially hide sources list */
    display: none;
}

#softwareDatabaseContent {
    /* Initially hide database table */
    display: none;
    padding-top: 15px;
}

h4.equation {
    text-align: center;
    font-style: normal;
    font-weight: bold;
}

figure.hamming {
    margin-bottom: 50px;
}

iframe,
iframe.results-table,
iframe.demo-video {
    display: block;
    margin: 0 auto;
    margin-bottom: 25px;
}

figure.software-graph-3,
figure.software-graph-4 {
    display: block;
    margin: 0 auto;
}

iframe.results-table {
    border: 2px solid var(--dark);
}

h3.results-table-title {
    font-size: initial;
    text-align: center;
    margin-bottom: 0;
}

/* Human Practices */
#hpSourcesList {
    /* Initially hide sources list */
    display: none;
}

/* Databases */
#hyperDatabase {
    margin-top: 15px;
}

#discoverCamp {
    /* Separate header from above table content */
    margin-top: 25px;
}

#generalDatabaseContent {
    /* Initially hide database table */
    display: none;
    padding-top: 15px;
}

#hyperDatabaseContent {
    /* Initially hide database table */
    display: none;
    padding-top: 15px;
}

p.table-intro {
    padding: 10px;
    background-color: var(--lightest);
    border-radius: 15px;
}

h5.table-title {
    text-align: center;
    padding-bottom: 10px;
    font-weight: bold;
}

div.human-practices li.side-sub-link {
    font-size: 85%;
}

img.link-icon {
    display: block;
    margin: auto;
    fill: var(--accent);
    max-width: 30px;
    max-height: 30px;
}

td {
    text-align: center;
    vertical-align: middle;
}

h4.table-name {
    text-align: center;
    padding-bottom: 8px;
    font-weight: bold;
    font-style: initial;
}

/* End Database Styling */

#wetLabAdv figure,
figure.pre-survey,
#symposium figure,
#geneHackers figure,
figure.ratcliff,
figure.loss,
#futureProj figure,
#snpDetectionKit figure {
    display: block;
    margin: 0 auto;
    max-width: 50%;
}

figure.pre-survey,
#geneHackers figure,
#wetLabAdv figure,
figure.ratcliff,
figure.loss,
div.parts figure,
#futureProj figure,
figcaption.bme-photos {
    margin-bottom: 20px;
}

figure.hamming figcaption,
figure.ratcliff figcaption,
figure.loss figcaption {
    font-size: 85%;
}

figure.pre-survey img,
figure.post-survey img {
    border: 2px var(--dark) solid;
}

figure.bme-photo {
    max-width: 50%;
}

.bme-photos {
    gap: 15px;
    align-items: center;
}

#geneHackers figure {
    max-width: 75%;
}

iframe.symposium-video {
    display: block;
    margin: 0 auto;
    margin-bottom: 25px;
}

.podcast-episode {
    margin: 10px;
}

.podcast-episode:last-child {
    margin: 10px 10px 20px 10px;
}

#recipes h4 {
    padding-bottom: 10px;
}

/* Safety */
#safetySourcesList {
    /* Initially hide sources list */
    display: none;
}

/* Footer */
footer {
    background-color: var(--light);
}

footer h4 {
    font-weight: bold;
    font-style: initial;
}

footer a {
    color: var(--dark);
    text-decoration: none;
}

footer a:hover,
footer a:focus {
    color: var(--accent);
    text-decoration: underline;
}

.footer-icon img {
    width: 35px;
    height: 35px;
}

.footer-nav-link a {
    transition: color 0.25s ease;
}

.footer-container {
    justify-content: space-evenly;
    align-items: center;
}

.footer-team h4,
.footer-socials h4,
.footer-quick-links h4 {
    text-align: center;
}

.footer-team,
.footer-socials {
    margin-bottom: 25px;
}

.footer-logo {
    margin: 0 auto;
    max-width: 225px;
}

.footer-logo img {
    border-radius: 15px;
}

.footer-icons {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.footer-icon {
    font-size: 200%;
    padding: 10px;
}

/* .footer-icon a:hover img,
.footer-icon a:focus img {
    width: 101%;
} */

.footer-nav-links {
    list-style: none;
    text-align: center;
}

.footer-nav-link {
    padding: 5px 0;
}

.bold {
    font-weight: 700;
}

@media screen and (max-width: 800px) {

    div.home-section-header,
    div.special-items {
        flex-direction: column;
    }

    div.special-item {
        max-width: 100%;
    }

    div.row h2.home-section-title {
        font-size: 200%;
    }

}