@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;700&family=IBM+Plex+Mono:wght@400;500;600;700&family=Josefin+Sans:wght@700&display=swap');

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

body{
    background-color: #0E091B;
    color: white;
}

.headline, .tagline{
    visibility: hidden;
  }

#container{
    margin: 3.125rem 10% 0 10%;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    
}

h1{
    font: 700 2rem 'Josefin Sans', sans-serif;
    line-height: 1rem;
    text-transform: uppercase;
    color: #F9F9F9;
}

span{
    font: 700 2rem 'Josefin Sans', sans-serif;
    line-height: 1rem;
    /* identical to box height */
    padding: 10px;
    text-transform: uppercase;
    color: #873EFF;
    width: 37px;
    height: 2rem;
}

.menu{
    display: flex;
    align-items: center;
    font-family: 'DM Sans';
}

.github{
    margin-right: 60px;
    font: 700 1rem 'DM Sans', sans-serif;
    line-height: 22px;
}

.menu button{
    padding: 20px;
    background: none;
    color: white;
    border: 1px solid #873EFF;
    border-radius: 6px;
    height: 62px;
    width: 248px;
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;
    
}

.comunidade{
    margin-top: 100px;
}

.comunidade h2{
    font: 700 1.5rem 'IBM Plex Mono', sans-serif;
    font-size: 24px;
    line-height: 31px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #04D361;
}

.projetos{
    font: 600 4rem 'IBM Plex Mono', sans-serif ;
    line-height: 130%;
    color: #F9F9F9;
    text-transform: none;
    width: 50.5rem;
}

.comunidade p{
    font: 500 1.5rem 'DM Sans', sans-serif ;
    line-height: 170%;
    color: #AEAEAE;
    width: 812px;
    height: 82px;
}

.cards-projetos{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 130px;
}

.card{
    width: 600px;
    max-width: 49%;
    height: 500px;
    background-color: #171228;
    border: 1px solid #873EFF;
    border-radius: 10px;
    margin-bottom: 40px;
}

.card img{
    width: 520px;
    height: 210px;
}


.textos h3{
    font: 500 1.5rem 'IBM Plex Mono', sans-serif;
    line-height: 2rem;
}

.textos p{
    font: 500 1.125rem 'DM Sans', sans-serif;
    line-height: 170%;
    width: 549px;
    height: 62px;
    margin-bottom: 3rem;
    max-width: 100%;
    color: #AEAEAE;
}


img{
    width: 100%;
    max-width: 100%;
}

.botoes{
    width: 100%;
}

.btn-demo{
    width: 165px;
    height: 42px;
    background: #04D361;
    border-radius: 4px;
    font: 700 1rem 'DM Sans', sans-serif;
    line-height: 20px;
}

.btn-github{
    width: 10rem;
    height: 42px;
    background: none;
    border-radius: 4px;
    color: white;
    border: 1px solid #04D361;
    font: 700 1rem 'DM Sans', sans-serif;
    line-height: 20px;
    max-width: 100%;
    margin-left: 24px;
}

.container-card{
    padding: 20px;
    width: 100%;
}

.container-card-fundo{
    background-color: #0E091B;
    width: 549px;
    height: 222px;
    max-width: 100%;
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-card-fundo img{
    width: 120px;
    height: 120px;
}

footer{
    margin-top: 50px;
}

.container-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.codelandia{
    width: 55px;
    height: 3rem;
    font: 700 3rem 'Josefin Sans', sans-serif ;
    line-height: 3rem;
    text-transform: uppercase;
    color: #873EFF;
}

.texto-footer{
    display: flex;
    color: white;
    font: 400 1.125rem 'IBM Plex Mono', sans-serif;
    line-height: 150%;
    color: #AEAEAE;
}

.author{
    margin-left: 3rem;
}

.texto-footer a{
    text-decoration: none;
    color: #AEAEAE;
}

.texto-footer a:visited{
    color: #AEAEAE;
}

@media (max-width: 1024px){
    header{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        flex-direction: column;
    }

    h1, span{
        font: 700 1rem 'Josefin Sans', sans-serif;
    }

    .comunidade h2{
        font: 700 1rem 'IBM Plex Mono', sans-serif;
    }

    #container{
        margin: 0 20px 0 20px;
    }

    .menu{
        margin-top: 2.5rem;
        width: 100%;
    }

    .menu button{
        font: 700 1rem 'DM Sans', sans-serif;
        width: 100%;
        height: 4rem;
    }
    
    .github{
        display: none;
    }

    .projetos{
        font: 600 1.5rem 'IBM Plex Mono', sans-serif;
        width: 312px;
        height: 62px;
    }

    .comunidade p{
        font: 500 1rem 'DM Sans', sans-serif;
        width: 100%;
        margin-bottom: 1.6rem;
    }
    
    .cards-projetos{
        margin: auto;
        width: 100%;
    }

    .card{
        max-width: 100%;
    }

    .textos{
        max-width: 100%;
    }

    .textos h3{
        font: 500 1.375rem 'IBM Plex Mono', sans-serif;
    }

    .textos p{
        font: 500 1rem 'DM Sans', sans-serif;
    }

    .botoes{
        max-width: 100%;
        display: flex;
    }

    .btn-demo{
        max-width: 100%;
    }

    .btn-gitub{
        max-width: 100%;
    }

    .container-footer{
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .texto-footer{
        width: 100%;
        font: 400 14px 'IBM Plex Mono', sans-serif;
    }

 

    .author{
        margin-left: 1rem;
    }

}