header {
    z-index: 150;
    display: flex;
    justify-content: center;

    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 3.8rem;

    font-size: 1rem;
    font-weight: 400;
    font-family: var(--font-content);

    background-color: var(--col-header-background);
    color: var(--col-header-foreground);

    box-shadow: 0px -1px 6px var(--col-header-foreground);

    &.floating {
        background-color: var(--col-header-background-transparent);
        position: fixed; /*position: absolute;*/
    }

    .header_pad_l1 { flex-grow:1; }
    .header_pad_c1 { flex-grow:1; }

    .header_center {
        width: var(--content-width);
        max-width: 100%;

        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-start;
    }

    #header_logo {
        font-size: 1.25rem;
        font-weight: bold;
        display: flex;
        justify-content: center;
        align-items: center;
        user-select: none;
        text-decoration: none;
        padding: 0 32px 0 10px;

        color: black;

        img {
            margin-right: 12px;
            width: auto;
            height: 43px;
        }

        a {
            color: black;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 2.15rem;
            color: #555;
        }
    }

    #header_buttons {
        display: flex;
        flex: 0;
        flex-grow:1;
        justify-content: right;

        .header_btn {
            line-height: 1.5;

            color: inherit;
            text-decoration: none;

            display: flex;
            justify-content: center;
            align-items: center;

            padding: .5rem 1rem;
            overflow: hidden;
            user-select: none;

            &:hover {
                color: var(--col-header-actionbutton-background);
                cursor: pointer;
            }

            &.active {
                border-bottom: var(--col-header-actionbutton-background);
                border-bottom-style: solid;

                &:hover {
                    color: var(--col-header-actionbutton-background);
                }
            }

            i {
                vertical-align: middle;
            }

            .fas {
                font-size: 1.2rem;
            }
        }

        .header_btn_account {
            line-height: 1.5;

            color: inherit;
            text-decoration: none;

            display: flex;
            justify-content: center;
            align-items: center;

            padding: .5rem 1rem;
            overflow: hidden;
            user-select: none;

            &:hover {
                color: var(--col-header-actionbutton-background);
                cursor: pointer;
            }

            span { white-space: pre; font-size: 20px; }

            .span_avatar {
                margin-right: 8px;
                display: flex;
            }

            .img_avatar {
                height: 28px;
                width: 28px;

                border: 1px solid #000;
                border-radius: 50%;
            }
        }
    }

    #header_dropdown {

        display: flex;
        justify-content: center;
        align-items: center;

        position: relative;

        font-size: 0.65rem;

        .dropdown_name {
            font-size: 1.25rem;
            font-weight: bold;
            user-select: none;
            text-decoration: none;
            padding: 0 32px 0 10px;

            cursor: pointer;
        }

        .dropdown_body {

            position: absolute;
            top: calc( 3.8rem + 4px );
            left: 0;

            z-index: 1500;

            background-color: rgba(255, 255, 255, 0.95);
            box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);

            border-radius: var(--border-radius-medium);
            overflow: hidden;

            display: flex;
            flex-direction: column;

            min-width: calc( min( 100vh - 2rem, 20rem ) );

            .header_btn {
                line-height: 1.5;

                color: inherit;
                text-decoration: none;

                display: flex;
                justify-content: start;
                align-items: center;

                padding: .5rem 1rem;
                overflow: hidden;
                user-select: none;

                cursor: pointer;

                &:hover {
                    color: var(--col-darkgreen);

                    background: rgba(0, 0, 0, 0.15);
                }


                &.active {
                    /* color: var(--col-darkgreen); */
                }


                i {
                    vertical-align: middle;
                    min-width: 1.35rem;
                    text-align: center;
                }

                .fas {
                    padding-right: 8px;
                    font-size: 0.9rem;
                }
            }

            hr {
                opacity: 0;
            }

            &[data-show="0"] { display: none; }

        }

        .dropdown_back {
            background-color: rgba(255, 0, 0, 0.001);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;

            &[data-show="0"] { display: none; }

            z-index: 1000;
        }

    }

}

.site_headerimage {

    position: relative;

    > img {
        width: 100vw;
        height: calc(300px + 3.8rem);
        object-fit: cover;
    }

    > .title {

        font-family: var(--font-header);

        position: absolute;
        text-align: center;
        bottom: 20px;
        left: 0;
        right: 0;

        font-size: 4rem;
        font-weight: bold;

        color: var(--col-gold);
        text-shadow: 2px 2px 0    #000,
        0   0   25px #000;
    }

}

@media only screen and (max-width: 48rem) { /* < 768px */
    header #header_buttons { display: none; }
    header .header_pad_1 { flex-grow: 1; }
    header .header_pad_2 { flex-grow: 1; }
    header .header_pad_3 { flex-grow: 0; }

    header #header_dropdown {
        position: unset;
    }

    header #header_dropdown .dropdown_body {
        left:  0.5rem;
        right: 0.5rem;
        background: #FFF;
    }
}