@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bai Jamjuree', sans-serif;
}

body {
    overflow-x: hidden;
}

.primary-text {
    color: hsl(171, 66%, 44%);
}

.secondary-text {
    color: hsl(210, 10%, 33%);
    margin-bottom: 1rem;
}

.container {
    max-width: 50vw;
    margin: 0 auto;
    text-align: center;
}

/* header starts */

.header-bckground {
    background-image: url(./images/bg-header-desktop.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 0;
}

.logo {
    margin-bottom: 1rem;
}

.header-header {
    margin-bottom: 0.5rem;
}

.header-text {
    margin-bottom: 2rem;
}

.header-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.btn {
    border: none;
    padding: 1rem 3rem;
    border-radius: 2rem;
    box-shadow: 2px 5px 5px #999;
    transition: all 0.5s ease;
}

.btn:hover {
    cursor: pointer;
    opacity: 0.5;
}

.btn-ios {
    color: #f2f2f2;
    background-color: hsl(171, 66%, 44%);
}

.btn-mac {
    color: #f2f2f2;
    background-color: hsl(233, 100%, 69%);
}

/* header ends */

/* snippets starts */

.snippets-header {
    margin-bottom: 5rem;
}

.snippet-info {
    text-align: center;
    max-width: 50vw;
    margin: 0 auto 5rem auto;
}

.snippet-img {
    width: 50%;
}

.snippet-img > img{
    max-width: 100%;
    height: auto;
}

.snippets {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

.snippet-groups {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 50%;
}

/* snippets ends */

/* clipboard starts */

.clipboard-text {
    margin-bottom: 5rem;
}

.clipboard-img {
    width: 100%;
    margin-bottom: 5rem;
}

.clipboard-img > img {
    max-width: 100%;
    height: auto;
}

/* clipboard ends */

/* workflow starts */

.workflow-text {
    margin-bottom: 5rem;
}

.workflow-groups {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 5rem;
}

.workflow-group {
    display: flex;
    flex-direction: column;
    max-width: 25vw;
    text-align: center;
}

.workflow-group-icon {
    max-height: 2rem;
    margin-bottom: 2rem;
}

.workflow-group-icon > img {
    max-width: 100%;
    height: auto;
}

.workflow-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
}

.workflow-logo {
    max-width: 30%;
}

.workflow-logo > img {
    max-width: 100%;
    height: auto;
}

/* workflow ends */

.clipboard-text-2 {
    margin-bottom: 2rem;
}

.clipboard-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 5rem;
}

/* footer starts */

.footer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    padding-block: 1rem;
    background-color: #EEE;
}

.footer-list {
    display: flex;
    justify-content: space-evenly;
    gap: 5rem;
}

.footer-list > .list-item {
    list-style: none;
}

.footer-list > .list-item > a {
    text-decoration: none;
    display: inline-block;
    padding: 1rem;
    color: hsl(210, 10%, 33%);
    transition: all 0.5s ease-in-out;
}

.footer-list > .list-item > a:hover {
    background-color: #444;
    color: #f2f2f2;
    border-radius: 1rem;
}

.footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 1rem;
    gap: 1rem;
}

/* footer ends */

@media only screen and (max-width: 768px) {
    .container {
        width: 100vw;
    }
    .header-buttons {
        flex-direction: column;
    }
    .snippets {
      flex-direction: column;
    }
    .snippet-group {
        text-align: center;
    }
    .workflow-logos {
        flex-direction: column;
    }
    .clipboard-buttons {
        flex-direction: column;
    }
    .footer {
        flex-direction: column;
    }
    .footer-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-block: 1rem;
    }
    .footer-logo > img {
        max-width: 100%;
        height: auto;
    }
    .footer-list {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    .attribution {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 5rem;
        font-size: 15px;
    }
}