:root {
    --white: #fff;
    --black: #000;
    --light-grey: #d3d3d3;
    --light-pale-grey: #f7f7f6;
    --muted-pale-grey: #eaedef;
    --semi-dark-grey: #c8c9cf;
    --bright-red: #ec0a18;
    --darker-red: #c90d33;
    --teal: #0e7e79;
    --dark-teal: #11444f;
}


body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', sans-serif;
}

h2 {
    font-size: 33px;
}

h3 {
    font-size: 22px;
}

.inner-container {
    margin: 0 5%;
}

.flex-container {
    display: flex;
}

button {
    border: none;
    background-color: transparent;
}

img {
    width: 100%;
    height: auto;
}

/* ********************************* header ******************************** */

header {
    position: sticky;
    top: 0;
    box-shadow: 0 5px 10px var(--light-grey);
    background-color: var(--white);
    z-index: 99999;
}

header .flex-container{
    align-items: center;
    justify-content: space-between;
    height: 82px;
}

header nav {
    position: absolute;
    top: 82px; 
    left: 0;
    background-color: var(--white);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.show-nav {
    max-height: 254px;
}

ul.menu {
    list-style: none;
    padding: 0;
}

ul.menu li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--light-grey);
    transition: background-color 0.2s ease-in-out;
}

ul.menu li:hover{
    background-color: var(--semi-dark-grey);
}

ul.menu li:first-of-type {
    border-top: 1px solid var(--light-grey);
}

ul.menu a { 
    text-decoration: none;
    color: var(--black);
    display: block;
    width: 100%;
    text-transform: uppercase;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    padding-left: 24px;
}

header .inner-container>a{
    width: 6rem;
}

header svg {
    width: 4rem;
    height: auto;
}

.toggle-btn {
    padding: 0;
    transition: background-color 0.2s ease-in-out;
    border-radius: 10px;
}

.toggle-btn:hover{
    cursor: pointer;
    background-color: var(--muted-pale-grey);
}

.toggle-btn:active {
    background-color: var(--semi-dark-grey);
}

/* ************************************** banner **********************************  */

.banner h2,
.volunteer h2{
    margin: 2rem 0;
    font-size: 45px;
}

.banner p {
    width: 95%;
}

.banner form {
    margin: 2rem 0 3rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    width: 100%;
    border: 1px solid black;
    border-radius: 9px;
}

.banner form input {
    height: 100%;
    flex: 3 1 50%;
    border: none;
    border-radius: 9px 0 0 9px;
}

.banner form button {
    width: 40px;
    height: 40px;
    background-image: url(../img/search-button.gif);
    flex-shrink: 0;
    padding: 0;
}

.banner form button:hover{
    cursor: pointer;
    filter: brightness(90%);
}

/* ******************************* Get Started ****************************************  */

.get-started h2 {
    margin-bottom: 2.5rem;
}

.get-started section,
.volunteer section {
    padding: 22px 7% 87px 7%;
    background-color: var(--light-pale-grey);
    margin-bottom: 24px;
}

.get-started svg {
    width: 80px;
    height: auto;
}

.get-started h3 {
    margin: 1.5rem 0;
}

.get-started .text-content {
    width: 90%;
}

.get-started a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    background-color: var(--bright-red);
    color: white;
    font-size: 22px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 8px;
    margin: 1rem 0 3rem 0;
    transition: background-color 0.2s ease-in-out;
}

.get-started a:hover {
    background-color: var(--darker-red);
}

.volunteer .inner-container>p{
    margin-bottom: 1rem;
}

.volunteer .card {
    box-shadow: unset;
}

.volunteer .cards {
    margin-bottom: 3rem;
}

.volunteer h3 {
    color: var(--teal);
    margin-bottom: 2rem;
}

/* ***************************************** scroll ********************************************  */

.horizontal-scroll h2 {
    margin-bottom: 1rem;
}

.horizontal-scroll {
    margin-bottom: 5rem;
}

.double-row-container {
    width: 100%;
    overflow: scroll;
}

