body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.main-content {
    margin-left: 11.25rem; /* 180px */
    padding: 1.25rem;      /* 20px */
}

.static-title {
    font-size: 2.5rem;
    font-weight: 650;
    color: #2f2f2f;
    background-color: #dce6d4;
    padding: 1.25rem 2.5rem;
    text-align: center;
    border-left: 0.5rem solid #6d8f5e;
    border-bottom: 0.3125rem solid #b4c9a9;
    border-radius: 0.75rem 0 0.75rem 0;
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.15);
    margin: 3.125rem 0 1.875rem 12.5rem;
    width: fit-content;
    max-width: 90%;
    transition: all 0.3s ease-in-out;
}

.static-title:hover {
    transform: scale(1.03);
}

.sidebar {
    background-color: #495950;
    width: 10rem;
    height: 100%;
    top: 0;
    position: fixed;
    padding-top: 2rem;
    left: 0;
    z-index: 1000;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem;
    display: block;
    transition: background 0.3s;
}

.sidebar ul li a.active {
    background-color: #b7cfa2;
    color: black;
    font-weight: bold;
    border-left: 0.25rem solid #334f1b;
    padding-left: 0.75rem;
    transition: background-color 0.3s ease;
}

.sidebar ul li {
    margin-bottom: 1.25rem;
}

.sidebar ul li a:hover {
    background-color: #b7cfa2;
    color: black;
}

.section {
    background-color: #ffffff;
    padding: 1.25rem;
    margin-bottom: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0.125rem 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-content img {
    width: 13.125rem;
    height: 15.625rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.imagegif-content {
    width: 100%;
    text-align: center;
}

.imagegif-content img {
    width: 34.375rem;
    height: 27.5rem;
    border-radius: 0.75rem;
    display: inline-block;
}

.wide-image img {
    width: 100%;
    justify-content: center;
    max-width: 75rem;
    max-height: auto;
    border-radius: 0.5rem;
    margin-top: 0.625rem;
}

#movement .wide-image:last-child img {
    max-width: 50rem;
    max-height: 50rem;
    justify-content: center;
}

.content-wrapper {
    display: flex;
    background-color: #f2f4ed;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.8125rem;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: nowrap;
}

.text-content,
.text-content2 {
    flex: 1;
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-content2 {
    text-align: center;
}

@media (max-width: 48rem) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .text-content,
    .text-content2 {
        font-size: 1rem;
    }

    .image-content img,
    .imagegif-content img {
        max-width: 100%;
        height: auto;
    }

    .sidebar {
        display: none;
    }

    .static-title {
        margin: 2rem auto;
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
        width: 90%;
    }
}

.content-wrapper:nth-of-type(even) {
    flex-direction: row-reverse;
}

.back-to-main {
    display: flex;
    justify-content: right;
    margin-top: 0.375rem;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 9999;
}

.back-button {
    background-color: #495950;
    color: #fff;
    position: fixed;
    padding: 0.5rem 1.125rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    opacity: 0.8;
    z-index: 99999;
}

.back-button:hover {
    background-color: #072213;
    transform: translateY(-0.1875rem);
}

.back-button:active {
    transform: translateY(0.5rem);
}

.status {
    font-weight: bold;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.near-threatened {
    color: black;
    border: 0.125rem solid gold;
    background-color: #fff9c4;
}

.near-threatened:hover {
    background-color: #fff176;
}

.vulnerable {
    color: black;
    border: 0.125rem solid red;
    background-color: #ffcdd2;
}

.vulnerable:hover {
    background-color: #ef9a9a;
}
