*{
  box-sizing: border-box;
}
.hidden{
  display: none;
}
body{
  margin: 0;
}
p, a, h1, h2, h3{
  font-family: 'Montserrat', sans-serif;
}
.align-center {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

#disclaimer{
  font-size: 0.8em;
}
.donateNav{
  color: #fbaf3f !important;
}
.donateNav:hover{
  color: #ffdd17 !important;
}
.postal{
  display: none !important;
}
.width{
  width: 250px !important;
}
.mright{
  margin-left: 250px !important;
}
.menuButton{
  position: absolute;
  right: 20px;
  top: 25px;
  cursor: pointer;
}
#hamburger{
  transition: .3s ease-out;
  width: 23px;
  height: 30px;
  position: relative;
  cursor: pointer;
}
#hamburger span{
  display: block;
  position: absolute;
  height: 2px;
  width: 29px;
  /*background: #333;*/
  background: #fbaf3f;
  transition: .3s ease-out;
}
#hamburger span:nth-child(1){
  top: 2px;
}
#hamburger span:nth-child(2), span:nth-child(3){
  top: 10px;
}
#hamburger span:nth-child(4){
  top: 18px;
}
#hamburger.open span:nth-child(1){
  width: 0;
  transform: translate(9px,6px);
}
#hamburger.open span:nth-child(2){
  transform: rotate(45deg);
}
#hamburger.open span:nth-child(3){
  transform: rotate(-45deg);
}
#hamburger.open span:nth-child(4){
  width: 0;
  transform: translate(9px,-6px);
}
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2;
    top: 0;
    right: 0;
    text-align: right;
    background-color: #111;
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
}
.sidenav a {
    padding: 8px 32px 8px 8px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}
.sidenav a:hover{
    color: #4461ac;
}
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}
.closebtn{
  top : 0;
  right: 10px;
  margin-top: 0px;
  margin-right: 0px;
  color:#818181;
}
#main {
  transition: margin-left .5s;

}
header{
  /*background-color: rgba(33, 63, 153, 0.7);*/
  background-color: #213f99;
  padding: 35px 0;
}
.bckgrd{
  background-image: url("../images/school.png");
  background-repeat: repeat;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  min-height: 100vh;
}
#logo{
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 2em;
  margin-top: 0px;
  width: 50px;
  height: 50px;
  background-image: url('../images/logo-grey.png');
  background-size: contain;
}
#raceLogo{
  max-width: 70%;
  margin-bottom: 40px;
}

#intro{
  position: relative;
  padding: 50px 10px;
  min-height: 100vh;
}
#homeIntro{
  margin: 0 15%;
  width: 60%;
  height: fit-content;
  max-width: 600px;
  color: #fbaf3f;
  font-size: 2.5em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
#largeNav{
  font-size: 1.5em;
  text-align: right;
}
#largeNav a{
  color: white;
  margin-right: 15px;
  font-family: 'Montserrat', sans-serif;
}
#largeNav a:hover{
  color: #ffdd17;
}
.inserts{
  margin-bottom: 250px;
  font-size: 1.3em;
  text-align: center;
  color: white;
  width: 100%;
  padding: 20px;
  background-color: rgba(68, 97, 172, 0.85);
  background-blend-mode: overlay;
}
.inserts h2{
  font: 1.8em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.hp-logos-container {
  max-width: 1000px;
  margin: 30px auto;
}
.logoContainer, .racelogoContainer{
  width: 90vw;
  height: 300px;
  background-image: url('../images/logo.png');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.racelogoContainer{
  background-image: url('../images/raceLogo.png');
}
.socials{
  /* margin: 30px auto 0px; */
  padding: 40px;
}
.socials h2{
  margin-bottom: 20px;
}
.socials button{
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3em;
  background-color: #fbaf3f;
  color: white;
  margin: 0 auto 20px ;
  padding: 5px 10px;
  width: 80%;
}
.socials button:hover{
  color: #213f99;
}

.quote{
  font-size: 1.2em;
  text-align: center;
  color: white;
  width: 100%;
  padding: 20px;
  background-color: rgba(68, 97, 172, 0.85);
}
.quote h2{
  font-weight: 700;
}
#story{
  padding: 20px 10px;
  text-align: center;
  font-size: 1.1em;
  color: white;
  background-color: rgba(68, 97, 172, 0.85);
}
#story h2{
  font: 1.8em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.break{
  width: 50%;
  height: 4px;
  margin: 30px auto;
  /* background-color: rgba(68, 97, 172, 1); */
  background-color: #fbaf3f;
}
#projects{
  margin-bottom: 250px;
}
.events{
  margin: 250px 0;
}
#projects, .events, .contactSec, .gallery{
  background-color: white;
  padding: 25px 0;
}
.eContent{
  max-width: 1000px;
  margin: 0 auto;
}
.project, .event, .contact, .sponsor, .info, .gallery{
  margin: 0;
  padding: 10px 10px 0px;
  font-size: 1.1em;
}


