body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at top left, #1abc9c, #2e3192);
    font-family: 'Open Sans', sans-serif;
}

header {
    width: 100%;
    background: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
}

.logo-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.beneficiar-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 50px;
}

.beletage-logo {
    height: 33.25px; /* Increased size by 1.33 times */
}

.bebefiar {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px; /* Adjusted spacing */
}

.title {
    text-align: center;
    margin: 20px 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.title h1 {
    color: white;
    font-size: 24px;
    word-wrap: break-word;
}

.slider {
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
    height: 300px; /* Increased height */
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 960px;
    display: none; /* Hide the slider */
}

.slider::before,
.slider::after {
    background: linear-gradient(to right,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    content: "";
    height: 300px; /* Match the new slider height */
    position: absolute;
    width: 200px;
    z-index: 2;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    display: flex;
    width: calc(250px * 14); /* Adjusted for looping */
    animation: scroll 40s linear infinite;
}

.slide {
    height: 100%; /* Use 100% to fill the container */
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* Ensure images fit within the slides */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); } /* Adjusted for looping */
}

.container {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.animation {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.text {
    margin-top: 20px;
    font-size: 24px;
    color: white;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping */
}

.download-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping */
}

.download-section p {
    margin: 0;
    font-size: 18px;
    color: white;
}

.download-section a img {
    height: 20px; /* Halved the height */
    margin-right: 10px; /* Added space between icon and text */
    cursor: pointer;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #2980b9;
}

.inverted-btn {
    background-color: white;
    color: #3498db;
}

.inverted-btn:hover {
    background-color: #f0f0f0;
}

.play-button {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.iframe-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px; /* Twice as much space between iframes */
    margin: 20px 0;
    width: 100%;
    flex-wrap: wrap; /* Allow wrapping */
}

.iframe-container {
    flex: 1;
    height: 350px; /* 30% smaller than 500px */
    width: 35%; /* Adjust the width to keep aspect ratio */
    max-width: 560px; /* 30% smaller than 800px */
    position: relative; /* Added to position overlay */
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
}

.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
    background: transparent;
}

.button-container {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.btn-primary {
    padding: 22.5px 45px; /* Increased size */
    font-size: 27px; /* Increased size */
    background-color: white; /* Inverted color */
    color: #3498db; /* Inverted color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #f0f0f0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px 20px;
    }
    
    .logo-container {
        flex-direction: column;
        align-items: center;
    }
    
    .bebefiar {
        margin: 10px 0;
    }
    
    .slider {
        width: 100%;
    }

    .iframe-wrapper {
        flex-direction: column; /* Stack iframes vertically */
        align-items: center; /* Center them */
    }

    .iframe-container {
        width: 90%; /* Adjust width for better fit */
        height: 250px; /* Smaller height for smaller screens */
        margin-bottom: 20px; /* Space between stacked iframes */
    }

    .text {
        flex-direction: column;
    }

    .download-section {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 80%;
        margin: 10px auto;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}
