/* Styles CSS pour le site Bookshop */
body {
    font-family: Arial, sans-serif;
}

.navbar {
    background-color: #333;
}

.nav-link {
    color: #fff !important;
}

.dropdown-menu {
    background-color: #333;
    border-color: #444;
}

.dropdown-item {
    color: #fff;
}

.dropdown-item:hover {
    background-color: #444;
}

/* Autres styles CSS pour les différentes sections du site */


body {
   position: relative;
}
.book-card {
    height: 100%;
}
.book-image {
    widows: 25%;
    height: auto;
    object-fit: cover;
}
#advancedSearchBar {
    display: none;
    transition: all 0.3s ease;
}





/* Styles pour les écrans de 600px et plus */
@media (min-width: 600px) {
  .navbar-toggler {
    display: none;
  }
  
  .navbar-collapse {
    display: flex !important;
    justify-content: center;
  }
  
  .navbar-nav {
    flex-direction: row !important;
  }
  
  .nav-item {
    margin-right: 1rem;
  }
  
  .dropdown-menu {
    position: absolute;
    display: none;
  }
}

/* Styles pour les écrans de moins de 600px */
@media (max-width: 599px) {
  .navbar-toggler {
    display: block;
  }
  
  .navbar-collapse {
    display: none;
  }
  
  .navbar-nav {
    flex-direction: column !important;
  }
  
  .nav-item {
    margin-bottom: 0.5rem;
  }
  
  .dropdown-menu {
    position: static;
    display: block;
  }
}





 main {
    flex: 1;
  }
  footer {
    background-color: #000;
    color: #fff;
    padding: 2rem 0;


    padding: 20px 0; 

    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1000;

    margin-top: 50px;

}
.footer-logo {
max-width: 150px;
height: auto;
}
.slide-info img {
max-width: 100%;
height: auto;
}
.copyright {
background-color: #1a1a1a;
padding: 1rem 0;
}




.news-carousel {
  height: 500px;
  overflow: hidden;
  position: relative;
}
.news-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.news-item.active {
  opacity: 1;
}
.news-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Masquer les sous-menus par défaut */
.dropdown-menu.list-unstyled {
  display: none;
}



.chat-container { 
    height: 400px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    overflow-y: auto; 
    margin-top: 20px; 
}
.chat-message { 
    margin-bottom: 10px; 
    padding: 10px; 
    border-radius: 5px; }
.user-message { 
    background-color: #007bff; 
    color: white; 
}
.seller-message { 
    background-color: #f8f9fa; 
}




.zoom-in {
    animation: zoomIn 0.3s forwards;
}

.zoom-out {
    animation: zoomOut 0.3s forwards;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


/* Auth0 CSS */

.hidden {
  display: none;
}

label {
  margin-bottom: 10px;
  display: block;
}











/* Modal Image */
 
#modalImage {
    max-width: none;
    max-height: none;
    cursor: grab;
}
.zoomable {
    cursor: zoom-in;
}
#cameraPreview {
    width: 100%;
    height: auto;
    display: none;
}
.image-container {
    overflow: auto;
    max-height: 80vh;
    position: relative;
}
#previewContainer {
    display: flex;
    align-items: center;
}
#previewContainer img {
    max-width: 100px;
    margin-left: 10px;
}


