@import url("https://fonts.googleapis.com/css?family=Libre+Baskerville:700&display=swap");

/* -----------CONTAINERS----------- */

html
{
  position: relative;
  min-height: 100%;    
}

body
{
  margin: 0 0 300px; /* bottom = footer height */
  font-family: 'Libre Baskerville'; 
  font-size: .68em;
  background-color: #FFF;	
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media screen and (max-width: 812px) {
body {
  margin: 0 0 450px; /* bottom = footer height */
  font-family: 'Libre Baskerville', serif; 
  font-size: .68em;
  background-color: #FFF;	
  background-repeat: no-repeat;
  background-attachment: fixed;
    }
}

/* -----------MENU----------- */

#menuspan
{
width: 100%;
background-color: #000;      
}

@media screen and (max-width: 812px) {
#menuspan {
width: inherit;
background-color: none;      
    }
}

#menucentre
{
width: 1024px;
margin-left: auto;
margin-right: auto;    
}

@media screen and (max-width: 812px) {
#menucentre {
width: auto;
margin-left: none;
margin-right: none;    
    }
}

.menufloat {    
 float: right;     
}

@media screen and (max-width: 812px) {
.menufloat {
 float: none;         
    }
}

.logo
{
height: 35px;
float: left;  
margin-top: 24px;      
padding-left: 10px;    
}

@media screen and (max-width: 812px) {
.logo {    
display: none;    
    }
}

.number
{
height: 15px;
float: left;  
margin: 33px 0px 0px 10px;    
}

@media screen and (max-width: 812px) {
.number {    
display: none;    
    }
}

.topnav {
  overflow: hidden;
  background-color: #000;   
}

.topnav a {
  float: left;
  display: block;
  text-align: center;
  color: #FFF;    
  padding: 30px 20px 30px 20px;
  text-decoration: none;
  font-size: 20px;
}

.topnav a:hover {
  background-color: #FFF;
  color: #000;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;    
}

.active {
  background-color: #000;
  color: white;
  float: left;    
}
    
.topnav .icon {
  display: none;
  padding-left: 35px;
  padding-right: 35px;
}

@media screen and (max-width: 812px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 812px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* -----------INDEX----------- */

/* --- Middle 1  --- */

#middle1
{ 
  background-color: #FFF;
  background-size: 100% 900px;      
  width: 100%;    
  height: 540px;
  margin-bottom: 75px;    
  position: relative;   
 } 

@media screen and (max-width: 812px) {
#middle1 {
  background-color: #FFF;  background-color: #FFF;
  background-repeat: no-repeat;    
  background-size: 100% 1550px;      
  width: 100%;    
  height: 440px;    
  margin-bottom: 10px;    
  position: relative;   
  }
}

#middle1 p {
  font-size: 22px;
  font-family: 'Libre Baskerville', serif;
  font-weight: normal;
  color: #FFF;
  line-height: 1.5em;
}

#middle1 a:link {color:#FFF; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle1 a:visited {color:#FFF; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle1 a:hover {color:#FFF; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}

#middle1centre
{ 
  width: 1024px;
  background-color: #FFF;
  min-height: 600px;
  margin: 0px auto;
  padding-top: 0px;    
  position: relative;
 } 

@media screen and (max-width: 812px) {
#middle1centre {
  width: 100%;
  min-height: 600px;
  margin: 0;
  position: relative;  
  text-align: center;    
    }
}

#middle1centre p {
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  font-weight: normal;
  color: #FFF;
  text-align: center;
  line-height: 1.5em;
}

/* - Middle1 Text + Button - */

.middle1title
{ 
  position: relative;    
  margin-bottom: 0px;   
 } 

@media screen and (max-width: 812px) {
.middle1title {
  width: 95%;
  height: 215px;    
  position: relative; 
  margin: 0px auto 20px auto;    
  }
}

.m1buttonmargin { margin-bottom: 80px; }

@media screen and (max-width: 812px) {
.m1buttonmargin { 
   margin: 0px 0px 50px 0px;    
  }
}

.m1button {
  background-color: #FFF; 
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 20px;
  margin: 0px 0px 0px 0px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
  box-shadow: 0px 0px 1px 0px #212121;    
}


.m1button1 {
    background-color: #FFF; 
    color: #212121; 
}

.m1button1:hover {
    background-color: #ef5121;
    color: #212121;
}

/* - Middle1 Boxes (index page)- */

.middleboxicon
{
 width: 40px;
 height: 40px;  
 margin: 30px 0px 30px 150px;
 cursor: pointer;    
}

.middle1box1overlay
{   
 background-image: url("box1img.jpg");
 background-repeat: no-repeat;   
 float: left;
 display: inline;
 width: 341px; 
 height: 320px; 
 margin-left: auto;
 margin-right: auto;
 position: relative;   
 
}     

.middle1box1colour
{  
  background:rgba(247,82,34,0.9);    
  float: left;
  display:inline;
  width: 341px;   
  height: 320px;    
  position: relative;        
   
 } 

.middle1box2overlay { 
 background-image: url("box2img.jpg");
 background-repeat: no-repeat;   
 float: left;
 display: inline;
 width: 340px; 
 height: 320px; 
 margin-left: auto;
 margin-right: auto;
 position: relative;    
     
}    

.middle1box2colour
{  
  background:rgba(244, 73, 22,0.9);    
  float: left;
  display:inline;
  width: 340px; 
  height: 320px;    
  position: relative; 
 }

.middle1box3overlay
{   
 background-image: url("box3img.jpg");
 background-repeat: no-repeat;   
 float: left;
 display: inline;
 width: 341px; 
 height: 320px; 
 margin-left: auto;
 margin-right: auto;
 position: relative;
}     

.middle1box3colour
{  
  background:rgba(229,63,13,0.9);    
  float: left;
  display:inline;
  width: 341px;  
  height: 320px;    
  position: relative;       
 } 

/* - Middle1 Boxes (mobile index page)- */

@media screen and (max-width: 812px) {
.middleboxicon {
 width: 40px;
 height: 40px;  
 margin: 0 auto;
 padding: 40px 0px 10px 0px;    
 cursor: pointer;    
 text-align: center;    
    }
}

@media screen and (max-width: 812px) {
.middle1box1overlay {   
 background-image: none;
 float: none;
 display: inherit;    
 width: 80%; 
 height: 300px; 
 margin: 0 auto;
 position: relative;
 text-align: center;   
 border: none;    
    }  
}

@media screen and (max-width: 812px) {
.middle1box1colour {  
  background:rgba(247,82,34,0.9);    
  float: none;
  display: inherit;
  width: 100%;   
  height: 300px;    
  position: relative;
  text-align: center;    
  border: none;    
    }
}

@media screen and (max-width: 812px) {
.middle1box2overlay { 
 background-image: none;
 float: none;
 display: inherit;
 width: 80%; 
 height: 300px; 
 margin: 0 auto;
 position: relative; 
 text-align: center;      
 border: none;    
    }    
}

