body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #333;
    color: white;
    padding: 1em;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    flex: 1;
    padding: 1em;
    padding-bottom: 60px; /* Add padding to the bottom to prevent overlap */
}

button {
    background-color: #28a745;
    border: none;
    color: white;
    padding: 0.5em 1em;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    margin-top: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    animation: fadeIn 1s ease-in; /* Add fade-in animation */
}

.product {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0; /* Start hidden */
    animation: slideIn 0.5s forwards; /* Slide in animation */
}

.product img {
    width: auto;
    height: 200px;
    margin-bottom: 1em;
    transition: transform .2s;
}

.product:hover img{
    transform: scale(1.2);
}

.price p{
    display: inline;
}
/* .product button {
    background-color: #28a745;
    border: none;
    color: white;
    padding: 0.5em 1em;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    margin-top: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
} */

.product button:hover {
    background-color: #218838;
}

.product button:active {
    transform: scale(0.95); /* Add a slight shrink animation on click */
    transition: transform 0.1s;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
    position: relative;
    width: 100%;
    bottom: 0;
}

/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.fab:hover {
    transform: scale(1.1); /* Slightly enlarge FAB on hover */
}

.fab span {
    position: absolute;
    top: 10px;
    right: 14px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
}

/* Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    animation: fadeIn 0.5s ease-in; /* Add fade-in animation */
}

.modal-content {
    background-color: white;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    animation: slideDown 0.5s forwards; /* Slide down animation */
}

.modal-content img {
    width: 100px;
    height: 100px;
    margin-right: 10px;
    vertical-align: middle;
}

#cart-items-modal li {
    vertical-align: middle;
    display: flex;           /* Use flexbox layout for li */
    align-items: center; /* Align items at the start of the container */
    gap: 20px;               /* Add some space between the image and the cart div */
}

#cart-items-modal li span {
    display: flex;           /* Use flexbox for the cart div */
    flex-direction: column;  /* Stack items vertically */
}

.cart button {
    margin-top: 5px;        /* Add space between the text and the button */
}

.modal-content ul {

    padding: 0;
    margin: 0;
    list-style: none;
}


#cart-items-modal li{
    margin-bottom: 10px;
}

#cart-items-modal li div{
    margin-bottom: 20px;
    background-color: #aaa;
    border-radius: 5px;
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

#marquee_div{
    background-color: #218838;
    color: #ffffff;
}

/* Slider */

.slideshow-container {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

img {
    width: 100%;
    vertical-align: middle;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.commit-box{
    display: inline-block;
    align-self: center;
    margin: 2px 2px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 20%;
    box-sizing: border-box;
}

.commit-box img{
    height: 50px; 
    width: auto;
}


/* Responsive design */
@media (max-width: 590px) {
     .commit-box{
        width: 30%;
        height: 200px;
    }
    
}

@media (min-width: 600px) {
    #products {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (min-width: 900px) {
    #products {
        grid-template-columns: repeat(3, 1fr);
    }

  
    
}

@media (min-width: 1200px) {
    #products {
        grid-template-columns: repeat(4, 1fr);
    }

}

@media (min-width: 1500px) {
    #products {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
