/****** BODY            */
body{
 font-family: Helvetica, Arial, sans-serif;
 padding:0;
 margin:0;
 letter-spacing: 1.5px;
 line-height:30px;
 background-size: 100%;
 background-color: black;
 background-repeat:no-repeat;
 background-position: top;
 background-attachment: fixed;
 background-size: cover;
 overflow: scroll;
}
#bannerfont{
  padding: 0;
}
#map{
   width:400px;
   height:300px;
}
/* Containers  */
.container{
 width:95%;
 margin:auto;
}
.container2{
 width:60%;
 margin:auto;
}
#content1{
  visibility: visible;
}
#content2{
    visibility: visible;
}
/****    BACKGROUND */
#main_background img{
   display: block;
   width:100%;
   height:100%;
   position:fixed;
   min-height: 420px;
   object-fit:cover;
   z-index: -4;
}
#mobile_background img{
   display: none;
}
#main_background{
 background-color: black;
}
#mainc{
  padding:2%;
  color: #2c3e50;
}
#mainc h3{
  color: #2c3e50;
}
/************** HEADERS   */
header{
  padding: 10px 50px 0 50px;
  }
#header1{
  margin-top:200px;
  width:100%;
  min-height:300px;
}
#header_home{
  margin-top:160px;
  width:100%;
  min-height:240px;
}
/***************** NAV *******/
#containernav{
  width:100%;
  margin:auto;
  top: 0;
  z-index: 4;
}
.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(26, 57, 88, 0.8);
}
.sticky + #containernav {
}
/* NAV */
.navbutton{
  display:none;
}
nav ul{
  margin: 0;
  padding:0;
}
nav{
  cursor:pointer;
  text-align: center;
  display: inline;
  float:right;
  padding:1% 2% 2% 2%;
  margin-top: 30px;
}
/* DROPDOWN NAV */
.dropbtn {
  z-index: 1;
  color: white;
  cursor: pointer;
}

.dropdown {
  cursor: pointer;
  -webkit-transition: width 0.5s; /* For Safari 3.1 to 6.0 */
  transition: width 0.5s;
  position:relative;
  display:block;
  width:170px;
  float:right;
}
.dropdown:hover {
  width:190px;
}
.dropdown-content {
  display: none;
  margin-top:50px;
  position: absolute;
  right: 0;
  text-align: left;
  background-color: white;
  z-index: 1;
}
/** MOBILE NAV **/
#mainnav{
  display:block;
}
.mobilenav{
  display:none;
}
#closebtn{
  width:100%;
}
#close{
 padding:4% 4% 0 0;
 top:0;
 width:50%;
 text-align: right;
 color:white;
 opacity:0.7;
 font-size: 50px;
 float:right;
}
#close a{
  cursor:pointer;
  padding-right: 40px;
  background-color: none
}
 #close:hover {
  opacity:1;
  cursor:pointer;
  background-color: none;
 }
 #contacti{
   opacity:0.7;
   width: 40px;
   height:40px;
 }
 .back{
   padding:4% 0 0 4%;
   float:left;
   cursor:pointer;
   opacity:0.5;
 }
 .back img{
   width: 50px;
   height:50px;
 }

 .containerm {
   text-align: center;
   display: none;
   position: absolute;
   z-index: 1;
   left: 0;
   top: 0;
   width: 100%;
   height:100%;
   min-height: 800px;
   background-color:rgba(26, 57, 88, 0.8);
 }
.navbar {
  cursor:pointer;
 padding:20px 0 10px 0;
}
.navbar a {
 width:100%;
 text-align: left;
 padding:20px 0 20px 0;
 color: rgba(255, 255, 255, 0.7);
 text-decoration: none;
 font-size: 20px;
}
.navbar img {
   float:left;
   padding: 0 50px 0 50px;
}
.navbar a:hover {
  cursor:pointer;
  color:white;
  background-color:rgba(255, 255, 255, 0.2);
}
.navbar{
  display:none;
}