@media screen and (max-width: 812px) {
.middle1box2colour {  
  background:rgba(244, 73, 22,0.9);    
  float: none;
  display: inherit;
  width: 100%; 
  height: 300px;    
  position: relative;
  text-align: center;    
  border: none;    
    } 
}

@media screen and (max-width: 812px) {
.middle1box3overlay {   
 background-image: none;
 float: none;
 display: inherit;
 width: 80%; 
 height: 300px; 
 margin: 0px auto 20px auto;
 position: relative; 
 text-align: center;    
 border: none;    
    }     
}

@media screen and (max-width: 812px) {
.middle1box3colour {  
  background:rgba(229,63,13,0.9);    
  float: none;
  display: inherit;
  width: 100%;  
  height: 300px;    
  position: relative; 
  text-align: center;   
  border: none;    
    }
}

.centrefield 
{
  display: none;
}

@media screen and (max-width: 812px) {
.centrefield {
    width: 272px;
    margin: 0 auto;
    text-align: center;
    display: inline;
    }
}

/* --- Middle 2 --- */

#middle2
{ 
  width: 1024px;
  height: 860px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
 } 

@media screen and (max-width: 812px) {
#middle2 { 
  width: 100%;
  height: 2250px;
  position: relative;
  margin-left: none;
  margin-right: none;
  text-align: center;    
    } 
}

#middle2 p {
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  text-align: left;
  line-height: 35px;    
  color: #000;
  margin: 0px 0px 0px 0px;  
}

@media screen and (max-width: 812px) {
#middle2 p {
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  text-align: center;
  line-height: 35px;    
  color: #000;
  margin: 0px 0px 0px 0px;  
    }
}

#middle2 a:link {color:#212121; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle2 a:visited {color:#212121; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle2 a:hover {color:#212121; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}

.m2textspacer
{
  padding: 20px 0px 40px 0px;      
}

@media screen and (max-width: 812px) {
.m2textspacer {
  padding: 0px 3% 0px 3%;      
    }
}

.middle2box1 {
 float: left;
 position: relative;
 width: 338px; 
 height: 220px;
 margin: 0px 5px 75px 0px;
}

.middle2box2 {
 float: left;
 position: relative;
 width: 338px; 
 height: 220px;
 margin: 0px 5px 75px 0px;
}

.middle2box3 {
 float: left;
 position: relative;
 width: 338px; 
 height: 220px;
 margin: 0px 0px 20px 0px;    
}

@media screen and (max-width: 812px) {
.middle2box1 {
 float: none;
 position: relative;
 width: 338px; 
 height: 220px;
 margin: 70px auto 70px auto;
    }
}

@media screen and (max-width: 812px) {
.middle2box2 {
 float: none;
 position: relative;
 width: 338px; 
 height: 220px;
 margin: 70px auto 70px auto;
    }
}

@media screen and (max-width: 812px) {
.middle2box3 {
 float: none;
 position: relative;
 width: 338px; 
 height: 220px;  
 margin: 70px auto 70px auto;    
    }
}

.mb2image {
  width: 338px;
  height: 220px;
  opacity: 0.9;
  box-shadow:0px 3px 5px 0px;        
}

.m2btext {
  color: #212121;
  font-size: 22px;    
  font-family: 'Libre Baskerville', serif;
  text-align: center;
  padding: 10px 10px 10px 10px;     
}

/* Middle 2A */

#middle2Aoverlay
{   
 background-image: url("van.jpg");
 background-repeat: no-repeat;    
 background-size: 100% 430px; 
 width: 1024px; 
 height: 430px; 
 margin: 0 auto;    
 position: relative;   
}     

@media screen and (max-width: 812px) {
#middle2Aoverlay
{   
 background-image: url("van.jpg");
 background-repeat: no-repeat;    
 background-size: cover; 
 width: 100%; 
 height: 720px; 
 position: relative;   
 text-align: center;    
    }
}


#middle2A
{ 
  background:rgba(0,0,0,0.75);  
  width: 1024px;
  height: 430px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
 } 

@media screen and (max-width: 812px) {
#middle2A { 
  background:rgba(0,0,0,0.75);  
  width: 100%;
  height: 720px;
  position: relative;
  margin-left: none;
  margin-right: none;
  text-align: center;    
    } 
}

.middle2alocation1 {
 float: left;
 position: relative;
 width: 340px; 
 margin: 30px 50px 0px 160px;   
}

@media screen and (max-width: 812px) {
.middle2alocation1 {
 float: none;
 position: relative;
 width: 340px; 
 margin: 30px auto 0px auto;
    }
}

.middle2alocation2 {
 float: left;
 position: relative;
 width: 340px; 
 margin: 30px auto 0px auto;
}

@media screen and (max-width: 812px) {
.middle2alocation2 {
 float: none;
 position: relative;
 width: 340px; 
 margin: 30px auto 0px auto;
    }
}

.mid2alogo
{
height: 40px;
float: left;  
clear: left;    
padding-right: 10px;    
margin-top: 10px;    
}

@media screen and (max-width: 812px) {
.mid2alogo {
height: 40px;
float: none;  
clear: none;    
padding-right: 0px;    
margin-top: 10px;    
}
}

.mid2alogo2
{
width: 33px;
float: left;  
clear: left;    
padding-right: 10px;    
margin-top: 10px;    
}

@media screen and (max-width: 812px) {
.mid2alogo2
{
width: 33px;
float: none;  
clear: none;    
padding-right: 0px;    
margin-top: 0px;    
}
}

.mid2aregular {
  float: left; 
  font-size: 18px;
  font-family: 'Libre Baskerville', serif;
  text-align: left;
  line-height: 35px;    
  color: #FFF;
  margin: 0px 0px 0px 0px;  
}

@media screen and (max-width: 812px) {
.mid2aregular {
  float: none; 
  font-size: 18px;
  font-family: 'Libre Baskerville', serif;
  text-align: center;
  line-height: 35px;    
  color: #FFF;
  margin: 0px 0px 0px 0px;  
}
}

.mid2aemail {
  float: left; 
  font-size: 18px;
  font-family: 'Libre Baskerville', serif;
  text-align: left;
  line-height: 35px;    
  color: #FFF;
  margin: 0px 0px 0px 0px;  
}

@media screen and (max-width: 812px) {
.mid2aemail {
  float: none; 
  font-size: 18px;
  font-family: 'Libre Baskerville', serif;
  text-align: center;
  line-height: 35px;    
  color: #FFF;
  margin: 0px 0px 10px 0px;   
}
}   
    
.mid2aspace {
  float: left; 
  font-size: 18px;
  font-family: 'Libre Baskerville', serif;
  text-align: left;
  line-height: 35px;    
  color: #FFF;
  margin-top: 11px;  
}

@media screen and (max-width: 812px) {
.mid2aspace {
  float: none; 
  font-size: 18px;
  font-family: 'Libre Baskerville', serif;
  text-align: center;
  line-height: 35px;    
  color: #FFF;
  margin-top: 6px;  
}
}

