.body {
    margin: 0;
}
.background {
    background-color: white;
}


.productsWrapper {
  height: 580px;
	background-image: url('../images/products/productsBg.png');
	background-size: 100% auto;
	background-position: center;
  background-repeat: no-repeat;
}

.layer {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 114, 186, 0.4);
}

.productsCoverText {
    align-self: center;
    text-align: center;
    color: white;
    font-size: 45px;
    letter-spacing: 6px;
}

.productsButtonWrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 5% 20%;
    gap: 20px;
    justify-content: space-around;
}

.productsButton {
  padding: 10px 20px;
  color: #000;
  background-color: #fff;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.productsButton:hover {
    cursor: pointer ;
    background-color: #0872BA;
    color: white;
}

.productsButton.activeLink{
    background-color: #0872BA;
    color: #fff;
}

section{ 
  margin: auto;
  max-width: 1300px;
}

.sectionProductsGalery {
    display: flex;
    max-height: 1300px;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.sectionProductsGalery.hidden{
  visibility: hidden;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.galeryContent {
    display: flex;
    width: 23%;
    height: auto;
    min-width: 300px;
    max-height: 300px;
    margin-bottom: 5%;
    transition: 1s ease-out ;
    position: relative;
  }
  
  .galeryImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeryContent:hover .search  {
    background-color:#000;
    opacity:0.7;
    width:100%;
    height:100%;
    cursor: pointer;
}

.search {
    position:absolute;
    background-image: url('../images/icons/search.png');
    background-repeat: no-repeat;
    background-size: 30% auto;
    background-position: center;
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}

.selected {
    background-color: #0872BA;
    color: white;
}

.modal {
    display: none; 
    
    position: fixed; 
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    /* overflow: auto;  */
    background-color: rgba(0,0,0,0.7);;
  }
  
  .modal-content {
    position: fixed;
    max-height: 600px;
    top: 5%;
    transform: translate(50%);
    background-color: #fefefe;
    padding: 0 20px 20px 20px;
    border: 1px solid #888;
    width: 50%;
    margin:auto;
    right: 45%;
    height: fit-content;
    /* height: 80%; */
  }

  .modalContentImage {
      margin: auto;
      width: 50%;
  }
  
  .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  /* Slideshow container */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: auto;
  }
  
  /* Next & previous buttons */
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    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);
  }
  
  /* Fading animation */
  .fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
  }
  
  @keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
  }
  
  /* On smaller screens, decrease text size */
  @media only screen and (max-width: 300px) {
    .prev, .next,.text {font-size: 11px}
  }

  .carouselImage {
      width: 100%;
      max-height: 500px;
  }

  @media only screen and (max-width: 900px) {
    .productsWrapper {
        height: 250px;
    }
  }

  @media only screen and (max-width: 400px) {
    .productsWrapper {
        height: 200px;
    }

    .modal-content{
      width: 90%;
      right: 50%;
      /* left: 0; */
      /* right: 0; */
    }
  }
