.block {
    position: relative;
    padding-top: 25px;
    display: inline-block;
}

@media screen and (max-width: 1500px) {
    .block {
        width: 100%;
    }
}

.pre {
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 80% !important;
    line-height: 180% !important;
    white-space: pre;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
}

.code {
    font-family: monospace;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    display: block;
    -webkit-overflow-scrolling: touch;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    max-width: 100%;
    min-width: 100px;
    font-size: 80%  !important;
    line-height: 180%  !important;
    white-space: pre  !important;
    background: var(--quinary) !important;
    color: white  !important;
    tab-size: 4;
}

.code::selection {
    color: var(--text);
    background: white;
}

.code::-webkit-scrollbar {
    display: none;
}

.language {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    left: var(--spacing-sm);
    font-size: 12px;
    user-select: none;
    pointer-events: none;
    height: 25px;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    background: var(--quinary);
    color: white;
    border-top-right-radius: var(--border-radius-sm);
    border-top-left-radius: var(--border-radius-sm);
    text-transform: capitalize;
}

.copy {
    position: absolute;
    right: 0;
    top: 25px;
    padding: 0.35rem;
    cursor: pointer;
    display: block;
    border-bottom: 1px solid white;
    outline: 0;
    appearance: none;
    border-left: 1px solid white;
    border-bottom-left-radius: var(--border-radius-sm);
}

.copy:hover svg {
    fill: var(--primary);
}

.copy:before {
    content: '';
    background-color: aliceblue;
    border-radius: var(--border-radius-sm);
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: scale(0.001, 0.001);
}

.copy:focus:before {
    animation: pressed 0.8s ease-out;
}

@keyframes pressed {
    50% {
        transform: scale(1.5, 1.5);
        opacity: 0;
    }
    99% {
        transform: scale(0.001, 0.001);
        opacity: 0;
    }
    100% {
        transform: scale(0.001, 0.001);
        opacity: 1;
    }
}