.mid2abold
{ font-size: 30px;
  color: #FFF;
  font-family: 'Libre Baskerville', serif; 
  font-weight: bold;    
  line-height: 1.5em;
  text-align: left;  
  position: relative;    
  margin: 0px 0px 1px 0px;  
  background: -webkit-linear-gradient(#df8435, #ad2527);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;    
}

.mid2anorm
{ font-size: 20px;
  color: #FFF;
  font-family: 'Libre Baskerville', serif;  
  font-weight: normal;    
  line-height: 1em;
  text-align: left;  
  position: relative;    
  margin: 15px 0px 15px 0px;     
}

#middle2A a:link {color:#FFF; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle2A a:visited {color:#FFF; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle2A a:hover {color:#FFF; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}

#middle2A h1
{ font-size: 31px;
  color: #212121;
  font-family: 'Libre Baskerville', serif; 
  font-weight: bold;    
  line-height: 1.5em;
  text-align: left;  
  position: relative;    
  margin: 0px 0px 1px 0px;  
  background: -webkit-linear-gradient(#df8435, #ad2527);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;    
}


@media screen and (max-width: 812px) {
#middle2A h1 {
font-size: 30px;
  color: #212121;
  font-family: 'Libre Baskerville', serif; 
  font-weight: bold;    
  line-height: 1.5em;
  text-align: center;  
  position: relative;    
  margin: 0px 0px 1px 0px;  
  background: -webkit-linear-gradient(#df8435, #ad2527);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;    
    }
}


/* --- Middle 3 --- */

#middle3overlay
{   
 background-image: url("clinic.jpg");
 background-repeat: no-repeat;    
 background-size: 100% 600px; 
 width: 100%; 
 height: 600px; 
 position: relative;   
}     

@media screen and (max-width: 812px) {
#middle3overlay
{   
 background-image: url("clinicmed.jpg");
 background-repeat: no-repeat;    
 background-size: cover; 
 width: 100%; 
 height: 620px; 
 position: relative;   
 text-align: center;    
    }
}

#middle3
{  
  background:rgba(0,0,0,0.75);    
  width: 100%; 
  height: 600px;    
  position: relative; 
  margin-top: 30px;    
  padding-top: 1px; 
  text-align: center;    
 } 

@media screen and (max-width: 812px) {
#middle3 {  
  background:rgba(0,0,0,0.75);    
  width: 100%; 
  height: 620px;    
  position: relative; 
  margin-top: 30px;    
  padding-top: 1px;
  text-align: center;    
    } 
}

#middle3 a:link {color:#FFF; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle3 a:visited {color:#FFF; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle3 a:hover {color:#FFF; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}

.m3titlespacer
{
 padding: 70px 0px 20px 0px;    
}

@media screen and (max-width: 812px) {
.m3titlespacer {
 padding: 30px 0px 10px 0px;    
    }
}

.m3textspacer
{
 width: 66%;
 margin-left: auto;
 margin-right: auto;        
}

.m3textspacer p {
  font-size: 19px;
  font-family: 'Libre Baskerville', serif;
  text-align: center; 
  line-height: 1.25em;    
  color: #FFF;      
}

@media screen and (max-width: 812px) {
.m3textspacer {
 width: 95%;
 margin-left: auto;
 margin-right: auto;        
    }
}

@media screen and (max-width: 812px) {
.m3textspacer p {
  font-size: 17px;
  font-family: 'Libre Baskerville', serif;
  text-align: center; 
  line-height: 1.25em;    
  color: #FFF;      
    }
}

.middle3centre
{ 
  width: 792px;
  height: 500px;   
  margin-left: auto;
  margin-right: auto;   
  position: relative;
 } 

@media screen and (max-width: 812px) {
.middle3centre { 
  width: 120px;
  height: 500px;   
  margin: 0 auto;  
  text-align: center;    
  position: relative;
    } 
}

.middle3centre p {
  font-size: 18px;
  font-family: 'Libre Baskerville', serif;
  font-style: italic;    
  text-align: center; 
  line-height: 1em;    
  color: #FFF;      
}

.middle3blockleft 
{   
 width: 180px;
 float: left;
 margin: 70px 126px 0px 0px;
 position: relative;
 text-align: center;
}  

.middle3blockmiddle 
{   
 width: 180px;
 float: left;
 margin: 70px 126px 0px 0px;
 position: relative;
 text-align: center; 
}  

.middle3blockright 
{   
 width: 180px;
 float: left;
 margin: 70px 0px 0px 0px;    
 position: relative;
 text-align: center;   
} 

@media screen and (max-width: 812px) {
.middle3blockleft {   
 width: 120px;
 float: none;
 margin: 0 auto;
 padding: 20px 0px 10px 0px;    
 position: relative;
    } 
}
    
@media screen and (max-width: 812px) {    
.middle3blockmiddle {   
 width: 120px;
 float: none;
 margin: 0 auto;
 padding: 20px 0px 10px 0px;    
 position: relative;
    }  
}
    
@media screen and (max-width: 812px) {
.middle3blockright {   
 width: 120px;
 float: none;
 margin: 0 auto;    
 padding: 20px 0px 10px 0px;    
 position: relative;
    } 
}
    
    
/* --- Middle 4 --- */

#middle4
{ 
  background: #FFF; 
  width: 1024px;
  height: 690px;
  position: relative;
  margin: 50px auto 0px auto;
 } 

@media screen and (max-width: 812px) {
#middle4 { 
  background: #FFF; 
  width: 100%;
  height: 1970px;
  position: relative;
  margin: 40px auto 0px auto;
  text-align: center;    
 } 
}

#middle4 p {
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  line-height: 150%;    
  text-align: left;
  color: #212121;
  margin: 10px 15px 0px 15px;   
}

#middle4 a:link {color:#212121; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle4 a:visited {color:#212121; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle4 a:hover {color:#212121; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}

.bioboxl
{
 background-color: #FFF;
 float: left;
 position: relative;
 width: 338px; 
 height: 270px;  
 margin: 50px 5px 0px 0px; 
 box-shadow:0px 0px 2px 1px rgba(0,0,0,0.2) inset;        
}

.bioboxr
{
 background-color: #FFF;
 float: left;
 position: relative;
 width: 338px; 
 height: 270px;  
 margin: 50px 0px 0px 0px;     
 box-shadow:0px 0px 2px 1px rgba(0,0,0,0.2) inset;      
}

@media screen and (max-width: 812px) {
.bioboxl {
 background-color: #FFF;
 float: none;
 position: relative;
 width: 338px; 
 height: 270px;  
 margin: 40px auto 40px auto; 
 padding-top: 5px;    
 box-shadow:0px 0px 2px 1px rgba(0,0,0,0.2) inset;        
    text-align: center;
    }
}

@media screen and (max-width: 812px) {
.bioboxr {
 background-color: #FFF;
 float: none;
 position: relative;
 width: 338px; 
 height: 270px;  
 margin: 40px auto 40px auto; 
 padding-top: 5px;          
 box-shadow:0px 0px 2px 1px rgba(0,0,0,0.2) inset;     
    text-align: center;
    }
}

