* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Libre Baskerville', serif;
}

body {
    background-color: #B2AC88;
}

.navbar {
    background: #B2AC88;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: relative;
    /* position: fixed; */
    top: 0;
    z-index: 999;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

#logo {
    width: 200px;
    height: 80px;
    object-fit: contain;
    object-position: 0 65%;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style:  none;
    text-align: center;
}

.navbar__item {
    height: 80px;
}

.navbar__links {
    color: antiquewhite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
}

.navbar__links:hover {
    color: #635f4b;
    transition: all 0.3s ease;
}

@media screen and (max-width: 960px) {
    .navbar__container.active {
        /* transition: all 0.3s ease; */
        transform: all 0.48s ease;
        background-color: #635f4b;
    }

    .navbar__links:hover {
        color: #B2AC88;
        transition: all 0.3s ease;
    }

    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transform: all 0.5s ease;
        height: 50vh;
        z-index: -1;
        background: #635f4b;
    }

    .navbar__menu.active {
        background: #635f4b;
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: 50vh;
        font-size: 1.6rem;
    }

    #navbar__logo {
        padding-left: 25px;
    }

    .navbar__toggle .bar{
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: antiquewhite;
    }

    .navbar__item {
        width: 100%;
    }

    .navbar__links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar__btn {
        display: flex;
        justify-content: center;
        padding-bottom: 2rem;
    }

    .button {
        width: 80%;
        align-items: center;
        height: 80px;
        margin: 0;
    }

    .navbar__toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* learn */
.learn {
    font-family: 'Libre Baskerville', serif;
    background: #B2AC88; 
    height: 80vh;
}

.learn h1 {
    color: antiquewhite;
    margin: 4rem;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-align: center;
}

.learn p {
    color: antiquewhite;
    margin: 50px;
    font-size: 20px;
    line-height: 2;
}

.learn a{
    color: antiquewhite;
}

.video {
    height: 500px;
    width: 700px;
}

@media screen and (max-width: 680px) {
    .video {
        width: 320px;
        height: 300px;
    }
}

/* How to CSS */
.services {
    font-family: 'Libre Baskerville', serif;
    background: #B2AC88; 
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.services h1 {
    color: antiquewhite;
    margin: 5rem;
    font-size: 2.5rem;
    text-align: center;
}

.services__container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.services__card {
    margin: 1rem;
    height: 525px;
    width: 400px;
    border-radius: 4px;
    background-image: linear-gradient(
            to bottom, 
            rgba(0,0,0,0) 0%, 
            rgba(17,17,17,0.6) 100%
        ), 
        url("/images/plasticbag.jpg");
    background-size: cover;
    position: relative;
    color: antiquewhite;
}

.services__card:nth-child(2) {
    background-image: linear-gradient(
            to bottom, 
            rgba(0,0,0,0) 0%, 
            rgba(17,17,17,0.6) 100%
        ), 
        url("/images/foam.jpeg");
}

.services__card:nth-child(3) {
    background-image: linear-gradient(
            to bottom, 
            rgba(0,0,0,0) 0%, 
            rgba(17,17,17,0.6) 100%
        ), 
        url("/images/ewaste.jpeg");
}

/* .services h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    width: 250px;
    transform: translate(-50%, -50%);
} */

/* .services__card p {
    position: absolute;
    top: 400px;
    left: 30px;
} */

.btn-container {
    /* color: antiquewhite;
    padding: 10px 20px;
    border: none;
    outline: none;
    border-radius: 4px;
    background: #635f4b; */
    /* cursor: pointer; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.services__card:hover {
    transform: scale(1.075);
    transition: 0.2s ease-in;
    cursor: pointer;
}

@media screen and (max-width: 960px) {
    .services {
        height: 1600px;
    }

    .services h1 {
        font-size: 2rem;
        margin-top: 12rem;
    }
}

@media screen and (max-width: 480px) {
    .services {
        height: 1400px;
    }

    .services h1 {
        font-size: 1.2rem;
    }

    .services__card {
        width: 300px;
    }
}

/* footer */
.footer__container {
    background-color: #B2AC88;
    /* padding: 5rem 0; */
    /* padding: 5rem 10rem; */
    padding: 5rem 3rem;
    padding-top: 10rem;
    display: flex;
    flex-direction: column;
    /* og: justify-content: center;
    align-items: center; */
    justify-content: center;
    align-items: center;
}

.footer__links {
    width: 100%;
    max-width: 100px;
    display: flex;
    justify-content: center;
}

.footer__link--wrapper {
    display: flex;
}

.footer__link--items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 16px;
    text-align: left;
    width: 160px;
    /* width: 100%; */
    box-sizing: border-box;
}

.footer__link--items p {
    color: antiquewhite;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer__link--items h2 {
    margin-bottom: 16px;
}

.footer__link--items > h2 {
    color: antiquewhite;
}

.footer__link--items a {
    color: antiquewhite;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer__link--items a:hover {
    color: #635f4b;
    transition: 0.3s ease-out;
}

#footer__logo {
    color: antiquewhite;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
}

.footer__link--items:nth-child(3) {
    align-items: flex-end;
    margin-left: 300px;
}

/* Social Icons */

.social__icon--link {
    color: antiquewhite;
    font-size: 24px;
    padding-right: 38px;
}

/* .social__media {
    max-width: 100px;
    width: 100%;
    display: inline;
} */

/* .social__media--wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0 auto;
} */

.social__icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 148px;
}

/* .social__logo {
    color: antiquewhite;
    justify-content: flex-start;
    margin-left: 20px;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
} */

@media screen and (max-width: 820px) {
    .footer__links {
        padding-top: 2rem;
        align-items: flex-start;
    }

    #footer__logo {
        margin-bottom: 2rem;
    }

    .footer__link--wrapper {
        flex-direction: column;
        margin: 0;
    }

    /* .social__media--wrap {
        flex-direction: column;
    } */

    .footer__link--items:nth-child(3) {
        align-items: flex-start;
        margin: 10px;
    }

}

@media screen and (max-width: 480px) {
    .footer_link--items {
        margin: 0;
        padding: 10px;
        width: 100%;
    }
}

.btn {
    top: 0;
    left: 0;
    transition: all .15s linear 0s;
    position: relative;
    display: inline-block;
    padding: 15px 25px;
    background-color: antiquewhite;
    
    color: #635f4b;
    font-family: 'Libre Baskerville', serif;
    letter-spacing: 1px;
    
    box-shadow: -6px 6px 0 #635f4b;
    text-decoration: none;
}

.btn:hover {
    top: 3px;
    left: -3px;
    box-shadow: -3px 3px 0 #635f4b;
}  
.btn:hover::after {
    top: 1px;
    left: -2px;
    width: 4px;
    height: 4px;
}

.btn:hover::before {
    bottom: -2px;
    right: 1px;
    width: 4px;
    height: 4px;
}

.btn::after {
    transition: all .15s linear 0s;
    content: '';
    position: absolute;
    top: 2px;
    left: -4px;
    width: 8px;
    height: 8px;
    background-color: #635f4b;
    transform: rotate(45deg);
    z-index: -1;
}

.btn::before {
    transition: all .15s linear 0s;
    content: '';
    position: absolute;
    bottom: -4px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: #635f4b;
    transform: rotate(45deg);
    z-index: -1;
}


a.btn { position: relative; }

a:active.btn {
    top: 6px;
    left: -6px;
    box-shadow: none;
}

a:active.btn:before {
    bottom: 1px;
    right: 1px;
}

a:active.btn:after {
    top: 1px;
    left: 1px;
}