.project.front {
  position: relative;
  padding-bottom: 70px;
}
.project.front .goal {
  position: absolute;
  bottom: 35px;
}
.project.front button {
  position: absolute;
  bottom:10px;
  margin-bottom: 0 !important;
}


.breakBlue{
  height: 3px;
  width: 50%;
  margin: 20px auto;
  background-color: #213f99;
}
.project h2, .event h2, .contact h2, .sponsor h2, .title h2{
  font-size: 1.4em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: center;
}
.title{
  padding: 10px;
  /* background: linear-gradient(to bottom right, #213f99 ,#101b41); */
  text-align: center;
}
.titleBlank{
  height: 50px;
}
.project h3, .contact h3, .info h3, .event h3{
  font-size: 1.3em;
  margin-top: 0;
  /* font-family: 'Coda', cursive; */
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.project button, .event button, .contact button{
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3em;
  background-color: #fbaf3f;
  color: white;
  margin: 0 auto 20px ;
  padding: 5px 10px;
}
.project button:hover, .event button:hover, .contact button:hover{
  color: #213f99;
}
.event button{
  margin-top: 20px;
}
.event a{
  color: black;
  text-decoration: none;
}
.event a:hover{
  color: #213f99;
}
#moreEvents, .moreProjects{
  text-decoration: none;
  color: black;
}
#moreEvents:hover, .moreProjects:hover{
  color: #213f99;
}

.gallery {
 position: relative;
 margin: 250px auto 400px;
 padding-bottom: 50px;
}
#dots{
  margin: 10px auto;
}
.mySlides {
	 display: none;
   text-align: center;
}
.mySlides img{
  max-height: 600px;
}

/* Next & previous buttons */
.prev, .next {
 cursor: pointer;
 position: absolute;
 top: 50%;
 width: auto;
 margin-top: -22px;
 padding: 16px;
 color:#4461ac;
 font-weight: bold;
 font-size: 18px;
 transition: 0.6s ease;
 border-radius: 0 3px 3px 0;
}

.next {
 right: 0;
 border-radius: 3px 0 0 3px;
 margin-right: 10px;
}

.prev:hover, .next:hover {
  color: #4461ac;
 background-color: rgba(0,0,0,0.8);
}
.dot {
 cursor:pointer;
 height: 15px;
 width: 15px;
 margin: 0 2px;
 background-color: #bbb;
 border-radius: 50%;
 display: inline-block;
 transition: background-color 0.6s ease;
}

.active, .dot:hover {
 background-color: #717171;
}

/* Fading animation */
.fade {
 -webkit-animation-name: fade;
 -webkit-animation-duration: 1.5s;
 animation-name: fade;
 animation-duration: 1.5s;
}

@-webkit-keyframes fade {
 from {opacity: .4}
 to {opacity: 1}
}

@keyframes fade {
 from {opacity: .4}
 to {opacity: 1}
}

