﻿.Stella-Overview {
    position: relative;
    background-image: url('/images/Backgrounds/background-fleetyard.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    height: calc(100vh - 60px);
    overflow: hidden;
    padding: 0;
    margin: 0;
    z-index: 1;
}

    /* Dark overlay for the background */
    .Stella-Overview::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        z-index: 0;
    }

/* Section Heading */
.StellaLandingPageHeading {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: white;
}

/* Container for each product image */
.Selection {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ShadowsOfPeace-Selection {
    grid-area: ShadowsOfPeace-Selection;
}

.GalacticConflict {
    grid-area: GalacticConflict-Selection;
}

/* Product images */
.Selection img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.5s ease;
    opacity: 0.4;
    display: block;
}

/* Info box styling */
.info {
    text-align: center;
    color: white;
    opacity: 0; /* Hidden initially */
    transition: opacity 0.5s ease; /* Smooth fade-in transition */
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    position: absolute;
    width: calc(100% - 40px); /* Add padding to keep the text away from the edges */
    max-width: 90%; /* Restrict the width to prevent overflow */
    left: 50%;
    transform: translateX(-50%);
    bottom: 0; /* Position at the bottom of the .Selection container */
}

/* Hover effect */
.Selection:hover .info {
    opacity: 1;
}

.Selection:hover img {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .Stella-Overview {
        flex-direction: column;
        height: auto; /* Allow height to adjust based on content */
        align-items: center; /* Center align items for better mobile view */
        padding: 20px 0; /* Add padding to create space around sections */
    }

    .StellaLandingPageHeading {
        position: relative;
        top: 0;
        left: 0;
        transform: none; /* Remove translation on mobile */
        margin-bottom: 20px; /* Add space between heading and the next section */
        text-align: center;
        padding: 0 20px; /* Add side padding for smaller screens */
    }

    .Selection {
        width: 100%; /* Take full width */
        margin-bottom: 20px; /* Add spacing between sections */
    }

    .info {
        width: 90%; /* Constrain info box width */
        padding: 10px; /* Adjust padding for mobile */
    }
}

