/*!
* Start Bootstrap - Scrolling Nav (https://startbootstrap.com/template-overviews/scrolling-nav)
* Copyright 2013-2017 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-scrolling-nav/blob/master/LICENSE)
*/

/* Portfolio css starts - The Modal (background) */
.modal {
  display: none;
  position: fixed;
  /* z-index: 1; */
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}
.card.h-100{
  overflow: hidden;
}
.card.h-100:hover .hover-shadow.cursor.card-img-top, .card.h-100:hover a{
  -moz-transform: scale(1.1);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.first,
.prev,
.last,
.next{
  color: #0E5976 !important;
}
/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}
.modal-content{
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}
/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.mySlides {
  display: none;
}

.cursor {
  cursor: pointer
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

.demo {
  opacity: 0.6;
}

.active,.demo:hover {
  opacity: 1;
  color: #0E5976;
}

img.hover-shadow {
  transition: 0.3s
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)
}
/* Pagination */
.page {
  display: none;
}
.page-active {
  display: flex;
}
.page-item.prev, .page-item.next{
  position: relative;
  padding: 0;
  margin: 0;
  display: inline-block !important;
}
.pagination{
  display: inline-flex;
  padding: 20px 0 15px 0;
}

.no-scroll {
    overflow-y: hidden;
}
/* Pagination ends*/
/* portfolio css ends here */

.bg-light{
  position: relative;
  z-index: -2;
}
section {
 /* padding: 40px 0; */
}
.on-top-sideimg{
  position: relative;
  width: 100%;
}
.on-top-sideimg .text-white{
  position: relative;
  z-index: 8;
}
.card-title p{
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  /* height: 5rem; */
  width: 100%;
}
.section-header{
 color: #0E5976;
 padding: 1rem 0 1rem 0;
}
.about-Prescott{
 position: absolute;
 z-index: 5;
 overflow: hidden;
}
.lead{
 text-align: justify;
}
.lead.gen{
 text-align: left !important;
}
p:last-child{
 margin-bottom: 0;
}
a{
  color: #0E5976;
}

table {
   border-collapse: collapse;
   width: 100%;
}
td, th {
   text-align: left;
   padding: 8px 8px 8px 0;
}
.email-link{
 color: #0E5976;
}
.email-link:hover{
 text-decoration: none;
}
/*  To contain the image to the confines of the div  */
.service-img {
 max-width: 100%;
}

.showcase .showcase-img.in-view {
 background-size: cover;
 display: block;
 position: relative;
 width: 100%;
 content: '';
 animation: fadeIn 1.5s;
}
.showcase-text.in-view{
  animation: fadeInText 2.5s;
}
@keyframes fadeInText {
   0% {opacity: 0;}
   100% {opacity: 1;}
}
@-webkit-keyframes fadeInText {
   0% {opacity: 0;}
   100% {opacity: 1;}
}
/* https://peter.coffee/how-to-use-css-pseudo-elements-to-add-a-gradient-to-images */
.card-img-top{
 margin: auto;
}
.row.modifier{
  margin-right: 0;
  margin-left: 0;
}

@media (max-width: 991px) {
  .nbpair{
    /* width: 317px;
    height: 317px; */
    width: 10vh;
    height: 10vh;
    object-fit:contain;
  }
 .side-img{
   display: none;
 }
 .showcase-img{
   height: 60vh;
 }
 #design-me.showcase-img{
  background-image:
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0) 0,
      #fff 100%
    ),url('../images/design2.jpg');
 }
 #precision.showcase-img{
  background-image:
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0) 0,
      #fff 100%
    ),url('../images/precisionSer2.jpg');
 }
 #toolmake.showcase-img{
  background-image:
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0) 0,
      #fff 100%
    ),url('../images/toolmake.jpg');
 }
 #general.showcase-img{
  background-image:
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0) 0,
      #fff 100%
    ),url('../images/tow-ball.jpg');
 }
 /*  style="background-image: url('img/bg-showcase-2.jpg');" */
 @keyframes fadeIn {
     from {
       top: -50px;
       opacity: 0;
     }
     to {
       top: 0px;
       opacity: 1;
     }
 }
 @-webkit-keyframes fadeIn {
     from {
       top: -50px;
       opacity: 0;
     }
     to {
       top: 0px;
       opacity: 1;
     }
 }
}
@media (min-width: 992px) {
  .nbpair{
    width: 100%;
    height: 100%;
    object-fit:contain;
  }
 #toolmake.showcase-img{
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0,
      #fff 100%
    ),url('../images/toolmake.jpg');
    max-height: 100%;
 }
 #design-me.showcase-img{
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0,
      #fff 100%
    ),url('../images/design.jpg');
    max-height: 100%;
 }
 #precision.showcase-img{
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0,
      #fff 100%
    ),url('../images/precisionSer.jpg');
    max-height: 100%;
 }
 #general.showcase-img{
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0,
      #fff 100%
    ),url('../images/tow-ball.jpg');
    max-height: 100%;
 }
 @keyframes fadeIn {
     from {
       transform: translateX(100px);
       opacity: 0;
     }
     to {
       transform: translateX(0px);
       opacity: 1;
     }
 }
}
.card-title a{
 font-weight: bold;
 font-size: 1.3rem;
 color: black;
 /* text-shadow: 0 1px 0 black; */
}

