/*
thanks to
https://aaronluna.dev/blog/add-copy-button-to-code-blocks-hugo-chroma/
*/

.highlight-wrapper {
    display: block;
}

.highlight {
    position: relative;
    z-index: 0;
    padding: 0;
    margin: 0;
    border-radius: 4px;
}

.highlight>.chroma {
    color: #d0d0d0;
    /* background-color: #212121; */
    position: static;
    z-index: 1;
    border-radius: 4px;
    padding: 10px;
}

.chroma {
    overflow: auto;
}

.chroma .lntable {
    display: table;
    width: 100%;
    padding: 0 0 5px;
    margin: 0;
    border-spacing: 0;
    border: 0;
    overflow: auto;
}

.chroma .lntd:first-child {
    padding: 7px 7px 7px 10px;
    margin: 0;
}

.chroma .lntd:last-child {
    padding: 7px 10px 7px 7px;
    margin: 0;
}

.copy-code-button {
    position: absolute;
    z-index: 2;
    right: 0;
    top: 0;
    font-family: "JetBrains Mono";
    font-size: 11px;
    font-weight: 200;
    line-height: 11px;
    width: 60px;
    color: #f0f0ff;
    background-color: #4a5668;
    border: 1.25px solid #232326;
    border-top-left-radius: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 4px;
    white-space: nowrap;
    padding: 4px 8px 4px 6px;
    margin: 0 0 0 1px;
    cursor: pointer;
    opacity: 0.6;
}

.copy-code-button:hover,
.copy-code-button:focus,
.copy-code-button:active,
.copy-code-button:active:hover {
    color: white;
    background-color: darkolivegreen;
    opacity: 0.8;
}

.copyable-text-area {
    position: absolute;
    height: 0;
    z-index: -1;
    opacity: 0.01;
}

.code-name {
    position: absolute;
    z-index: 2;
    left: 48px;
    top: 0;
    font-family: 'Arvo';
    line-height: 11px;
    /* color: #485a60; */
    /* color: #041a48;
    background-color: #e7e9eb; */
    color: cornsilk;
    background-color: #333;
    font-family: "JetBrains Mono";
    font-size: 13px;
    font-weight: 400;
    border: 1.25px solid #232326;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 0;
    white-space: nowrap;
    padding: 4px 4px 6px 4px;
    margin: 0 0 0 0;
}
.code-name:hover {
    /* background-color: peachpuff; */
    background-color: darkolivegreen;
}