@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Regular.ttf');
}

body {
    margin: 0;
}

main {
    width: 100%;
    overflow-x: hidden;
}

.background {
    background-image: url('../images/elements/background_3433814.jpg');
    background-size: cover;
    background-color: #2E75B6;
    background-attachment: fixed;
}

* {
    box-sizing: border-box;
    font-family: 'Lato', 'Times New Roman', 'sans serif';
    font-size: 20px;
}

.highlight {
    color: #2E75B6;
}

.hidden {
    display: none;
}

/*Used when toggling between hidden and flex, because the display: none of hidden usually loses to the display:flex defined in the base class*/
.flex {
    display: flex;
}

/*Navbar start*/

.navbar-container {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar {
    display: flex;
    flex-direction: row;
    background-color: #2E75B6;
    box-shadow: 3px 3px 5px 5px rgba(0,0,0,0.25);
      
    justify-content: center;
    flex-wrap: wrap;
    transition: max-height 0.2s;
    height: auto;
    max-height: 75px;
    overflow: hidden;
}

.navbar-logo {
    flex-grow: 1;
    height: 75px;
}

.navbar-logo > img {
    height: 100%;
}

.navbar-hamburger {
    display: inline-flex;
    height: 75px;

    justify-content: center;
    align-items: center;
    margin-right: 5%;
    
    cursor: pointer;
    transition: all 0.5s ease;
}

.navbar-hamburger > img {
    display: block;
    margin-left: auto;
    height: 50px;
}


.svg-themeColor {
    filter: invert(85%) sepia(94%) saturate(0%) hue-rotate(158deg) brightness(113%) contrast(101%);
}

.navbar-link {
    display: inline-flex;
    flex-basis: 100%;
    justify-content: center;
    align-items: center;
    
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: #FFFFFF;
    font-size: 20px;

    transition: all 0.5s ease;
}

.navbar-dropdown {
    transition: max-height 1s;
    max-height: 500px;
    padding-bottom: 2.5%;
}

.navbar-link:hover {
    animation-name: navbar-highlight;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
}

/*Small navbar*/
@media only screen and (min-width: 1100px) {
    .navbar {
        height: 150px;
    }
}

@media only screen and (min-width: 900px) {
    .navbar {
        justify-content: space-evenly;
        flex-wrap: unset;
        transition: none;
        height: 150px;
        max-height: unset;
        overflow: unset;
    }

    .navbar:hover {
        transition: unset;
        max-height: unset;
        padding-bottom: unset;
    }

    .navbar-link {
        padding: unset;
        font-size: unset;
        flex-basis: 20%;
        align-self: flex-end;
        flex: 1;
        font-size: 26px;
        text-decoration: none;
        font-weight: bold;
        color: #FFFFFF;
    
        height: 100%;
        text-align: center;
    
        transition: all 0.5s ease;
    }

    .navbar-logo {
        height: 150px;
        flex-grow: unset;
    }

    .navbar-hamburger {
        display: none;
    }
}   


@keyframes navbar-highlight {
    from {background-color: #2E75B6}
    to {background-color: #4384c0;}
}

@keyframes animation-slideLogoMid-logo {
    0% {flex-basis: 100%}
    100% {flex-basis: 8.33%}
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeInThenOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes dropDown {
    0% { transform: translateY(-100%) }
    100% { transform: translateY(0%) }
}