/* Estilos gerais */
:root {
    --color-primary: #2563eb;
    --color-accent: #10b981;
    --color-muted: #6b7280;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}
html {
    font-size: 62.5%;
}
body {
    margin: 0;
    font-family: "Inter", Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: #111827;
}

header {
    background-color: var(--color-primary);
    padding: 20px;
    color: white;

    h1 {
        font-size: clamp(2.2rem, 4vw, 3rem);
        text-align: center;
        width: 100%;
    }

    a {
        height: 80px;
        width: 80px;
        font-size: 4rem;
        position: fixed;
        top: 18px;
        display: grid;
        place-content: center;
        line-height: 4rem;
        text-decoration: none;
    }

    .glow-on-hover {
        border: none;
        outline: none;
        color: #fff;
        background: #111;
        cursor: pointer;
        z-index: 0;
        border-radius: 10px;
    }

    .glow-on-hover:before {
        content: "";
        background: linear-gradient(
            45deg,
            #ff0000,
            #ff7300,
            #fffb00,
            #48ff00,
            #00ffd5,
            #002bff,
            #7a00ff,
            #ff00c8,
            #ff0000
        );
        position: absolute;
        top: -2px;
        left: -2px;
        background-size: 400%;
        z-index: -1;
        filter: blur(5px);
        width: calc(100% + 4px);
        height: calc(100% + 4px);
        animation: glowing 20s linear infinite;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        border-radius: 10px;
    }

    .glow-on-hover:active {
        color: #000;
    }

    .glow-on-hover:active:after {
        background: transparent;
    }

    .glow-on-hover:hover:before {
        opacity: 1;
    }

    .glow-on-hover:after {
        z-index: -1;
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background: #111;
        left: 0;
        top: 0;
        border-radius: 10px;
    }

    @keyframes glowing {
        0% {
            background-position: 0 0;
        }
        50% {
            background-position: 400% 0;
        }
        100% {
            background-position: 0 0;
        }
    }
}

main {
    padding: 2rem 1rem 6rem;
    max-width: 1200px;
    margin: 0 auto;

    .card {
        background: var(--surface);
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 2rem;
        margin: 2rem auto;

        h2 {
            margin-top: 0;
            font-size: 2rem;
        }

        ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        a {
            font-size: 1.6rem;
            text-decoration: none;
            color: var(--color-primary);
            transition: color 0.3s;

            &:hover {
                color: var(--color-accent);
            }
        }
    }
}

@media (max-width: 600px) {
    header {
        display: flex;
        gap: 10px;
        align-items: center;

        a {
            position: static;

            &.glow-on-hover:after {
                position: static;
            }

            &.glow-on-hover:before {
                position: static;
            }
        }
    }
}

button {
    position: absolute;
    bottom: 10px;
    right: 10px;
}


.scare{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    opacity: 0%;
    background-image: url("img/scare.jpg");
    animation: pisca 3s infinite;
    z-index: 999;
    height:100%;
    background-position: center;
} 

@keyframes pisca{
    0%{
        opacity: 0%;
    }
    1%{
        opacity: 100%;
    }
    45%{
        opacity: 100%;
    }
    60%{
        opacity: 0%;
    }
    62%{
        opacity: 100%;
    }
    95%{
        opacity: 100%;
    }
    100% {
        opacity: 0%;
    }
}