header, footer {
    background-color: var(--accent-lotti);
}

ul {
    margin-left: 2ch;
    list-style-type: square;
}

button {
    font: inherit;
    padding: 5px;
}

.info-main {
    margin: 10px;
    padding: 10px;

    background-color: var(--accent-lotti);
    color: var(--bg-color);

    width: 100%;
    max-width: 800px;
    margin: 10px auto;

    ul:not(:last-of-type) {     
        margin-bottom: 2ch;
    }

    details {
        user-select: none;
        padding: 5px;

        &[open] summary {
            margin-bottom: 5px;
        }
    }

    summary {            
        padding: 5px;
        margin: -5px;

        cursor: pointer;

        &:hover {
            background: var(--bg-color);
            color: var(--accent-lotti);
        }
    }

    b {
        white-space: nowrap;
    }
}

.tag-group {
    margin-bottom: 2ch;
}

.tag-num-entries {
    font-size: 0.75em;
    opacity: 0.75;
}

.tag-description {
    /* border-left: 2px solid var(--bg-color); */
    /* margin-left: 2ch; */
    /* padding-left: 1ch; */

    padding: 10px;

    background: var(--bg-color);
    color: var(--accent-lotti);

    a {
        color: var(--accent-lotti);

        &:hover {
            background: var(--accent-lotti);
            color: var(--bg-color);
        }
    }
    
    .no-description {
        font-style: italic;
    }

    .aliased-to {
        margin-top: 1ch;
    }
}

.search-for {
    font-size: 0.75em;
}

a:hover {
    color: var(--accent-lotti);
}

.blacklist-main {
    display: grid;

    grid-template-columns: 1fr max-content;
    grid-template-rows: fit-content 1fr;

    gap: 10px;

    height: 600px;

    max-width: 800px;
    margin: 10px auto;
    padding: 0 10px;

    div {
        background: var(--accent-lotti);
        color: var(--bg-color);
        padding: 10px;
    }

    .blacklist-label {
        background: none;
        color: var(--accent-lotti);

        margin: -10px 0;

        grid-row: 1 / 2;
    }

    ul:not(:last-of-type) {
        margin-bottom: 1ch;
    }
}

.blacklist-edit-container {
    display: flex;
    flex-direction: column;

    gap: 5px;
    
    textarea {
        flex: 1;

        transition: background-color 0.5s ease-in-out;

        &:hover, &:focus {
            background: var(--text-color);
            color: var(--bg-color);
        }

        &.updated {
            background-color: rgb(255, 255, 190);
            transition: none;
        }
    }

    button {
        flex: 0;
    }
}

.blacklist-tag-list {    
    overflow-y: scroll;
    scrollbar-color: var(--bg-color) transparent; 

    ul {
        margin-left: 0;
        list-style-type: none;
    }
}

@media (max-width: 45em) {
    .blacklist-main {
        display: flex;
        flex-direction: column;
    }

    .blacklist-edit-container {
        min-height: 200px;
    }
}