/*Fonts*/
	
@font-face{
    font-family: hFont;
    src: url(../fonts/archivo/Archivo-Bold.ttf);
}

@font-face{
    font-family: pFontregular;
    src: url(../fonts/archivo/Archivo-Regular.ttf);
}

/*main sections*/

body{
margin: 0;
padding: 0;
box-sizing: border-box;
overflow-x: hidden;
}

header{
display: flex;
width: 90vw;
margin: auto;
align-items: center;
}

main{
display: flex;
flex-direction: column;
width: 90vw;
margin: auto;
}

.fixed{
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background-color: #ffffff;
text-align: center;
border-top: 1px solid #e6e6e6;
/* z-index: 2; */
}

/*classes and sub sections*/

.logo-image, .logo-title, nav{
display: flex;
}


.logo-image{
width: 80px;
height: 80px;
}


.logo-title{
flex: 1;
font-size: 10px;
font-family: hFont;
flex-direction: column;
margin: 0 15px 0 5px;
line-height: 1.5em;
min-width: 200px;
}

header h1{
margin: 32.5px 0 -.15em;
}

header h2{
font-size: 120%;
color: #4d4d4d;
}

.nav-bar{
    width: 500px;
}

.nav-menu{
    display: flex;
    flex-wrap: wrap;
    align-content:space-around;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-menu li{
margin-right: 10px;
}

.nav-menu a{
text-decoration: none;
font-family: pFontregular;
font-size: 14px;
font-weight: 400;
color: #4d4d4d;
padding: 10px 10px;
margin-bottom: 100px;
}

.menu-btn{
    cursor: pointer;
    color: #4d4d4d;
    width: 15px;
    position: absolute;
    top: 25px;
    right: 20px;
    display: none;
}

.search-btn{
    cursor: pointer;
    position: absolute;
    color: #4d4d4d;
    width: 15px;
    margin-right: 10px;
    top: 35px;
    right: 15px;
}

.search-box{
    position: absolute;
    top: 20px;
    right: 50px;
    display: none;
    background: #bf0916;
    width: 550px;
    height: 40px;
}

.search-field{
    position: absolute;
    top: 7px;
    height: 1.4rem;
    margin: auto;
    padding: 1px 10px;
    display: none;
    border-radius: 3px;
    border: none;
    /* outline is for inner color when in focus*/
    outline-width: 1px;
    outline-color: #bf0916;
    background: none;
    color: #ffffff;
    
}

.search-field::placeholder {
    color: #ffffff;
  }

.showBox{
    display: block;
    z-index: 2;
}

.showField{
    display: block;
    position: absolute;
    top: 7px;
}

.menu-btn:hover{
    opacity: .75;
}

.search-btn:hover{
    opacity: .75;
}

.nav-menu a:hover{
color: #000000;
border-bottom: 2px solid #bf0916;
}

.active{
background-color: #bf0916;
color: #ffffff !important;
border: 2px solid #bf0916;
}

h1{
font-family: hfont;
font-size: 18px;
font-weight: 600;
}

h2{
font-family: pFontregular;
font-size: 20px;
font-weight: 400;
}

p{
font-family: pFontregular;
font-size: 16px;
}

footer div p{
    font-size: .7rem;
    line-height: 1rem;
}

blockquote{
font-family: pFontregular;
font-size: 16px;
line-height: 1.5em;
border-left: 7.5px solid #bf0916;
padding: 2px 25px;
}

.small{
display: block;
font-size: 13px;
font-style: normal;
color: #333333;
border-top: 1px solid #867979;
margin: 25px 15% 0 0;
padding: 10px 0 0 2px;
}

.mainTitle{
margin-bottom: 25px;
font-size: 2rem;
text-align: center;
font-weight: 600;
}

.vidSec{
margin-top: 5%;
margin-bottom: 5%;
}

.sub-h2{
font-size: 100%;
}

iframe{
display: flex;
margin: auto;
width: 100%;
height: 60vh;
}

footer p{
font-size: 75%;

}

/*smaller screens*/
@media only screen and (max-width: 885px){
    .nav-menu{
        width: 450px;
    }

    .nav-menu li{
        margin-top: 20px;
   } 
   
   .nav-menu a{
       margin-left: -5px;
   }

   .showBox{
    top: 27px;
    right: 50px;
    width: 430px;
    z-index: 2;
}
}

@media only screen and (max-width: 768px){

    header{
        flex-direction: column;
        text-align: center;
    }

    .menu-btn{
        display: block;
        z-index: 2;
    }

    .search-btn{
        top: 25px;
        right: 40px;
    }

    .search-box{
        top: 50px;
        right: 30px;
        background: #bf0916;
        width: 180px;
        height: 40px;
    }

    .showBox{
        top: 15px;
        right: 70px;
        width: 170px;
    }

    .showField{
        display: block;
        position: absolute;
        top: 7px;
        width: 120px;
    }

    .logo-image{
        margin-top: 20px;
        margin-bottom: 15px;
        width: 80px;
    }

    header h1{
        margin-top:0;
    }

    .logo-title{
        margin-left: 5vw;
        margin-right: 5vw;
    }

    .nav-menu{
        display: none;
        flex-direction: column;
        margin-top: 25px;
        width: 100vw;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 1;
        transform: translateY(-100vh);
        transition: transform 0.5s ease-in-out;
    }
    
    .nav-menu.show{
        display: block;
        padding-top: 25vh;
        transform: translateY(0vh);
    }
    .nav-menu li{
        margin-bottom: 25px;
        font-size: 25px;
    }

    .mainTitle{
        text-align: center;
    }

    main{
        padding-left: 2.5vw;
        padding-right: 2.5vw;
    }

    blockquote{
        margin: 0 3%;
        padding-left: 4vw;
        padding-right: 4vw;

    }

    main::after{
        content: "";
        min-height: 20px;
    }
} 