﻿header {
    display: flex;
    flex-wrap: wrap;
    background-color: #F1641E;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000; /* Lower than mobile slide page (9999) but higher than modal (10000) */
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 80px;
}

header > * {
    height: 80px;
}

#divmiddle {
    flex-grow: 1;
    text-align: center;
}

    #divmiddle img {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
    }

#divlogo {
    margin-right: auto;
    width: 300px;
    padding-left: 20px;
}

#middleimg {
    max-height: 70px;
    content: url("/images/esmerandonos.png");
}

#emailimg {
    max-height: 30px;
    content: url("/images/email.png");
}

#logoimg {
    max-width: 240px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    content: url("/images/logo.png");
}

#divemail {
    display: flex;
    /*    align-items: center;*/
    padding-right: 20px;
}

    #divemail img {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        height: 70px;
    }

@media only screen and (max-width: 768px) {
    /* Adjust body padding for mobile header */
    body {
        padding-top: 60px;
    }

    header > * {
        height: 60px; /* Smaller height on mobile */
    }

    #divlogo {
        width: 150px; /* Smaller logo container */
        padding-left: 10px;
    }

    #logoimg {
        max-width: 120px; /* Smaller logo image */
    }

    #middleimg {
        max-height: 40px; /* Smaller middle banner */
    }

    #emailimg {
        max-height: 20px; /* Smaller email icon */
    }

    #divemail {
        padding-right: 10px;
    }

        #divemail img {
            height: 50px; /* Smaller email container */
        }
}
