@font-face {
    font-family: 'Code New Roman';
    src: url(../font/code-new-roman_regular.otf);
}

@font-face {
    font-family: 'Code New Roman Bold';
    src: url(../font/code-new-roman_bold.otf);
}

:root {
    /* Colors */
    /* Gruvbox */
    --gruvbox-light-bg: #fbf1c7;
    --gruvbox-light-bg0-h: #f9f5d8;
    --gruvbox-light-bg0-s: #f2e5bc;
    --gruvbox-light-bg0: #fbf1c7;
    --gruvbox-light-bg1: #ebdbb2;
    --gruvbox-light-bg2: #d5c4a1;
    --gruvbox-light-bg3: #bdae93;
    --gruvbox-light-bg4: #a89984;
    --gruvbox-light-fg: #3c3836;
    --gruvbox-light-fg0: #282828;
    --gruvbox-light-fg1: #3c3836;
    --gruvbox-light-fg2: #504945;
    --gruvbox-light-fg3: #665c54;
    --gruvbox-light-fg4: #7c6f64;
    --gruvbox-dark-bg: var(--gruvbox-light-fg);
    --gruvbox-dark-bg0-h: #1d2021;
    --gruvbox-dark-bg0-s: #32302f;
    --gruvbox-dark-bg0: var(--gruvbox-light-fg0);
    --gruvbox-dark-bg1: var(--gruvbox-light-fg1);
    --gruvbox-dark-bg2: var(--gruvbox-light-fg2);
    --gruvbox-dark-bg3: var(--gruvbox-light-fg3);
    --gruvbox-dark-bg4: var(--gruvbox-light-fg4);
    --gruvbox-dark-fg: var(--gruvbox-light-bg);
    --gruvbox-dark-fg0: var(--gruvbox-light-bg0);
    --gruvbox-dark-fg1: var(--gruvbox-light-bg1);
    --gruvbox-dark-fg2: var(--gruvbox-light-bg2);
    --gruvbox-dark-fg3: var(--gruvbox-light-bg3);
    --gruvbox-dark-fg4: var(--gruvbox-light-bg4);

    --gruvbox-red: #cc241d;
    --gruvbox-dark-red: #9d0006;
    --gruvbox-light-red: #fb4934;

    --gruvbox-green: #98971a;
    --gruvbox-dark-green: #79740e;
    --gruvbox-light-green: #b8bb26;

    --gruvbox-yellow: #d79921;
    --gruvbox-dark-yellow: #b57614;
    --gruvbox-light-yellow: #fabd2f;

    --gruvbox-blue: #458588;
    --gruvbox-dark-blue: #076678;
    --gruvbox-light-blue: #83a598;

    --gruvbox-purple: #b16286;
    --gruvbox-dark-purple: #8f3f71;
    --gruvbox-light-purple: #d3869b;

    --gruvbox-aqua: #689d6a;
    --gruvbox-dark-aqua: #427b58;
    --gruvbox-light-aqua: #8ec07c;

    --gruvbox-orange: #d65d0e;
    --gruvbox-dark-orange: #af3a03;
    --gruvbox-light-orange: #fe8019;

    --gruvbox-gray: #928374;
    --gruvbox-dark-gray: #7c6f64;
    --gruvbox-light-gray: #a89984;

    /* Typography */
    --primary-font: 'Code New Roman';
    --primary-font-bold: 'Code New Roman Bold';
    --font-size-biggest: 2.25rem;
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.25rem;
    --font-size-h3: 1.125rem;
    --font-size-normal: .938rem;
    --font-size-small: .813rem;

    /*Chosen colors*/
    --fg-color: var(--gruvbox-light-fg);
    --fg-color-light: var(--gruvbox-light-fg4);
    --bg-color: var(--gruvbox-light-bg);

    /* Z index */
    --z-tooltip: 10;
    --z-fixed: 100;

    --header-height: 3.5rem;
}

@media screen and (min-width: 1024px) {
    :root {
        --font-size-biggest: 4rem;
        --font-size-normal: 1rem;
        --font-size-small: .875rem;
    }
}

/* ================== BASE ================== */

html {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--primary-font);
    font-size: var(--font-size-normal);
    color: var(--fg-color);
    background-color: var(--bg-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    font-weight: 600;
    color: var(--gruvbox-red)
}