/*** logo banner */
#banner{
  margin-top: 20px;
  width:100%;
  background-color:rgba(26, 57, 88, 0.8);
  min-height: 20px;
  padding:2% 0 2% 0;
}
/*** contact us banner */
.content_banner{
  padding: 1% 0 1% 0;
  background-color:rgba(26, 57, 88, 0.8);
  width:100%;
      -webkit-animation: fadein 1.5s; /* Safari, Chrome and Opera > 12.1 */
         -moz-animation: fadein 1.5s; /* Firefox < 16 */
          -ms-animation: fadein 1.5s; /* Internet Explorer */
           -o-animation: fadein 1.5s; /* Opera < 12.1 */
              animation: fadein 1.5s;
  }

  @keyframes fadein {
      from { opacity: 0.1; }
      to   { opacity: 1; }
  }

  /* Firefox < 16 */
  @-moz-keyframes fadein {
      from { opacity: 0.1; }
      to   { opacity: 1; }
  }

  /* Safari, Chrome and Opera > 12.1 */
  @-webkit-keyframes fadein {
      from { opacity: 0.1; }
      to   { opacity: 1; }
  }

  /* Internet Explorer */
  @-ms-keyframes fadein {
      from { opacity: 0; }
      to   { opacity: 1; }
  }

  /* Opera < 12.1 */
  @-o-keyframes fadein {
      from { opacity: 0; }
      to   { opacity: 1; }
  }
/* LOGO */
#logo img{
  float: left;
  height: 120px;
  opacity: 0.8;
}
#logo:hover img{
  opacity: 1;
  cursor: pointer;
}
.boxcontainer{
  background-color: white;
  height:250px;
  width: 220px;
  margin:auto;
  overflow:hidden;
  z-index: -1;
}
/** MAIN **/
#main img{
 object-fit: cover;
 width:100%;
 height: 100%;
 position: relative;
}
#main{
  width:75%;
  position: relative;
  z-index:3;
  height:100%;
  background-color: white;
}
#main_text{
 background-color: white;
 z-index:1;
 color: black;
 position:absolute;
 padding-left: 5%;
}
/* Main content block1 */
#service_cont{
 background-color: white;
 padding: 30px 0 30px 0;
 position:relative;
 width:100%;
 height: 100%;
 height:auto;
 flex-wrap: wrap;
 justify-content: center;
 display: flex;
}
/****    SIDEBAR */
#sidebar_content p{
 color: black;
 position:absolute;
}
#sidebar_content{
  width:15%;
  padding:5%;
  position: relative;
  text-decoration: none;
}
#sidebar_content img{
  position: relative;
  width:100%;
}

/*** Main Content */
.content_main{
  width:100%;
  min-height: 0;
  margin:0;
  height: auto;
  justify-content: center;
  background: none;
}
.content_main2{
  width:100%;
  margin:0;
  min-height:0;
  height: auto;
  text-align: center;
  justify-content: center;
}
/** SERVICES CONTENT BOXES   **/
#first{
  background-image: url(images/silverfern_background.png);
  background-color: white;
  min-height:0;
}
#second{
  background-color: rgba(255, 255, 255, 0.8);
}
#white_box{
  padding:1%;
  background-color: rgba(255, 255, 255, 0.6);
  width:65%;
  max-width:85%;
  min-height: 0;
  height:auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.16);
}

.links_box{
  padding-right: 100px;
  word-break: break-all;
  display:table;
  float:left;
  text-align: center;
  background-color: white;
  max-height:100px;
  flex-wrap: wrap;
}
/** HOME PAGE Service boxes **/
.boxes {
 margin: 20px;
 justify-content: center;
 width: 100%;
}
#boxes{
  text-align: center;
  padding: 2% 10% 2% 10%;
  height: auto;
  flex-wrap: wrap;
  justify-content: center;
  display: inline-block;
  align-items: stretch;
  background-color:white;
  width: 80%;
}
#flex {
  position: relative;
  text-align: center;
  color: white;
}
#box img{
  opacity: 0.5;
  position: relative;
  height: 150px;
  width:240px;
  object-fit: cover;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
#box h3:hover{
  font-size:26px; }

#titleboxes{
  flex-wrap: wrap;
  width:100%;
  justify-content: center;
  display: flex;
}
#titlebox{
  margin:1% 0% 5% 0%;
  padding:0 2% 0 2%;
  background-color: rgba(255, 255, 255, 0.75);
}
#titlebox p{
  padding:0 2% 0 2%;
  line-height: 30px;
}

