@font-face {
    font-family: myFirstFont;
    src: url(fonts/CrestaTest-Medium-BF643dfe5345fa8.otf);
}
*{
    margin: 0;
    padding: 0;
    font-family: myFirstFont;
}


html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.firstHeader{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(28, 28, 29, 0.7),rgba(85, 85, 85, 0.7)), url(images/new_homepage.JPG)
    ;
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    position: fixed;
    z-index: 100;
    background-color: rgb(243, 240, 232);
    height: 70px;
    width: 100%;
    top: 0; 
    padding: 16px 16px;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 175px;
    padding: 50px;
}
@media screen and (max-width: 700px){
    .nav img{
        width: 10px;
        padding: 20px;
    }
}
.navigation{
    flex: 1;
    text-align: right;
    margin-right: 25px;
}
.navigation ul li{
    list-style: none;
    display: inline-block;
    padding: 16px 12px;
    position: relative;

}
.navigation ul li a{
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 16px;
}
.navigation ul li::after{
    content: "";
    width: 0%;
    height: 2px;
    background: rgb(64, 230, 23);
    display: block;
    margin: auto;
    transition: 0.625s;
}
.navigation ul li:hover::after{
    width: 100%;
}
.textBox{
  width: 90%;
  color: rgb(255, 255, 255);
  position: absolute;

  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
}
nav .fa{
    display: none;
}
/* Level I Header Media Qurery (760px) */
@media (max-width: 760px){
    .text-box firstHeader{
        font-size: 20px;
  }
    .navigation{
        position: absolute;
        text-align: left;
        background: rgb(198, 220, 240);
        margin-right: 0px;
        top: 0;
        height: 1000vh;
        width: 200px;
        right: -200px;
        transition: 1s;
        z-index: 105;
    }
    .navigation ul li{
        display: block;
    }
    .navigation ul li a{
        color: rgb(0, 0, 0);
        font-size: 16px;
        padding-left: 20px;
    }
    .navigation ul li::after{
        content: "";
        width: 0%;
        height: 2px;
        background: rgb(64, 230, 23);
        display: block;
        margin: auto;
        transition: 0.75s;
    }
    nav .fa{
        display: block;
        color: black;
        margin: 40px;
        font-size: 22px;
        cursor: pointer;
    }
}



.johnKnox h1{
    font-size: 200px;
}
.textBox h1{
    font-size: 80px;
}
.textBox p{
    font-size: 24px;
    color: rgb(255, 255, 255);
}
.text-box p{
  margin: 10px 0 40px;
  font-size: 24px;
  color: white
}
@media screen and (max-width: 910px){
    .johnKnox h1{
        font-size: 80px;
    }
    .textBox p{
        font-size: 18px;
    }
    .textBox h1{
        font-size: 60px;
    }

}
/* aboutRedirect class refers to the "learn more" button on title page*/
.aboutRedirect{
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 2.50px solid white;
    border-radius: 12.5%;
    padding: 13px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: 0.4s;
}
.aboutRedirect a{
  display: block;
  width: 200px;
  height: 40px;
  line-height: 40px;
  font-size: 18px;
  font-family: sans-serif;
  text-decoration: none;
  color: white;
  border: 2px solid white;
  letter-spacing: 2px;
  text-align: center;
  position: relative;
  transition: all .35s;
}
.aboutRedirect a span{
  position: relative;
  z-index: 2;
}
.aboutRedirect a:after{
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #9de41a;
  transition: all .35s;
}

.aboutRedirect:hover{
  background-color: rgb(14, 176, 252);
}

.aboutRedirect a:hover:after{
  width: 100%;
}

/* Section I Header (carousel)*/
  
.events{
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}
h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

@media(max-width: 900px){
    .row{
        flex-direction: column;
    }
}

/* Section II */

.sectionII{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
.sectionII-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.sectionII-col img{
    width: 100%;
    display: block;
}
.layer{
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
/* .layer:hover{
    background: rgba(173,255,47,0.7);
} */
.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s
}
.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}

/* Section III */

.sectionIII{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
    display: block;
}
.sectionIII-col{
    flex-basis: 31%;
    margin-top: 40px;
    border-radius: 50%;
    margin-bottom: 5%;
    text-align: left;
}
.sectionIII-col img{
    width: 100%;
    border-radius: 10px;
}
.sectionIII-col p{
    padding: 0;
}
.facilities-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}
/* have questions? (section) */
.contactUs{
    margin: 100px auto;
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),url(images/officebg.jpg);
    background-position: center;
    background-size: cover;
    /* border-radius: 10px; */
    text-align: center;
    padding: 100px 0;
}

.contactUs h1{
    color: white;
    margin-bottom: 40px;
    padding: 0;
}

@media(max-width: 700px){
    .contactUs h1{
        font-size: 24px;
    }
}

/* footer */

.footer{
    width: 100%;
    line-height: 1.6;
    text-align: left;
    display: flex;
    flex-direction: column;
    background-color: #3a3434;
}
.leftFooter{
    width: 100%;
    text-align: left;
    padding: 30px 0;
}
/* .rightFooter{
    display: left;
    width:100%;
    padding: 0px 800px;
    text-align: left;
} */
.footer h4{
    margin-bottom: 25px;
    /* margin-top: 20px; */
    margin-left: 150px;
    font-weight: 600;
    color:#fff;

}
.footer p{
    color:rgb(196, 196, 183);
    margin-left: 140px;
}
.footerText{
    display: flex;
    margin-top: 20px;
    display: center;
    margin-bottom: 20px;
}

.footer a img{
    background-color: #221f1f;
    width: 38px;
    height: 38px;
    padding: 10px;
    margin: 0px 35px 0px 50px;
    float: right;
    

}
.footerBottom{
    display: flex;
    align-content: space-between;
    width: 100%;
}
.logo-container{
    display: flex;
    margin-top: 10px;
    align-self: right;
}
@media screen and (max-width: 457px){
    .footer{
        flex-direction: column;
        align-items: center;
    }
    .footer p{
        font-size: 12px;
    }
    .leftFooter{
        padding-left: 0;
    }
}
@media screen and (max-width: 457px){
    .footer{
        width: 100%;
    }
}
@media screen and (max-width: 570px){
    .footer h4{
        margin-left: 40px;
    }
    .footer p{
        margin-left: 40px;
    }
}
@media screen and (max-width: 1000px){
    .footer h4{
        margin-left: 80px;
    }
    .footer p{
        margin-left: 80px;
    }
}

.secondHeader{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(28, 28, 29, 0.7),rgba(85, 85, 85, 0.7)),url(images/group1.JPG); 
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}
.secondHeader{
    margin-top: 50px;
}
.thirdHeader{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(28, 28, 29, 0.7),rgba(85, 85, 85, 0.7)),url(images/DSCF8588.JPG); 
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}
.thirdHeader{
    margin-top: 50px;
}
.footerBottom{
    background-color: #221f1f;
}