@media (min-width: 1232px) {
 .nav-item{
   margin: 0 0 0 20px;
 }

}
.padding-mobile,
.side-img,
.navbar-nav,
.logo1{
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
/* For PC screen */
@media (min-width: 768px) {

.nav-link.resize{
  color: #6F7C51 !important;
}
.navbar-nav.resize{
  margin-top: .4rem;
}
.logo2{
  display: none;
}
.logo1.resize{
  padding: 0px;
}
.side-img.resize{
  top: 0.1rem;
  z-index: -1;
}
.tail.resize{
  margin-top: -5.5px;
}
.padding-mobile{
  padding-top: 6.8rem;
}

.padding-mobile.resize{
  padding-top: 0;
}

.nav-link:hover {
  background-color: rgb(14,89,118)!important;
  color: #fff !important;
  border-radius: 20px !important;
}
 #icon-services-lg{
   display: none;
 }
 .hero-service-button{
   display: flex;
   justify-content: center;
   filter: invert(100%);
 }
 .hero-service-button img { /* colour inverted*/
   max-width: 16rem;
   box-shadow: 10px 5px 5px 0px #76440E;
 }
 .hero-service-button img:hover { /* colour inverted*/
   /* filter: invert(50%); */
   filter: brightness(200%);
   /* filter: contrast(250%); */
 }
 .showcase .showcase-text {
   padding: 3rem;
 }
 .mobile{
   display: none;
 }
 .home{
   /* margin: 0 !important; */
   width: 100%
 }
 #minilogo{
   display: none;
 }
 .logo1{
   padding-top: 25px;
 }
 .mycontainer{
   width: 100%;
   padding-right: 0;
   padding-left: 0;
   margin: 0;
 }
 .navbar{
   padding: 0;
 }
 .navbar-nav{
   margin-top: 32px;
 }
 .no-gutters {
   margin-right: 0;
   margin-left: 0;

   > .col,
   > [class*="col-"] {
     padding-right: 0;
     padding-left: 0;
   }
 }
 .tail{
   width: 500px;
   float: right;
   padding-right: 5px;
 }
 .side-img{
   overflow: hidden;
   height: 53.5px;
   width:100%;
   top: 22px;
   position: fixed;
   z-index: 50;
 }
 .tail-end{
   width: 100%;
   position: absolute;
   top: 4px;
   bottom: 4px;
   background-image: linear-gradient(to left,rgba(14,89,118,1), rgba(14,89,118,0));
 }
 .des{
   font-size: 1.5em;
   padding-bottom: 3em;
 }
 .headline{
   /* text-align: left; */
   z-index: 20;
   text-shadow: 0 1.5px 0 black;
   font-size: 4em;
   /* padding: 10px 20px 10px 5px; */
 }
 .work-description{
   display: none;
 }
 .nav-item{
   text-align: center;
   text-shadow: 0 1px 0 black;
   font-size: 1.1em;
 }
 .email-head{
   padding: 2px 0 0 0;
   text-align: left;
 }
 #contact .button {
   width: 80%;
   /* margin-top: 10vh; */
 }
 .navtint.resize{
  background-color: rgba(255,255,255,0.99)!important;
  -webkit-transition: background-color 400ms linear;
  -ms-transition: background-color 400ms linear;
  transition: background-color 400ms linear;
  -webkit-box-shadow: 0px 4.5px 4px -4px rgba(173,173,173,1);
  -moz-box-shadow: 0px 4.5px 4px -4px rgba(173,173,173,1);
  box-shadow: 0px 4.5px 4px -4px rgba(173,173,173,1);
  position: relative;
 }
 .navtint{
  background-color: rgba(255,255,255,0)!important;
  -webkit-transition: background-color 250ms linear;
  -ms-transition: background-color 250ms linear;
  transition: background-color 250ms linear;
  position: relative;
 }
 .small{
   display: none;
 }

}
/* For mobile screens */
@media (max-width: 767px){
  .big{
    display: none;
  }

  .navtint{
   background-color: rgba(255,255,255,0.56)!important;
   position: relative;
  }
 .padding-mobile {
   padding: 65px 0 0;
 }
 .padding-mobile.resize{
   padding-top: 0;
 }
 #contact .button {
   width: 100%;
   /* margin-top: 10vh; */
 }
 .hero-service-button{
   display: none;
 }
 .col-lg-8 h1, .col-lg-8 h2{
   text-align: center;
 }
 .showcase .showcase-text {
   padding: 3rem 0 3rem 0;
 }
 .welcome-img .col-lg-8{
   padding-top: 10vh;
 }
 #minilogo{
   color: black;
   text-shadow: -1px -1px .5px #ffff,
                1px 1px .5px #ffff,
                -1px -1px .5px #ffff,
                1px 1px .5px #ffff;
   height: 100%;
   width: 100%;
 }
 .logo1{
   display: none;
 }
 .logo2{
   display: inline-block;
   height: 55px;
   width:35px;
 }
 .navbar{
   display: inline;
 }
 .navbar-brand{
   margin: 0;
   padding-top: 0;
   padding-bottom: 0;
 }
 .carou-caption{
   margin-left: 1rem;
 }
 .sec-col{
   padding-left: 80px;
   padding-right: 0;
 }
 .just-border{
   width: 100%;
   height: 20px;
   background-image: linear-gradient(to top,rgba(14,89,118,1), rgba(14,89,118,0));
 }
 .butRes{
   margin: 8px 0.7px 1px 0;
   background-color: rgba(14,89,118,.85);
   float: right;
 }
 .touch{
   text-align: center;
 }
 .contact-left-pad{
   margin-left: 5px;
 }

 .nav-item{
   background-color: rgba(14,89,118,.8);
   border-radius: 7px;
   margin: 0 20px 6px 20px;
   text-align: center;
   text-shadow: 0 1px 0 black;
   font-size: 1.1em;
 }
 .email-head{
   width: 100%;
   padding: 2px 0 20px 0;
   text-align: center;
 }
}

