/* Global CSS */
* {
    box-sizing: border-box;
}

/* set overflow y to hidden to prevent up and down scroll movement */
html {
    overflow-y: hidden;
    overflow-x: auto;
    position: relative;
}

body {
    min-width: 100%;
    position: absolute;
    overflow-x: hidden;
    background-color: #E8F3F1;
}

/* adding fonts now to allow for more accurate spacing */

h1 {
    font-family: "Space Grotesk";
    font-weight: 700;
    color: #081D3D;
    font-size: 48px;
    text-transform: uppercase;
}

h2 {
    font-family: "Space Grotesk";
    font-weight: 500;
    color: #112E47;
    font-size: 30px;
    text-transform: uppercase;
}

h3 {
    color: #081d08;
    font-family: "Space Grotesk";
    font-size: 26px;
    font-weight: 400;
}

p {
    color: #081D3D;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.section-title {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 907;
    top: 10%;
    left: 3%;
    gap: 12px;
}

/* next section buttons */
#next-section-btn {
    position: absolute;
    bottom: 1.5%;
    right: 1%;
    width: 186px !important;
    z-index: 910;
}

#next-section-btn:hover {
    font-size: 18px;
    transition: all .3s ease-in-out;
}

@media (min-width: 1024px) {
    #next-section-btn {
        position: absolute;
        bottom: 10%;
        right: 1%;
        width: 186px !important;
        z-index: 910;
    }
}

/* Mobile Menu */

.nav-mobile-button {
    display: flex;
    position: fixed;
    z-index: 998;
    top: 16px;
    left: 16px;
}

.nav-menu {
    display: none;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    background: #FFF9EA;
    gap: 24px;
    padding: 42px;
    height: 100vw;
    box-shadow: -1px 5px 12px 0 rgba(0, 0, 0, 0.25);
}

.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu svg {
    position: absolute;
    top: 16px;
    left: 16px;
}

.mobile-menu a {
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Space Grotesk";
    color: #081D3D;
    font-size: 24px;
}

.mobile-menu h2 {
    padding-bottom: 24px;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none;
        left: -100;
    }
}

/* Clickable Icons */

.info-icons {
    cursor: pointer;
}

.card-close-btn {
    position: absolute;
    right: 5%;
    cursor: pointer;
}

/* Deforestation - Index */

#deforestation-illustration {
    position: relative;
    z-index: 1;
    top: 0;
    left: 0;
    height: 100vh;
    padding-left: 300px;
}

#index-header h1 {
    font-size: 42px;
}

/* moved this heading into its own section to allow for independent positioning */
#deforest-header {
    position: absolute;
    top: 20%;
    left: 24.3%;
    z-index: 909;
}

#index-header {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 30%;
    left: 3%;
    z-index: 910;
    gap: 8%;
}

#index-header div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 600px;
}

/* when phone screen is turned horizontally, this heading becomes off centered. should we pin the heading inside of the svg ? or use media query */

.check-list li {
    list-style-image: url('../img/list-checkmark.svg');
    font-family: "DM Sans";
    font-weight: 200;
}

.check-list {
    margin-top: 16px;
    margin-bottom: 16px;
    padding-left: 1em;
}

.deforestation-info-card {
    background-color: #FFF9EA;
    padding: 24px;
    position: fixed;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    border-radius: 14px;
    width: 96%;
    height: auto;
    box-shadow: -1px 5px 12px 0 rgba(0, 0, 0, 0.25);
}

#rainforest-card {
    box-sizing: border-box;
    background-color: #2D3E40;
    color: #FFF9EA;
    padding: 24px;
    position: absolute;
    z-index: 500;
    top: 50%;
    right: 0;
    left: auto;
    width: 420px;
    height: 225px;
    transform: translateY(-50%);
    border-radius: 14px;
    margin-right: 30px;
    box-shadow: -1px 5px 12px 0 rgba(0, 0, 0, 0.25);
}

#rainforest-card .deforestation-button {
    margin: auto;
    margin-top: 1em;
}



#rainforest-card h3 {
    color: #FFF9EA;
}

.deforestation-button {
    display: flex;
    width: 126px;
    height: 44px;
    padding: 12px 20px 12px 20px;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    background: #0D7C66;
    color: #FFF9EA;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    margin-top: 0.5em;
}

.deforestation-button:hover {
    background-color: #096352;
    transition: all 0.3s ease-in-out;
}


/* Overfishing */

#overfishing-illustration {
    height: 100vh;
    position: relative;
}

.overfishing-info-card {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    z-index: 907;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 14px;
    background: #FFF9EA;
    box-shadow: -1px 5px 12px 0 rgba(0, 0, 0, 0.25);
    width: 96%;
    height: auto;
}


.overfishing-button-1 {
    display: flex;
    width: 126px;
    height: 44px;
    padding: 12px 20px 12px 20px;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    background: #112E47;
    color: #FFF9EA;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
}

.overfishing-button-1:hover {
    background-color: #05233a;
    transition: all 0.3s ease-in-out;
}

