@charset "ISO-8859-1";

body {
    height:100vh; /* necessary to keep footer at bottom */
    display:flex; /* necessary to keep footer at bottom */
    flex-direction:column; /* necessary to keep footer at bottom */
}

#header-logo {
    margin: 1em;
}

#header-logo img {
    max-width: 100%;
    height: auto;
}

.wrapper {
    width: 980px;
    margin: 0 auto;
    background-color: white;
}

.flex-break {
    flex-basis: 100%;
    height: 0;
}


@media only screen and (max-width: 980px) {
    .wrapper {
        width: 100%;
    }
}
/*
header {
    display: flex;
    flex-flow: column wrap;
}*/

#header-top::after {
    content: "";
    flex: auto;
}

#header-main {
    display: flex;
    flex-flow: row wrap-reverse;
    flex: 0 1 auto;
    justify-content: space-between;
    align-content: space-between;
}

#header-sub {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-content: space-between;
}

nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

nav a {
    display: block;
    color: inherit;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    padding: .6em 0;
    text-decoration: none;
    flex: 0 2 8em;
    border-bottom: 0;
}

nav .flex-wide {
    flex: 0 2 16em;
}

nav a:hover {
}

#nav-home {
    flex: none;
    padding: .55em .75em;
}

main {
    line-height: 1.5em;
    padding: 2em;
    display: block;
}


@media only screen and (max-width: 500px) {
    header {
        flex-direction: row-reverse;
    }

    nav {
        flex-direction: column;
        justify-content: space-around;
    }

    nav a {
        flex: unset;
        padding: .5em 0;
        border-bottom: 1px solid white;
    }

    nav .flex-wide {
        flex: unset;
    }

    main {
        padding: 0.5em;
    }
}

#user-info-wrapper {
    display: flex;
    flex-flow: nowrap;
    justify-content: space-between;
    align-content: end;
    flex: 1 1 auto;
}

#user-info {
    order: 0;
    margin: 1em;
}

#user-info a {
    margin-left: 1em;
}

#title-text {
    margin-top: 0.5em;
    font-size: 1.25em;
    font-weight: bold;
    align-self: flex-end;
}

#logo-text {
    margin: 0 0 1em 1em;
    align-self: flex-end;
}

#profile-hint {
    margin: 0;
    font-weight: 700;
    font-size: 1em;
    text-align: center;
    position: sticky;
    top: 0;
}

/* ===========================================
   Language Selector Styles
   =========================================== */

/* Hide dropdown by default */
.dropdown-content {
    display: none;
}

/* Dropdown Button */
.language-selector .btn {
    cursor: pointer;
}

/* Dropdown Menu */
.dropdown-content {
    list-style: none;
    width: 116px;
    border: 1px solid #000;
}

/* Desktop dropdown - align left */
#dropdown-content-desktop {
    transform-origin: bottom left;
    left: 0;
    top: 24px;
    border-bottom-right-radius: 0.725rem;
    border-top-left-radius: 0.725rem;
}

/* Mobile dropdown - align right */
#dropdown-content-mobile {
    transform-origin: bottom right;
    right: 0;
    top: 24px;
    border-bottom-right-radius: 0.725rem;
    border-top-left-radius: 0.725rem;
    z-index: 1000;
}

/* Dropdown Items */
.dropdown-content li {
    cursor: pointer;
    padding: 0.5rem;
}

.dropdown-content li:not(:last-child) {
    border-bottom: 1px solid gray;
}

/* Text styling */
#selected-language {
    font-weight: 600;
}



