/* my_css.css */

.carousel {
    position: relative;
    width: 600px; /* Width of the carousel */
    height: 600px; /* Height of the carousel, now the same as width for square aspect ratio */
    margin: 0 auto 20px; /* Reduced top margin and set bottom margin to create space above the footer */
    overflow: hidden; /* Hides the overflowing parts of images */
}

.game-slide {
    transition: opacity 2s ease-in-out; /* Smooth transition for the fade effect */
    position: absolute; /* Absolute positioning to overlay slides */
    top: 0;
    left: 0;
    width: 100%; /* Full width of the carousel */
    height: 100%; /* Full height of the carousel, now the same as width */
    display: none; /* Hide slides by default */
}

.game-slide img {
    width: 100%; /* Scale the image to fill the container */
    height: 100%; /* Now the height will also scale to fill the container */
    object-fit: contain; /* Ensures the image fits within the slide without being cropped or stretched */
}

.text {
    position: absolute;
    top: 0px; /* Align the text at the top */
    width: 100%; /* Ensure the text spans the full width of the image */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white; /* Text color */
    text-align: center; /* Center the text horizontally */
    padding: 10px 0; /* Padding above and below the text */
}