/* =================================== */
/* HOUSEKEEPING */
/* =================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --sm-width: 780px;
    --md-width: 970px;
    --lg-width: 1200px;
    --fs-hg: 4rem;
    --fs-lg: 2rem;
    --fs-md: 1.3rem;
    --fs-sm: 1rem;
    --color-black: #303030;
    --color-white: #fcfcfc;
    --color-light-gray: #eeeeee;
    --color-accent: #C7BEEE;
    --color-accent-secondary: #BCCEFB;
    --default-font: "Fira Sans";
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 1rem;
    /* Account for navbar stickiness when scrolling */
    scroll-padding-top: 8rem;
}

body {
    font-family: var(--default-font), sans-serif;
    font-weight: 400;
    font-size: 1rem;
    background-color: var(--color-white);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    color: var(--color-black);
}

main {
    margin: auto;
    width: 90%;
    max-width: var(--lg-width);
    min-height: 80vh;
}

article {
    margin: auto;
    width: 90%;
    max-width: var(--md-width);
    min-height: 80vh;
}

section {
    margin: 60px 0;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: var(--color-light-gray);
}

h1 {
    font-family: var(--default-font), sans-serif;
    font-weight: 800;
}

h2,
h3,
h4,
h5 {
    font-family: var(--default-font), sans-serif;
    /* font-style: italic; */
    font-weight: 600;
}

h3,
h4,
h5 {
    font-style: italic;
}

img {
    width: 90%;
    max-width: 500px;
    max-height: 500px;
    user-select: none;
}

iframe {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

pre {
    padding: 10px 20px
}

div.iframe-container {
    width: 90%;
    margin: auto;
    max-width: var(--md-width);
    height: 600px;
}

@media screen and (max-width: 780px) {
    div.iframe-container {
        height: 400px;
    }
}

code {
    background-color: #eef;
    border-radius: 3px;
    padding: 1px 5px;
    font-family: JetBrains Mono, monospace;
    font-variant-ligatures: none;
}

/* =================================== */
/* EFFECTS */
/* =================================== */

.fade {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.fun-letter {
    display: inline-block;
    transition: color 0.1s ease-in-out;
}

.fun-letter:hover {
    color: var(--color-accent)
}

.swap:hover .swap1 {
    transform: translateX(25px);
}

.swap:hover .swap2 {
    transform: translateX(-25px);
}

.swap image {
    transition: transform 0.5s ease-in-out;
}

.shake:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    25% {
        transform: rotate(-12deg);
    }

    50% {
        transform: rotate(12deg);
    }

    75% {
        transform: rotate(-12deg);
    }
}

/* =================================== */
/* NAVBAR */
/* =================================== */

nav {
    margin: 20px 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* background-image: url('/static/img/pattern.svg'); */
    /* background-color: #4e3629; */
    /* padding: 1em; */
    /* position: sticky; */
}

div.nav-holder {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav-logo {
    width: 4rem;
    height: 4rem;
    min-width: 4rem;
    min-height: 4rem;
    border-radius: 1em;
    background: white;
}

span.nav-footer {
    display: flex;
    color: var(--color-white);
}

span.nav-link {
    margin: 0 10px;
}

span.nav-link>a {
    font-family: var(--default-font), sans-serif;
    font-weight: 600;
    font-size: var(--fs-md);
    text-decoration: none;
    color: var(--color-black);
}

span.nav-link>a:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
}

div.navholder-mobile {
    display: none;
}

span.hamburger {
    display: none;
}

@media screen and (max-width: 1024px) {
    span.full-name {
        display: none;
    }
}

@media screen and (max-width: 910px) {
    div.nav-holder.nav-right {
        display: none;
    }

    div.navholder-mobile {
        display: block;
        height: 0;
        width: 100%;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        background-color: var(--color-white);
        overflow-x: hidden;
        transition: 0.5s;
    }

    a.closebtn {
        display: block;
        position: absolute;
        top: 15px;
        right: 25px;
        font-size: 40px;
        color: var(--color-black);
        text-decoration: none;
    }

    div.navholder-content {
        height: 80%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    div.navholder-content>a {
        display: block;
        font-family: var(--default-font), sans-serif;
        font-weight: 600;
        font-size: var(--fs-lg);
        text-decoration-color: var(--color-accent);
        color: var(--color-black);
        padding: 8px;
    }

    span.hamburger {
        display: block;
        position: fixed;
        top: 15px;
        right: 25px;
        font-size: 40px;
        color: var(--color-black);
        cursor: pointer;
    }
}

/* =================================== */
/* LANDING */
/* =================================== */

div.landing-container {
    display: flex;
    /* flex-direction: row; */
    /* align-items: center; */
    /* justify-content: center; */
    /* margin: 10vh 0; */
}

img.landing-logo {
    width: 300px;
    margin: 20px;
}

h1.landing-title {
    font-size: var(--fs-hg);
    margin: 0;
}

h2.landing-subtitle {
    font-size: var(--fs-lg);
    margin: 0;
}

@media screen and (max-width: 780px) {
    div.landing-container {
        flex-direction: column;
        text-align: center;
    }

    img.landing-logo {
        width: 200px;
        margin: 20px;
    }

    h1.landing-title,
    h2.landing-subtitle {
        margin: 0;
    }
}

/* =================================== */
/* TABLE */
/* =================================== */

table {
    width: 90%;
    max-width: var(--md-width);
    margin: 50px auto;
}

th,
td {
    text-align: center;
    padding: 10px 5px;
}

th {
    font-family: var(--default-font), sans-serif;
    font-size: var(--fs-md);
    background-color: var(--color-white);
}

td {
    background-color: var(--color-white);
    border-top: 1px solid lightgrey;
    transition: background-color linear 0.1s;
}

td.big-cell {
    text-align: left;
}

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

    th,
    td {
        padding: 10px 2px;
    }

    th {
        font-size: var(--fs-sm);
    }

    td {
        font-size: var(--fs-xs);
    }
}

/* =================================== */
/* STAFF */
/* =================================== */

div.staff-tiling {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 90%;
    max-width: var(--md-width);
    margin: auto;
}

@media screen and (max-width: 780px) {
    div.staff-tiling {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

div.staff-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background-color: transparent;
    /* perspective: 1000px; */
}

div.staff-tile>h2 {
    margin: 0;
    font-style: normal;
}

div.staff-tile>p {
    margin: 0 0 5px 0;
}

img.staff-photo {
    width: 10em;
    height: 10em;
    object-fit: cover;
    border-radius: 1em;
}

td.download-list {
    text-align: left;
}

/* =================================== */
/* PROJECT GALLERY */
/* =================================== */

div.gallery-tiling {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: var(--md-width);
    gap: 1em;
}

@media screen and (max-width: 780px) {
    div.gallery-tiling {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

div.gallery-tiling>a {
    text-decoration: none;
    color: var(--color-black);
}

div.gallery-tile {
    border-radius: 1em;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.5em;
    border: 2px solid transparent;
}

div.gallery-tile:hover {
    border: 2px solid var(--color-accent);
}

div.gallery-tile>h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: var(--fs-md);
    text-align: left;
}

div.gallery-tile>b>svg {
    margin-left: 0.5em;
    vertical-align: middle;
    flex-shrink: 0;
    height: 1em;
    width: auto;
}

/* div.gallery-tile>p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-clamp: 5;
    overflow: hidden;
} */