/* this stylesheet is organized in a "mobile first" way
(designed to look good on a phone first and foremost)
styles for larger screens are lower in the file
remember that some styles are applied before this stylesheet
from the w3 standardizer stylesheet, separate file */

/* 
TODO

-class based styles that others can duplicate 
(.grn-bkgd, 'highlight', list styles, etc)
-dark/light mode
-language
-marquee fix
-javascript for loading header, marquee
-nav (in html, and here)
-style guide

*/

/* header, #landing, #letsgo-is, #map-section {
    display: none;
} */

/* :root {
            --max-width: min(38rem, 90vw);
        } */



/* styles that are controlled by obvious HTML class names*/
.bkgd-red {
    background-color: var(--lg-red);
}
.bkgd-yellow {
    background-color: var(--lg-yellow);
}
.bkgd-blue {
    background-color: var(--lg-blue);
}
.bkgd-green {
    background-color: var(--lg-green);
}




/* general page styles */
body, h1, h2 {
    font-family: "Arimo-Bold", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    color: var(--lg-black);
    /* padding: 0 auto; */
}

h2 {
    font-size: 2rem;
    line-height: 2.5rem;    
    font-family: 'Arimo-Bold';
    font-weight: bolder;
    text-align: center;
}

p {
    font-size: 1.5rem;
    line-height: 2rem;
    font-family: "Arimo-Regular", Arial, Helvetica, sans-serif;
    text-transform: none;
    padding: 0 2em;
}

a {
    text-decoration: none;
}

.button {
    background-color: var(--lg-black);
    color: var(--lg-white);
    border: none;
    text-transform: uppercase;
    padding: 1em;
}

ol, ul {
    padding: 0;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 30vh;
}

.home-main {
    padding-top: 60vh;
}

section {
    padding: 2vw;
    margin: 5vw 3vw 5vw 3vw;
    max-width: 1100px;
    width: 100%;
}


 
/* header (logo) */

header {
    position: fixed;
    top: 1em;
    z-index: 100;
    width: 100vw;
}

header:hover {
    scale: 105%;
    transition: scale .5s ease;
}

.home-header {
    position: sticky;
    margin-top: 40vh;
    animation: stretchbounce 1.2s linear;
}

@keyframes stretchbounce {
    0% {transform: scale(50%);}
    60% {transform: scale(105%);}
    75% {transform: scale(97%);}
    100% {transform: scale(100%);}
}

header img {
    width: 50%;
    position: absolute;
    top: 0;
}

#logo-red {
    top: 0;
    right: 50%;
}

#logo-yellow {
    top: 0;
    left: 50%;
}


/* landing section (why you are here) */
#landing p {
    font-family: 'Arimo-Bold';
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 2rem;
    padding: .5rem;
    text-transform: uppercase;
}

/* carousel */
#carousel-container {
    font-size: 2rem;
    position: relative;
    width: 90vw;
    height: 15em;
    display: block;
    overflow: hidden;
}

#carousel {
    width: 360vw;
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    animation: slideleft 20s linear infinite;
}

#carousel li {
    line-height: 1.5em;
    list-style-type: none;
    width: 90vw;
    padding: 1em;
}

#landing li:nth-child(1) {
    background-color: var(--lg-green);
}

#landing li:nth-child(2) {
    background-color: var(--lg-yellow);
}

#landing li:nth-child(3) {
    background-color: var(--lg-red);
}

#landing li:nth-child(4) {
    background-color: var(--lg-blue);
}

@keyframes slideleft {
    0% {margin-left: 90vw;}
    3% {margin-left: 0vw;}
    25% {margin-left: 0vw;}
    28% {margin-left: -90vw;}
    50% {margin-left: -90vw;}
    53% {margin-left: -180vw;}
    75% {margin-left: -180vw;}
    78% {margin-left: -270vw;}
    99.99% {margin-left: -270vw;}
    100% {margin-left: -360vw;}
}

/* about let's go */
#letsgo-is {
    text-transform: none;
    line-height: 1.5rem;
}

#letsgo-is>p{
    padding: 1em;
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 5rem 0 5rem 0;
    border: 10px solid black;
}