#cta-overfishing-card {
    box-sizing: border-box;
    position: absolute;
    right: 0;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 14px;
    background: #FFF9EA;
    box-shadow: -1px 5px 12px 0 rgba(0, 0, 0, 0.25);
    width: 300px;
    height: 300px;
    border: 0.8px solid #91FFEA;
    background: #081D3D;
    color: #FFF9EA;
    margin-right: 50px;
}

#cta-overfishing-card h3,
#cta-overfishing-card p {
    color: #FFF9EA;
}



/* Landfills */

/* background illustration global */
#Layer_2 {
    height: 100vh;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
}

/* layer styles for illustration will go here */


/* landfill button styles */
.landfill-button-1 {
    display: flex;
    width: 126px;
    height: 44px;
    padding: 12px 22px 12px 20px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: #E76F51;
    text-decoration: none;
    color: #FFF9EA;
    text-transform: capitalize;
    font-family: "DM Sans";
    font-weight: 400;
}

.landfill-button-1:hover {
    background-color: #ce5f49;
    transition: all 0.3s ease-in-out;
}

.landfill-button-2 {
    display: flex;
    width: 150px;
    height: 52px;
    padding: 12px 22px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1.6px solid #081D3D;
    background: #FFF;
    color: #081D3D;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    text-transform: capitalize;
}

.landfill-button-2:hover {
    font-size: 18px;
    transition: all 0.3s ease-in-out;
}

/* still need to do landfill button hover styles */


/* landfill info card styles */

.landfill-info-card {
    width: 93%;
    box-sizing: border-box;
    position: fixed;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 14px;
    background: #FFF9EA;
    box-shadow: -1px 5px 12px 0 rgba(0, 0, 0, 0.25);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* landfill info card 1 */

#landfill-info-card-1 {
    display: none;
}

/* landfill info card 2 */

#landfill-info-card-2 {
    display: none;

}

/* landfill info card 3 */

.icon-and-heading-container {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

#landfill-info-card-3 {
    display: none;

}


/* landfill cta card styles */

#landfill-info-card-4 {
    position: absolute;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 16px;
    border-radius: 14px;
    background: #FFF9EA;
    box-shadow: -1px 5px 12px 0 rgba(0, 0, 0, 0.25);
    background-color: #E76F51;
    color: #FFF9EA;
    width: 300px;
    right: 0;
    left: auto;
    top: 40%;
    transform: translateY(-50%);
    margin-right: 30px;

}

#landfill-info-card-4 ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
    margin-top: 4px;
}

#landfill-info-card-4 li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-family: "DM Sans";
    font-size: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    padding: 12px;
}

#landfill-info-card-4 h3 {
    color: #FFF9EA;
}

.list-number {
    display: flex;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 32px;
    background-color: #FFF9EA;
}

.list-number>h4 {
    font-size: 18px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    color: #081D3D;
    line-height: 32px;
}

/* Desktop Styles */

