* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    user-select: none;
}

body {
    --light-bg: #0193ac;
    --dark-bg: #192e5e;
    --light-part: rgba(255, 255, 255, 0.5);
    --dark-part: rgba(0, 0, 0, 0.5);
    --cloud-color: var(--light-bg);
    --cloud-downscale: 12; /* Higher values = faster but lower quality */
    --cloud-speed: 0.00003; /* Lower values = slower animation */
    --edge: 0.5rem;
    --small-edge: 0.25rem;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;

    font-family: Arial, sans-serif;
    background-color: var(--dark-bg);
    line-height: 1.5;
    font-size: 16pt;
}

#cloud-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

nav {
    display: grid;
    place-items: center;
    background-color: var(--dark-part);
    padding: 1rem;

    ul {
        list-style: none;
        display: grid;
        min-width: 900px;
        max-width: 1200px;
        margin: auto 0;
        grid-template-columns: 1fr auto auto;
        gap: 1rem;

        li {
            display: inline-grid;
            align-items: center;
            margin: 0 1rem;
            line-height: 2rem;
        }

        a {
            display: inline-grid;
            grid-template-columns: auto 1fr;
            gap: 1rem;
            color: mintcream;
            text-decoration: none;

            img {
                top: -0.5rem;
                width: 2rem;
                height: 2rem;
                border-radius: 50%;
                object-fit: cover;
                object-position: center 10%;
            }

            &:hover {
                text-decoration: underline;
            }
        }
    }
}

main {
    min-width: 900px;
    max-width: 1200px;
    margin: 0 auto;

    >header {
        margin-top: 3rem;
        display: grid;
        place-items: center;
        gap: 3rem;
        color: rgba(255, 255, 255, 0.87);

        img {
            width: 16rem;
            height: 16rem;
            border-radius: 50%;
            object-fit: cover;
            object-position: center 10%;
        }

        h1 {
            font-size: 4em;
            text-align: center;
        }
    }

    hr {
        border: none;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.12);
    }

    section {
        margin: 1rem 0;
        padding: 1.5rem 2rem;
        color: rgba(255, 255, 255, 0.87);
    }

    .brit {
        position: relative;
        overflow: hidden;

        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url('flag.svg');
            background-size: cover;
            background-position: center;
            opacity: 0.1;
            z-index: 0;
        }
    }

    .cards {
        display: grid;
        gap: 1rem;
        grid-template-columns: 1fr 1fr;
        font-size: 1rem;

        h4 {
            font-size: 2rem;
        }
    }

    .card {
        display: grid;
        gap: 0.5rem;
        background-color: var(--light-part);
        color: rgba(0, 0, 0, 0.87);
        border-radius: var(--edge);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
        padding: 1rem;

        >* {
            position: relative;
            z-index: 1;
        }

        a.button {
            padding: .5rem 1rem;
            border-radius: var(--small-edge);
            width: fit-content;
            justify-self: right;
            color: mintcream;
            background-color: var(--light-bg);
            text-decoration: none;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
            transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
            &:hover {
                box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)
            }
            &:active {
                box-shadow: none;
            }
        }
    }

    ul, ol {
        padding-left: 2rem;
    }
}

footer {
    margin: auto 0;
    padding: 1rem;
    text-align: center;
    background-color: var(--dark-part);
    color: #cccccc;
    color: mintcream;
}