html,
body,
main,
#app {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: 'Gill Sans', Calibri, sans-serif;
    display: flex;
    flex-direction: column;
}

body {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
        url("img/carrot.png");
    background-repeat: repeat, repeat;
    background-size: auto, 30px 30px;
}

#conteudo-layout-padrao {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 5px;
}

@keyframes tremer {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(8deg);
    }

    75% {
        transform: rotate(-8deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.tremer {
    animation: tremer 0.05s ease-in-out 5;
}

@keyframes tremer-coelha-das-compras {
    0% {
        transform: scale(1, 1);
    }

    15% {
        transform: scale(1.15, 0.85);
    }

    30% {
        transform: scale(0.85, 1.15);
    }

    45% {
        transform: scale(1.18, 0.82);
    }

    60% {
        transform: scale(0.82, 1.18);
    }

    75% {
        transform: scale(1.13, 0.87);
    }

    100% {
        transform: scale(1, 1);
    }
}

.tremer-coelha-das-compras {
    animation: tremer-coelha-das-compras 0.3s linear 1;
}

#coelha-das-compras[src="img/coelha-molhada.png"] {
    min-width: 100vw;
    margin: 0 auto;
}

main {
    text-align: center;
}

main.login {
    display: flex;
    justify-content: center;
    align-items: center;
}

.imagem-abertura-secao {
    max-width: 60%;
    height: auto;
}

#coelha-das-compras {
    max-width: 60%;
    height: auto;
}

@media (width > 960px) {
    .imagem-abertura-secao {
        max-width: 30%;
    }
}

p {
    margin: 10%;
    font-size: larger;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1px 1px;
    border-radius: 1px;
    display: inline-block;
    margin-top: 12px;
    margin-bottom: 0;
}

h1 {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1px 1px;
    border-radius: 1px;
    display: inline-block;
}

#palavra-passe {
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#palavra-passe:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.5);
}

.overlay-carregando {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
    pointer-events: all;
}

/* INÍCIO MENU HAMBURGUER */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffb6c1;
    padding: 0.5rem 1rem;
}

header h1 {
    margin: 0;
    font-size: 1.2rem;
}

.menu-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.nav {
    display: flex;
    gap: 1rem;
    background: #fff0f5;
    border-left: 2px solid #ffb6c1;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.1);
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.nav a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 3.5rem;
        right: 0;
        background: #ffe4ec;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        display: none;
    }

    .nav.aberta {
        display: flex;
    }

    .nav a {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #ddd;
    }
}

/* FIM MENU HAMBURGUER */

/* INÍCIO LISTA DE COMPRAS */

#secao-lista-de-compras ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

#secao-lista-de-compras li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    background: #fdfdfd;
    user-select: none;
    width: 75%;
}

#secao-lista-de-compras li>span {
    min-width: 90%;
    text-align: center;
}

#secao-lista-de-compras .botoes-lista-de-compras>button {
    margin-top: 5px;
    margin-bottom: 5px;
}

#secao-lista-de-compras #area-adicionar-item-lista-de-compras {
    margin: 10px;
}

#secao-lista-de-compras li.encontrado {
    background-color: lightgreen;
}

#secao-lista-de-compras li.nao-encontrado {
    background-color: orange;
}

#secao-lista-de-compras div.area-sincronizar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#secao-lista-de-compras div.area-sincronizar button {
    font-size: larger;
    background-color: darkgray;
}

/* FIM LISTA DE COMPRAS */



/* INICIO LABIRINTO */

#iframe-labirinto {
    width: 100%;
    height: 80%;
}

/* FIM LABIRINTO */
