/* Styles for hostingstart.html (homepage carousel) */

/* Responsive vertical sizing */
body {
    padding-top: 70px; /* Account for fixed navbar */
    overflow-x: hidden; /* Prevent horizontal scroll issues */
}

/* Ensure carousel controls are visible and clickable */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    z-index: 5;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Vertical responsive carousel */
#myCarousel {
    max-width: 100%;
    margin: 0 auto;
    height: calc(100vh - 120px); /* Full viewport height minus navbar and footer space */
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    height: 100%;
    position: relative;
}

.carousel-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden !important;
}

/* Force all non-active carousel items to be completely hidden */
.carousel-item:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.carousel-item.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.carousel-inner img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: static !important;
    z-index: 1;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    margin: 0 auto !important;
    float: none !important;
}

.carousel-item img {
    display: block;
    margin: 0 auto;
}

.carousel-indicators {
    z-index: 5;
}

/* Footer positioning */
#footer {
    margin-top: 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    #myCarousel {
        height: calc(100vh - 110px);
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 56px;
    }

    #myCarousel {
        height: calc(100vh - 106px);
    }
}
