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

:root {
    --sm-width: 768px;
    --md-width: 992px;
    --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: #ff7518;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Inconsolata", monospace;
    font-weight: 400;
    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(--md-width);
    min-height: 80vh;
}

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

section {
    margin: 100px 0;
}

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

h1 {
    font-family: "Inconsolata", monospace;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
}

h2,
h3,
h4,
h5 {
    font-family: "Inconsolata", monospace;
    font-weight: 600;
}

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 {
    background-color: #ddd;
    padding: 10px 20px
}

blockquote {
    border-left: var(--color-accent) 3px solid;
    padding: 1px 15px;
    background-color: #eee;
}

code {
    background-color: #ddd;
}

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

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

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

.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;
}

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

img.nav-logo {
    width: inherit;
    height: 4rem;
}

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

span.nav-link > a {
    font-family: "Inconsolata", monospace;
    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: 768px) {
    div.nav-holder {
        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: "Inconsolata", monospace;
        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);
    }
}

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

div.landing-container {
    display: flex;
}

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: 768px) {
    div.landing-container {
        text-align: center;
    }

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

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

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

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

th {
    font-family: "Inconsolata", monospace;
    font-size: var(--fs-md);
    background-color: var(--color-accent);
}

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

tr:nth-child(odd) td {
    background-color: lightgrey;
}

tr:nth-child(even) td {
    background-color: #f2f2f2;
}

@media screen and (max-width: 768px) {
    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: 50px;
    width: 90%;
    max-width: var(--sm-width);
    margin: auto;
}

@media screen and (max-width: 768px) {
    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,
div.staff-tile > p {
    margin: 5px;
}

img.staff-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 10px;
}
