/* Add your CSS styling here */
body {
    position: relative;
    /* Ensure the relative positioning for absolute children */
    min-height: 100vh;
    height: auto;
    /* Full viewport height */
    margin: 0;
    /* Reset margins */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    display: flex;
    /* Flexbox layout for the body */
    font-family: Montserrat;
    color: #333333;
}

body::before {
    content: "";
    position: absolute;
    /* Positioned absolutely relative to the body */
    top: 0;
    left: 0;
    width: 100%;
    /* Cover the entire width of the body */
    height: 100%;
    /* Cover the entire height of the body */
    background: url("/static/images/background.75dbde1d7f8b.png") center/cover no-repeat scroll;
    background-size: cover;
    /* Your background image */
    opacity: 0.4;
    /* Apply opacity to the pseudo-element only */
    z-index: -1;
    /* Ensure it stays behind all other content */
}

.main-content {
    margin-left: 220px;
    width: 100%;
    /* Same as the width of the sidebar */
    padding: 10px;
}

.sidebar {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    justify-content: space-between; /* Space between top links and sponsor */
    height: 100vh;
    width: 200px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #8CAF71;
    overflow-x: hidden;
    padding: 20px 0; /* Vertical padding */
    border-right: 2px solid #ccc;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .link-section a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 20px;
    color: #333333;
    display: block;
}

.sidebar .link-section a:hover {
    color: white;
}

.sponsor {
    padding: 10px 15px;
    margin-top: auto; /* Pushes to the bottom */
    text-decoration: none; /* Prevents underlining */
    color:  #333333; /* Set a fixed color */
    font-size: 20px;
    margin-bottom: 20px;
}

.sponsor a {
    color: inherit; /* Inherits color from the parent class .sponsor */
    margin-bottom: 50px;
    margin-top: 10px;
    font-size: 20px;
    justify-self: center;
}

.sponsor img {
    width: 90%; /* Ensure the images use the full width of the sidebar */
    height: auto;
    margin-top: 10px;
    justify-self: center;
}

@media (max-width: 768px) {
    body {
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sidebar {
        position: relative !important;
        width: 100vw !important;
        max-width: 100% !important;
        height: 42vw !important;
        overflow: hidden;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background-color: #8CAF71 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        z-index: 1000;
    }

    .sidebar .link-section {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 4px !important;
    }

    .sidebar .link-section a {
        font-size: 13px !important;
        padding: 4px 8px !important;
        white-space: nowrap;
        border-radius: 4px;
        color: #fff !important;
        background-color: transparent;
    }

    .sponsor {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
        font-size: 14px;
        padding: 2px 0 0 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .sponsor-title {
        font-weight: bold;
        margin: 2px 0 !important;
        font-size: 13px;
    }

    .sponsor-logos {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 50px;
    }

    .logo-box {
        width: 80px; /* aumentato da 70 */
        height: 70px; /* aumentato da 60 */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-sizing: border-box;
    }

    .logo-box img {
        max-height: 60px; /* aumentato da 50 */
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .main-content main {
        font-size: 16px !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }

    .footer {
        text-align: center !important;
        font-size: 14px !important;
        padding: 10px !important;
    }
}