.flexbox {
    display: flex;
    overflow-y: auto;
}

#homemain{
  background-color: white;
  position:relative;
  padding: 2% 0 2% 0;
}
#homemain2{
  background-color: white;
  min-height:0;
  height:auto;
  position:relative;
  display: inline-flex;
}

#background_white{
  justify-content: center;
  background-color: white;
  margin:0;
  width:100%;
  padding:0;
  -webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
     -moz-animation: fadein 1s; /* Firefox < 16 */
      -ms-animation: fadein 1s; /* Internet Explorer */
       -o-animation: fadein 1s; /* Opera < 12.1 */
          animation: fadein 1s;
}

@keyframes fadein {
  from { opacity: 0.1; }
  to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
  from { opacity: 0.1; }
  to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from { opacity: 0.1; }
  to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }

}
/****** CONTACT background-image: url(images/silverfern_background1.png);
****/
#contact{
  background-repeat:no-repeat;
  background-position: top;
  background-attachment: fixed;
  background-size: cover;
  background-image: url(images/building_street.png);
  padding: 2% 12% 5% 12%;
  position:relative;
  text-align: left;
}

#contact img{
  padding: 8%;
  float: right;
  height: 2%;
  object-fit: cover;
}
#map{
  float: right;
  padding:5%;
}
#contact h5{
  padding-left: 70%;
  float: right;
}

#contactboxes{
  flex-wrap: wrap;
  width:100%;
  justify-content: center;
  display: flex;
}
#contactboxes img{
  width:150px;
  height:100%;
}
#contact_box2{
  float: right;
  width:200px;
}
#contact_box1 img{
  width: 60px;
  height:auto;
  padding-right: 5px;
}

#about{
  width:100%;
  display:inline-block;
  background-color:white;
  margin: 2% 0 5% 0;
  position:relative;
}


#about li{
  font-size: 18px;
  text-decoration: none!important;
  display: inline-block;
}
#about_blue{
  width:100%;
  height:100%;
  z-index:5;
  background-color:rgba(26, 57, 88, 0.8);
}
#about img{
  padding: 2% 2% 1% 5%;
  float: left;
  height: 200px;
  width:155px;
  object-fit: cover;
}
#about p{
  padding: 0 5% 0 5%;
}


/****    FOOTER */
footer{
  width:100%;
}
#footer_banner{
 background-image: url(images/compressed_contact.jpg);
 color: white;
 position:relative;
 background-repeat:no-repeat;
 background-position: top;
 background-attachment: fixed;
 background-size: cover;
 min-height: 500px;
}

#footer_banner img{
 width:100%;
 height:500px;
 object-fit:cover;
 bottom:0;
}

#footer_banner_white {
 display: flex;
 bottom: 0;
 position:absolute;
 width:100%;
 background-color: rgba(255, 255, 255, 0.2);
}
#footer_font {
 padding: 1% 0 4% 0;
}
#footer_banner_copyright{
  font:smaller;
  bottom:0;
  width:100%;
  background-color: white;
  text-align: center;
}
#footer_banner_copyright p{
  padding: 1% 0 1% 0;
}
#contact_icon img{
  display:none;
  padding-right: 2%;
}
#services{
  width:100%;
  padding:0;
}
#updates{
  text-align: left;
  color:grey;
  width:70%;
  padding:2%;
  margin:0 auto 2% auto;
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.08);
}
#update-content{
  width:100%;
  margin-top:400px;
  z-index: 5;
}
#updates-detail{
  text-align: left;
  color:grey;
  width:100%;
  min-height:500px;
  height:auto;
  padding:5% 10%;
  box-sizing: border-box;
}
#updates p, #updates-detail p{
  color:grey;
  text-align: left;
  margin:0;
  padding:0;
}
#updates h2, #updates-detail h2{
  color:#2c3e50;
  font-size: 30px;
}
#updates a, #updates-detail a{
  color:#2c3e50;
}
#footer_banner_white h3{
}
#footer_banner_white p{
}

