footer {
    background-color: rgb(248, 249, 250);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.animated.fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
}

.input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.product-card {
    transition: 250ms all;
}

.product-card:hover {
    transform: scale(1.1);
}

.product-card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.container-xxl {
    max-width: 1530px;
}

#map {
    height: 400px;
    width: 100%;
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
}

.sticky-top {
    position: sticky;
    top: 20px;
}

.update-image {
    object-fit: cover;
}

#main {
    transition: transform 200ms ease-out, opacity 200ms ease-out;
    -webkit-transition: -webkit-transform 200ms ease-out, opacity 200ms ease-out;
    -moz-transition: -moz-transform 200ms ease-out, opacity 200ms ease-out;
    -o-transition: -o-transform 200ms ease-out, opacity 200ms ease-out;
}

#main.transition {
    -webkit-transform: translateX(100px);
    -moz-transform: translateX(100px);
    -o-transform: translateX(100px);
    transform: translateX(100px);
    opacity: 0;
}

.preview-container {
    position: absolute;
    display: none;
    width: 480px;
    height: 270px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Hide iframe until loading is complete */
.preview-container iframe {
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default */
}

/* Loading spinner styles */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}
