/* Importação Fonts (GoogleFonts) */
  @import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@500&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@600&family=Montserrat:wght@800&family=Teko:wght@600&display=swap');


/* Estilos gerais (Todo projeto) */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
    background-color: #1f1517;
    color: #ffff;   
}

html {
    font-family: Inter, sans-serif;
    font-weight: 600;

}

a {
    text-decoration: none; /* Remove decoração do texto*/
}

ul {
    /* Remove os marcadores (bolinha)*/
    list-style-type: none;
}

/* _______________________________________________________________ */
/* Cabeçãho/Header (Barra de navegação) */

nav{
    max-width: 1120px;
    margin: auto; /*Centraliza o elemento horizontalmete*/
    padding: 1.5rem 10rem;/* 1*5 maior que a fonte raiz = 16px (1.5 e o topo e a base/10 os lados)*/
    display: flex;
    flex-direction: row;
    justify-content: space-between;/*Espaçamente igual entre os elementos ao longo do eixo principal*/

}

.title {
   font-family: 'Teko', sans-serif;
   font-size: 32px;
   font-weight: 600;
   text-transform: uppercase; /*Transforma o texto para letras maiusculas*/
}

/* Estilos do Hamburguer (Responsividade) */
.menu-toogle {
    display: none;
    cursor: pointer;
}

/* Imagem do Hamburguer */

.menu-icon {
    width: 28px;
    margin-left: 20px;
    display: none;

}

.menu {
    display: flex;
    flex-direction: row;
    gap: 24px; /*Define o espaçamento enrte os elementos filhos*/
    color: #fff2e780;
    margin-top: 9px;
    margin-left: 25px;
    margin-right: 25px;
}

.menu a:hover {
    color: #ffff;
}

.menu a:visited {
    color: #fff2e780; /*Define a cor dos links*/
}

.github {
    color: #fff2e7;
    font-weight: 600;
    margin-top: 8px;
}

.github:hover {
    color: #a45a49;/*Nova cor do texto quando passa por cima*/
}

/* _______________________________________________________________ */
/* Responsividade (Telas menores que 768px) */

@media screen and (max-width: 768px) {

    /*Header*/
    nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #333;
        width: 100%;
        overflow: hidden;
        transition: max-height 0.5s;
        z-index: 9;
    }

    nav ul li {
        display: block;
        margin: auto;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .menu {
        margin-left: 0px;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
        margin-right: -70px;
    }

    .github {
        margin-left: 70px;
        margin-right: 70px;
    }
    
    .title {
        margin-left: -100px;
    }
}

/* _________________________________________________________ */
/* Sessão principal (Main) */

main {
    display: flex;
    flex-direction: column;
}

.container {
    background-color: #181012;
    transform: translateX(100%);
    opacity: o;

    /* Adiciona transição para suavizar a animação*/
    transition: transform 1s ease, opacity 1s ease;
}

/* Animação para entrada da direita para a esquerda */
.container.slide-from-right {
    transform: translateX(0);
    opacity: 1;
}

.info {
    max-width: 1120px;
    height: 60vh;/* A altura disponivel é 60% da altura da tela*/
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 6rem;
    align-items: center;
    padding: 0rem 2rem; /* Os lados*/
    margin: auto;
    overflow: clip; /* Apara o conteudo que ultrapassa o container(No caso as fotos)*/

}

/* Destaque*/
.content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news {
    font-family: 'Epilogue', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Usado na palavra (Novidades) no main */
.marrom {
    color: #a45a49;
}

/* Usado na palavra (Em alta) em receitas */
.amarelo {
    color: #e7a80e;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: #fff;
}

/* Linha marrom abaixo do titulo principal (Encontre a receita) */
hr {
    border-color:#a45a49 ;
}

/* Texto abaixo do titulo principal (Explore dezenas...) */
.subtitle {
    color: #c7bab3;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    padding-bottom: 20px;
}

/* Galeria de fotos (Mosaico) */
.images {
    max-width: 45%;
    column-count: 4;/*Divide o conteudo do elemento em 4 colunas*/
    column-gap: 1rem; /* Espaçamento entre colunas*/
    margin: -1rem;
}

.images > figure > img {
    width: 100px;
    border-radius: 0.5rem;
}

/* _________________________________________________________________ */
/* Botão */

.button {
    width: 100%;
    max-width: 1120px;
    padding: 1rem;
    margin: auto;
    transform: translateY(-50%);
}

button {
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #a45a49;
    transition: background-color 0.3s ease;/* Adiciona uma transição suave para a mudança de cor*/
}

button:hover {
    background: #783f37; /* Nova cor de fundo*/
}

/* ____________________________________________________________________ */
/* Responsividade */

@media screen and (max-width: 768px){

    /* Galeria de fotos (Mosaico) */
    .container {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .images {
        column-count: 1; /*Exibe apenas 1 coluna de fotos*/
        column-gap: 0.5rem;
    }

    .receitas {
        padding-top: 0px;
    }

    .button {
        padding-bottom: 0px;
    }
    
}

/* ____________________________________________________________________ */
/* Receitas */

.receitas {
    display: flex;
    flex-direction: column;
    max-width: 1120px;
    padding: 3rem 2rem;
    margin: auto;
    padding-top: 10px;
}

.receitas-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.receitas-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff2e7;
}

.receitas-subtitle {
    color: #c7bab3;
    font-family: 'Inter', sans-serif;
    font-weight: 400 ;
    font-size: 1rem;
    font-style: normal;
}

/* Usado na palavra (Em alta) em receitas */
.amarelo {
    color: #e7a80e;
}

article {
    column-count: 2;
}

.card {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: -3rem;
}

.card-2 {
    background: #241a1c;
    padding: 2rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-basis: 29rem; /*Define o tamanho incial flexivel de elemento*/
    margin-top: 2rem;
}

.card-3 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem
}

.cappuccino {
    color: #fff2e7;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 ;
    font-size: 1.5rem;
}

.avaliacao {
    color: #756a67;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}


.descricao {
    color: #756a67;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.author {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.author > img {
    border-radius: 20rem;
    width: 1.5rem;
}

.ignacio {
    color: #c7bab3;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

/* _____________________________________________________________________________ */
/* Footer */

footer {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #23181a;
}

.footer-container {
    color: #fff2e7;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

.footer-content {
    color: rgba(255, 242, 231, 0.50);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

/* _____________________________________________________________________________ */
/* Responsividade */

@media screen and (max-width: 768px) {

    /* Receitas */

    article {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
    }
    
}