.m4button {
  float: left;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;  
  margin: 20px 0px 0px 15px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
  box-shadow:0px 0px 2px 1px rgba(0,0,0,0.2) inset;     
}

@media screen and (max-width: 812px) {
.m4button {
  float: left;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;  
  margin: 20px 0px 0px 15px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
  box-shadow:0px 0px 2px 1px rgba(0,0,0,0.2) inset;     
    }
}

.m4button1 {
    background-color: #FFF; 
    color: #212121; 
}

.m4button1:hover {
    background-color: #FFF;
    color: #212121;
    box-shadow:0px 0px 2px 1px rgba(239,81,33,1) inset;   
}

/* --- Middle 5 --- */

#middle5
{ 
  background: #FFF; 
  width: 1024px;
  height: 400px;
  position: relative;
  margin: 60px auto 0px auto;
  text-align: center;  
 } 

@media screen and (max-width: 812px) {
#middle5 { 
  background: #FFF; 
  width: 100%;
  height: 360px;
  position: relative;
  margin: 60px auto 0px auto;
  text-align: center;    
    } 
}

.mid5centre{}

@media screen and (max-width: 812px) {
.mid5centre {
 width: 338px;
 height: 100%;   
 position: relative;
 margin: 0 auto 0 auto;
    }
}

#middle5 a:link {color:#212121; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle5 a:visited {color:#212121; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#middle5 a:hover {color:#212121; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}

.m5btt
{   
 float: left;
 display: inline;
 height: 75px;   
 margin: 40px 25px 0px 0px;
 position: relative;  
 opacity: 0.8; 
}    

@media screen and (max-width: 812px) {
.m5btt {   
 float: none;
 height: 40px;      
 margin: 20px auto 0px auto;    
 position: relative;  
 opacity: 0.8; 
    } 
}

.m5btt:hover
{
 opacity:1;
 -webkit-transform: scale(0.95);
 -ms-transform: scale(0.95);
 transform: scale(0.95);        
 cursor: pointer;    
}

.m5btm1
{   
 float: left;
 display: inline;
 height: 75px;   
 margin: 40px 77px 0px 0px;
 position: relative;  
 opacity: 0.8; 
}    

@media screen and (max-width: 812px) {
.m5btm1 {   
 float: none;
 height: 40px;   
 margin: 20px auto 0px auto;    
 position: relative;  
 opacity: 0.8; 
    } 
}

.m5btm1:hover
{
 opacity:1;
 -webkit-transform: scale(0.95);
 -ms-transform: scale(0.95);
 transform: scale(0.95);        
 cursor: pointer;    
}

.m5btm2
{   
 float: left;
 display: inline;
 height: 75px;   
 margin: 40px 24px 0px 0px;
 position: relative;  
 opacity: 0.8; 
}    

@media screen and (max-width: 812px) {
.m5btm2 {   
 float: none;
 height: 40px;   
 margin: 20px auto 0px auto;    
 position: relative;  
 opacity: 0.8; 
    }
}
    
.m5btm2:hover
{
 opacity:1;
 -webkit-transform: scale(0.95);
 -ms-transform: scale(0.95);
 transform: scale(0.95);        
 cursor: pointer;    
}

.m5btm3
{   
 float: none;
 height: 75px;   
 margin: 40px auto 0px 0px;
 position: relative;     
 opacity: 0.8; 
}    

@media screen and (max-width: 812px) {
.m5btm3 {   
 float: none;
 height: 40px;   
 margin: 20px auto 0px auto;    
 position: relative;  
 opacity: 0.8; 
    }
}
    
.m5btm3:hover
{
 opacity:1;
 -webkit-transform: scale(0.95);
 -ms-transform: scale(0.95);
 transform: scale(0.95);        
 cursor: pointer;    
}

.m5btb
{   
 float: left;
 display: inline;
 height: 75px;   
 margin: 40px 90px 0px 0px;
 position: relative;  
 opacity: 0.8; 
}    

@media screen and (max-width: 812px) {
.m5btb {   
 float: none;
 height: 40px;   
 margin: 20px auto 0px auto;    
 position: relative;  
 opacity: 0.8; 
    }  
}

.m5btb:hover
{
 opacity:1;
 -webkit-transform: scale(0.95);
 -ms-transform: scale(0.95);
 transform: scale(0.95);        
 cursor: pointer;    
}

.m5btr
{   
 float: left;
 display: inline;
 height: 75px; 
 margin: 40px 0px 0px 0px;    
 position: relative;  
 opacity: 0.8; 
}    

@media screen and (max-width: 812px) {
.m5btr {   
 float: none;
 height: 40px; 
 margin: 20px auto 0px auto;    
 position: relative;  
 opacity: 0.8; 
    }   
}

.m5btr:hover
{
 opacity:1;
 -webkit-transform: scale(0.95);
 -ms-transform: scale(0.95);
 transform: scale(0.95);  
 cursor: pointer;       
 cursor: pointer;    
}


/* --- Map --- */

#map
{
 background: #FFF;  
 width: 320px;
 height: 235px;   
 margin-top: 40px;
-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
 filter: grayscale(100%);   
}

@media screen and (max-width: 812px) {
#map
{
 background: #FFF;  
 width: 320px;
 height: 235px;   
 margin: 0px auto 0 auto;
-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
 filter: grayscale(100%);   
}
}

/* -----------SUBPAGES----------- */

#subtitleoverlay
{   
 background-image: url("poolsml.jpg");
 background-repeat: no-repeat;    
 width: 100%; 
 height: 225px; 
 position: relative;  
 margin-bottom: 40px;    
}     

@media screen and (max-width: 812px) {
#subtitleoverlay {   
 background-image: url("pool.jpg");
 background-repeat: no-repeat;    
 background-size: cover; 
 width: 100%; 
 height: 225px; 
 position: relative;  
 margin-bottom: 0px;    
    }   
}

#subtitle
{  
  background:rgba(165, 165, 165,0.75);    
  width: 100%; 
  height: 225px;    
  position: relative;
  margin-bottom: 40px;    
 } 

@media screen and (max-width: 812px) {
#subtitle {  
  background:rgba(165, 165, 165,0.75);    
  width: 100%; 
  height: 225px;    
  position: relative;
  margin-bottom: 60px;    
    } 
}

#subtitle h1
{ font-size: 30px;
  color: #FFF;    
  text-align: center;
  font-family: 'Libre Baskerville', serif;
  font-weight: normal;
  padding-top: 85px;      
  margin: 0px 0px 0px 0px;
}

@media screen and (max-width: 812px) {
#subtitle h1 { 
  font-size: 25px;
  color: #FFF;    
  text-align: center;
  font-family: 'Libre Baskerville', serif;
  font-weight: normal;
  padding-top: 85px;    
  margin: 0px 0px 0px 0px;
    }
}

.subh4centre
{
 padding-top: 80px;     
}

@media screen and (max-width: 812px) {
.subh4centre {
 padding-top: 90px;     
    }
}

/* --- Services --- */

#servicecontent
{ 
  width: 1024px;
  height: 970px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  padding-top: 30px;    
 } 

