/* Product Page Enhancements */
#main-image {
    border: 4px solid #9b59b6;
    box-shadow: 0 0 18px rgba(155, 89, 182, 0.4);
    border-radius: 16px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 5px;
}

#app-title {
    font-family: 'MedievalSharp', cursive;
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 10px;
}

#app-description {
    font-family: 'Cinzel', serif;
    color: #e0d1f5;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Download Buttons */
#download-32,
#download-64 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

#download-32 {
    background: linear-gradient(to right, #6f42c1, #4b0082);
    border: 1px solid #ffd700;
    color: white;
}

#download-32:hover {
    background: #ffd700;
    color: #4b0082;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
}

#download-64 {
    background: linear-gradient(to right, #228B22, #006400);
    border: 1px solid #ffd700;
    color: white;
}

#download-64:hover {
    background: #ffd700;
    color: #004400;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
}

/* Carousel Container */
.carousel {
    border: 2px solid #9b59b6;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(186, 85, 211, 0.3);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    max-height: 400px; /* Reduced to match image max-height */
    position: relative;
}

.carousel-control-prev , .carousel-control-next {
    width: 5%;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd700;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Carousel Inner */
.carousel-inner {
    height: 350px; /* Slightly less than max-height to account for padding */
    overflow: hidden;
}

/* Carousel Images */
.carousel-item img {
    max-height: 350px; /* Consistent height for all images */
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
    display: block;
    margin: 0 auto;
}

/* Ensure App Details Section Stays Visible */
#app-container {
    min-height: 100vh; /* Ensure container spans the viewport height */
    display: flex;
    flex-direction: column;
}

#metadata-list {
    margin-top: 30px; /* Increased spacing */
    background: rgba(54, 30, 70, 0.7);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
    position: relative;
    z-index: 1;
    flex-grow: 0; /* Prevent it from stretching */
}

/* Footer Positioning */
.footer {
    margin-top: auto; /* Push footer to bottom */
}

.list-group-item {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5d5fa;
    font-family: 'Cinzel', serif;
}

.list-group-item strong {
    color: #ffd700;
    font-weight: bold;
}