* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns content to the top */
    align-items: center;
    background: linear-gradient(to right, #2c5364, #0f2027);
    overflow: auto; /* Enable scrolling */
    padding-top: 30px; /* Add some padding at the top */
}

.slider {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 30s linear infinite; 
}

.slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 120px; /* Control the space between title and slider */
}

/* Pause the animation when the class is added */
.slider.paused {
    animation-play-state: paused;
}

@keyframes rotate {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

.slider span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(350px);
}

.slider span img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: 2s;
    cursor: pointer;
}

.slider span:hover img {
    transform: translateY(-50px) scale(1.2);
}

.slider span p {
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 12px;
    transition: opacity 0.3s;
}

.slider-title {
    font-family: 'Arial', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
}

.description-container {
    height: auto;
    max-width: 800px;
    padding: 20px;
    text-align: left;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    background: rgba(0, 0, 0, 0.6); /* Slightly transparent background for readability */
    border-radius: 10px;
    margin-top: 160px;
}

.description-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.description-text {
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-wrap; /* Preserve line breaks */
}

.download-container {
    text-align: center; /* Center the title and logos */
    margin-top: 40px; /* Space above the download section */
    color: #ffffff; /* Text color */
}

.download-title {
    font-size: 28px; /* Title size */
    font-weight: bold; /* Title weight */
    margin-bottom: 20px; /* Space between title and logos */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Arial', sans-serif;
}

.app-logos {
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center the logos */
    gap: 20px; /* Space between logos */
}

.app-logo {
    width: 150px; /* Set a consistent width for logos */
    height: auto; /* Maintain aspect ratio */
}

.footer {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: #ffffff;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 20px; /* Space above the footer */
    font-family: 'Arial', sans-serif;
}

.footer p {
    margin: 10px 0; /* Add vertical spacing between each paragraph */
}

.footer a {
    color: #ffffff; /* Footer link color */
    text-decoration: underline; /* Underline links */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .slider {
        width: 300px; /* Increase slider width */
        height: 600px; /* Increase slider height */
    }

    .slider-title {
        display: flex; /* Change to flex */
        /* flex-direction: row; Set direction to row */
        justify-content: center; /* Center titles horizontally */
        flex-wrap: wrap; /* Allow wrapping if needed */
        margin-bottom: 20px; /* Add some space below the title */
        font-size: 18px;
    }

    .description-container,
    .download-container {
        margin-top: 20px; /* Adjust margin for smaller screens */
        padding: 10px; /* Add padding for better spacing */
    }

    .download-title {
        font-size: 18px; /* Set font size for the download title */
        margin-bottom: 10px; /* Add space below the title */
        text-align: center; /* Center the download title */
    }

    .app-logos {
        display: flex; /* Ensure app logos are displayed flexibly */
        flex-direction: row; /* Ensure app logos are in a row */
        justify-content: center; /* Center logos */
        gap: 15px; /* Adjust gap for smaller screens */
        /* height: 290px; */
    }

    .app-logo {
        width: 150px; /* Set a consistent width for logos */
        height: auto; /* Maintain aspect ratio */
    }

    .footer {
        font-size: 14px; /* Set font size for footer text */
        padding: 10px; /* Add padding for the footer */
    }

    .footer p {
        margin: 5px 0; /* Add vertical spacing between each paragraph */
    }
}
