@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
    --green-500: hsl(171, 66%, 44%);
    --blue-100: hsl(233, 100%, 69%);
    --gray-700: hsl(210, 10%, 33%);
    --gray-500: hsl(201, 11%, 66%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-500);
    background: white;
}


section>div,
footer {
    width: 100%;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

header {
    margin: 1rem 0rem 2rem 0rem;
}

img {
    margin: 1rem 0rem 2rem 0rem;
    width: 100%;
}

h1,
h2 {
    color: var(--gray-700);
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    color: var(--gray-700);
    font-size: 1.5rem;

}

p {
    padding: 1rem 1px;
}

ul {
    list-style: none;
    margin: 2rem 0;

    li:not(:last-child) {
        margin-bottom: 2.5rem;
    }
}

button {
    border: none;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--green-500);
    color: white;
    font-size: 1.2rem;
    border-radius: 99px;
    transition: background-color .2s ease-in-out;
    cursor: pointer;
    box-shadow: inset 0px -2px 0px 1px rgba(0, 0, 0, 0.25), 0px 3px 10px 1px hsl(171deg 66% 44% / 30%);
}

button:hover{
    background-color: #5dccbb;
}

.button-secondary {
    background: var(--blue-100);
    box-shadow: inset 0px -2px 0px 1px rgba(0, 0, 0, 0.25), 0px 3px 10px 1px hsl(233deg 100% 69% / 30%);
}
.button-secondary:hover{
    background: #8a95fe;
}

.buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin: 1rem 0;
}

#hero {
    background-image: url("./images/bg-header-mobile.png");
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;


    .hero-content {
        padding: 1rem 2rem;
        min-height: 100svh;
    }

    img {
        width: auto;
    }
}

#features {
    img {
        width: auto;
    }
}

#partners {
    .partners-content {
        padding-bottom: 0;
    }

    img {
        max-width: 85%;
        height: 40px;
        object-fit: scale-down;
    }
}

#download {


    .download-content {
        min-height: 100svh;
    }
}

footer {
    background: hsl(201 11% 66% / .15);
    padding: 2rem;

    .footer-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .footer-nav img {
        width: 50%;
    }

    a {
        all: unset;
        color: var(--gray-700);

    }

    .social-nav ul {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;

        li {
            margin: 0;
        }

        img {
            margin: 0;
        }
    }
}

@media screen and (min-width: 768px) {
    body {
        font-size: 18px;
    }

    button {
        width: auto;
        padding: 1rem 2.1rem;
    }

    .buttons {
        display: flex;
        flex-direction: row;
        width: auto;
    }

    section>div {
        max-width: 1200px;
        margin: 0 auto;
    }

    ul {
        display: flex;
        margin: 2rem 0;

        li {
            padding: 1rem 1rem;
            flex: 1;
            align-items: baseline;
        }
    }

    header {
        margin: 1rem 0rem 2rem;
        max-width: 700px;
    }

    #hero {
        background-image: url("./images/bg-header-desktop.png");

        .hero-content {
            padding: 6rem 2rem;
            min-height: auto;
        }

        img {
            width: 8rem;
        }
    }

    #snippets {
        .desktop-content {
            text-align: left;
            width: 100%;
            display: flex;

            ul {
                flex-direction: column;
                justify-content: center;
                align-items: baseline;
                gap: 2rem;
                width: 100%;
                margin-left: 2rem;

                li {
                    padding: 1rem 6rem;

                }
            }

            picture,
            ul {
                flex: 1;
            }

            li {
                font-size: 16px;
            }

            picture {
                position: relative;
            }

            img {
                height: 100%;
                margin: 0;
                width: auto;
                position: absolute;
                right: 0;
                
            }

        }
    }

    #access-anywhere {
        img {
            width: 90%;
            margin: 3rem 0rem 0rem 0rem;
        }
    }

    #partners {
        .partners-content{
            padding: 1rem 2rem;
        }
        img {
            max-width: 100%;
            height: 50px;
            margin: 1rem 0rem 1rem 0rem;
        }

        ul {
            width: 100%;

            li {
                margin-bottom: 0;
            }
        }
    }

    #download {
        .download-content {
            min-height: auto;
            padding: 6rem 2rem;
        }

    }

    footer {
        a{
            transition: color .2s ease-in-out;
            cursor: pointer;
        }
        a:hover{
            color: var(--green-500);
        }
        .footer-content {
            max-width: 1200px;
            width: 100%;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            padding: 0rem 2rem;
        }

        nav.footer-nav {
            gap: 8rem;

            img {
                width: 55px;
                height: 55px;
                margin: .5rem;
            }

            ul {
                margin: 0;
                max-width: 550px;
                text-align: left;
                display: grid;
                grid-auto-flow: column;
                grid-template-rows: repeat(2, auto);
                column-gap: 3rem;
                row-gap: 1rem;
            }

            li {
                padding: 0 1rem;
                display: flex;
                margin-bottom: 0;
            }

        }

        nav.social-nav {
            ul {
                gap: 1rem;
            }

            li {
                padding: .5rem;
            }
        }

        nav {
            display: flex;
            flex-direction: row;
        }
    }
}