@charset "UTF-8";

/* ===== RESET ===== */
* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY ===== */
body {
    background-color: black;
    font-family: "Kalam", cursive;
    line-height: 1.6;
    padding: 2em;
    margin: 0 auto;
    max-width: 1350px;
    width: 100%;
    cursor: url('./imagens/cursorpontinha.png'), auto;
}

a {
    text-decoration: none;
    color: white;
    cursor: url('./imagens/cursormaozinha.png'), pointer;
}

/* ===== GRID DESKTOP ===== */
.container {
    display: grid;
    grid-template-columns: 1fr 550px 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    grid-column: 1 / 4;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 15px;
}

.cabecalho {
    width: 500px;
    height: 250px;
    object-fit: contain;
}

/* ===== ASIDES ===== */
aside.esquerdo,
aside.direito {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Desktop */
aside.desktop {
    display: flex;
}

aside.mobile {
    display: none;
}

.esquerdo01 {
    width: 250px;
    height: auto;
    animation: flutuar-up 3s ease-in-out infinite;
}

.direito02 {
    width: 230px;
    height: auto;
    animation: flutuar-down 3s ease-in-out infinite;
}

/* ===== MAIN ===== */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

main h1 {
    color: white;
    margin-bottom: 20px;
}

main p {
    width: 100%;
    color: white;
    font-size: 16px;
    line-height: 1.5;
    text-transform: none;
    word-spacing: 2px;
    text-align: justify;
    margin-bottom: 20px;
}

main > a {
    width: 100px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    transition: transform 0.3s ease-in-out, color 0.3s;
}

main > a:hover {
    color: aqua;
}

h1 {
    font-family: "UnifrakturCook", cursive;
}

/* ===== FOOTER ===== */
footer {
    grid-column: 1 / 4;
    text-align: center;
    color: white;
    padding: 20px 0;
}

/* ===== RESPONSIVIDADE MOBILE ===== */
@media (max-width: 600px) {

    /* Container vira coluna */
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header {
        grid-column: 1 / -1;
    }

    .cabecalho {
        width: 80%;
        max-width: 250px;
        height: auto;
        margin: 20px auto;
    }

    main {
        width: 90%;
        max-width: 600px;
        padding: 10px;
    }

    main h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    main p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    main > a {
        font-size: 14px;
    }

    footer {
        margin-top: 20px;
    }

    /* Asides desktop escondidos */
    aside.desktop {
        display: none;
    }

    /* Asides mobile visíveis */
    aside.mobile {
        display: flex;
        width: 100%;
        justify-content: center;
        margin: 15px 0;
    }

    .esquerdo01, .direito02 {
        width: 180px;
    }

    /* ===== OCULTAR BARRA DE ROLAGEM VERTICAL APENAS NO MOBILE ===== */
    body {
        overflow-y: scroll; /* mantém a rolagem */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE e Edge antigos */
    }

    body::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
}

/* ===== ANIMAÇÕES FLUTUANTES ===== */
@keyframes flutuar-up {
    0% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
    100% { transform: translateY(0); }
}

@keyframes flutuar-down {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}