@media (min-width: 1024px) {

    /* Global */
    h1 {
        font-size: 72px;
    }

    h2 {
        font-size: 44px;
        text-transform: uppercase;
    }

    h3 {
        font-size: 36px;
    }

    h4 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }

    .nav-mobile-button {
        display: none;
    }

    .nav-menu {
        position: fixed;
        z-index: 999;
        top: 24px;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 112px;
        justify-content: center;
        align-items: center;
    }

    /* nav link styles and hover animation */
    nav>a {
        position: relative;
        color: #081D3D;
        text-transform: uppercase;
        font-family: "Space Grotesk";
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
    }

    nav>a::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: #081D3D;
        border-radius: 4px;
        transition: width .2s ease-in-out;
    }

    nav>a:hover::after {
        width: 100%;
    }

    /* Deforestation */

    #index-header {
        left: 2%;
    }

    #index-header div {
        gap: 30px;
        width: 1000px
    }

    #index-header h1 {
        font-size: 70px;
    }

    .deforestation-info-card {
        all: initial;
        background-color: #FFF9EA;
        padding: 1em;
        position: absolute;
        width: 400px;
        height: auto;
        z-index: 999;
        display: none;
        border-radius: 14px;
        padding: 2em;
        box-shadow: -1px 5px 12px 0 rgba(0, 0, 0, 0.25);
    }

    #deforestation-info-card-3 {
        width: 500px;
        left: 10.5%;
        top: -80%;
    }

    #deforestation-info-card-3:after {
        content: "";
        position: absolute;
        border-left: 36px solid transparent;
        /* Left side of the triangle */
        border-right: 36px solid transparent;
        /* Right side of the triangle */
        border-bottom: 36px solid #FFF9EA;
        transform: rotate(-90deg);
        bottom: 50%;
        left: -8%;
    }

    #deforestation-info-card-1:after {
        content: "";
        position: absolute;
        border-left: 36px solid transparent;
        /* Left side of the triangle */
        border-right: 36px solid transparent;
        /* Right side of the triangle */
        border-bottom: 36px solid #FFF9EA;
        transform: rotate(-90deg);
        bottom: 50%;
        left: -10%;
    }

    #deforestation-info-card-2:after {
        content: "";
        position: absolute;
        border-left: 36px solid transparent;
        /* Left side of the triangle */
        border-right: 36px solid transparent;
        /* Right side of the triangle */
        border-bottom: 36px solid #FFF9EA;
        transform: rotate(-90deg);
        bottom: 50%;
        left: -10%;
    }

    #rainforest-card {
        width: 640px;
        height: 300px;
    }

    #rainforest-card .deforestation-button {
        margin-top: 2em;
    }


    .check-list li {
        font-size: 24px;
        margin-bottom: 0.5em;
        margin-top: 0.5em;
        margin-left: 0.5em;
    }

    /* Overfishing mobile styles */

    .overfishing-info-card {
        position: absolute;
        z-index: 999;
        display: none;
        background-color: #FFF9EA;
        width: 360px;
    }


    #overfishing-info-card-1 {
        left: 30.4%;
        top: 63.5%;
    }

    #overfishing-info-card-1:after {
        content: "";
        position: absolute;
        border-left: 36px solid transparent;
        /* Left side of the triangle */
        border-right: 36px solid transparent;
        /* Right side of the triangle */
        border-bottom: 36px solid #FFF9EA;
        transform: rotate(90deg);
        right: -8%;
        bottom: 16%;
    }

    #overfishing-info-card-2 {
        top: 28%;
        left: 37%;
    }

    #overfishing-info-card-2:after {
        content: "";
        position: absolute;
        border-left: 36px solid transparent;
        /* Left side of the triangle */
        border-right: 36px solid transparent;
        /* Right side of the triangle */
        border-bottom: 36px solid #FFF9EA;
        transform: rotate(90deg);
        bottom: 10%;
        right: -12%;
    }

    #overfishing-info-card-3 {
        top: 30%;
        left: 65%;
    }

    #overfishing-info-card-3:after {
        content: "";
        position: absolute;
        border-left: 36px solid transparent;
        /* Left side of the triangle */
        border-right: 36px solid transparent;
        /* Right side of the triangle */
        border-bottom: 36px solid #FFF9EA;
        transform: rotate(180deg);
        bottom: -10%;
        left: 41%;
    }

    #cta-overfishing-card {
        right: 0;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        width: 520px;
        height: 300px;
    }

    /* Landfill mobile styles */

    .icon-and-heading-container {
        display: flex;
        flex-direction: row;
        gap: 16px;
    }

    .landfill-info-card {
        position: absolute;
    }

    /* landfill info card 1 */

    #landfill-info-card-1 {
        width: 600px;
        top: 54%;
        left: 13.7%;
    }

    #landfill-info-card-1:after {
        content: "";
        position: absolute;
        border-left: 24px solid #FFF9EA;
        border-right: 24px solid #FFF9EA;
        border-bottom: 24px solid #FFF9EA;
        transform: rotate(-45deg);
        left: 48%;
        bottom: 0;
    }

    /* landfill info card 2 */

    #landfill-info-card-2 {
        width: 540px;
        top: 26%;
        left: 36.8%;
    }

    #landfill-info-card-2:after {
        content: "";
        position: absolute;
        border-left: 24px solid #FFF9EA;
        border-right: 24px solid #FFF9EA;
        border-bottom: 24px solid #FFF9EA;
        transform: rotate(-45deg);
        left: 48%;
        bottom: 0;
    }

    /* landfill info card 3 */

    #landfill-info-card-3 {
        width: 500px;
        left: 71.1%;
        top: 77%;
    }

    /* these produce the chat bubble triangle at edge of the card */
    #landfill-info-card-3:after {
        content: "";
        position: absolute;
        border-left: 36px solid transparent;
        /* Left side of the triangle */
        border-right: 36px solid transparent;
        /* Right side of the triangle */
        border-bottom: 36px solid #FFF9EA;
        left: 55.5%;
        top: -7%;
    }

    #landfill-info-card-4 {
        gap: 16px;
        padding: 24px;
        width: 400px;
        margin-right: 30px;
    }

    #landfill-info-card-4 ul {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}

/* about page styles - mobile */
#about-page {
    overflow-y: visible;
}

#content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#about-info {
    box-sizing: border-box;
    padding: 48px;
    padding-top: 5%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#about-info h3 {
    padding-bottom: 16px;
}

#sources-info {
    box-sizing: border-box;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#sources-info h3 {
    padding-bottom: 16px;
}

#sources-info ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#sources-info li {
    list-style-type: disc;
}

#sources-info li>a {
    text-decoration: none;
    font-family: "DM Sans";
    color: #081d08;
}

#sources-info li>a:hover {
    color: #112E47;
    font-weight: 600;
    transition: all .3s ease-in-out;
}

#about-footer {
    background-color: #081D3D;
    width: 100%;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#about-footer p {
    color: #FFF9EA;
    font-size: 16px;
}

/* about page mobile styles */

@media screen and (min-width: 1024px) {
    #content-wrapper {
        flex-direction: column;
    }

    #about-info p {
        width: 60vw;
    }
}