body {
    margin: 0;
    padding: 0;
    background-image: url('../images/bighall.png');
    background-size: cover; /* Ensure background covers the entire area */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f0f0f0;
    width: 100vw;
    height: 100vh;
    display: flex; /* Use flexbox to vertically center content */
    justify-content: center;
    align-items: center;
}

.logout-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  background: #dc3545;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}
/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    .thumbnail {
        width: 45%; /* Adjust for 2 images per row on smaller screens */
    }
    body {
        background-size: contain; /* Use contain for smaller screens to prevent stretching */
    }
}

@media screen and (max-width: 480px) {
    body {
        background-size: contain; /* Maintain image quality for smaller screens */
    }
}



.carousel-container {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-top: 170px; /* Add margin to push the entire carousel down */
}

.carousel-control {
    position: absolute;
    top: 50%;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}


.container {
    max-width: 1200px; /* Increase to fit more thumbnails */
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

#thumbnailContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-items: center;
    padding: 20px;
}

.carousel-item {
    box-sizing: border-box;
    text-align: center;
}

.carousel-item img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

/* .carousel-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
} */

/* .company-name {
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
} */

.thumbnail-wrapper {
   
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
/* .company-name {
    position: absolute;
    top: 10px; 
    left: 50%; 
    transform: translateX(-50%); 
    color: rgb(14, 1, 1); 
    background-color: rgba(255, 255, 255, 0.7); 
    padding: 5px 10px; 
    font-size: 14px; 
    font-weight: bold; 
    text-transform: uppercase; 
} */
.company-name {
    position: relative; /* Remove absolute positioning */
    top: 70px; /* Adjust this value to move it closer/farther from the thumbnail */
    
    color: rgb(14, 1, 1); 
    background-color: rgba(151, 237, 231, 0.7); 
    padding: 5px 60px; 
    font-size: 18px; 
    font-weight: bold; 
    text-transform: uppercase; 
    z-index: 1;
    border: 6px solid black;
}
/* Style for the previous and next buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f7f7f7; /* Light background */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); /* Adds a 3D shadow effect */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
  }
  
  .carousel-button.left {
    left: 10px;
    top: 270px;
  }
  
  .carousel-button.right {
    right: 10px;
    top: 270px;
  }
  
  .carousel-button:hover {
    transform: translateY(-50%) scale(1.1); /* Makes the button slightly bigger when hovered */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5); /* Enhances the shadow when hovered */
  }
  
  /* Arrow icons */
  .carousel-button::before {
    content: '';
    border: solid black;
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 8px;
  }
  
  .carousel-button.left::before {
    transform: rotate(135deg);
  }
  
  .carousel-button.right::before {
    transform: rotate(-45deg);
  }
  .is-hidden {
    display: none;
  }
  /* Pagination display style */
#paginationDisplay {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
}
.plant-image {
    width: 150px; /* Adjust the size as needed */
    height: auto; /* Maintain aspect ratio */
    position: absolute; /* Position them absolutely */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Center adjustment */
    z-index: 1; /* Ensure it appears above other elements */
}


#leftPlantImage {
    left: 20px; /* Adjust distance from the left */
    top : 500px
}

#rightPlantImage {
    right: 20px; /* Adjust distance from the right */
    top: 500px
}
/* Add these to carousalstyle.css */

/* Fade-in animation for carousel items */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .carousel-item {
    animation: fadeIn 0.6s ease-out;
  }
  
  /* Hover effect for thumbnails */
  .carousel-item img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .carousel-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  
  /* Pulse animation for plant images */
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  .plant-image {
    animation: pulse 4s ease-in-out infinite;
  }
  .loading-spinner {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}