.scroll-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    width: calc((288px + 4% ) * 4);
}

.scroll-container>section {
    background-color: var(--light-pale-grey);
    flex: 1 0 calc(100%/4.3);
    height: 264px;
    padding: 1.5rem;
    margin-top: 2%;
    position: relative;
}

.scroll-container h3 {
    margin-bottom: 30px;
    color: var(--teal);
    font-weight: 600;
}

.scroll-container>section:first-of-type {
    background-color: var(--teal);
    color: var(--white);
}

.scroll-container>section:first-of-type h3 {
    color: var(--white);
}

.scroll-container a {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--black);
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    position: absolute;
    bottom: 24px;
}

.scroll-container a:hover,
ul.footer-menu a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.parallax {
    background-image: url(../img/person-typing-on-laptop.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 5rem 0;
    color: var(--white);
}

.signup>.inner-container form>p {
    margin: 1rem 0;
}

.signup fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.signup .flex-container {
    flex-direction: column;
}

.signup {
    background-color: var(--light-pale-grey);
}

.signup span {
    color: var(--bright-red);
}

.signup fieldset:first-of-type label {
    display: block;
}

.signup fieldset:first-of-type input {
    width: 100%;
    height: 40px;
    border-radius: 3px;
    border: 1px solid var(--light-grey);
}

.signup fieldset:first-of-type input:invalid{
    border: 1px solid var(--bright-red);
}

.signup fieldset:first-of-type>div {
    margin-bottom: 1.5rem;
}

.signup fieldset:last-of-type {
    margin: 0 0 2rem 1.5rem;
}

.signup fieldset:last-of-type input {
    width: 1rem;
    height: 1rem;
}

.signup button {
    height: 50px;
    background-color: var(--bright-red);
    color: white;
    font-size: 22px;
    width: 100%;
    text-transform: uppercase;
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 8px;
    margin-bottom: 3rem;
    transition: background-color 0.2s ease-in-out;
}

.signup button:hover {
    cursor: pointer;
    background-color: var(--darker-red);
}

/* ***************************** Learning Experiences ********************************** */

.experiences h2 {
    font-weight: bold;
    line-height: 1;
}

.experiences span {
    font-weight: bold;
}

.experiences .inner-container>p{
    margin: 1.5rem 0;
}

.card {
    box-shadow: 0px 0px 10px var(--light-grey);
    margin-bottom: 24px;
}

.card .text-content {
    padding: 10% 10% 20% 10%;
}

.card .text-content p {
    color: var(--teal);
    font-weight: bold;
    margin-bottom: 1rem;
}

.experiences button {
    background-color: var(--teal);
    color: var(--white);
    width: 70%;
    height: 50px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.1s ease;
    margin-bottom: 5rem;
}

.experiences button:hover{
    background-color: var(--dark-teal);
}

/* ******************************************** Community ******************************************* */

.community {
    background-color: var(--bright-red);
    color: var(--white);
    padding: 3rem 0 3rem 0;
}

.community h2 {
    line-height: 1;
}

.community p {
    margin: 2rem 0;
}

.community input {
    width: 100%;
    height: 39px;
    border-radius: 10px;
    padding-left: 10px;
    border: 1px solid var(--muted-pale-grey);
}

.community button {
    background-color: var(--white);
    height: 39px;
    margin-top: 0.8rem;
    border-radius: 10px;
    width: 35%;
    border: 1px solid var(--muted-pale-grey);
    transition: background-color 0.2s ease-in-out;
}

.community button:hover {
    cursor: pointer;
    background-color: var(--muted-pale-grey);
    border: 1px solid var(--muted-pale-grey);
}

/* ******************* footer ************************  */

footer{
    padding-top: 3rem;
}

footer img {
    width: 100px;
    height: auto;
}

.footer-menu{
    text-align: right;
    list-style: none;
    margin: 0 2rem 2rem 0;
}

.footer-menu a {
    text-decoration: none;
    color: var(--black);
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    font-size: 18px;
}

ul.footer-menu a:hover {
    text-decoration: underline;
}

footer .off-color {
    line-height: 1.5;
    background-color: var(--light-pale-grey);
    padding: 3rem 0;
}

footer .flex-container {
    flex-direction: column;
}

@media screen and (min-width: 750px) {
    h2 {
        font-size: 40px;
    }

    .banner h2,
    .volunteer h2 {
        font-size: 70px;
    }

    .banner p,
    .banner form{
        width: 84%;
    }

    .cards {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 2%;
    }

    .get-started .cards section{
        flex: 1 0 48%;
    }

    .get-started .cards section:last-of-type {
        flex-grow: 0;
        min-width: 49%;
    }

    .get-started a {
        width: 45%;
    }

    .experiences .card,
    .volunteer .card {
        flex: 1 0 48%;
    }

    .experiences .text-content {
        padding-bottom: 10%;
    }

    .experiences button {
        width: 35%;
    }

    .community form {
        display: flex;
        align-items: center;
        height: 40px;
        width: 84%;
    }
    
    .community form input {
        height: 100%;
        flex: 1 0 50%;
        border-radius: 10px 0 0 10px;
    }
    
    .community form button {
        height: 100%;
        margin-top: 0;
        width: 12%;
        border-left: 1px solid var(--black);
        border-radius: 0 10px 10px 0;
    }

    .community form button:hover{
        border-left: 1px solid var(--black);
    }

    .community p {
        margin-bottom: 1rem;
    }

    footer .flex-container {
        flex-direction: row;
    }

    ul.footer-menu {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        height: 4rem;
        flex: 1 0 50%;
        margin-right: 0;
    }

    .signup .flex-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2%;
    }

    .signup .flex-container>div {
        flex: 1 0 48%;
    }

    .signup fieldset:first-of-type>div:last-of-type input {
        width: 30%;
    }

    footer .off-color {
        padding: 1.5rem 0;
    }

    .parallax h2 {
        font-size: 33px;
    }

    .signup fieldset:last-of-type {
        margin-left: 0;
    }
}

