/* Container styling */
.retroeh-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: calc(100% - 20px);
    height: 360px;
    color: #fff;
    padding: 20px;
    margin: 10px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    font-size: 18px;
    background-color: #010a01;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Background overlay */
.retroeh-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6; /* Adjust the opacity as desired */
    z-index: 1;
    filter: brightness(0.6); /* Optional: Darken the background slightly */
}

/* Content styling */
.retroeh-container .retroeh-box-art,
.retroeh-container .retroeh-details {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
}

/* Box art styling */
.retroeh-container .retroeh-box-art {
    flex: 0 0 auto;
    max-height: 320px;
    margin-right: 20px;
}

.retroeh-container .retroeh-box-art img {
    max-height: 320px;
    height: auto;
    width: auto;
    border: 5px solid #fff;
    border-radius: 10px;
}

/* Game details styling */
.retroeh-container .retroeh-details {
    flex: 1;
    padding: 0 20px;
    text-align: left;
}

.retroeh-container .retroeh-details h2 {
    margin: 0 0 10px;
    font-family: "Tiny5", sans-serif; /* Custom font */
    line-height: .8;
    color: #39ff14; /* Neon green text */
}

.retroeh-container .retroeh-details p {
    margin: 0;
    padding: 0.5rem 1rem;
    margin-right: -40px;
    background-color: rgba(255, 255, 255, 0.3); /* Semi-transparent background */
    font-size: 1.5rem;
    line-height: 1;
    color: #fff; /* Ensure text remains readable */
}

/* Flex column layout for mobile devices */
@media screen and (max-width: 768px) {
    .retroeh-container {
        flex-direction: column;
        align-items: center;
        height: auto; /* Allow the container to adjust height */
    }

    .retroeh-container .retroeh-box-art {
        margin-right: 0; /* Remove right margin for better alignment */
        margin-bottom: 20px; /* Add some space below the box art */
    }

    .retroeh-container .retroeh-details {
        text-align: center; /* Center-align the text for mobile */
        padding: 0; /* Remove extra padding for better fit */
    }

    .retroeh-container .retroeh-details p {
        padding: 0.5rem 1rem;
        margin-left: -40px;
    }
}