.contactForm{
  text-align: center;
}
.contactForm input, .contactForm textarea, .contactForm select{
  font-size: 0.8em;
  padding: 5px;
  margin: 10px auto;
  width: 80%;
}
.contactForm select{
  margin: 0;
}
.contactForm button{
  width: 40%;
  margin-top: 10px;
}
.address{
  line-height: 40px;
  margin: 40px 0;
}
footer{
  position: relative;
  background-color: #213f99;
  margin-bottom: 0;
  padding:20px 10px 0px;
  color: white;
}
footer h1{
  margin-top: 10px;
  margin-bottom: 0;
}
footer button{
  position: absolute;
  top: 15px;
  right: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3em;
  background-color: #fbaf3f;
  color: white;
  margin: 0 auto;
  padding: 5px 10px;
}
footer button:hover{
  color: #213f99;
}
footer p {
  text-align: center;
  font-size: 0.6em;
  margin-top: 40px;
}

/***********PROJECTS*******/
#control{
  color: #fbaf3f;
  margin-top: 15px;
  font-size: 1.5em;
}
#control:hover{
  color:#213f99;
}
#generalP{
  margin-bottom: 10px;
}
#STEMP{
  margin-bottom: 18px;
}
.seeProjects{
  text-align: center;
  color: black;
  margin-top: 20px;
  font-weight: 700;
  font-size: 1.3em;
}
.seeProjects:hover{
  color: #fbaf3f;
}
#projectsIntro{
  margin: 0 23%;
  max-height: 280px;
  color: #fbaf3f;
  font-size: 2.5em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.allProjects{
  padding-bottom: 20px;
  background-color: white;
}
.ProjectsInto, .projectsOutro{
  text-align: center;
  margin: 10px 0;
  padding: 15px 10px;
}
.ProjectsInto{
  font-size: 1.2em;
  margin-top: 50px;
}
.ProjectsInto h3, #projects h3{
  font-size: 1.1em;
  margin-top: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.ProjectsInto ul{
  list-style: none;
  margin-left: 0;
}
.ProjectsInto ul li{
  display: inline-block;
  margin-right: 10px;
}
.ProjectsInto ul li:last-of-type{
  margin-right: 0px;
}
.ProjectsInto ul li a{
  font-family: 'Montserrat', sans-serif;
  color: #7D7D7D;
}
.ProjectsInto ul li a:hover{
  color: #213f99;
}
.projectsFromDb, .projectsFromDb2{
  max-width: 1100px;
  margin: 0 auto;
}

/*******EVENTS**********/
.calendar{
  margin: 0 auto 50px;
}
#eventsIntro{
  margin: 0 20%;
  max-height: 280px;
  color: #fbaf3f;
  font-size: 2.5em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.intro, .outro{
  background: rgba(16, 27, 65, 0.8);
  color: white;
  padding: 15px 10px;
  text-align: center;
  margin: 200px 0;
}
.outro p{
  max-width: 1000px;
  margin: 0 auto;
}

.readMore:hover{
  color: #ccc;
}
.eventDesc{
  display: none;
}
.eventImg{
  max-height: 350px;
}
.sponsInfo{
  color: white;
}
.sponsInfo p{
  margin-bottom:0px;
  margin-top: 15px;
}
.sponsInfo:hover{
  color: #ccc;
}

/******SPONSORSHIP PAGE*******/
#sponsIntro, #contactIntro{
  text-align: center;
  max-height: 280px;
  color: #fbaf3f;
  font-size: 2.5em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.all{
  background-color: white;
  padding: 15px 0;
}
.sintro{
  text-align: center;
  margin: 0;
  padding: 15px 10px;
}
.sintro h2{
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3em;
}
.payment, .clickMe{
  font-size: 1em;
  font-weight: 700;
}
.info ul{
  list-style: none;
}
.info a p, .clickMe p{
  color: white;
  padding: 5px 1px;
  background-color: #fbaf3f;
  width: 100px;
  text-align: center;
  font-weight: 700;
}
.info a p:hover{
  color: #213f99;
}
.sponsor p{
  text-align: center;
  font-size: 1.1em;
}
.becomeSpons{
  margin: 50px 0px;
  font-size: 1.2em;
  text-align: center;
  color: white;
  width: 100%;
  padding: 20px;
}
.becomeSpons p{
  color: #fbaf3f;
  margin-bottom: 0;
  font-weight: 700;
  font-size: 1.3em;
}
.becomeSpons p:hover{
  color: #213f99;
}
@media screen and (max-width:640px) {
  #top{
    background-image: url("../images/fourKids.jpg");
    background-size: 130%;
    background-position: center top 59px;
  }
  /*.mv{
    margin-top: 800px;
  }*/
  #back2{
    background-image: url("../images/fourKidsSM2.jpg");
    background-size: cover;
    position: absolute;
  }
}