@media screen and (min-width:1160px) {
    .inner-container {
        width: 1160px;
        margin: 0 auto;
    }

    .toggle-btn {
        display: none;
    }

    header {
        display: flex;
    }

    header nav {
        position: unset;
        max-height: unset;
        width: unset;
    }

    ul.menu {
        display: flex;
    }

    ul.menu a{
        padding: 0 1rem;
    }

    ul.menu li,
    ul.menu li:first-of-type {
        padding: 0.6rem 0;
        border: none;
    }

    .banner p,
    .banner form,
    .community p,
    .community form{
        width: 50%;
    }

    .get-started .cards section:last-of-type {
        min-width: unset;
    }

    .get-started .cards section{
        flex: 1 0 calc((100%/3) - 2%);
        padding: 1.5rem 1.5rem 3rem 1.5rem;
    }

    .get-started a {
        width: 25%;
    }

    .double-row-container {
        overflow:visible;
    }

    .scroll-container{
        width: 100%;
    }

    .scroll-container>section {
        flex: 0 1 272px;
    }

    .experiences .card {
        flex: 1 0 272px;
    }

    .experiences .card img {
        width: 100%;
        height: 181.75px;
        object-fit: cover;
    }

    .experiences button {
        width: 18%;
    }

    ul.footer-menu {
        flex: 0 1 50%;
    }

    footer .flex-container {
        justify-content: space-between;
    }

    .volunteer .inner-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .volunteer h2 {
        min-width: 100%;
        margin-bottom: 0;
    }

    .volunteer .inner-container>p {
        padding-top: 2rem;
        width: 35%;
    }

    .volunteer .cards {
        width: 60%;
    }

    .volunteer .card {
        padding: 2rem 2rem 3rem 2rem;
    }

    .volunteer h3 {
        margin-bottom: 1.5rem;
    }

    .signup fieldset:last-of-type>div {
        flex: unset;
    }

    .signup button {
        width: 49%;
    }

    .signup fieldset:first-of-type > div:last-of-type input{
        width: 15%;
    }
}