/******** MEDIA QUERIES - Medium ************************/
@media screen and (max-width: 1000px) {

  .sticky {
    background-color: none;
  }

   /*** logo banner */
   #banner{
     background:none;
     height:0px;
   }
   /*** contact us banner */
   .content_banner h3{
     text-align: center;
   }
   #homemain{
     text-align: left;
   }

   #footer_banner_white {
    width:100%;
  }

 #contact_icon img{
   display:inline-block;
   width:64px;
   height:64px;
   float: right;
   padding: 50px 0 0 50px;
 }
 #contact_icon {
   width:100px;
   float:right;
 }

}
/*********   MEDIA QUERIES - SMALL *************/
@media screen and (max-width: 800px)  {
  #main_background img{
     display: none;
  }
  .content_banner{
      margin-top: 8%;
  }
  .content_banner p{
      font-size:16px;
      margin: 2% 0 2% 0;
  }
  .content_banner a{
    font-size:14px;
  }
  #modal{
    height:100%;
      text-decoration: none!important;
  }
  .navbar {
      display: block;
      margin-top: 50px;
    }
  .navbar a {
      display: block;
    }
  #mobile_background img{
     display: block;
     opacity:0.9;
     width:100%;
     height:100%;
     position:fixed;
     min-height: 420px;
     object-fit:cover;
     z-index: -4;
  }
  #logo img{
    float: left;
    height: 100px;
    opacity: 0.8;
    padding:0;
  }
  #header1{
    min-height: 80px;
    width:100%;
  }
  header{
    padding: 10px 0px 0 0px;
    width:100%;
  }
  .sticky {
    position:absolute;
    background-color: none;
  }

  #mainnav{
    display:none;

   #close:hover {
    opacity:1;
    cursor:pointer;
   }
   #contacti{
     display:block;
   }

  .mobilenav{
    padding:4% 4% 0 0;
    cursor: pointer;
    display:inline-block;
    float:right;
    position: relative;
  }
  .mobilenav img{
    width:45px;
    height:45px;
  }

  .navbutton{
    display:block;
  }
  /* dropdown */
 .dropbtn {
   display: block;
   z-index: 1;
   width:100%;
   color: #1c3a6b;
 }
   .dropbtn img{
    width: 40px;
    padding:1% 1% 5% 1%;
    float:right;
 }

 .dropdown-content:hover {
   width: 480px;
 }

 #boxes{
   margin-top: 2%;
   width:100%;
   padding:0;
  }
 #box img{
   margin-right: 2%;
   width:140px;
   height:120px;
  }
  #box h3:hover{
    font-size:21px;
  }
  #bannerfont{
    padding: 0 4% 0 4%;
  }
  #box{
    margin-right: 2%;
    justify-content: center;
    padding:0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }
  #titleboxes{
    width:100%;
    margin-bottom: 4%;
  }
  #titlebox{
    font-size: 16px;
    width:44%;
    height:auto;
    padding:0 2% 0 2%;
    background-color: rgba(255, 255, 255, 0.7);
  }
  #titlebox p{
    padding:0 1% 0 1%;
    line-height: 30px;
  }
  #service_cont{
   padding: 20px 0 20px 0;
  }

  #white_box{
  width:100%;
    padding: 0;
  }

  #map{
     width:90%;
     height:200px;
  }
  #first{
    width:100%;
    padding: 0;
    }
  #second{
    width:100%;
      padding: 0;
    }

  .links_box{
    padding-right: 0px;width:95%;

  }
  #about img{
    padding: 0 30% 3% 30%;
    justify-content: center;
  }
  #about h2{
    font-size: 22px;
    margin-top: 2%;
    padding: 1% 5% 0 5%;
  }

  #mainc{
    padding:2% 4% 2% 4%;
    color: #2c3e50;
  }
  #mainc h3{
    color: #2c3e50;
  }
  #mainc ul{
    padding:2% 5% 2% 5%;
  }
  #footer_banner{
    background-image: url(images/mobile_contact_law.jpg);
    max-height: 300px;
  }
  #footer_copyright_font{
    line-height:40px;
  }
  footer{
    color:white;
  }

  #updates p, #updates-detail p{
    color:grey;
  }


}
