@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

#home_background{
    display: flex;
    flex-direction: column;   
    width: 100%;
    height: 100%;
    background-color: hsl(0, 0%, 100%);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/*seção do banner*/

#banner {
    display: flex;
    width: 100%;
    background-color: white;
    justify-content: center;
    margin-top: 8vh;
    overflow: hidden;
  }

  #banner-container-funcionalidades {
    display: flex;
    position: relative;
    height: 18.75rem; 
    width: 46.875rem; 
    justify-content: center;
    background-position: center;
    border-radius: 1rem;
    background-color: white;
  }

  #conteudo-da-calculadora,
  #conteudo-do-cardapio {
    display: flex;
    position: absolute;
    height: 18.75rem; 
    width: 40.625rem; 
    justify-content: center;
    background-position: center;
    border-radius: 1rem;
  }

#banner-img-balanca{
    width: 16.875rem; 
    height: 16.875rem;
    margin-top: 1rem;
    margin-left: 1rem;
    border-radius: 50%;
    object-fit: cover;
}

#banner-text-balanca,
#banner-text-macros {
  padding-left: 2rem;
  color: black;
}

#banner-img-macros{
    width: 19.375rem;
    height: 16.875rem;
    margin-top: 1rem;
    margin-left: 1rem;
    border-radius: 50%;
    object-fit: cover;
}

.conteudo-atual{
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out; 
}

.conteudo-oculto{
    transition: opacity 0.5s ease-in-out; 
    opacity: 0;
    visibility: hidden;
}

#prev-btn,
#next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  cursor: pointer;
}


#prev-btn {
    width: 50px; 
    height: 50px;
    left: 0; 
    z-index: 100; /*correção de um problema de sobreposição*/
    cursor: pointer
}

#next-btn {
    width: 50px; 
    height: 50px;
    right: 0; 
    cursor: pointer;
}


#arrow-left,
#arrow-right {
  width: 2.5rem;
  height: 2.5rem;
}

/*calculadora*/
#container-calculadora {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    border-radius: 1.25rem;
  }
  

  #calculadora {
    width: 100%;
    height: 100%;
    padding-left: 2rem;
  }
  

#calculadora h2{
    text-align: center;
    font-size: 1.5rem;
    color: rgb(3, 3, 3);
    margin-top: 10px;
}

#display-calculadora {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    border-radius: 0.5rem;
  }
  
#display-calculadora input {
    border-radius: 0.5rem;
    padding: 0.5rem;
    width: 100%;
    max-width: 200px;       
  }
  

  #resultado {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1.25rem; 
    line-height: 2rem;
    color: rgb(0, 0, 0);
    font-weight: bold;
  }

  #resultado h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding: 0;
    line-height: 0.5;
  }

#exibirResultado {
    width: 100%;
    max-width: 200px;
    padding: 1rem;
    font-size: 1rem;
    margin: 1rem 0;
    border: none;
    border-radius: 8px;
    background-color: #536b38;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#exibirCardapio{
    width: 30%;
    
    padding: 1rem;
    font-size: 1rem;
    margin: 1rem 0;
    border: none;
    border-radius: 8px;
    background-color: #536b38;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Media Queries para Responsividade */

/* Tablet - 768px a 1024px 
@media screen and (max-width: 1024px) {
    #home_background {
        padding-top: 12vh;
    }
    
    #banner {
        margin-top: 5%;
        padding: 0 2rem;
    }
    
    #banner-container-funcionalidades {
        width: 90%;
        max-width: 600px;
        height: 280px;
    }
    
    #conteudo-da-calculadora,
    #conteudo-do-cardapio {
        width: 90%;
        max-width: 550px;
        height: 280px;
    }
    
    #banner-img-balanca {
        width: 220px;
        height: 220px;
        margin-top: 30px;
    }
    
    #banner-img-macros {
        width: 250px;
        height: 250px;
        margin-top: 15px;
    }
    
    #banner-text-balanca,
    #banner-text-macros {
        padding-left: 20px;
    }
    
    #banner-text-balanca h2,
    #banner-text-macros h2 {
        font-size: 1.8rem;
    }
    
    #cards-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 2rem;
    }
    
    .card {
        width: 280px;
        margin: 15px;
    }
    
    #container-calculadora {
        height: 70vh;
        padding: 0 2rem;
        margin-top: 20px;
    }
    
    #calculadora {
        width: 60%;
        margin-left: 20px;
    }
    
    #display-calculadora {
        width: 60%;
    }
}*/

