html {
    scroll-behavior: smooth;
}

body {
    background-color: #bbb;
    color: #000;
    font-family: 'Roboto Slab', serif;
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 400;
    margin: 0px;
    padding: 0px;
}

section {
    margin: 0px;
    padding: 10px;
}

h1 {
    font-size: clamp(36px, 5.3vw, 44px);
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

h2 {
    font-size: clamp(28px, 4.5vw, 36px);
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

h3 {
    font-size: clamp(24px, 4vw, 32px);
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

h4 {
    font-size: clamp(20px, 3.5vw, 28px);
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

h5 {
    font-size: clamp(18px, 3vw, 24px);
    font-family: 'Roboto', sans-serif;
}

a {
    color:#000;
}

a:hover {
    color:#444;
}

a:active {
    color:#222;
}

.wordmark {
    font-family: 'Noto Sans Mono', monospace;
    font-weight: 500;
    font-size: min(6vw, 48px);
    margin:0px;

    background-color: rgba(204, 204, 204, 0.3);
    color:#000;
    text-decoration: none;

    padding-left:min(1vw, 10px);
    padding-right:min(1vw, 10px);
    
    border:#000 solid 3px;
    border-radius: 15px;

    display:block;
}
.wordmark:hover {
    background-color: rgba(160, 160, 160, 0.2);
    box-shadow: inset 0px 0px 3px 3px #000;
    -moz-box-shadow: inset 0px 0px 3px 3px #000;
    -webkit-box-shadow: inset 0px 0px 3px 3px #000;
    transition: 0.2s;
    color:#000;
}
.wordmark:active {
    background-color: rgba(160, 160, 160, 0.3);
    color:#000;
}

.hero-bg {
    position: relative;
    height: 100%;
    width: 100%;
    box-sizing: border-box;

    padding-top: min(100px, 12vw);
    padding-bottom: min(50px, 2vw);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    background-image: linear-gradient(rgba(80, 80, 80, 0.3), rgba(204, 204, 204, 1.0)), url("wafer.webp");
}

.wordmark-big {
    font-family: 'Noto Sans Mono', monospace;
    font-weight: 500;
    font-size: min(100px, 16vw);
    display: block;
    margin: auto;
    text-align: center;
}

.hero-text {
    font-size: clamp(16px, 3.5vw, 32px);
    text-align: center;
    font-weight: 700;
    margin-top:5px;
    margin-bottom:5px;
    font-family: 'Noto Sans Mono', monospace;
}

.hero-text-pack {
    margin: auto;
    margin-top: 50px;
    margin-bottom: 50px;
}

.hero-text-container {
    margin: auto;
    max-width: 800px;
    padding: 20px;
}

header {
    position: fixed;
    display: block;
    width: 100%;
    background-color: transparent;
    padding: 10px;
    margin: 0px;
    top: 0;
    left: 0;
    z-index: 10000;
    box-sizing: border-box;
}

.header-bar {
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 20px;
    margin: auto;
    max-width: 1200px;
}

header.scrolled {
    background-color: rgba(204, 204, 204, 0.75);
    transition:ease 100ms;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-item {
    display: block;
    float: left;
    padding: 15px;
    color: #000;

    font-size: 24px;
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    border-radius: 5px;
}

.nav-item:hover {
    background-color: rgba(160, 160, 160, 0.2);
    box-shadow: inset 0px 0px 3px 3px #000;
    -moz-box-shadow: inset 0px 0px 3px 3px #000;
    -webkit-box-shadow: inset 0px 0px 3px 3px #000;
    transition: 0.2s;
    color: #000;
}

.nav-item:active {
    background-color: rgba(160, 160, 160, 0.3);
    color: #000;
}

.hamburger {
    order: 4;
    background-color: var(--main-bg);
    border: none;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 5px;
    position: relative;
    border-radius: 5px;
    margin-bottom: 5px;
    background-color: #000;

    transform-origin: 0 0;

    transition: 0.3s;
}

.hamburger:hover span {
    background-color: #555;
}

.hamburger.is-active span:nth-child(1) {
    transform: translate(3px, 0px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translate(0, 1px) rotate(-45deg);
}

@keyframes scale-in {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.nav-dropdown {
    background-color:#ddd;
    display:none;
    width:min-content;
    margin-left: auto;
    margin-right: 10px;
}

.nav-dropdown.is-active {
    transform-origin: top center;
    animation: scale-in 200ms;
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px;

    font-size: 24px;
    font-weight: 600;
    font-family: 'Roboto Slab', serif;
    color: #000;
    text-decoration: none;
}

.navbar {
    display:none;
}

@media (min-width: 700px) {
    .hamburger {
        display: none;
    }
    .navbar {
        display: block;
    }
}

.hero-links {
    font-size: clamp(16px, 3.5vw, 26px);
    text-align: center;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    display:block;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.active-container {
    border: #333 2px solid;
    border-radius: 10px;
    padding-top: min(4vw, 40px);
    padding-bottom: min(4vw, 40px);
    padding-left: min(2vw, 20px);
    padding-right: min(2vw, 20px);
    box-shadow: 0 0 3px 3px #aa4a44;
    -moz-box-shadow: 0 0 3px 3px #aa4a44;
    -webkit-box-shadow: 0 0 3px 3px #aa4a44;
    background-color: rgba(204, 204, 204, 0.4);
}

h3.active-header {
    margin-top: 0px;
    margin-bottom: 20px;
}

.cta-text {
    margin-bottom: 0px;
    font-size: clamp(16px, 3.5vw, 24px);
    text-align: center;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    gap: 10px 10px;
    margin: auto;
    max-width: 1300px;
}

.flex-container-reversed {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    gap: 10px 10px;
    margin: auto;
    max-width: 1300px;
}

.project {
    width:fit-content;
    margin: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
}

.project-factbox {
    order: 3;
    flex-grow: 1;
    display: block;
    text-align: center;
    flex-basis:200px;
    margin-left:5px;
    margin-right:5px;
}

@media (min-width: 1070px) {
    .project-factbox {
        text-align: left;
    }
}

.project-factbox h5 {
    margin: 0pt;
    margin-top: 10pt;
    color:#aa4a44;
}

.project-factbox p {
    margin: 0pt;
}

.project-description {
    order: 2;
    flex-grow: 3;
    display: block;
    flex-basis:600px;
    margin-left:5px;
    margin-right:5px;
}

.project-image-container {
    order: 1;
    flex-grow: 1;
    display: block;
    flex-basis: 200px;
    margin-left: 5px;
    margin-right: 5px;
}

.project-image {
    width: 100%;
    margin: 0px;
    display:block;
}

.boxed {
    width:100%;
    max-width: 250px;
    margin: auto;
    box-shadow: 0 0 3px 3px #aa4a44;
    -moz-box-shadow: 0 0 3px 3px #aa4a44;
    -webkit-box-shadow: 0 0 3px 3px #aa4a44;
    display:block;
}

.current-projects {
    background-image: linear-gradient(#ccc, #aaa);
}

.current-projects h2 {
    color: #882522;
}

.past-porfolio {
    background-image: linear-gradient(#333, #111);
    color:#fff;
}

.past-porfolio a {
    color: #fff;
}

.past-porfolio h2 {
    color: #aa4a44;
}

.about-section {
    background-image: linear-gradient(#aa4a44,#882522);
    color: #fff;
}

.investigators-section {
    background-image: linear-gradient(#aaa,#999);
}

.investigators-section h1 {
    color:#882522;
}

.investigators-section h3 {
    text-align: left;
}

.value-card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    align-content: stretch;
    gap: 10px 10px;
    margin: auto;
    max-width: 1300px;
}

.value-card {
    order: 1;
    flex-basis: 400px;
    margin: 10px;
    padding: 20px;
    background-image: linear-gradient(#552424, #111);
    border:#000 solid 2px;
}

.value-card h4 {
    margin-top: 20px;
    text-align: center;
}

.value-card p {
    text-align: center;
}

.values-container {
    margin-bottom: 40px;
}

.bio-image-container {
    order: 1;
    flex-grow: 2;
    display: block;
    text-align: left;
    flex-basis:300px;
    margin-left:5px;
    margin-right:5px;
}

.bio-image {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: auto;
}

.investigator-bio {
    order: 2;
    flex-grow: 3;
    display: block;
    text-align: left;
    flex-basis:450px;
    margin-left:5px;
    margin-right:5px;
}

.anchor {
    position: relative;
    top: -100px;
}

footer {
    width: 100%;
    padding: 30px;
    background-image: linear-gradient(#999,#666);

    color:#882522;
    font-weight: 700;
    font-family: Roboto, sans-serif;

    height: 20rem;
    box-sizing: border-box;
}

footer a {
    color: #882522;
}
footer a:hover {
    color: #aa4a44;
}
footer a:active {
    color: #111;
}