@media screen and (max-width: 812px) {
#servicecontent { 
  width: 100%;
  height: 2425px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  padding-top: 30px;    
    } 
}

#servicecontent p 
{
font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  text-align: center;
  line-height: 35px;    
  color: #000;
  margin: 0px 0px 0px 0px;   
}

#servicecontent a:link {color:#212121; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#servicecontent a:visited {color:#212121; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#servicecontent a:hover {color:#212121; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}


.servtextspacer
{
  margin: 20px 0px 20px 0px;  
}

@media screen and (max-width: 812px) {
.servtextspacer {
  padding: 0px 3% 0px 3%;     
    }
}

/* --- Contact --- */

#contactcontent
{ 
  width: 1024px;
  height: 530px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  padding-top: 30px;    
 } 

@media screen and (max-width: 812px) {
#contactcontent { 
  width: 100%;
  height: 720px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0px;    
    } 
}

#contactcontent h2
{ font-size: 31px;
  color: #212121;
  font-family: 'Libre Baskerville', serif; 
  font-weight: bold;    
  line-height: 1.5em;
  text-align: left;  
  position: relative;    
  margin: 0px 0px 1px 0px;  
  background: -webkit-linear-gradient(#df8435, #ad2527);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;    
}


@media screen and (max-width: 812px) {
#contactcontent h2 {
font-size: 30px;
  color: #212121;
  font-family: 'Libre Baskerville', serif; 
  font-weight: bold;    
  line-height: 1.5em;
  text-align: center;  
  position: relative;    
  margin: 0px 0px 1px 0px;  
  background: -webkit-linear-gradient(#df8435, #ad2527);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;    
    }
}

.contactcontent  
{
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  text-align: left;
  line-height: 200%;    
  color: #000;
  margin: 0px 0px 10px 15px;  
}

@media screen and (max-width: 812px) {
.contactcontent {
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  text-align: center;
  line-height: 200%;    
  color: #000;
  margin: 0px 0px 0px 0px;
  padding: 0px 2% 0px 2%;    
    }
}

.contactitle
{ font-size: 20px;
  color: #212121;
  font-family: 'Libre Baskerville', serif;  
  font-weight: bold;    
  line-height: 1em;
  text-align: left;  
  position: relative;    
  margin: 15px 0px 15px 15px;         
}

@media screen and (max-width: 812px) {
.contactitle { 
  font-size: 20px;
  color: #212121;
  font-family: 'Libre Baskerville', serif;  
  font-weight: bold;    
  line-height: 1em;
  text-align: center;  
  position: relative;    
  margin: 15px 2% 15px 2%;              
    }
}

/* --- About --- */

#aboutcontent
{ 
  width: 1024px;
  height: 560px;
  position: relative;     
  margin-left: auto;
  margin-right: auto;
  padding-top: 30px;   
} 

@media screen and (max-width: 812px) {
#aboutcontent { 
  width: 100%;
  height: 980px;
  position: relative;     
  margin-left: auto;
  margin-right: auto;
  padding-top: 30px;   
    } 
}

#aboutcontent h2
{ font-size: 31px;
  color: #212121;
  font-family: 'Libre Baskerville', serif; 
  font-weight: bold;    
  line-height: 1.5em;
  text-align: left;  
  position: relative;    
  margin: 0px 0px 1px 0px;  
  background: -webkit-linear-gradient(#df8435, #ad2527);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;    
}


@media screen and (max-width: 812px) {
#aboutcontent h2 {
font-size: 30px;
  color: #212121;
  font-family: 'Libre Baskerville', serif; 
  font-weight: bold;    
  line-height: 1.5em;
  text-align: center;  
  position: relative;    
  margin: 0px 0px 1px 0px;  
  background: -webkit-linear-gradient(#df8435, #ad2527);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;    
    }
}

.aboutcontent 
{
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  text-align: left;
  line-height: 250%;    
  color: #000;
  margin: 15px 0px 0px 0px;  
}

@media screen and (max-width: 812px) {
.aboutcontent {
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  text-align: center;
  line-height: 250%;    
  color: #000;
  margin: 30px 0px 0px 0px;
  padding: 0px 2% 0px 2%;    
    }
}

.aboutcontent2
{
  font-style: italic;
  font-size: 18px;
  font-family: 'Libre Baskerville', serif;
  text-align: left;
  line-height: 250%;    
  color: #000;
  margin: 15px 0px 0px 0px;  
      background: -webkit-linear-gradient(#df8435, #ad2527);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;      
}

@media screen and (max-width: 812px) {
.aboutcontent2 {
  font-style: italic;
  font-size: 18px;
  font-family: 'Libre Baskerville', serif;
  text-align: center;
  line-height: 250%;    
  color: #000;
  margin: 0px 0px 0px 0px;
  padding: 0px 2% 0px 2%;  
  background: -webkit-linear-gradient(#df8435, #ad2527);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;     
    }
}

.abouttitle
{ font-size: 20px;
  color: #212121;
  font-family: 'Libre Baskerville', serif;  
  font-weight: bold;    
  line-height: 1em;
  text-align: center;  
  position: relative;    
  margin: 15px 0px 15px 0px;     
}

@media screen and (max-width: 812px) {
.abouttitle { 
  font-size: 20px;
  color: #212121;
  font-family: 'Libre Baskerville', serif;  
  font-weight: bold;    
  line-height: 1em;
  text-align: center;  
  position: relative;    
  margin: 15px 2% 15px 2%;     
    }
}

/* --- Team --- */

#teamtextspacer
{
  background: #FFF;
  width: 1024px;
  height: 180px;    
  padding-top: 20px; 
  position: relative;
  margin: 0px auto 0px auto;    
}

@media screen and (max-width: 812px) {
#teamtextspacer {
  background: #FFF;
  width: 100%;  
  height: 390px;    
  padding-top: 20px; 
  position: relative;
  margin: 0px 0px 0px 0px;    
    }
}

#teamtextspacer p {
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  line-height: 150%;    
  text-align: center;
  color: #212121;
  margin: 20px 0px 0px 0px;   
}

@media screen and (max-width: 812px) {
#teamtextspacer p {
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  line-height: 150%;    
  text-align: center;
  color: #212121;
  margin: 20px 2% 0px 2%;   
    }
}

#teamcontent
{ 
  background: #FFF; 
  width: 1024px;
  height: 1070px;
  position: relative;
  margin: 0px auto 0px auto;
 } 

@media screen and (max-width: 812px) {
#teamcontent { 
  background: #FFF; 
  width: 100%;
  height: 2530px;
  position: relative;
  margin: 0px auto 0px auto;
    } 
}

#teamcontent p {
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  line-height: 150%;    
  text-align: left;
  color: #212121;
  margin: 10px 15px 0px 15px;   
}

#teamcontent a:link {color:#212121; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#teamcontent a:visited {color:#212121; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#teamcontent a:hover {color:#212121; font-size: 18px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}

/* --- Bio Pages --- */

#biocontent
{ 
  background: #FFF; 
  width: 1024px;
  height: 970px;
  position: relative;
  margin: 30px auto 0px auto;
 } 