@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}
@media screen and (min-width : 450px) {
  #homeIntro{
    margin: 0 auto;
    /*margin-bottom: 50px;*/
    /*margin-bottom: 65px;*/
    width: 50%;
    height: fit-content;
  }
  #projectsIntro{
    margin-left: 33%;
  }
  #eventsIntro{
    margin-left: 26%;
  }
}
@media screen and (min-width : 640px) {
.bckgrd{
    background-attachment: fixed !important;
    background-image: url("../images/fourKids.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed !important;
     background-position: center; 
    position: absolute;
    backface-visibility: hidden;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 100vh;
  }
  .logoContainer, .racelogoContainer{
    width: 45vw;
    display: inline-block;
  }
  #raceLogo{
    max-width: 40%;
    margin-bottom: 50px;
  }
  #intro{
      margin-top: 40px;
  }
  .socials{
    margin: 30px auto 50px;
  }
  #story{
    margin-top: 350px;
    margin-bottom: 100px;
  }
  .inserts{
    margin-bottom: 100px;
  }
  .quote{
    margin: 250px 0px;
  }
  #projectsIntro, #eventsIntro{
    text-align: center;
    margin-left: 18%;
  }
  footer{
    margin-top: 150px;
  }
  footer h1{
    margin-top: 0;
  }
  footer button{
    font-size: 1.5em;
  }
  footer p {
    font-size: 0.9em;
  }
  #projects, .events, .contactSec, .gallery{
    margin-top: 250px;
  }
  .project, .event, .contact {
    max-width: 48%;
    margin: 1%;
    border-radius: 3px;
    box-shadow: 2px 3px 5px #7F8F8F;
    background: linear-gradient(to bottom right, rgba(68, 97, 172, 0.8), rgba(68, 97, 172, 1))
    /* background-color: rgba(68, 97, 172, 0.8); */
  }
  .breakBlue{
    display: none;
  }
}
@media screen and (min-width : 740px) {
  #homeIntro{
    text-align: center;
    width: 45%;
  }
  .socials button{
    width: 60%;
  }
}
@media screen and (min-width : 900px) {
  #homeIntro{
    width: 50%;
    margin-bottom: 0;
  }
}
@media screen and (min-width : 1024px) {
  header {
        padding: 15px 0;
  }
  #logo{
    color: white;
  }
  .bckgrd{
    background-attachment: fixed !important;
    background-image: url("../images/fourKids.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed !important;
     background-position: center top; 
    position: absolute;
    backface-visibility: hidden;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 100vh;
  }
  #intro{
    margin-bottom: 200px;
    max-width: 1200px;
    margin: 0 auto;
  }
  #homeIntro{
    width: 45%;
    /*height: 40%;*/
  }
  .logoContainer, .racelogoContainer{
    width: 30vw;
    max-width: 400px;
  }
  /* #homeIntro was in the list below this */
  #projectsIntro, #eventsIntro{
    margin-left: 0;
  }
  footer h1{
    font-size: 2.5em;
  }
  #mySidenav, .menuButton{
    display: none;
  }
  .socials button{
    width: 30%;
  }
  .project, .event, .contact  {
    max-width: 30%;
    margin: 1%;
  }
  .project{
    width: 23% !important;
  }
}

@media screen and (min-width : 1200px) {
  #homeIntro{
    width: 100%;
    /*height: 20%;*/
    /*margin-bottom: 85px;*/
  }
  .quote p{
    text-align: center;
  }
  .socials button{
    width: 23%;
  }
}

@media screen and (min-width : 2000px) {
  #homeIntro{
    width: 100%;
    /*height: 5%;*/
  }
}
