:root {
    --green: hsl(75, 94%, 57%);
    --white: hsl(0, 0%, 100%);
    --grey-700: hsl(0, 0%, 20%);
    --grey-800: hsl(0, 0%, 12%);
    --grey-900: hsl(0, 0%, 8%);

    font-family: "Inter", serif;

    color-scheme: dark light;
    background-color: var(--grey-900);
    color: var(--white);
}

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

body {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-box {
    width: 375px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--grey-800);
    padding: 1rem 0;
    border-radius: 0.5rem;

    img {
        width: 5rem;
        border-radius: 50%;
    }

    span {
        color: var(--green);
        margin: 1rem 0;
    }

    nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 1rem 0;

        ul {
            width: 100%;
            list-style: none;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 1rem;
        }

        li {
            width: 85%;
            background-color: var(--grey-700);
            padding: 1rem 0;
            text-align: center;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: 0.2s;

            a {
                width: 100%;
                color: var(--white);
                text-decoration: none;
            }
        }

        li:hover {
            transform: scale(1.05);
        }
    }


}

.attribution {
    width: 100%;
    font-size: 11px;
    text-align: center;
    margin-top: 0.5rem;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

@media (prefers-color-scheme: light) {
    :root {
        --green: hsl(75, 74%, 33%);
        --grey-800: rgb(220, 220, 220);
        --grey-700: rgb(190, 190, 190);

        background-color: var(--white);
        color: var(--grey-900);
    }

    .card-box nav li a {
        
        color: var(--grey-900);
    }
}