@media screen and (max-width: 812px) {
#biocontent { 
  background: #FFF; 
  width: 100%;
  height: 1520px;
  position: relative;
  margin: 30px auto 0px auto;
    } 
}

#biocontent p {
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  line-height: 150%;    
  text-align: left;
  color: #212121;
  margin: 10px 15px 0px 15px;   
}

.biography
{
 background-color: #FFF;
 float: left;
 display: inline;
 position: relative;
 width: 1024px; 
 height: 720px;  
 margin: 50px 20px 0px 0px; 
 border-top-width: 12px;
 border-top-style: solid;
 border-top-color: #ef5121;  
 box-shadow:0px 0px 2px 1px rgba(0,0,0,0.2) inset;        
}

@media screen and (max-width: 812px) {
.biography {
 background-color: #FFF;
 float: left;
 display: inline;
 position: relative;
 width: 100%; 
 height: 1420px;  
 margin: 20px 20px 0px 0px; 
 border-top-width: 12px;
 border-top-style: solid;
 border-top-color: #ef5121;  
 box-shadow:0px 0px 2px 1px rgba(0,0,0,0.2) inset;        
    }
}

.biographyspace
{
 padding-bottom: 20px;
}

.biologosml
{   
 float: left;    
 height: 150px;   
 margin: 15px 15px 0px 15px;
 position: relative;  
}  

@media screen and (max-width: 812px) {
.biologosml {   
 float: left;    
 height: 125px;  
 max-width: 95%;    
 position: relative;  
    }  
}

/* ---Certification Pages --- */

#certcontent
{ 
  width: 1024px;    
  height: 2400px;    
  position: relative;
  margin-left: auto;
  margin-right: auto; 
  padding-bottom: 80px;    
 } 

@media screen and (max-width: 812px) {
#certcontent { 
  width: 100%;    
  height: 4050px;    
  position: relative;
  margin-left: auto;
  margin-right: auto; 
  padding-bottom: 80px;    
    } 
}

#certcontent p 
{
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  text-align: left;
  line-height: 200%;    
  color: #000;
  margin: 0px 15px 0px 15px;  
}

.certpara{
  padding-bottom: 15px;    
}

#certcontent li 
{
  font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  text-align: left;
  line-height: 200%;    
  color: #000;
  margin: 0px 0px 0px 15px;      
}

.certlogo
{   
 float: left;    
 display: inline;  
 height: 100px;   
 margin: 50px 70px 30px 15px;
 position: relative;  
}  

.certpic
{   
 display: inline;     
 position: relative;  
}  

@media screen and (max-width: 812px) {
.certpic {   
 display: inline;     
 position: relative;
 max-width: 100%;    
    }  
}

@media screen and (max-width: 812px) {
.certlogo {   
 float: left;    
 display: inline;  
 height: 100px;  
 max-width: 95%;    
 margin: 30px 70px 30px 15px;
 position: relative;  
    }  
}

.certlogosml
{   
 float: left;    
 display: inline;  
 height: 100px;   
 margin: 50px 70px 30px 15px;
 position: relative;  
}  

@media screen and (max-width: 812px) {
.certlogosml {   
 float: left;    
 display: inline;  
 height: 75px;  
 max-width: 95%;    
 margin: 30px 70px 30px 15px;
 position: relative;  
    }  
}

.certtext
{
 clear: left;
 margin-top: 20px;    
}

.sitemapbold
{
 font-weight: bold;
}

/* -----------H TAGS----------- */

h2
{ font-size: 22px;
  color: #FFF;
  font-family: 'Libre Baskerville', serif;  
  font-weight: normal;    
  line-height: 1em;
  text-align: center;  
  position: relative;    
  margin: 0px 0px 0px 0px;     
}

h3
{ font-size: 30px;
  color: #212121;    
  text-align: center;
  font-family: 'Libre Baskerville', serif;
  font-weight: normal;
  margin: 0px 0px 0px 0px;
  line-height: 1.5em;    
}

@media screen and (max-width: 812px) {
h3 { 
  font-size: 25px;
  color: #212121;    
  text-align: center;
  font-family: 'Libre Baskerville', serif;
  font-weight: normal;
  margin: 0px 0px 0px 0px;
    }
}

h4
{ font-size: 30px;
  color: #FFF;    
  text-align: center;
  font-family: 'Libre Baskerville', serif;
  font-weight: normal;
  padding-top: 25px;      
  margin: 0px 0px 0px 0px;
}

@media screen and (max-width: 812px) {
h4 { 
  font-size: 25px;
  color: #FFF;    
  text-align: center;
  font-family: 'Libre Baskerville', serif;
  font-weight: normal;
  padding-top: 25px;    
  margin: 0px 0px 0px 0px;
    }
}

h5
{ font-size: 50px;
  color: #FFF;  
  font-family: 'Libre Baskerville', serif;
  font-weight: normal;  
  line-height: 1em;
  text-align: center;    
  margin: 0px 0px 0px 0px;    
}

@media screen and (max-width: 812px) {
h5
{ font-size: 25px;
  color: #FFF;  
  font-family: 'Libre Baskerville', serif;
  font-weight: normal;  
  line-height: 1em;
  text-align: center;    
  margin: 0px 0px 0px 0px;    
    }
}

h6
{ font-size: 20px;
  color: #212121;
  font-family: 'Libre Baskerville', serif;  
  font-weight: normal;    
  line-height: 1em;
  text-align: left;  
  position: relative;    
  margin: 15px 0px 15px 15px;     
}

/* -----------FOOTER----------- */

#footer {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 300px;
    width: 100%;
    background-color: #000;
}

@media screen and (max-width: 812px) {
#footer {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 450px;
    width: 100%;
    background-color: #000;
    }
}

#footercentre
{ 
  
  width: 1024px;
  height: 200px;   
  margin-left: auto;
  margin-right: auto;   
  position: relative;
  margin-top: 20px;
  margin-bottom: 40px; 
 } 

@media screen and (max-width: 812px) {
#footercentre { 
  min-width: 338px;
  width: 95%;
  height: none;   
  margin-left: auto;
  margin-right: auto;   
  position: relative;
  margin-top: 0px;
  margin-bottom: 0px;   
    } 
}

#footercentre p {
 font-size: 16px;
  font-family: 'Libre Baskerville', serif;
  font-weight: normal;
  color: #FFF;
  text-align: center;    
}

#footercentre a:link {color:#FFF; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#footercentre a:visited {color:#FFF; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}
#footercentre a:hover {color:#FFF; font-size: 16px; font-family: 'Libre Baskerville', serif; text-align: center; text-decoration: none;}


.footericon
{
 height: 35px;
 margin-bottom: 10px;    
}

.footericonleft
{   
 width: 150px;
 float: left;
 margin: 0px 237px 10px 0px;
 position: relative; 
 text-align: center;     
}  

@media screen and (max-width: 812px) {
.footericonleft {   
 width: 150px;
 float: none;    
 margin: 30px auto 0px auto;
 position: relative; 
 text-align: center;    
    }  
}

