/* HEADER */
header-component {
    position: sticky;
    z-index: 10;
    width: 100%;
    top: 0;
}

header {
    -webkit-box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
    display: flex;
    background-color: #ffffff;
    flex-wrap: wrap;
}

/* LOGO */
header logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10 10 10 20;
    
} 

header logo img {
    display: none;
}


@media only screen and (max-width: 630px) {
    header logo img.mobile {
        /* width: 100% */
        width: 40px;
        display: block;
    }

    header logo {
        margin-left: 10px;
    }
}

@media only screen and (min-width: 631px) {
    header logo img.desktop {
        /* width: 100% */
        width: 150px;
        display: block;
    }
}

/* NAV BAR */
#nav-content {
    flex: 1;
    display: flex;
    justify-content: space-evenly;
}

@media only screen and (max-width: 1100px) {
    #nav-content {
        order: 3; /* change so the nav links are after the hamburger btn...*/
        flex-basis: 100%; /* ...and forced to wrap */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    #nav-content.opened  {
        max-height: 1000px;
    }
}


/* SEARCH */
#search-surrounding-overlay{
    z-index: 15;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: none;
}

#search-surrounding-overlay.show{
    display: block;
}

#search-parent{
    position: relative;
    margin-bottom: 0;
    align-self: center;
    flex: 0.5;
    margin: 20 30;
    display: flex;
    height: 35px;
    justify-content: center;
    align-items: center;
    border: #c2c1c1 solid 1px;
    border-radius: 6px ;
    /* Define width variable for input box area? */
    --search-box-container-width: 85%;
    --search-box-container-width-decimal: 0.85; /* <- can't seem to do calc w/ percents, so need decimal*/
    z-index: 20;
    background-color: white;
}

#search-box-container{
    position: relative;
    width: 100%;
    display: flex;
    
}

#search-input-box{
    width: 100%;
    border: 0;
    outline: 0;
    font-family: FSElliotPro;
    font-size: medium;
}

#search-input-box:focus{
    border: 0 !important;
    outline: 0 !important;
}

#search-suggestions{
    position: absolute;
    border: #333 1px solid;
    display: none;
    box-sizing: border-box;
    box-shadow: 0px 10px 7px 1px #00000047;
}

#search-suggestions.visible{
    position: absolute;
    border: #c2c1c1 1px solid;
    border-top: #f0f0f0 1px solid;
    display: block;
    --search-suggestions-width: calc(100% / var(--search-box-container-width-decimal));
    /* --search-suggestions-width: calc(100% / .85); */
    /* width: calc(100% / (var(--search-box-container-width))); */
    /* width: var(--search-suggestions-width); */
    width: calc(100% + 2px);
    background-color: white;
    top: 31px;
    /* left: calc(-23px / .85); */
    border-radius: 0 0 6px 6px;
    padding: 10px;
    max-height: 80vh;
    overflow-y: scroll;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;
}

#search-suggestions.visible::-webkit-scrollbar { 
    display: none;
}

#search-suggestions > div {
    padding: 5px;
}

#search-suggestions a {
    cursor: pointer;
}

@media only screen and (max-width: 1100px) {
    #search-parent {
        width: 50%;
        flex-grow: 5;
    }
}

@media only screen and (max-width: 630px) {
    #search-parent {
        width: 100%;
        flex-grow: 7;
        margin: 10px;
    }
}

#search-btn{
    border: 0;
    background: none;
    padding: 0 10;
    color: #5F5F5F;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#clear-search{
    padding: 0 10;
    color: #5F5F5F;
    display: flex;
    align-items: center;
    cursor: pointer;
}


header ul {
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
    font-weight: 400;
    justify-content: space-evenly;
    height: auto;
    flex: 1;
}

@media only screen and (max-width: 1100px) {
    header ul {
        flex-direction: column;
        align-items: flex-end;
    }
    header ul li {
        width: 100%;
        /* border-bottom: #E4610F solid 1px */
        /* border-bottom: #e0dfde59 solid 1px */
    }
    header ul li:last-child {
        /* width: 100%; */
        border-bottom: none
    }
}

header ul > li {
    text-align: right;
}

@media only screen and (max-width: 1100px) {
    header ul > li {
        padding: 10px;
    }
}
  
header a {
    color: #5F5F5F;
    text-decoration: none;
}

/* Styling Mobile Header Additions */
hamburger {
    display: none;
}

@media only screen and (max-width: 1100px) {
    hamburger {
        display: flex;
        flex: 1;
        justify-content: end;
        align-items: center;
        padding-right: 5px;
    }
}

.hamburger-menu {
    cursor: pointer;
    display: inline-block;
    position: relative;
    width: 20px; 
    height: 20px; 
}
  
.hamburger-menu .bar {
    background-color: #333;
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    transition: all 0.3s ease;
    border-radius: 10px;
}
  
.hamburger-menu .top {
    top: 0;
}
  
.hamburger-menu .middle {
    top: 50%;
    transform: translateY(-50%);
    width: 70%; 
    right: 0; 
}
  
.hamburger-menu .bottom {
    bottom: 0;
}
  
/* When hambrger is clicked */
.opened .top {
    transform: rotate(-45deg);
    top: 8px;
}
  
.opened .middle {
    opacity: 0;
}
  
.opened .bottom {
    transform: rotate(45deg);
    bottom: 9px;
}
  


/* FOOTER */
.footer-container{
    margin-top: 50px;
    background-color: #161616;
    /* height: 16vh; */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.footer-container > .row {
    display: flex;
    padding: 30px;
    color: white;
    align-items: center;
    justify-content: space-around;
    /* flex-wrap: wrap; */
}

@media only screen and (max-width: 630px) {
    .footer-container > .row {
        flex-direction: column;
        text-align: center;
    }
}

.footer-container  > .row a.button {
    color: white;
}

.footer-container  > .row a {
    color: #E4610F;
}

.footer-container  > .row a:hover {
    color: #f09a65;
    transition: 0.3s
}

.footer-container  > .row > * > * {
    margin: 30px;
}

.footer-right-section{
    text-align: center;
}

.footer-container .button {
    padding: 10px;
    border-radius: 2px;
    background-color: #E4610F;
    text-align: center;
    width: fit-content;
    margin: auto;
}

.footer-container .button:hover {
    background-color: #c65108;
}

/* Create pulsating effect when user clicks "Contact" */
.footer-container.pulsate {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
	transform: scale(1);
	animation: pulse 2s 1;
    -webkit-animation: pulse 2s 1;
}

.space-between {
    justify-content: space-between !important;
}

/* Pulsating animation */
@keyframes pulse {
    0% {
		/* transform: scale(0.95); */
		box-shadow: 0 0 0 0 #c65108c0;
        background-color: #161616;
	}

	50% {
		/* transform: scale(1); */
		box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
        background-color: #c65108c0;
	}

	100% {
		/* transform: scale(0.95); */
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        background-color: #161616;
	}
}
@-webkit-keyframes pulse {
    0% {
		/* transform: scale(0.95); */
		box-shadow: 0 0 0 0 #c65108c0;
        background-color: #161616;
	}

	50% {
		/* transform: scale(1); */
		box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
        background-color: #c65108c0;
        
	}

	100% {
		/* transform: scale(0.95); */
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        background-color: #161616;
	}
}

