/* START of Image slider */
/*
https://www.quora.com/What-is-the-explanation-for-this-CSS-code
http://thenewcode.com/627/Make-A-Responsive-CSS3-Image-Slider
*/

.cinzel-<uniquifier> {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.open-sans-<uniquifier> {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
@keyframes slidy {
0% { left: 0%; }/*these values are the timing of each slide as a percentage of the total*/
20% { left: 0%; }/*the left percentage refers to the total size of the slides - example had four slides and was 400% - 500% seems tp work with six - expand if more than this*/
25% { left: -100%; }
45% { left: -100%; }
50% { left: -200%; }/*see SH Notaries for an improved version with a 99.99% addition for the last frame*/ 
70% { left: -200%; }
75% { left: -300%; }
95% { left: -300%; }
100% { left: -400%; }}
div#slider { overflow: hidden; }
div#slider figure img { width: 20%;/*100 divided by the number of slides*/ float: left; }
div#slider figure { position: relative;width: 500%;/*100 multiplied by the number of slides*/margin: 0;left: 0;text-align: left;font-size: 0;animation: 40s slidy infinite;/*total animation time*/  }
/* END of Image slider */
body, nav, ul, li, a  {margin: 0; padding: 0;}
body {font-family: 'Open Sans', sans-serif;}
a[href^=tel] {color:inherit;text-decoration:none;}
a {text-decoration: none;}
.container {width: 100%;max-width: 1920px;margin: 0px auto;}
a img {border:none;}
img, object, embed, video {max-width: 100%;}
.google-maps {position: relative;padding-bottom: 75%; // This is the aspect ratioheight: 0;overflow: hidden;}
.google-maps iframe {position: absolute;top: 0;left: 0;width: 96% !important;height: 100% !important;}
.wrap {margin:0 auto;width:85%;max-width:1300px;}
#break {width:100%;height:1px;clear:both;}

#header, #footer {width:100%;float:left;}

#header {height:60px;background:rgb(138, 7, 14);color:white;}
#headertelephone {float:left;width:50%;font-size:1.3em;color:white;padding-top:14px;text-align:left;font-weight:400;}
#headeremail {float:left;width:50%;font-size:1.3em;color:white;padding-top:14px;text-align:right;font-weight:400;}
#headeremail a{text-decoration:none;color:white;}

#brandheader {height:100px;background:white;}
#firmname {font-size:2em;color:black;line-height:1.5;text-align:center;font-weight:400;font-family: 'Cinzel', serif;text-decoration: underline;text-decoration-thickness: 2px;text-underline-offset: 6px;}
#birmingham {font-size:1.7em;color:black;line-height:0.8;text-align:center;font-weight:400;font-family: 'Cinzel', serif;}

#footer {background:rgb(138, 7, 14);color:white;min-height:140px;clear:both;overflow:hidden;margin-top:300px;}
#footer a {text-decoration:none;color:white;}
#footer a:hover {text-decoration:underline;}
#addressftr {float:left;text-align:left;font-size:1.1em;color:white;width:66%;font-weight:300;padding-left:2%;padding-top:20px;}
#badge {width:30%;margin-left:2%;float:left;padding-top:20px;}

#maincontent {min-height:500px;background:white;color:black;font-size:1.2em;line-height:1.9em;margin-top:20px;font-weight:300;}
#maincontent a {color:rgb(138, 7, 14);text-decoration:none;font-weight:400;}
#maincontent a:hover {text-decoration:underline;}
#maincontent ul {padding:0px 0px 0px 5%;list-style-type:square;}
#maincontent ol {padding:0px 0px 0px 5%;}

.videowrapper {
    float: none;
    clear: both;
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
}
.videowrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

th, td {
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
}
h1 {font-size:1.6em;padding: 0 0 0 0;margin: 0px 0px 0px 0px;color:black;text-align:center;font-weight:400;}
h2,h3,h4,h5 {font-size:1.4em;padding: 0 0 0 0;margin: 0px 0px 0px 0px;color:rgb(138, 7, 14);text-align:left;font-weight:400;}

#calltoaction{width:100%;padding:2px 0px 2px 0px;text-align:left;font-weight:300;border-top:2px solid black;border-bottom:2px solid black;font-weight:400;margin: 0px auto;margin-top:20px;}

#greycontainer {width:100%;height:auto;background-color:#ECECEC;padding-top:50px;padding-bottom:50px;margin-top:50px;}
h6 {font-size:1.4em;color:black;margin:0 0 0 0;padding:0 0 0 0;font-weight:400;}

#contactbox {width:94%;height:auto;font-weight:300;padding: 10px 20px 10px 20px;box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;margin:30px 0px 30px 0px;}
#contactbox a {color:rgb(138, 7, 14);text-decoration:none;font-weight:400;}
#contactbox a:hover {text-decoration:underline;}


* {box-sizing: border-box;margin: 0;padding: 0;}

/* Flex container */
.flexcontainer {
  display: flex;
  flex-direction: row;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0px;
  overflow: hidden;
  max-width: 1200px;
  margin: auto;
  margin-bottom:50px;
}

/* Text on the left */
.text-box {flex: 1;padding: 20px;font-size:1em;color:black;line-height:1.8em;font-weight:300;}

/* Image on the right */
.image-box {flex: 1;}

.image-box img {width: 100%;height: 100%;object-fit: cover;display: block;}

/* START of text slider */
@keyframes slidy {
0% { left: 0%; }/*these values are the timing of each slide as a percentage of the total*/
20% { left: 0%; }/*the left percentage refers to the total size of the slides - example had four slides and was 400% - 500% seems tp work with six - expand if more than this*/
25% { left: -100%; }
45% { left: -100%; }
50% { left: -200%; }
70% { left: -200%; }
75% { left: -300%; }
95% { left: -300%; }
100% { left: -400%; }}
#testimonial {font-size:1.6em;color:black;text-align:center;font-weight:400;margin-top:50px;}
#box {width: 20%;/*100 divided by the number of slides*/ float: left;color:black;height:200px;font-size:1.3em;text-align:center;}
div#textslider { overflow: hidden; width:80%;margin-left:10%;}
div#textslider figure { position: relative;width: 500%;/*100 multiplied by the number of slides*/margin: 0;left: 0;text-align: left;animation: 40s slidy infinite;/*total animation time*/  }
#stars {width:100%;text-align:center;margin-top:10px;}
/* END of Image slider */


/* START of NAV styling */
.toggleMenu {display:  none;background: #E0E0E0;/* menu button mobile version background colour */padding: 10px 15px;color: #000000;}
.nav {list-style: none;*zoom: 1;background:#ffffff;/* menu bar background colour */font-size:1.1em;}
.nav:before,
.nav:after {content: " "; display: table; }
.nav:after {clear: both;}
.nav ul {list-style: none;width: 16em;color: #000000;/* affects width of pop out nav */}
.nav a {padding: 10px 40px;/* affects width nav elements and sub elements */color:#000000;*zoom: 1;}
.nav li {position: relative;}
.nav > li {float: left;border-top: 1px solid #FFFFFF;/* menu button mobile version sub level top border colour and single pixel line on top of desktop nav */}
.nav > li > .parent {background-image: url("images/downArrow.png");background-repeat: no-repeat;background-position: right;}
.nav > li > a {display: block;}
.nav li  ul {position: absolute;left: -9999px;}
.nav > li.hover > ul {left: 0;}
.nav li li.hover ul {left: 100%;top: 0;}
.nav li li a {display: block;background:rgb(138, 7, 14);/* menu bar 1st sub level background colour */position: relative;z-index:100;border-top: 1px solid #FFFFFF;/* menu bar 1st sub level top border colour */color:white;}
.nav li li li a {background:#194B95;zoom:1;/* menu bar 2nd sub level background colour */z-index:200;border-top: 1px solid #FFFFFF;COLOR:WHITE;/* menu bar 1st sub level top border colour */}
/* END of NAV styling */

@media screen and (max-width: 1024px) {
/* iPad Pro and old monitor section */
    
#testimonial {font-size:1.4em;color:black;text-align:center;font-weight:400;margin-top:50px;}
#box {width: 20%;/*100 divided by the number of slides*/ float: left;color:black;height:200px;font-size:1.3em;text-align:center;}
}

@media screen and (max-width: 768px) {
/* START of NAV styling */
.active {display: block;}
.nav > li {float: none;}
.nav > li > .parent {background-position: 95% 50%;}
.nav li li .parent {background-image: url("Images/downArrow.png");background-repeat: no-repeat;background-position: 95% 50%;}
.nav ul {display: block; width: 100%;}
.nav > li.hover > ul , .nav li li.hover ul {position: static;}
/* END of NAV styling */


#header {height:80px;background:rgb(138, 7, 14);color:white;}
#headertelephone {font-size:1.3em;width:100%;padding-top:5px;text-align:center;}
#headeremail {font-size:1.3em;width:100%;padding-top:1px;text-align:center;}
    
#addressftr {text-align:center;width:100%;padding-left:0%;}
#badge {width:100%;}

h1 {font-size:1.4em;}
h2,h3,h4,h5 {font-size:1.3em;}
h6 {font-size:1.3em;}

#testimonial {font-size:1.4em;color:black;text-align:center;font-weight:400;margin-top:50px;}
#box {width: 20%;/*100 divided by the number of slides*/ float: left;color:black;height:200px;font-size:1.1em;text-align:center;}
    
#maincontent {font-size:1em;}

    /* Responsive: Stack on smaller screens */
.flexcontainer {flex-direction: column;}

.image-box,
.text-box {flex: none;width: 100%;}

.image-box img {height: auto;}

}


@media screen and (max-width: 480px) {
/* Phone section */
#header {height:80px;background:rgb(138, 7, 14);color:white;}
#headertelephone {font-size:1.1em;width:100%;padding-top:5px;text-align:center;}
#headeremail {font-size:1.1em;width:100%;padding-top:1px;text-align:center;}
#brandheader {height:70px;background:white;}
#firmname {font-size:1.5em;color:black;line-height:1.5;text-align:center;font-weight:400;font-family: 'Cinzel', serif;text-decoration: underline;text-decoration-thickness: 2px;text-underline-offset: 6px;}
#birmingham {font-size:1.3em;color:black;line-height:0.9;text-align:center;font-weight:400;}
.wrap {margin:0 auto;width:90%;max-width:1300px;}

h1 {font-size:1.3em;}
h2,h3,h4,h5 {font-size:1.2em;}
h6 {font-size:1.2em;}
#calltoaction{width:100%;}
#contactbox {font-size:1em;width:97%;}

#testimonial {font-size:1.3em;color:black;text-align:center;font-weight:400;margin-top:50px;}
#box {width: 20%;/*100 divided by the number of slides*/ float: left;color:black;height:500px;font-size:1em;text-align:center;}
    th, td {
  padding-top: 1%;
  padding-bottom: 1%;
  padding-left: 1%;
  padding-right: 1%;
}

}