a:hover {
    text-decoration: underline dashed;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ================== REUSABLE CLASSES ================== */

.container {
    max-width: 1120px;
    margin: 0 1.5rem;
}

.overflowing {
    overflow: hidden; /* For animations */
}

/* ================== HEADER ================== */
main {
    position: relative;
    top: calc(1rem + var(--header-height));
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

.highlight {
    font-family: var(--primary-font-bold);
    font-size: var(--font-size-h3);
    color: var(--gruvbox-red);
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--bg-color);
    color: var(--fg-color);
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.nav {
    position: relative;
    height: var(--header-height);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    column-gap: .5rem;
    align-items: center;
    font-weight: 600;
    color: var(--fg-color);
}

.nav-logo-square {
    font-family: var(--primary-font-bold);
    font-size: var(--font-size-h3);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 3px;
    background-color: var(--fg-color);
    color: var(--bg-color);
}

.nav-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.nav-item {
    padding: 0 1rem;
}

.nav-link {
    color: var(--fg-color);
    text-decoration: none;
}

.nav-link-active {
    text-decoration: underline dashed;
}

.hamburger {
    display: none;
}

.section {
    width: 100%;
    margin-bottom: 1.5rem;
}

.section-image.about {
    max-width: 30%;
    text-align: center;
}

.section-title {
    margin: 0.5rem 0;
}

.section-body {
    text-align: left;
    font-size: var(--font-size-normal);
    padding: 10px 0px;
}

.about-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    align-content: stretch;
}

.gallery-image {
    display: inline-block;
    margin-bottom: 5rem;
}

.gallery-image-mobile {
    display: none;
}

.image-desc {
    margin: 0;
    font-size: var(--font-size-small);
    color: var(--fg-color-light);
    text-align: right;
}

.contact-list {
    margin: 1.5rem 0;
}

.contact-item {
    text-align: center;
    padding: 0.75rem 0;
    font-size: var(--font-size-h3);
}
/*=== MOBILE ===*/
@media screen and (max-width: 1024px) {
    /*=== HEADER ===*/
    .nav-list {
        transition: left .2s .2s ease-in-out;
        position: fixed;
        top: 0;
        left: 100vh;
        width: 100vh;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hamburger--active.nav-list {
        transition: left .2s .2s ease-in-out;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--fg-color);
        color: var(--fg-color);
        text-align: center;
    }

    .nav-item {
        padding: 15px 0;
    }

    .nav-link {
        font-size: var(--font-size-h2);
        color: var(--bg-color);
    }

    .hamburger {
        display: inline-block;
        cursor: pointer;
        background-color: transparent;
        border: 0;
        margin: 0;
        z-index: var(--z-tooltip);
    }

    .hamburger-box {
        width: 30px;
        height: 30px;
        display: inline-block;
        position: relative;
    }

    .hamburger-inner {
        width: 100%;
        height: 3px;
        background-color: var(--fg-color);
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: background-color .1s .1s ease-in-out;
    }

    .hamburger-inner:before, .hamburger-inner:after {
        width: 100%;
        height: 3px;
        background-color: var(--fg-color);
        position: absolute;
        content: '';
        left: 0;
        transition: transform .2s .2s ease-in-out, background-color .2s .2s ease-in-out;
    }

    .hamburger-inner:before{
        top: -7px;
    }

    .hamburger-inner:after {
        top: 7px;
    }

    .hamburger--active .hamburger-inner {
        background-color: transparent;
    }

    .hamburger--active .hamburger-inner:before {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--bg-color);
    }

    .hamburger--active .hamburger-inner:after {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--bg-color);
    }
    /*=== GENERAL SITE ===*/

    .section {
        display: flex;
        flex-direction: column;
        margin-bottom: 1.5rem;
        padding: 0 1.5rem;
    }

    .section-image.about {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .section-title {
        margin: 0.5rem 0;
    }

    .section-body {
        text-align: justify;
        font-size: var(--font-size-normal);
    }

    /*=== ABOUT ===*/
    .about-body {
        display: flex;
        flex-direction: column-reverse;
    }

    /*=== GALLERY ===*/

    .gallery-image {
        display: none;
    }

    .gallery-image-mobile {
        display: inline-block;
        margin-bottom: 2rem;
    }

    .image-desc {
        margin: 0;
        font-size: var(--font-size-small);
        color: var(--fg-color-light);
        text-align: right;
    }
    /*=== CONTACT ===*/

    .contact-list {
        margin: 1.5rem 0;
    }

    .contact-item {
        text-align: center;
        padding: 0.75rem 0;
        font-size: var(--font-size-h3);
    }
}