body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.imgur.com/zediAeX.png') no-repeat center center fixed;
    background-size: cover;
    filter: brightness(25%);
    z-index: -1;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* Stretch items to fill the container */
    width: 100%;
    height: 100%; /* Full height of the parent */
}

.topic-button {
    flex: 1 1 50%; /* Flex grow, shrink, and basis set to 50% */
    margin: 0;
    border: none;
    border-radius: 0;
    display: flex; /* Flex display for equal height */
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    background-size: 100%;
    background-position: center;
    transition: background-size 0.3s ease-in-out;
    filter: brightness(80%);
    background-color: black;
    font-size: 26px;
    font-weight: bolder;
    cursor: pointer;
}

.topic-button a {
    text-decoration: none;
    color: white;
}

.topic-button:hover {
    background-size: 110%; /* Zooms in the background */
    filter: brightness(100%);
}

.topic-button div {
    position: relative;
    z-index: 1;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

@media only screen and (max-width: 1440px) {
    .topic-button {
        font-size: 22px;
    }
}

/* Screen 1024px and lower: 2 buttons per row */
@media only screen and (max-width: 1024px) {
    .topic-button {
        flex: 1 1 50%; /* Two buttons per row */
        font-size: 18px;
    }

    .title {
        margin-top: 2.5rem; /* Space between buttons and title */
    }
}

/* Phones: 1 button per row */
@media only screen and (max-width: 768px) {
    .topic-button {
        flex: 1 1 100%; /* One button per row */
    }

    .title {
        margin-top: 2.5rem; /* Space between buttons and title */
    }

    .background-image {
        filter: brightness(10%);
    }

    .main-title {
        font-size: 24px !important;
        font-weight: bolder;
    }
}

.container-environmental {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Changed from center to flex-start */
    /* min-height: 100vh;  Changed from height to min-height */
    width: 100%;
    height: 100vh;
    /* max-width: 1200px; */
    margin: 0 auto;
    position: relative;
    overflow-x: hidden; /* Hides horizontal overflow */
    /* overflow-y: auto;  Allows vertical scrolling if needed */
}

.title {
    text-align: center;
    margin-bottom: 2.5rem; /* Space between title and buttons */
    text-transform: uppercase;
    width: 100%;
}

.main-title {
    font-size: 36px; /* Larger font size */
    margin: 0;
    color: white; /* Adjust color as needed */
}

.sub-title {
    font-size: 24px; /* Smaller font size */
    margin: 0;
    color: white; /* Adjust color as needed */
}

.intro {
    text-align: center;
}

.topics-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* margin-top: 1rem; */
    height: 100%;
    width: 100%;
    flex-grow: 1;
}

.title-description {
    text-align: center;
    width: 100%;
    color: white; 
}

@media only screen and (max-width: 768px) {
    .title-description h1 {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 1rem;
    }

    .title-description p {
        font-size: 0.8rem;
    }
}