.footericoncentre
{   
 width: 250px;
 float: left;
 margin: 0px 237px 10px 0px;   
 position: relative;
 text-align: center;  
}  

@media screen and (max-width: 812px) {
.footericoncentre {   
 width: 250px;
 float: none;
 margin: 30px auto 0px auto;   
 position: relative;
 text-align: center;  
    }  
}

.footericonright
{   
 width: 150px;
 float: left;
 margin-bottom: 10px;      
 position: relative; 
 text-align: center;     
}  

@media screen and (max-width: 812px) {
.footericonright {   
 width: 150px;
 float: none;
 margin: 30px auto 20px auto;      
 position: relative; 
 text-align: center;     
    }  
}

.footertext {
  font-family: 'Libre Baskerville', serif;
  font-size: 10px;  
  margin: 0 auto;    
  text-align: center;
  vertical-align: bottom; 
  color: #000;    
  display: inherit;    
}

@media screen and (max-width: 812px) {
.footertext {
  font-family: 'Libre Baskerville', serif;
  font-size: 10px;  
  text-align: center;
  color: #000;  
  display: none;    
    }
}

a.footerlink:link {color:#FFF; text-decoration: none;}
a.footerlink:visited {color:#FFF; text-decoration: none;}
a.footerlink:hover {color:#c5c5c5; text-decoration: none;}


/* Default Text Properties */

a:visited {color:#000;}
a:hover {color:#000;}

p {
  color: #000;
  margin: 1em 0;
  line-height: 1.5em;
}



/* SLIDER STUFF */


* {
  box-sizing: border-box; }

.pre {
  display: inline-block;
  padding: 20px;
  background: #f1f1f1;
  box-shadow: 3px 3px 0 1px rgba(0, 0, 0, 0.1);
  width: 100%; }

@-webkit-keyframes ball-scale-multiple {
  0% {
    height: 100%;
    opacity: .6;
    top: 0; }
  50% {
    opacity: 0;
    height: 0%;
    top: 50%; }
  100% {
    opacity: .8;
    height: 100%;
    top: 0; } }
.loaderWrap {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 123333333; }

.ball-scale-multiple {
  position: absolute;
  width: 100px;
  height: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); }
  .ball-scale-multiple > div {
    background-color: #fff;
    border-radius: 0;
    animation-fill-mode: both;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    margin: 0;
    width: 20%;
    height: 100%;
    animation: ball-scale-multiple .5s 0s linear infinite;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2); }
    .ball-scale-multiple > div:nth-child(1) {
      animation-delay: .1s;
      left: 0%; }
    .ball-scale-multiple > div:nth-child(2) {
      animation-delay: .2s;
      left: 20%; }
    .ball-scale-multiple > div:nth-child(3) {
      animation-delay: .3s;
      left: 40%; }
    .ball-scale-multiple > div:nth-child(4) {
      animation-delay: .4s;
      left: 60%; }
    .ball-scale-multiple > div:nth-child(5) {
      animation-delay: .5s;
      left: 80%; }

.a-container {
  width: 1170px;
  margin: 0 auto; }

.a-1_2 {
  width: 48%;
  display: inline-block;
  margin: 0 1%; }

.o-sliderContainer {
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: 200px;
  background: #fff;
  float: left;
  margin: 30px 0;
  height: auto; }
  .o-sliderContainer.hasShadow {
     }
  .o-sliderContainer:hover .o-slider-next {
    right: 0; }
  .o-sliderContainer:hover .o-slider-prev {
    left: 0; }

.o-slider {
  width: auto;
  position: relative;
  display: none; }
  .o-slider.isVisible {
    display: table;
    background: #000; }
  .o-slider.isDraggable {
    cursor: move; }

.o-slider--item {
  width: 0;
  overflow: hidden;
  float: left;
  transition: all 0.2s cubic-bezier(0.7, 0.18, 0.53, 0.75);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.9;
  transform: scale(1, 1);
  transform-origin: center center;
  z-index: 99; }
  .o-slider--item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    background: -moz-linear-gradient(45deg, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(0, 0, 0, 0.3)), color-stop(70%, transparent));
    background: -webkit-linear-gradient(45deg, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    background: -o-linear-gradient(45deg, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    background: -ms-linear-gradient(45deg, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3) 0%, transparent 70%);    
    z-index: 0; }
  .o-slider--item.isActive {
    opacity: 1;
    transform: scale(1, 1);
    padding: 0 40px; }
  .o-slider--item.isMoving {
    opacity: 0.6;
    z-index: 100; }

.a-sliderBg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  width: 10.01%;
  transform: translateY(0);
  transition: all .8s;
  transition-delay: .4s; }

.a-sliderBg:nth-child(1) {
  left: 10%; }

.a-sliderBg:nth-child(2) {
  left: 20%; }

.a-sliderBg:nth-child(3) {
  left: 30%; }

.a-sliderBg:nth-child(4) {
  left: 40%; }

.a-sliderBg:nth-child(5) {
  left: 50%; }

.a-sliderBg:nth-child(6) {
  left: 60%; }

.a-sliderBg:nth-child(7) {
  left: 70%; }

.a-sliderBg:nth-child(8) {
  left: 80%; }

.a-sliderBg:nth-child(9) {
  left: 90%; }

.o-slider--item.isActive .a-sliderBg {
  transform: translateY(-100%); }

.o-slider--item.isActive .a-sliderBg:nth-child(even) {
  transform: translateY(100%); }

.o-slider-textWrap {
  left: 2%;
  bottom: 45px;
  height: auto;
  position: absolute;
  text-align: left;
  padding: 0 0 20px 0;
  width: 96%;
  transition: all 0.4s;
  opacity: 1;
  overflow: visible;
  perspective: 1000px;    
  z-index: 2; }

@media screen and (max-width: 812px) {
.o-slider-textWrap {
  left: 2%;
  bottom: 45px;
  height: auto;
  position: absolute;
  text-align: center;
  padding: 0 0 20px 0;
  width: 96%;
  transition: all 0.4s;
  opacity: 1;
  overflow: visible;
  perspective: 1000px;
  z-index: 2; }
}    

.isActive .o-slider-textWrap::after {
  width: 100%;
  left: 0; }
.isActive .o-slider-paragraph {
  opacity: 1;
  transition-delay: 1s; }
.isActive .o-slider-title {
  opacity: 1;
  transition-delay: 0.2s; }
.isActive .o-slider-subTitle {
  opacity: 1;
  transition-delay: 0.6s; }

.o-slider-textWrap1 {
  left: 2%;
  bottom: 45px;
  height: auto;
  position: absolute;
  text-align: left;
  padding: 0 0 20px 0;
  width: 96%;
  transition: all 0.4s;
  opacity: 1;
  overflow: visible;
  perspective: 1000px;
  z-index: 2; }

@media screen and (max-width: 812px) {
.o-slider-textWrap1 {
  left: 2%;
  bottom: 45px;
  height: auto;
  position: absolute;
  text-align: center;
  padding: 0 0 20px 0;
  width: 96%;
  transition: all 0.4s;
  opacity: 1;
  overflow: visible;
  perspective: 1000px;
  z-index: 2; }
}

.isActive .o-slider-textWrap1::after {
  width: 100%;
  left: 0; }
.isActive .o-slider-paragraph {
  opacity: 1;
  transition-delay: 1s; }
.isActive .o-slider-title {
  opacity: 1;
  transition-delay: 0.2s; }
.isActive .o-slider-subTitle {
  opacity: 1;
  transition-delay: 0.6s; }


.o-slider-title,
.o-slider-subTitle,
.o-slider-paragraph {
  width: auto;
  margin: 0 0 5px 0;
  height: auto;
  color: #fff;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
  font-size: 1.4rem;
  display: inline-block;
  padding: 0;
  transition: all 0.4s;
  transform-origin: 0 0;
  opacity: 0;
  position: relative;
  z-index: 1; }

.o-slider-titlevid,
.o-slider-subTitle,
.o-slider-paragraph {
  width: 100%;
  margin: 0 0 5px 0;
  height: 100%;
  color: #fff;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
  font-size: 1.4rem;
  display: inline-block;
  padding: 0;
  transition: all 0.4s;
  transform-origin: 0 0;
  opacity: 0;
  position: relative;
  z-index: 1; }

.o-slider-subTitle {
  font-size: 1.2rem; }

.o-slider-paragraph {
  font-size: 0.8rem;
  max-width: 100%; }

@media screen and (min-width: 768px) {
  .o-slider-textWrap {
    left: 5%;
    width: 90%; }

  .o-slider-title {
    font-size: 1.8rem; }

  .o-slider-subTitle {
    font-size: 1.4rem; }

  .o-slider-paragraph {
    max-width: 60%;
    font-size: 1rem;
    display: block; } }
.o-slider-paragraph::after {
  content: "";
  bottom: 0;
  left: 0;
  height: 100%;
  width: 0;
  z-index: -1;
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
  opacity: 0;
  transform: skew(0, -10deg) translate(100px, 50px); }

.o-slider-title::after {
  content: "";
  bottom: 0;
  left: 0;
  height: 100%;
  width: 0;
  z-index: -1;
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
  opacity: 0;
  transform: skew(0, -10deg) translate(100px, 50px); }

.o-slider-titlevid::after {
  content: "";
  bottom: 0;
  left: 0;
  height: 100%;
  width: 0;
  z-index: -1;
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
  opacity: 0;
  transform: skew(0, -10deg) translate(100px, 50px); }


.o-slider-subTitle::after {
  content: "";
  bottom: 0;
  left: 0;
  height: 100%;
  width: 0;
  z-index: -1;
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
  opacity: 0;
  transform: skew(0, -10deg) translate(100px, 50px); }

.a-divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 2px 0; }

.o-slider-controls {
  display: none; }
  .o-slider-controls.isVisible {
    display: block; }

.o-slider-pagination {
  bottom: 2%;
  left: 0;
  position: absolute;
  text-align: center;
  width: 100%;
  z-index: 1444000;
  margin: 0;
  padding: 0; }
  .o-slider-pagination > li {
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4), 0 0 2px 0 rgba(0, 0, 0, 0.4) inset;
    display: inline-block;
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 20px;
    width: 20px;
    margin-left: 6px;
    margin-right: 6px;
    transition: all 250ms;
    cursor: pointer;
    background-clip: padding-box;
    z-index: 100; }
    .o-slider-pagination > li.isActive, .o-slider-pagination > li:hover {
      background-color: rgba(255, 255, 255, 0.9);
      transform: scale(1.3, 1.3); }

