@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background-color: var(--base);
    color: var(--text);
}

a {
    &:link {
        color: var(--blue);
    }

    &:hover, &:active, &:focus {
        color: var(--lavender);
    }

    &:visited {
        color: var(--mauve);

        &:hover, &:active, &:focus {
            color: var(--pink);
        }
    }
}

.topnav {
    background-color: var(--crust);
    overflow: hidden;
    display: flex;
    width: 100%;
    align-items: stretch;
    justify-content: space-between;

    .links {
        display: flex;
    }

    a {
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 1.3em;
        display: block;

        &:hover, &:active, &:focus {
            background-color: #aaa;
            color: black;
        }

        &.active {
            background-color: #007e46;
            color: white;
        }
    }

    button {
        &.themeChanger {
            border: none;
            background-color: inherit;
            display: grid;
            place-items: center;
        }

        &.themeChanger img {
            height: 40px;
            width: 40px;
        }
    }

}

.modlist {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    align-items: center;
    margin: 1em;

    a:not(.normal-link) {
        background-color: var(--green);
        width: 40em;
        height: 10em;
        display: grid;
        grid-template-columns: 10em auto;
        outline-color: var(--grey);
        outline-width: 5px;
        outline-style: solid;
        text-decoration: none;

        img {
            margin: 0.5em;
            width: 9em;
            height: 9em;
            image-rendering: crisp-edges;
            grid-row: span 2;
            grid-column: 1;
        }

        h2 {
            grid-row: 1;
            grid-column: 2;
            color: var(--base);
        }

        p {
            grid-row: 2;
            grid-column: 2;
            color: var(--base);
        }
    }
}

main {
    max-width: 70ch;
    margin: auto;
    font-family: "Sour Gummy", sans-serif;
    font-weight: 350;
}

footer {
    position: fixed;
    bottom: 40px;
    right: 40px;
}