/* Mobile - até 768px */
@media screen and (max-width: 768px) {
    #home_background {
        overflow-x: hidden;
    }
    
    #login-btn{
        border-radius: 1rem;
        text-decoration: none;
        background-color: white;
        color: black;    
    }
    
    #banner {
        flex-direction: row;
    }
    
    #banner-container-funcionalidades {
        flex-direction: row;
        width: 95%;
        height: auto;
        min-height: 400px;
        padding: 1rem;
        
    }
    
    #conteudo-da-calculadora,
    #conteudo-do-cardapio {
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 350px;
        text-align: center;
        margin-left: 0;
    }
    
    #banner-img-balanca,
    #banner-img-macros {
        width: 180px;
        height: 180px;
        margin: 1rem auto;
        margin-left: auto;
        margin-right: auto;
    }
    
    #banner-text-balanca,
    #banner-text-macros {
        padding: 0;
        
    }
    
    #banner-text-balanca h2,
    #banner-text-macros h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    #banner-text-balanca p,
    #banner-text-macros p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    #banner-text-balanca hr,
    #banner-text-macros hr{
        padding: 0;
        
    }

    #prev-btn,
    #next-btn {
        position: relative;
        margin: 5rem;
        margin-top: 7rem;
        width: 60px;
        height: 60px;
    }
    
    #prev-btn {
        order: -1;
    }
    
    #next-btn {
        order: 1;
    }
    
    /* Calculadora */
    #container-calculadora {
        display: flex;
        flex-direction: column;
        margin-top: 2rem;
        height: auto;
    }
    
    #calculadora {
        margin: 0 auto;
        width: 80%;
        padding: 0;
        position: relative;
    }
    
    #display-calculadora {
        margin: 0 auto;
        padding: 0;
    }
    
    #display-calculadora h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    #display-calculadora input {
        width: 50%;
        max-width: 300px;
        margin: 1rem;
        padding: 0.8rem;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: #536b38 0px 0px 10px 0px;
    }
    
    #exibirResultado {
        width: 100%;
        max-width: 200px;
        padding: 1rem;
        font-size: 1rem;
        margin: 1rem 0;
        border: none;
        border-radius: 8px;
        background-color: #536b38;
        color: white;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    #exibirCardapio{
        width: 80%;
        border-radius: 8px;
        background-color: #536b38;
        padding: 0.4rem;
        font-size: 1rem;
        color: white;
    }

    #resultado {
        display: flex;
        align-items: center;
        text-align: center;
        font-size: 1rem;
        line-height: 1.8rem;
        max-height: 0; 
        opacity: 0;
        transition: max-height 0.6s ease-in-out, opacity 0.7s ease;
        margin-top: 2rem;
    }
    
    #resultado h2{
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding: 0;
        line-height: 0.5;
    }

    /* Formulário de contato */
    #contato {
        margin-top: 3rem;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    #contato h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    #contato form {
        max-width: 400px;
        margin: 0 auto;
    }
    
    #contato label {
        display: block;
        margin: 1rem 0 0.5rem;
        font-weight: bold;
        text-align: left;
    }
    
    #contato input,
    #contato textarea {
        width: 80%;
        padding: 0.8rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 1rem;
        font-family: inherit;
    }
    
    #contato button {
        width: 100%;
        padding: 1rem;
        margin-top: 1rem;
        background-color: #536b38;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    #contato button:hover {
        background-color: #0056b3;
    }
    
    /* Rodapé */
    footer {
        margin-top: 3rem;
        padding: 2rem 1rem;
        text-align: center;
        background-color: #f8f9fa;
        border-top: 1px solid #e9ecef;
    }
    
    footer p {
        margin: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    footer a {
        color: #007bff;
        text-decoration: none;
        margin: 0 0.5rem;
    }
    
    footer a:hover {
        text-decoration: underline;
    }
}

/* Mobile pequeno - até 480px */
@media screen and (max-width: 480px) {
    
    #banner {
        padding: 0 0.5rem;
    }
    
    #banner-container-funcionalidades {
        padding: 0.5rem;
        min-height: 350px;
    }
    
    #banner-img-balanca,
    #banner-img-macros {
        width: 150px;
        height: 150px;
    }
    
    #banner-text-balanca h2,
    #banner-text-macros h2 {
        font-size: 1.3rem;
    }
    
    #banner-text-balanca p,
    #banner-text-macros p {
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1rem;
        min-height: 280px;
    }
    
    .card h2 {
        font-size: 1.2rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
    
    #container-calculadora {
        padding: 0.5rem;
    }
    
    #calculadora {
        padding: 1rem;
    }
    
    #contato {
        padding: 1.5rem 0.5rem;
    }
    
    #contato h2 {
        font-size: 1.5rem;
    }
    
    footer {
        padding: 1.5rem 0.5rem;
    }
}