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

@font-face {
    font-family: ' Poppins';
    src: url(./fonts/Poppins/Poppins-Medium.ttf);
}

@font-face {
    font-family: 'OpenSans';
    src: url(./fonts/OpenSans-VariableFont_wdth\,wght.ttf);
}

body {

    width: 100dvw;

}

.container {
    width: 100dvw;
}

header {


    width: 100dvw;
    background-image: url(./images/bg-hero-desktop.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: hsl(193, 100%, 96%);
    font-family: ' Poppins';
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1% 2%;
}

nav button {
    width: 8rem;
    padding: 0.7rem;
    border-radius: 50px;
    border: none;
    background-color: white;
}

nav button:hover {

    opacity: 0.7;
}

.head {
    display: flex;
    padding: 5% 4%;
    align-items: center;
}

.head-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    flex-basis: 50%;

    p {
        width: 80%;
    }

    h1 {
        font-size: 40px;
        width: 70%;
        color: hsl(192, 100%, 9%);
    }
}

.head-left button {
    width: 12rem;
    padding: 0.8rem;
    border-radius: 50px;
    background-color: hsl(322, 100%, 66%);
    border: none;
    color: white;
}

.head-left button:hover {

    opacity: 0.5;
}

.head-right {
    display: flex;
    flex-basis: 50%;
}

.head-right img {
    width: 100%;
}

main {
    width: 100dvw;
    padding: 10% 7%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-bottom: 15rem;
    font-family: 'OpenSans';
}

.box {
    display: flex;
    flex-basis: 33.3;
    align-items: center;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
    background-color: white;
    border-radius: 15px;
    padding: 1% 4%;
    justify-content: space-between;

}

.box section:nth-child(1) {
    display: flex;
    flex-direction: column;
    flex-basis: 50%;
    gap: 1rem;

    p {
        width: 80%;
        color: hsl(208, 11%, 55%);
    }

    h2 {
        color: hsl(192, 100%, 9%);
    }

}

.box section:nth-child(2) {
    display: flex;
    flex-basis: 50%;
}

.box section:nth-child(2) img {
    width: 80%;
}

.box article:nth-child(2) {
    display: flex;
    flex-direction: row;
}

.community {
    height: 150px;
    width: 300px;
    border: none;
    position: absolute;
    top: 129rem;
    left: 500px;
    text-align: center;
    padding-top: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
}

.community button {
    background-color: hsl(322, 100%, 66%);
    width: 200px;
    height: 50px;
    border: none;
    border-radius: 50px;
    margin-top: 15px;
    color: white;
}

.community button:hover {
    opacity: 0.5;
}


footer {

    background-color: hsl(192, 100%, 9%);
    color: white;
    display: flex;
    padding: 7% 4%;
    justify-content: space-between;
    font-family: 'OpenSans';


}


.foot-1 {
    display: flex;
    flex-direction: column;
    flex-basis: 33.3%;
    gap: 1rem;

    P {
        position: relative;
        bottom: 30px;
        left: 30px;
        width: 70%;
    }
}

.foot-1 img:nth-child(1) {
    width: 70%;
}

.icons {
    width: 20px;
}

.foot-2 {
    width: 300px;
    display: flex;
    gap: 4rem;
    padding-top: 8%;

    div {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
}

.foot-3 {
    padding-top: 8%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: hsl(192, 100%, 9%);
    box-shadow: none;
    align-items: flex-start;

    span {
        display: flex;
        gap: 1rem;
    }
}

.foot-2 p:nth-child(1):hover {

    text-decoration: underline;
}

.foot-3 img:nth-child(2):hover {
    color: #800080;
}

@media screen and (max-width: 767px) {
    nav {
        padding: 5% 3%;
    }

    nav button {
        width: 6rem;
    }

    nav img {
        width: 30%;
    }

    header {
        background-image: none;
        background-image: url(./images/bg-hero-mobile.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    .head {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding: 10% 7%;
    }

    .head-left {
        display: flex;
        flex-direction: column;
        align-items: center;

        h1 {
            font-size: 20px;
            text-align: center;
        }

        p {
            font-size: 11.5px;
            text-align: center;
        }
    }

    .box {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 3rem;
        padding: 7% 0;

        p {
            text-align: center;
            font-size: 12px;
        }
    }

    .box section:nth-child(1) {
        display: flex;
        align-items: center;
        justify-content: center;


    }

    .box section:nth-child(2) {
        display: flex;
        align-items: center;
        justify-content: center;


    }

    .community {
        position: absolute;
        top: 141rem;
        left: 20px;
        width: 350px;

    }

    footer {
        display: flex;
        flex-direction: column;
        padding-top: 30%;
    }

    .foot-2 {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .foot-3 {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}