:root {
    --blue: hsl(233, 100%, 69%);
    --blue-border: hsl(233, 99%, 66%);
    --blue-hover: hsl(233, 99%, 72%);
    --green: hsl(171, 66%, 44%);
    --green-border: hsl(171, 65%, 41%);
    --green-hover: hsl(171, 65%, 47%);
    --header-color: hsl(210, 10%, 33%);
    --text-color: hsl(201, 11%, 66%);
    --grey: hsla(0, 1%, 78%, 0.171);
    --white: hsl(0, 0%, 100%);
    /*font-size*/
    --p-size: clamp(14px, 1.5vw, 18px);
    --h1-size: clamp(1.8rem, 3vw, 3rem);
    --h2-size: clamp(1.5rem, 2.5vw, 2.3rem);

}

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

body {
    min-height: 100dvh;
    font-family: "Bai Jamjuree", sans-serif;

}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100dvh;
}

h1 {
    margin: 1rem;
    color: var(--header-color);
    font-size: var(--h1-size);
}

h2 {
    color: var(--header-color);
    font-size: var(--h2-size);
}

h3 {
    color: var(--header-color);
}

p {
    font-size: var(--p-size);
    color: var(--text-color);
    padding: 1rem;
    max-width: 55ch;
    margin-inline: auto;
}

section {
    padding: clamp(2rem, 5vw, 4rem);
}

.header {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(images/bg-header-mobile.png) no-repeat top center / cover;
    z-index: -1;
}

.btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.btn button {
    padding: 1rem clamp(2rem, 5vw, 5rem);
    border-radius: 5rem;
    border: 0;
    color: var(--white);
    cursor: pointer;
}

.btn .ios {
    background-color: var(--green);
    border-bottom: 5px solid var(--green-border);
}

.btn .ios:hover {
    background-color: var(--green-hover);
}

.btn .mac {
    background-color: var(--blue);
    border-bottom: 5px solid var(--blue-border);
}

.btn .mac:hover {
    background-color: var(--blue-hover);
}

img {
    max-width: 90%;
    height: auto;
    margin: 2rem 0;
}

.snippets {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.sub-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem;
}

.boots {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 2.5rem 0;
}

.brands {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2.5rem 0;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background-color: var(--grey);
}

footer img {
    max-width: 5rem;
    margin: 2rem 0;
}

.pages ul li {
    list-style-type: none;
    margin: 1rem 0;
    text-align: center;
}

.pages ul li a {
    text-decoration: none;
    color: var(--header-color);
}

.social-media {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.social-media i {
    color: var(--header-color);
}

.social-media i:hover,
.pages ul li a:hover {
    color: var(--green);
}

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

@media (min-width:768px) {
    section {
        padding: 6rem 0;
    }

    .header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url(images/bg-header-desktop.png) no-repeat top center / cover;
        z-index: -1;
    }

    .btn {
        flex-direction: row;
    }

    .snippets {
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
    }

    .sub-text {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        margin-left: 5rem;
    }

    .sub-text .text {
        max-width: 50ch;
    }

    .sub-text .text h3,
    .sub-text .text p {
        text-align: left;
        margin-left: 0;
        padding-left: 0;
    }

    .snippets img {
        transform: translateX(-10%);
    }

    .boots {
        flex-direction: row;
    }

    .boots .boot {
        max-width: 45ch;
    }

    .brands {
        flex-direction: row;
        gap: 5rem;
        padding-top: 8rem;
    }

    footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 1rem 10rem;
    }

    footer img {
        max-width: 3rem;
    }

    .pages ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: auto;
        gap: 0.5rem 5rem;
        font-size: var(--p-size);
    }

    .social-media {
        align-self: center;
    }
}