.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding: 0.5rem 1rem;
    background-color: var(--grey-color-6);
    font-size: 0.75rem;

    button {
        background-color: var(--grey-color-5);
        color: var(--grey-color-2);
        border: 1px solid var(--grey-color-4);
        border-radius: 0.375rem;
        padding: 0.1rem 0.5rem;
        cursor: pointer;
        transition:
            background-color 0.2s,
            color 0.2s;
        &:hover {
            background-color: var(--grey-color-5);
            color: var(--grey-color-1);
        }
    }
}
.wrapper {
    position: relative;
    background-color: var(--grey-color-7);
    color: var(--grey-color-1);
    margin: 0;
    overflow-x: auto;
    > pre {
        padding: 0;
        > code {
            font-size: 0.8em;
            padding: 1rem !important;
        }
    }

    &:hover .copyButton {
        opacity: 1;
    }
    ::selection {
        background-color: var(--blue-0) !important;
        color: var(--white) !important;
    }
}

.codeBlock {
    margin-top: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.copyButton {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background-color: var(--grey-color-6);
    color: var(--grey-color-3);
    cursor: pointer;
    transition:
        color 0.2s,
        opacity 0.2s;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    padding: 0.375rem;
    border: 1px solid var(--grey-color-5);
    svg {
        width: 1rem;
        height: 1rem;
    }
    &:hover {
        color: var(--grey-color-1);
    }
}

.buttonWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    button {
        font-size: 0.9rem;
        transition: opacity 0.2s;
        &:hover {
            opacity: 0.8;
        }
    }
}
