body {
    margin: 0;
    padding: 4.5rem 0 0;
    min-height: 100vh;
    box-sizing: border-box;

    font-family: Arial, sans-serif;
    color: white;

    background: linear-gradient(25deg, rgb(22, 0, 4), rgb(21, 18, 19));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

header {
    padding: 7px;
    margin: 0;
    width: 100%;
    min-height: 4.5rem;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    z-index: 1000;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    background: rgb(19 19 19 / 40%);
    backdrop-filter: blur(12px);
    border-bottom: solid 1px rgb(110 92 92 / 75%);
    box-shadow: 0px 0px 14px rgb(60 50 50 / 50%);

    a > img {
        height: 50px;
    }

    nav {
        a {
            display: block;
            padding: 15px;
            margin: 0;
    
            text-align: center;
            text-decoration: none;
            color: white;

            border: solid 1px rgb(110 92 92 / 75%);
            border-radius: 25rem;

            transition: all 0.15s;
        }

        a:hover {
            background: rgb(110 92 92 / 50%);
            box-shadow: 0px 0px 7px rgb(110 92 92 / 75%);

            transition: all 0.15s;
        }
    }
}

footer {
    padding: 10px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    box-sizing: border-box;

    background: rgb(19 19 19 / 40%);
    border-top: solid 1px rgb(110 92 92 / 75%);
    box-shadow: 0px 0px 14px rgb(60 50 50 / 50%);

    .links {
        width: min(100%, 80rem);
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        gap: 1rem;
        
        h2 { text-align: center; }

        div {
            text-align: center;

            ul {
                padding: 0;
                margin: 0;
    
                a {
                    text-decoration: none;
                    color: white;
                    
                    li {
                        text-align: center;
                        list-style: none;
                        margin-bottom: 15px;
                    }
                }
            }
        }
    }

    .copyright { width: 100%; text-align: center; }
}

@media (max-width: 640px) {
    body { padding-top: 4rem; }

    header {
        min-height: 4rem;
        padding: 6px 10px;
    }

    header a > img {
        height: 42px;
        max-width: calc(100vw - 9rem);
        object-fit: contain;
    }

    header nav a { padding: 10px 14px; }

    footer { padding: 1.25rem 0.75rem; }
    footer .links { grid-template-columns: 1fr; gap: 0.75rem; }
    footer .copyright { max-width: 30rem; }
}
