﻿header {
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.header-image-container {
    position: relative;
    width: 100%;
}

    .header-image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* This ensures the image covers the container and crops if necessary */
    }

    header .HeaderWrapper {
        position: relative;
    }

        header .HeaderWrapper img.Header {
            display: block;
            position: relative;
            width: 100%;
            height: auto;
        }

        header .HeaderWrapper .Logo img {
            display: block;
            position: relative;
            width: 100%;
            height: auto;
            transition: 0.5s all ease-in;
        }

        header .HeaderWrapper .Whale {
            position: absolute;
            left: 3%;
            z-index: 10
        }

        header .HeaderWrapper .Whale a {
            display: block;
        }

        header .HeaderWrapper .Whale img {
            display: block;
            height: 104px;
            width: 112px;
            transition: 0.5s all ease-in;
        }

        header .HeaderWrapper .TualcoProjectLogo {
            position: absolute;
            top: 20%;
            left: 9%;
            z-index: 10
        }

            header .HeaderWrapper .TualcoProjectLogo img {
                display: block;
                width: 150px;
                height: 104px;
                transition: 0.5s all ease-in;
            }

body:not(.Home) header .HeaderWrapper img.Header {
    min-width: 977px;
    min-height: 290px;
}

header .HeaderResources {
    position: absolute;
    top: 0;
    width: 100%;
    height: 104px;
    background-color: rgba(255, 255, 255,0.85);
    transition: 0.5s all ease-in;
}

    header .HeaderResources #menuContainer {
        position: absolute;
        height: 0;
        width: 0;
        z-index: 3;
    }

header .subheader {
    position: absolute;
    width: 500px;
    bottom: 15px;
    left: 0;
    right: 0;
    margin: auto;
    line-height: 39px;
    z-index: 2;
    font-family: 'Bilbo Swash Caps', cursive;
    font-size: 43px;
    text-align: center;
    color: white;
}

@media all and (min-width: 1921px) {
    .header-large {
        display: block;
    }

    .header-medium,
    .header-small {
        display: none;
    }
}

@media all and (min-width: 790px) and (max-width: 1920px) {
    .header-medium {
        display: block;
    }

    .header-large,
    .header-small {
        display: none;
    }
}

@media all and (max-width: 789px) {
    .header-small {
        display: block;
    }

    .header-large,
    .header-medium {
        display: none;
    }
}

@media all and (max-width: 1366px) {
    header .HeaderWrapper .Logo img {
        width: 1331px;
        height: 104px;
    }

    header .HeaderWrapper .TualcoProjectLogo img {
        height: 80px;
        width: 100px;
        margin-left: 50px;
    }
}

@media all and (max-width: 1023px) {
    #body {
        width: 100%;
    }

    header .HeaderWrapper .Whale img {
        height: 67px;
        width: 72px;
    }

    header .HeaderWrapper .TualcoProjectLogo img {
        height: 60px;
        width: 80px;
        margin-left: 50px;
    }

    header .HeaderWrapper .Logo img {
        left: -33%;
    }
}

@media all and (max-width: 789px) {
    header .HeaderWrapper .Whale img {
        height: 104px;
        width: 112px;
    }

    header .HeaderWrapper .TualcoProjectLogo img {
        height: 90px;
        width: 130px;
        margin-left: 100px;
    }

    header .HeaderResources #menuContainer {
        width: 41px;
        height: 29px;
        background: url('images/Hamburger.png') no-repeat;
        top: 10px;
        left: 10px;
        float: left;
        z-index: 11;
        cursor: pointer;
        transition: top 0.5s ease-in;
    }

        header .HeaderResources #menuContainer div {
            position: absolute;
            bottom: -25px;
            left: 0;
            font-size: 14px;
            color: white;
        }

    header .subheader {
        width: 90%;
        font-size: 1.5em;
        letter-spacing: 1px;
    }

    header .HeaderWrapper .Whale,
    header .HeaderWrapper .Whale img {
        display: block;
        position: relative;
        left: auto;
        margin: 0 auto;
    }

    header .HeaderWrapper .Logo {
        display: none;
    }

    header .HeaderWrapper .TualcoProjectLogo img {
        height: 104px;
        width: 150px;
        margin-left: 375px;
    }
}


@media all and (max-width: 375px) {
    header .HeaderWrapper img.Header {
        height: 267px;
    }

    body:not(.Home) header .HeaderWrapper img.Header {
        height: 163px;
    }
}


@media all and (max-width: 428px) {
    header .HeaderWrapper .TualcoProjectLogo img {
        height: 70px;
        width: 110px;
        margin-top: 25px;
        margin-left: 250px;
    }
}


#q {
    border: 1px solid lightgrey;
}

    #q:hover {
        border: 1px solid darkgrey;
    }


@media screen and (max-width:640px) {
    #searchboxcontainer {
        display: none;
    }
}

@media screen and (max-width:789px) {
    #searchboxcontainer {
        position: absolute;
        top: 25px;
        right: 10px;
    }
}

@media all and (min-width: 360px) and (max-width: 400px) {
    header .HeaderWrapper .TualcoProjectLogo img {
        height: 70px;
        width: 110px;
        margin-top: 25px;
        margin-left: 210px;
    }
}