.o-slider--preview {
  position: absolute;
  top: -70px;
  right: auto;
  bottom: auto;
  left: -65px;
  opacity: 0;
  width: 140px;
  height: 60px;
  background-size: cover;
  background-position: center center;
  transition: all 250ms;
  z-index: -1;
  border: 3px solid #000;
  transform: scale(0.2, 0.2);
  transform-origin: center bottom;
  display: none;
  -webkit-filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
  /* Safari */
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5)); }
  .o-slider--preview::before {
    content: "";
    position: absolute;
    top: auto;
    right: auto;
    bottom: -13px;
    left: 50%;
    margin: 0 0 0 -5px;
    height: 0;
    width: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #000; }

.o-slider--preview.isActive,
.o-slider-pagination li:hover .o-slider--preview {
  opacity: 1;
  position: absolute;
  top: -76px;
  right: auto;
  bottom: auto;
  left: -65px;
  transform: scale(1, 1); }

.o-slider-arrows {
  margin: 0;
  list-style: none;
  display: block; }

.o-slider-next,
.o-slider-prev {
  position: absolute;
  top: 0;
  left: -100px;
  margin: -12px 0 0;
  width: auto;
  z-index: 1200122;
  padding: 0;
  margin: 0;
  height: 100%;
  list-style: none;
  cursor: pointer;
  text-align: center;
  padding: 10px 25px;
  display: inline-block;
  vertical-align: middle;
  line-height: 100%;
  transition: all 0.4s; }
  .o-slider-next i,
  .o-slider-prev i {
    position: absolute;
    top: 50%;
    left: 0;
    margin: 0;
    transform: translate(0, -50%);
    text-align: center;
    width: 100%;
    font-size: 3.5rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
    line-height: 1;
    color: #fff; }

.o-slider-next {
  left: auto;
  right: -100px; }

.isDisabled {
  opacity: 0.1;
  cursor: auto; }

@media screen and (min-width: 768px) {
  .o-slider--preview {
    display: block; } }
@media screen and (min-width: 1024px) {
  .o-slider-pagination {
    bottom: 6%; }

  .o-slider-textWrap {
    left: 70px;
    width: 80%;
    bottom: 50px; }

  .o-slider-title {
    font-size: 2rem; }

  .o-slider-titlevid {
    font-size: 2rem; }    
    
  .o-slider-subTitle {
    font-size: 1.6rem; }

  .o-slider-paragraph {
    max-width: 40%;
    font-size: 1.2rem; } }
@media screen and (max-width: 1280px) {
  .a-container {
    width: 970px; } }
@media screen and (max-width: 1024px) {
  .o-slider-arrows {
    display: none; }

  .o-sliderContainer {
    height: 450px;
    width: 100%;
    margin: 0 0 50px 0; }

  .o-slider--item {
    height: 450px; } }
@media screen and (max-width: 768px) {
  .a-container {
    width: 90%;
    margin: 20px auto; }

  .a-1_2 {
    width: 100%;
    display: block;
    margin: 0; }

  .o-slider-arrows {
    display: none; }

  .o-sliderContainer {
    height: 350px; }

  .o-slider--item {
    height: 350px; }

  .o-slider-panel img {
    left: -15%;
    width: 130%; } }
@media screen and (max-width: 480px) {
  .o-slider--item {
    height: 270px; }
    .o-slider--item img {
      left: -20%;
      width: 140%; }

  .o-sliderContainer {
    height: 270px; } }
.slider-pagination > li:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.3, 1.3); }
