/* Global Styles */
html,
body {
    /*TODO: customize Bootstrap instead of changing font-size here*/
    font-size: 18px;
    height: 100%;
    margin: 0px;
    padding: 0px;
}

.img-index{
    width: 100%;
    margin: 10px 0px 10px 0px;
}

.img-portfolio {
    margin-bottom: 30px;
}

.img-hover:hover {
    opacity: 0.8;
}

/* Home Page Carousel */

header.carousel {
    height: 50%;
}

header.carousel .item,
header.carousel .item.active,
header.carousel .carousel-inner {
    height: 100%;
}

header.carousel .fill {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

/* for sticky navbar*/
.affix {
      top:0;
      width: 100%;
      z-index: 9999 !important;
}
.navbar {
      margin-bottom: 0px;
}

.affix ~ .container-fluid {
     position: relative;
     top: 50px;
}

/* 404 Page Styles */

.error-404 {
    font-size: 100px;
}

/* Pricing Page Styles */

.price {
    display: block;
    font-size: 50px;
    line-height: 50px;
}

.price sup {
    top: -20px;
    left: 2px;
    font-size: 20px;
}

.period {
    display: block;
    font-style: italic;
}

/* Banner above Topnav*/
.banner {
    
    width: 100%;
    height: 400px;

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position-x: center;
}

.banner-index {
    
    width: 100%;
    
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position-x: center;
}

.banner-index video{
    backface-visibility:hidden;
    background:url('img/banner/index.jpg') no-repeat scroll 0 0 #000;
    background-size:cover;
    bottom:0;
    height: auto;
    min-width:100%;
    perspective:1000;
    position:fixed;
    top: 0;
    left: 50%;
    right:0;
    width:auto;
    z-index:-1;

    -ms-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.index-content{
    width: 100%;
    background-color: #fff !important;
    padding:2.5rem;
    position:relative;
    z-index:1;
}

/* index img*/
.categorie_img {
  position: relative;
}

.img_description {
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  background: rgba(30, 30, 30, 0.80);
  color: #fff;
  visibility: hidden;
  opacity: 0;

  padding-top: 5px;
  font-size:37px;
  text-align: center;

  /* transition effect. not necessary */
  transition: opacity .2s, visibility .2s;
}

@media(max-width:767px) {
  .img_description {
    visibility: visible;
    opacity: 1;
  }
}

.categorie_img:hover .img_description {
    visibility: visible;
    opacity: 1;
}


.vertical-align {
  display: flex;
  flex-direction: row;
}

.vertical-align > [class^="col-"],
.vertical-align > [class*=" col-"] {
  display: flex;
  align-items: center;     /* Align the flex-items vertically */
  justify-content: center; /* Optional, to align inner flex-items
                              horizontally within the column  */
}

/* Footer Styles */

footer {
    margin: 50px 0;
}

/* Responsive Styles */

@media(max-width:991px) {
    .customer-img,
    .img-related {
        margin-bottom: 30px;
    }
}

@media(max-width:767px) {
    .affix ~ .container-fluid{
        position: static;
        z-index: 0;
    }

    .navbar{
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 100;
    }

    body{
        padding-top: 50px;
    }

    .banner {
        display: none;
    }

    .banner-index{
        display: none;
    }
}

 /* Turn off parallax scrolling for tablets and phones. Increase/decrease the pixels if needed */
@media only screen and (max-device-width: 1024px) {
    .parallax {
        background-attachment: scroll;
    }
} 

/* index Site */

video{
    /*position: fixed;*/
    height: 400px;
    width: 100%;
    overflow: hidden;
}

.textbox{
    width: 100%;
    font-size: 60px;
    text-align: center;
    margin: 100px 0px 100px 0px;
}

.textbox span {
    display: inline-block;
    vertical-align: middle;
}

.index-img{
    margin: 0;
    width: 100%;
}

.index-gif{
    margin: 0;
    width: 100%;
    background-image: url('#');
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
/*************************************************************/
/*                  Slideshow                                */
/*************************************************************/

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.slideshow-prev, .slideshow-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -81px;
  padding: 20px;
  padding-top: 75px;
  padding-bottom: 75px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
}

/* Position the "next button" to the right */
.slideshow-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.slideshow-prev:hover, .slideshow-next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.slideshow-text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.slideshow-numbertext {
  color: #7f7f7f;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.slideshow-dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.slideshow-active, .slideshow-dot:hover {
  background-color: #717171;
}

/* Fading animation */
.slideshow-fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes slideshow-fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes slideshow-fade {
  from {opacity: .4}
  to {opacity: 1}
}



/*************************************************************/
/*                      Popup                                */
/*************************************************************/
.active-img:hover{
    box-shadow: 8px 8px 5px grey;
}

@media(max-width:370px){
  .col-xs-footer{
    width: 100%;
  }
}

/* IMAGE GRID */
#masonry {
  column-count: 2;
  column-gap: 1em;
}

@media(min-width: 30em) {
  #masonry {
    column-count: 3;
    column-gap: 1em;
  }
}

@media(min-width: 40em) {
  #masonry {
    column-count: 3;
    column-gap: 1em;
  }
}

@media(min-width: 60em) {
  #masonry {
    column-count: 4;
    column-gap: 1em;
  }
}

@media(min-width: 75em) {
  #masonry {
    column-count: 4;
    column-gap: 1em;
  }
}

.item {
  background-color: none;
  display: inline-block;
  margin: 0 0 1em 0;
  width: 100%;
  cursor: pointer;
}

.item img {
  max-width: 100%;
  height: auto;
  width: 100%;
  margin-bottom: -4px;
  
  /*idk why but this fix stuff*/
}

.item.active {
  animation-name: active-in;
  animation-duration: 0.7s;
  animation-fill-mode: forwards;
  animation-direction: alternate;
}

.item.active:before {
  content: "+";
  transform: rotate(45deg);
  font-size: 48px;
  color: white;
  position: absolute;
  top: 20px;
  right: 20px;
  background-color:rgba(0,0,0,0.85);
  border-radius: 50%;
  width:48px;
  height:48px;
  text-align:center;
  line-height:48px;
  z-index:12;
}

.item.active img {
  animation-name: active-in-img;
  animation-duration: 0.7s;
  animation-fill-mode: forwards;
  animation-direction: alternate;
}


@keyframes active-in {
  0% {
    opacity:1;
    background-color:white;
  }
  
  50% {
    opacity:0;
    background-color:rgba(0,0,0,0.90);
  }
  
  100% {
    opacity: 1;
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color:rgba(0,0,0,0.90);
  }
}

@keyframes active-in-img {
  0% {
    opacity:1;
    transform:translate(0%, 0%);
    top: 0;
    left: 0;
    max-width: 100%;
  }
  49% {
    opacity:0;
    transform: translate(0%, -50%);
  }
  50% {
    position:absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
  }
  100% {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  width: auto;
  max-height: 95vh;
  opacity:1;
  }
}

.google-maps-preview {
  width: 100%;
  height: 450px;
  background-image: url('../img/google-maps-preview.png');
}

.google-maps-preview button {
  margin: auto;
}