@import "../CSS/main.css";

.carousel-item img{
  height:650px;
}

.info_over_img{
    position: absolute;
    top:10%;
    left:40%;
    color:white;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 20px;
} 

.info_over_img p{
  font-size: 24px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: black; /* Makes the icon black */
}

/*..............................................................................................*/

.categories img{
  width:450px;
  height:500px;
}
.categories a{
  font-size: 20px;
}


@media (max-width: 450px){
  .categories img{
      width: 100%;
      height: auto;
  }

}
  
/*...................................................*/

  .AllProducts img{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width:350px;
    height:400px;
    border-radius: 10px;
    transition: 0.7s;
    cursor: pointer;
  }

  .AllProducts img:hover{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 1); /*horizontal offset, vertical offest, blur radius, color of the shadow*/
    width:355px;
    height:405px;
  }
  
  @media (max-width: 450px){
    .AllProducts img{
        width: 100%;
        height: auto;
    }

    .AllProducts .container{
      width: 100%;
  }
  
  }

/*..............CSS for the pagination..............*/

.page-link{
  color:rgb(255, 255, 255);
  border-radius: 5px;
  font-size: 20px;
  padding:6px;
  background-color: grey;
  border: solid 2px;
}

.page-link:hover{
  background-color: darksalmon;
}

.active-page{
  background-color: darksalmon;
}

/***********************************************************************************************/

.products-modal{
  background-color:rgb(0,0,0,0.3);
  height:100%;
  width:100%;
  position: fixed;
  top:0;
  left: 0;
  display: flex; /*the content of this modal will be in the center of the div*/
  align-items: center;
  justify-content: center;
}

.products-modal .img{
  background-color: rgb(255, 255, 255);
  padding: 20px 20px;
  border-radius:20px;
  box-shadow:0 4px 4px rgba(0,0,0,.1);
  position: relative;
}

.products-modal img{
  width:200px;
  height: auto;
}

.img .productData{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap:5px;
  font-weight:bold;
  text-align: center;
}

.img .img-desc{
  display: flex;
  align-items: center;
  justify-content: center;
  width:400px;
  gap:20px;
}
.img .desc{
  font-size:20px;
  width:50%;
}

.img .productData p{
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  padding:3px;
  font-size: 20px;
}

.products-modal .addToCartButton{
  background-color:black;
  color: white;
  border-radius: 5px;
  padding:10px 20px;
  font-size: 20px;
}

.close-button, .right-button, .left-button{
  position:absolute;
  color:rgb(255, 255, 255);
  font-size:20px;
  background-color: rgba(0,0,0,.2);
  border-radius: 5px;
  padding:5px;
  cursor: pointer;
}

.close-button{ 
/*the distance between the top and the button is 10, and the distance between the right edge of the div and the button will be 10px*/
  top:10px;
  right:10px;
}

.left-button{
  left:10px;
  top:50%;
}

.right-button{
  right:10px;
  top:50%;
}

.display-none-modal{
  display: none;
}

@media (max-width: 700px) {

  .img{
      width:100%;
      padding: 10px 20px;
  }
  
  .products-modal img{
      width:150px;
      height:auto;
  }

  .img .productData p{
      background-color: rgb(0,0,0,0.4) ;
      border-radius: 2px;
      padding:3px;
      font-size: 18px;
  }

  .img .img-desc{
      width: 100%;
  }

  .img .img-desc .desc{
      font-size: 14px;
  }

  
  .img .productData p{
      background-color: rgb(0,0,0,0.4) ;
      border-radius: 2px;
      padding:3px;
      font-size: 14px;
  }

}

/**********************************************************************************************/

.categories .category a{
  bottom:10%;
  left:55%;
  color:white;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 20px;
  width:25%;
  text-align: center;
  position: absolute;
}
.categories .category p{
  bottom:10%;
  left:55%;
  color:white;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 20px;
  width:25%;
  text-align: center;
  position: absolute;
  margin-bottom: 60px;
}

.categories .category{
  position: relative;
}


@media (max-width: 500px) {

  .categories .category p{
    margin-bottom: 100px;
  }
  .categories .container{
    width: 95%;
  }

}