#letsgo-is .letsgo {
    text-transform: uppercase;
    font-size: 12vw;
    line-height: 16vw;
    font-family: 'Arimo-Bold';
    font-weight: bold;
    background-color: var(--lg-red);
    padding: 4vw 8vw;
    height: auto;
    margin-bottom: 5vw;
    display: inline-block;
    width: 100%;
    text-align: center;
    animation: changebkgdcolor 4s infinite linear;
}

@keyframes changebkgdcolor {
    0% {background-color: var(--lg-red);}
    24.99% {background-color: var(--lg-red);}
    25% {background-color: var(--lg-yellow);}
    49.99% {background-color: var(--lg-yellow);}
    50% {background-color: var(--lg-blue);}
    74.99% {background-color: var(--lg-blue);}
    75% {background-color: var(--lg-green);}
    99.99% {background-color: var(--lg-green);}

}

#struggles-supported ol {
    background-color: var(--lg-yellow);
    padding: 1rem;
    margin: 0;
}

#letsgo-is li {
    list-style: none;
    background-color: var(--lg-black);
    color: var(--lg-yellow);
    margin: .5em;
    padding: 1.5em;
    font-size: 2em;
    line-height: 1.5em;
    text-transform: uppercase;
}


/* map */
#map-section {
    background-color: var(--lg-blue);
}

#map {
        height: 360px;
        z-index: 90;
    }

/* how we do it */
#how-we-do-it h2{
    background-color: var(--lg-green);
}

/* call to action */
#call-to-action {
    margin-bottom: 10rem;
    display: flex;
    justify-content: center;
}

#call-to-action .button {
    /* display: block; */
    /* margin-left: 50%; */
    /* width: 100%; */
    /* max-width: 400px; */
    text-align: center;
    /* align-items: center; */
    font-size: 4vw;
    /* transform: translateX(-50%); */
}

.button:hover {
    scale: 105%;
    transition: scale .25s ease;
}

/* form */
#form-div {
    background-color: var(--lg-red);
    padding: 1rem;
    margin: 5rem 0 5rem 0;
}
#form-div p {
    font-family: 'Arimo-Bold';
    text-transform: uppercase;
    font-weight: bolder;
    text-align: center;
}
iframe {
    width: 100%;
    height: 800px;
}


/* scrolling part */
#scroll-div, #scroll-div-es {
    background-color: var(--lg-blue);
    width: 100vw;
    padding: .25em 0;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    bottom: 2em;
    left: 0;
    z-index: 100;
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
}

#scroll-div-es {
    background-color: var(--lg-green);
    bottom: 0;
}

#scroll-div1, #scroll-div3 {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

#scroll-div2, #scroll-div4 {
    display: inline-block;
    animation: marquee2 30s linear infinite;
}

@media (prefers-reduced-motion) {
    #scroll-div1, #scroll-div2, #scroll-div3, #scroll-div4 {
        animation: none;
    }
}

@keyframes marquee {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes marquee2 {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-100%);
    }
}




/* media queries (for larger screens) */
@media only screen and (min-width: 680px) {
    #letsgo-is p {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0 8vw 0 0;
    }

    #letsgo-is .letsgo {
        width: 16rem;
        height: 16rem;
        line-height: 4rem;
        margin: 1em .5em;
        font-size: 4rem;
        padding: 4rem 2rem;
    }
    #struggles-supported ol {
        display: flex;
        justify-content: center;
    }
    #struggles-supported ol li {
        width: 45%;
        overflow: hidden;
        font-size: 3vw;
    }
}

@media only screen and (min-width: 900px) {
    header img {
        max-width: 300px;
    }

    #landing p {
        font-size: 2vw;
    }

    #carousel-container {
        width: 100%;
        height: 100%;
    }

    #carousel {
        width: 90vw;
        width: 100%;
        animation: none;
        flex-wrap: wrap;
        align-items: stretch;
    }

    #carousel li {
        width: 50%;
        padding: 5vw;
        font-size: 1.5rem;
    }
    #struggles-supported ol li {
        font-size: 2em;
    }
    #call-to-action {
        display: flex;
        justify-content: center;
    }
    #call-to-action .button {
        font-size: 1.75rem;
    }

}