/* 
 * This is a modified version of the 'GitHub' highlight.js theme to work with Gradio
 * https://github.com/highlightjs/highlight.js/blob/main/src/styles/github.css
 */
.hljs {
  color: #24292e !important;
  /* background: #fff; */
}

.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  color: #d73a49 !important;
}

.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  color: #6f42c1 !important;
}

.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id,
.hljs-variable {
  color: #005cc5 !important;
}

.hljs-meta .hljs-string,
.hljs-regexp,
.hljs-string {
  color: #032f62 !important;
}

.hljs-built_in,
.hljs-symbol {
  color: #e36209 !important;
}

.hljs-code,
.hljs-comment,
.hljs-formula {
  color: #6a737d !important;
}

.hljs-name,
.hljs-quote,
.hljs-selector-pseudo,
.hljs-selector-tag {
  color: #22863a !important;
}

.hljs-subst {
  color: #24292e !important;
}

.hljs-section {
  color: #005cc5 !important;
  font-weight: 700 !important;
}

.hljs-bullet {
  color: #735c0f !important;
}

.hljs-emphasis {
  color: #24292e !important;
  font-style: italic !important;
}

.hljs-strong {
  color: #24292e !important;
  font-weight: 700 !important;
}

.hljs-addition {
  color: #22863a !important;
  background-color: #f0fff4 !important;
}

.hljs-deletion {
  color: #b31d28 !important;
  background-color: #ffeef0 !important;
}

/* Added CSS for the highlight.js copy button plugin */
.hljs-copy-button {
  color: #1f2937 !important;
  border: 1px solid hsl(240 13% 50%) !important;
  background: var(--button-secondary-background-fill, #eaecef) !important;
  background-image: url('data:image/svg+xml;utf-8,<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6 5C5.73478 5 5.48043 5.10536 5.29289 5.29289C5.10536 5.48043 5 5.73478 5 6V20C5 20.2652 5.10536 20.5196 5.29289 20.7071C5.48043 20.8946 5.73478 21 6 21H18C18.2652 21 18.5196 20.8946 18.7071 20.7071C18.8946 20.5196 19 20.2652 19 20V6C19 5.73478 18.8946 5.48043 18.7071 5.29289C18.5196 5.10536 18.2652 5 18 5H16C15.4477 5 15 4.55228 15 4C15 3.44772 15.4477 3 16 3H18C18.7956 3 19.5587 3.31607 20.1213 3.87868C20.6839 4.44129 21 5.20435 21 6V20C21 20.7957 20.6839 21.5587 20.1213 22.1213C19.5587 22.6839 18.7957 23 18 23H6C5.20435 23 4.44129 22.6839 3.87868 22.1213C3.31607 21.5587 3 20.7957 3 20V6C3 5.20435 3.31607 4.44129 3.87868 3.87868C4.44129 3.31607 5.20435 3 6 3H8C8.55228 3 9 3.44772 9 4C9 4.55228 8.55228 5 8 5H6Z" fill="%231f2937"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 3C7 1.89543 7.89543 1 9 1H15C16.1046 1 17 1.89543 17 3V5C17 6.10457 16.1046 7 15 7H9C7.89543 7 7 6.10457 7 5V3ZM15 3H9V5H15V3Z" fill="%231f2937"/></svg>') !important;
}

.hljs-copy-button:hover {
  border-color: hsl(240 13% 35%) !important;
}

.hljs-copy-button:active {
  border-color: hsl(240 13% 20%) !important;
}

.hljs-copy-button[data-copied="true"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' width='16' viewBox='0 0 64 64' enable-background='new 0 0 64 64'%3E%3Cpath d='M32,2C15.431,2,2,15.432,2,32c0,16.568,13.432,30,30,30c16.568,0,30-13.432,30-30C62,15.432,48.568,2,32,2z M25.025,50 l-0.02-0.02L24.988,50L11,35.6l7.029-7.164l6.977,7.184l21-21.619L53,21.199L25.025,50z' fill='%2343a047'/%3E%3C/svg%3E%0A") !important;
}