/* Header section from here */

mainheader {
    position: fixed;
    width: 100%;
    top: 0px;
    display: block;
    height: 100px;
    background-color: white;
    padding-top: var(--base-padding);;
    padding-left: var(--base-padding);;
    padding-right: var(--base-padding);;

    z-index: 999;
}

.blue_container {
    min-height: 100px;
}

.navheader{
    
    top: var(--base-padding);
    left: var(--base-padding);
    right: var(--base-padding);
    height: calc(100px - var(--base-padding));
    background: var(--primary);
    justify-content: space-between;
    display: flex;
    flex-direction: column;

    justify-content: space-between;
    

    border-radius: 20px 20px 0px 00px;
}

/*Middle section of the header*/
#header_mid {
	height: 350px;
    margin-left: var(--base-padding);
    margin-right: var(--base-padding);
    margin-top: calc(80px + var(--base-padding));
    padding-left: var(--base-padding);
    padding-right: var(--base-padding);
    text-align: left;
    position: relative;

    background: var(--primary);
    
}

.mid_header_text{
    position: absolute;
    bottom: 0;
    left: var(--base-padding);
    z-index: 985;

    color:white;
    text-shadow: 3px 3px 6px var(--a-hover);

    /* Keep title readable while scaling down to fit smaller header widths/heights */
    font-size: clamp(1.4rem, min(7vw, 16vh), 4rem);
    line-height: 1.1;
    max-width: calc(100% - (2 * var(--base-padding)));
    overflow-wrap: anywhere;
    font-weight: bold;
}
/* Bottom part of the header*/
#header_bottom {
	min-height: 60px;
	height: auto;
    position: relative;
    background: #008ECA;
	border-radius: 0 0 20px 20px;
    text-align: center;
    padding-top: 4px;
    padding-bottom: 4px;
    margin-left: var(--base-padding);
    margin-right: var(--base-padding);
}

/* This class gets added by JavaScript when scrolled */
#header_bottom.sticky {
    width: calc(100% - 2 * var(--base-padding));
    position: fixed;
    top: 100px;
    background: #008ECA;
    z-index: 99;
}


/*Hamburger button display*/
.hamburger {
    order: 2;
    display: none;
    font-size: 2.0rem;
	font-weight: 600;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding-left: 1.5rem;
}

.hamburger:hover {
    color: var(--a-hover);
}


/*Holicroc logo display*/
.logo{
  background: url("../images/logo_neg.png");
  background-size: 210px 80px;
  background-repeat: no-repeat;
  min-width: 210px;
  height: 80px;
  display: block;
  position: absolute;
  z-index: 999;
}

/*Holicroc header background image display*/
.bg_image {
    background: url("../images/hc_header_image_placeholder.jpg");
    background-size: 700px 350px;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    margin-left: calc(-1 * var(--base-padding));
    z-index: 980;
}

/*Holicroc header crocodile image*/
.croc_header_image {
    background: url("../images/Holicror_Croc-swim_color_600px.png");
    background-size: auto var(--croc-image-height, 100%);
    background-position: right var(--croc-image-offset, 2000px) bottom;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    transform: scaleX(-1);
    transform-origin: center;
    margin-left: calc(-1 * var(--base-padding));
    z-index: 981;
}

/*General navigation menu*/
.nav-menu {
    list-style: none;
    display: flex;
    color: white;
    font-size: 19px;

    margin-top: 20px;
}

.nav-menu li {
    display: inline;
	margin-right: 5px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.5rem;
    display: block;
}

.nav-menu a:hover {
	color: var(--a-hover);
}

#mainmenu{
	padding-right: 40px;
    
	float: right;
	text-transform: uppercase;
	font-weight: 700;

     padding-inline-start: 0px;
}

#submenu{
	font-weight: 700;
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0 var(--base-padding);
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 4px;
}

#submenu li {
    margin-right: 0;
}

#submenu #category-overflow[hidden] {
    display: none;
}

#submenu[data-overflow-ready] {
    flex-wrap: nowrap;
}

#submenu[data-overflow-ready] > li {
    flex-shrink: 0;
}

#submenu[data-overflow-ready] > li > a {
    white-space: nowrap;
}

#category-overflow {
    position: relative;
}

#category-overflow button {
    background: none;
    border: 0;
    color: white;
    font: inherit;
    padding: 0.5rem;
    padding-left: 50px;
    font-size: larger;
    font-weight: bolder;
}

#category-overflow button:hover {
    color: var(--a-hover);
}

#category-overflow-menu {
    position: absolute;
    right: 0;
    z-index: 100;
    min-width: 160px;
    max-width: calc(100vw - 2 * var(--base-padding));
    max-height: 60vh;
    overflow-y: auto;
    overflow-wrap: anywhere;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    background: #008ECA;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.329);
}

#category-overflow-menu li {
    display: block;
}

/* Mobile Style overwrites*/
@media screen and (max-width: 900px) {
    mainheader {
        height: 80px;
    }
    .hamburger {
        display:block;
		margin-right: var(--base-padding);
        /*margin-left: auto;*/
    }
    .navheader{
        height: calc(80px - var(--base-padding));
    }

    .form-page{
        margin-top: 80px;
    }

    #header_mid {
    margin-top: calc(60px + var(--base-padding));
    }

    #header_bottom.sticky {
    top: 80px;
    }

    #mainmenu {
        z-index: 1000;
        display: none;
        flex-direction: column;
        position: absolute;
        right: var(--base-padding);
        background: var(--primary);
        padding: var(--base-padding);
        margin-top: -20px;
        margin-bottom: 0px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.329);
        border-radius: 8px;
    }

    #mainmenu.active {
        display: flex;
    }

    .nav-menu {
    display: none;
    }

    #submenu {
        display: flex;
    }

    #header_bottom {
        min-height: 20px;
    }

}