/* ================== RESET E CONFIGURAÇÃO BÁSICA ================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Candara, sans-serif;

    /* Fundo cobrindo toda a tela */
    background-image: url('img/fundo.jpeg');
    background-size: cover;           /* cobre toda a tela */
    background-position: center;      /* centraliza a imagem */
    background-repeat: no-repeat;
    background-attachment: scroll;    /* rola junto no mobile e desktop */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}

/* ================== GIF RESPONSIVO ================== */
.gif-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

#gif {
    width: 100%;
    max-width: 1000px;
    height: 40vh;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.8s ease, visibility 0s linear 1.8s;
}

#gif.visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* ================== BOTÕES ================== */
.button-wrapper {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 250px;
    padding-bottom: 30px;
}

.click-btn {
    text-decoration: none;
    text-transform: none !important;
}

/* ===== estilo neo/cartoon ===== */
.btn-neo {
    --color: #333;
    --background: #fff;

    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 45px;

    font-size: 15px;
    font-weight: bold;
    background: var(--background);
    color: var(--color);
    border: 4px solid var(--color);
    border-radius: 999px;

    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(.3, .7, .4, 1);
    box-shadow:
        1px 1px 0px 0px var(--color),
        2px 2px 0px 0px var(--color),
        3px 3px 0px 0px var(--color);
}

.btn-neo::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    transform: translate(3px, 3px);
    transition: inherit;
}

.btn-neo:hover {
    transform: translate(-4px, -4px);
    box-shadow:
        2px 2px 0px 0px var(--color),
        4px 4px 0px 0px var(--color),
        6px 6px 0px 0px var(--color);
}

.btn-neo:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px 0px var(--color);
}

/* ================== RESPONSIVIDADE ================== */
@media (max-width: 768px) {
    html, body {
        height: 100dvh;                /* ocupa toda a altura da tela */
        overflow-y: auto;
        background-size: cover;        /* cobre toda a tela mesmo cortando */
        background-position: center;
        background-attachment: scroll; /* rola junto no mobile */
    }

    .gif-container {
        margin-top: 16px;
    }

    #gif {
        width: 100%;
        height: auto;
        max-height: 240px;
        object-fit: contain;
    }

    .button-wrapper {
        margin-top: 30px;
        width: 95%;
        max-width: 250px;
        padding-bottom: 20px;
    }

    .btn-neo {
        font-size: 14px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    #gif {
        max-height: 200px;
    }

    .button-wrapper {
        margin-top: 40px;
    }

    .btn-neo {
        font-size: 13px;
        height: 40px;
    }
}
