/* Configurações gerais */
:root {
    --verde-claro: rgba(102, 178, 51, 1);
    --verde-claro-transparente: rgba(102, 178, 51, 0.4);
    --verde-claro-transparente-01: rgba(102, 178, 51, 0.04);
    --verde-escuro: rgb(0, 80, 0);
    --verde-escuro-transparente: rgba(0, 80, 0, 0.4);
    --verde-folha: rgb(34, 102, 34, 1);
}

* {
    padding: 0;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: justify;
}

html,
body {
    overflow-x: hidden;
    touch-action: pan-y;
}

p {
    font-size: x-large;
}

h3 {
    font-size: xx-large;
}

body {
    display: grid;
    justify-content: center;
}

#content {
    display: grid;
    justify-content: center;
    position: relative;
    z-index: 0;
    width: 70%;
    justify-self: center;
    flex: 1;
    min-height: calc(100vh - 200px);
    
}

a {
    font-size: xx-large;
}

#color_change:nth-child(odd) {
    background-color: #be9797;
}

#color_change:nth-child(even) {
    background-color: #ffffff;
}

@media(max-width: 1200px) {
    #content {
        width: 85%;
    }

}

@media(max-width: 999px) {
    #content {
        width: 90%;
    }

}

/* ------------------------------------------------------------- */
/* NAVBAR ------------------------------------------------------ */
/* ------------------------------------------------------------- */
nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    max-height: 25vh;
}

nav a {
    color: #000000;
    text-decoration: none;
    transition: 0.3s;
    font-size: larger;
} 

.logo {
    display: flex;
    justify-content: center;
    max-width: 300px;
    height: 120px;
    max-height: 100%;
    font-size: 24px;
    text-transform: uppercase;
    
}

nav .imagemSobre  {
    z-index: 0;
    width: auto;
    height: 100%;
    width: 100%;
    max-height: 150px;
}

main {
    background: url("bg.jpg") no-repeat center center;
    background-size: cover;
    height: 92vh;
}

.nav-list a{
    color: var(--verde-escuro);
}

.nav-list {
    list-style: none;
    display: flex;
    padding-left: 0;
}

.nav-list li {
    letter-spacing: 3px;
    margin-left: 32px;
    text-align: #ffffff;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 5%;
}

.mobile-menu div {
    width: 32px;
    height: 2px;
    background: #000000;
    margin: 8px;
    transition: 0.3s;
}

@media (max-width: 999px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        gap: 6vh;
        padding-top: 50px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        z-index: 5;
        border-bottom-left-radius: 20px;
        border-right: solid 2px rgba(0, 0, 0, 0.3);
        box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        
    }
    nav{
        min-height: 150px;
    }

    .nav-list li {
        margin-left: 0;
        opacity: 0;
    }

    .mobile-menu {
        display: block;
    }
}

.nav-list.active {
    display: flex;
    transform: translateX(0);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu.active .line1 {
    transform: rotate(-45deg) translate(-8px, 8px);
}

.mobile-menu.active .line2 {
    opacity: 0;
}

.mobile-menu.active .line3 {
    transform: rotate(45deg) translate(-5px, -7px);
}


#edit_site {
    right: 0;
    bottom: -50px;
    color: rgba(0, 0, 0, 0.3);
    padding: 2px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
}

/* ------------------------------------------------------------- */
/* DESCRIPTION-------------------------------------------------- */
/* ------------------------------------------------------------- */

.page_description {
    display: flex;
    height: 10vh;
    min-width: 70vw;
    align-items: center;
    justify-content: center;
    background-color: rgb(247, 247, 247);
    border-radius: 20px;
    margin: 1% 0;
}

.page_description h1{
    color: var(--verde-escuro);
}

/* ------------------------------------------------------------- */
/* PAGE EDITION------------------------------------------------- */
/* ------------------------------------------------------------- */

.textInput {
    width: calc(30% + 50px);
    min-width: min(400px, 100%);
    max-width: 100%;
    border-radius: 7px;
    font-size: 30px;
}

.dropdown-container {
    height: auto;
    margin-bottom: 10px;
}

#categoriaDropdown {
    width: 250px;
    height: 50px;
    border-radius: 5px;
    border: 2px solid #ccc;
    font-size: 20px;
}

.descricoes {
    width: 100%;
    min-height: 200px;
    border-radius: 10px;
    font-size: x-large;
}

#charCount {
    margin: 0;
    margin-bottom: 0;
}

#salvarBtn1,
#salvarBtn {
    align-self: center;
    width: 75px;
    border-radius: 10px;
    background-color: rgba(0, 128, 0, 0.7);
}



.dropdown-container button {
    border-radius: 7px;
    padding: 1px;
}

#editarBtn:hover,
#adicionarBtn:hover {
    background-color: rgba(0, 128, 0, 0.2);
    box-shadow: 0 0 20px 5px rgba(0, 128, 0, 0.2);
}

#excluirBtn:hover {
    background-color: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 20px 5px rgba(255, 0, 0, 0.2);
}

.dropdown-container * {
    margin-right: 15px;
}

label {
    font-size: xx-large;
}

/* ------------------------------------------------------------- */
/* PAGE ICONS -------------------------------------------------- */
/* ------------------------------------------------------------- */
.icon i {
    font-size: 60px;
    margin-inline: 20px;
}

.icon i {
    color: var(--verde-folha);
    transition: color 0.3s ease, filter 0.3s ease;
    /* Adiciona transição para cor e sombra */
}

.icon i:hover {
    color: var(--verde-claro);
    filter: drop-shadow(0 0 10px var(--verde-claro-transparente));
    /* Adiciona uma sombra externa */
}

/* ------------------------------------------------------------- */
/* PAGE BUTTONS ------------------------------------------------ */
/* ------------------------------------------------------------- */

button,
.btn{
    background-color: var(--verde-claro-transparente);
    border: 2px solid var(--verde-claro);
} 

@media (max-width: 768px){
    #edit_site {
        display: none;
    }
}

/* ------------------------------------------------------------- */
/* FOOTER ------------------------------------------------------ */
/* ------------------------------------------------------------- */

footer {
    display: grid;
    grid-template-columns: repeat(3, auto); 
    justify-content: center;
    justify-items: center;
    width: 100vw;
    margin-top: 50px;
    padding-block: 50px;
    gap: 10vw;
    border-top: 10px solid rgba(0, 128, 0, 0.1);
    background: linear-gradient(to bottom, rgba(0, 128, 0, 0.1) 0%, rgba(0, 128, 0, 0) 25%);
    color: white;
    position: relative;
}

footer .imagemSobre{
    object-fit: contain;
    width: 100%;
    height: auto;
    max-width: 20vw;
}

@media(max-width: 1200px) {
    footer {
        grid-template-columns: 1fr; 
        align-items: center;
    }
    footer .imagemSobre{
        max-width: 60vw;
    }
}