/* Source: https://bootstrapious.com/p/bootstrap-carousel */
.overlay{
 position: absolute;
 width: 100%;
 height: 100%;
 background: #000;
 overflow: hidden;
 opacity: 0.30;
 z-index: 8;
 /* transition: all 0.3s ease-out; */
}
.tom{
 position: relative;
 z-index: 1;
 display: inline-block; /* added */
 overflow: hidden; /* added */
}
.tom img{
 max-width: 100%;
 height: auto;

}
.welcome-img {
 height: 60vh;
 min-height: 300px;
 background: no-repeat center center scroll;
 -webkit-background-size: cover;
 -moz-background-size: cover;
 -o-background-size: cover;
 background-size: cover;
}

.carousel-item {
 height: 70vh;
 min-height: 300px;
 background: no-repeat center center scroll;
 -webkit-background-size: cover;
 -moz-background-size: cover;
 -o-background-size: cover;
 background-size: cover;
}

#mapframe{
 width: 100%;
 height: 500px;
}
.portfolio-item {
 margin-bottom: 20px;
}
.carou-caption{
 transform: translate(0, 40vh);
 z-index: 20;
 color: White;
 text-align: left;
 text-shadow: 0 1.5px 0 black;
}

.img-contact-container{
  height: 30vh;
  line-height: 30vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
#buttonText {
  text-align: center;
  text-shadow:  0 1.5px 0 black;
  font-size: 1.35rem;
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
  color: white;
}

.btn-primary{
  margin: auto;
  background-color: #0C8FC2 !important;
  border-color: #2B98C2;
}
/* make button always center */
.card-footer{
  display: flex;
  justify-content: center;
  margin: auto;
  background-color: #0C8FC2 !important;
  border-color: #2B98C2;
}

.flexWrap{
  display: flex;
  justify-content: center;
  /* flex-direction: column; */
}
.bob{
  font-size: 1.25rem;
  font-weight: 300;
  text-align: center;
}
.showcase-text ul{
  padding-right: 40px;
}

.JC {
 color: white;
 font-weight: bold;
}
