/* ScaleFarm's header: the logo, and what is placed around it. Linked by Index.aspx after the shared
   css/index*.css and css/menu.css, which hold the bar and the buttons. BigGrassField has its own copy.

   Desktop (wider than 1000px) keeps the wide logo, css/index.css's default (Images/LogoDesktop1.png).
   Where the Menu button shows (1000px and narrower), the stacked logo (Images/scalefarmlogo.png, 739x600),
   as tall as the buttons, then 14px, then the Menu button. The search box starts 16px after the logo or the
   Menu button; css/index.css centres it in the space before the buttons. */

@media (min-width: 1001px) {
    #search {
        left: 230px; /* the logo ends at 214px */
    }
}

@media (max-width: 1000px) {
    #hdr-logo {
        background-image: url("../../Images/scalefarmlogo.png");
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* The 78px header: 60px buttons */
@media (max-width: 1000px) and (min-width: 841px) {
    #hdr-logo {
        top: 9px;
        left: 12px;
        width: 74px;
        height: 60px;
    }

    #hdr-menu {
        left: 100px;
    }

    #search {
        left: 176px;
    }
}

/* The 62px bar: 52px buttons (css/index-medium.css sets the logo's top, left and height) */
@media (max-width: 840px) {
    #hdr-logo {
        width: 64px;
    }

    #hdr-menu {
        left: 84px;
    }
}

@media (max-width: 840px) and (min-width: 601px) {
    #search {
        left: 152px;
    }
}

/* Help moves into the menu before the Search button would reach the Menu button (allowing for a desktop
   browser's scrollbar) */
@media (max-width: 389px) {
    #hdr-help {
        display: none;
    }

    #hdr-search {
        right: 114px;
    }

    #menu-help {
        display: list-item;
    }
}
