:root {
    --navbar-height: 50px;
    --footer-heigt: var(--navbar-height);
    --main-color: #CBD0D3;
    --secondary-color: #000000;
    --gradient-end: #205d7f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    color: var(--main-color);
    background: linear-gradient(90deg, var(--secondary-color), var(--gradient-end));
}

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

.expand-hover {
    transition: transform 0.3s ease;
}

.expand-hover:hover {
    transform: scale(1.1);
}

.section-row {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.section-col {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-main-img-horizontal {
    width: 90%;
}

.section-main-img-vertical {
    width: 60%;
}

.scroll-container {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    scroll-padding-top: var(--navbar-height)
}

.scroll-section {
    height: calc(100vh - var(--navbar-height));
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.nav-bar {
    scroll-snap-align: start;
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, var(--secondary-color), var(--gradient-end));
    height: var(--navbar-height);
    display: flex;
    justify-content: flex-end;
    z-index: 1024;
    transition: disp 0.3s ease;
}

.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    height: 100%;
    padding: 0 20px;
    color: var(--main-color);
    font-weight: bold;
}

.nav-bar .selected-nav-item, .nav-item:hover {
    color: var(--secondary-color);
    background-color: var(--main-color);
}

.hamburger-menu, .close-menu {
    margin-left: auto;
    display: none;
    font-size: 1.5em;
    color: var(--main-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75em;
    top: 0;
    z-index: 1024;
}

.hamburger-menu {
    position: absolute;
    right: 0;
}

.close-menu {
    position: sticky;
}

img {
    border-radius: 10px;
}

header {
    background-image: url("./img/main_extended.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 25% 20%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.header-column {
    width: 50%;
}

h1 {
    font-size: 5em;
}

h2 {
    font-size: xxx-large;
}

h5 {
    font-size: x-large;
}

.section-title {
    margin-bottom: 1em;
}

.section-content-container {
    width: 60%;
    line-height: 2em;
    text-align: justify;
}

#flag-container {
    width: 100%;
    padding-top: 1em;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.partner-image-container {
    display: flex;
    justify-content: center;
}

.partner-image-link {
    width: 80%;
}

.partner-image {
    width: 100%;
}

#contact {
    height: calc(100vh - (var(--navbar-height) + var(--footer-heigt)));
    background: linear-gradient(90deg, var(--secondary-color), var(--gradient-end));
}

.contact-div {
    width: fit-content;
    margin: 0.5em 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.contact-div span b {
    display: none;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: var(--footer-heigt);
    scroll-snap-align: end;
    background-color: var(--secondary-color);
    color: var(--main-color);
}

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

    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: xx-large;
    }

    h5 {
        font-size: large;
    }

    .section-content-container {
        line-height: 1.25em;
    }

    #about-me {
        text-align: justify;
    }

    .contact-div {
        line-height: 2em;
    }
}

@media only screen and (orientation: portrait) {

    .section-col {
        flex-basis: 100%;
    }

    .section-content-container {
        text-align: center;
    }

    .contact-div {
        margin: auto;
        line-height: 2em;
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.hide {
        display: none;
    }

    .close-menu {
        display: block;
    }

    .nav-bar {
        margin-left: auto;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        right: 0;
        height: 40%;
        width: 40%;
        background: var(--secondary-color);
        z-index: 1024;
    }

    .nav-bar.hide {
        display: none;
        opacity: 0;
        animation: nav-fade-out 0.6s;
    }

    .nav-bar.show {
        display: flex;
        opacity: 1;
        animation: nav-fade-in 0.6s;
    }

    .nav-item {
        text-align: center;
        width: 100%;
    }

    .scroll-container {
        scroll-padding-top: 0
    }

    .scroll-section {
        height: 100vh;
    }

    #contact {
        height: calc(100vh - var(--footer-heigt));
    }
}

@media only screen and (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
}

@media only screen and (max-width: 480px), screen and (max-width: 932px) and (orientation: landscape) {

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: x-large;
    }

    h5 {
        font-size: medium;
    }

    .section-content-container {
        line-height: 1.25em;
        text-align: center;
    }

    #about-me {
        font-size: small;
    }

    a.contact-div {
        font-size: small;
    }

    footer {
        font-size: small;
    }
}

@media only screen and (max-width: 480px), screen and (max-width: 900px) and (orientation: landscape) {
    :root {
        --navbar-height: 40px;
    }
}

@keyframes nav-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes nav-fade-out {
    from {
        display: flex;
        opacity: 1;
    }

    to {
        display: none;
        opacity: 0;
    }
}
