:root {
    --bg-color: #36393f;
    --main-color: #dcddde;
    --caret-color: #d6d2bc;
    --sub-color: #ffffff;
    --sub-alt-color: #3f4243;
    --text-color: #d6d2bc;
    --error-color: #ff4a59;
    --error-extra-color: #c43c53;
    --colorful-error-color: #ff4a59;
    --colorful-error-extra-color: #c43c53;

    --section-bg: var(--sub-alt-color);
    --selection: #1c76c5;
    --text-main: var(--text-color);
    --text-bright: #fff;
    --text-muted: #a9b1ba;
    --links: #41adff;
    --focus: rgba(0, 150, 191, 0.67);
    --border-color: var(--sub-alt-color);
    --border-width-all: 2px;
    --code: #ffbe85;
    --animation-duration: 0.1s;
    --scrollbar-thumb: var(--button-hover);
    --scrollbar-thumb-hover: #000;
    --form-placeholder: #a9a9a9;
    --form-text: #fff;
    --variable: #d941e2;
    --highlight: #efdb43;
}

.light-theme {
    --bg-color: #fff;
    --background: #efefef;
    --bg-color: #f7f7f7;
    --selection: #9e9e9e;
    --text-main: #363636;
    --text-bright: #000;
    --text-muted: #70777f;
    --links: #0076d1;
    --focus: rgba(0, 150, 191, 0.67);
    --border: #dbdbdb;
    --code: #000;
    --animation-duration: 0.1s;
    --main-color: #d0cfcf;
    --button-hover: #9b9b9b;
    --scrollbar-thumb: #aaa;
    --scrollbar-thumb-hover: var(--button-hover);
    --form-placeholder: #949494;
    --form-text: #1d1d1d;
    --variable: #39a33c;
    --highlight: #ff0;
    --select-arrow: url(data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='63' width='117' fill='%23161f27'%3E%3Cpath d='M115 2c-1-2-4-2-5 0L59 53 7 2a4 4 0 00-5 5l54 54 2 2 3-2 54-54c2-1 2-4 0-5z'/%3E%3C/svg%3E);
}
html {
    scrollbar-color: #040a0f #202b38;
    scrollbar-color: var(--scrollbar-thumb) var(--bg-color);
    scrollbar-width: thin;
}
body {
    font-family: "Roboto Mono", monospace;
    line-height: 1.6;
    padding: 0 16px;/* 10 */
    margin:0;
    word-wrap: break-word;
    color: #dbdbdb;
    color: var(--text-main);
    background: #202b38;
    background: var(--bg-color);
    text-rendering: optimizeLegibility;
}
nav {
    padding: 8px;
    margin: 0;
    /* border-bottom: 1px solid #484d55; */
    /* background-color: #202225; */
    margin-bottom: 30px;
}
main {
    max-width: 1000px;
    margin: 0 auto;
}
/*  --min: 12ch; */
section {
  --min: 12ch;
  --gap: 0.7rem;
  display: grid;
  grid-gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min)), 1fr));
  margin: 14px 0;
}

@media (min-width: 486px) {
    section {
        --min: 18ch;
    }
}

section > div {
  border-radius: 12px;
  background-color: var(--section-bg);
  padding: 12px;
} 

section > p {
    border-radius: 12px;
    margin: 0;
    /* border: var(--border-width-all) solid var(--border-color); */
    /* padding: 12px; */
}
.blow:hover {
    z-index: 99;
    cursor: grab;
    border-bottom: 2px solid yellow;
    border-top: 2px solid yellow;
}
.blow {
    transition: transform 1s ease;
    /* cursor: zoom-out; */
}
.hov {
    /* position: relative; */
    /* display: inline-block;  */
    overflow: hidden; 
  }
  
  .hov a > img {
    /* display: block;  */
    width: 100%; 
    height: auto; 
  }
  
  .hov::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background-color: rgba(255, 255, 0, 1); /* Set your border color */
    transition: height 0.3s ease; /* Smooth transition */
  }
  .hov:hover::after {
    height: 5px; /* Adjust height for the "inner border" effect */
  }
/* start summary page */
.book-promo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #2f3136;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.book-cover img {
    max-width: 100%;
    border-radius: 10px;
}
.book-details {
    text-align: left;
    max-width: 480px;
    width: 100%;
    font-family: Arial, sans-serif;

}
.book-details h1 {
    font-size: 24px;
}
.book-details p {
    margin: 10px 0;
}
.book-details a {
    color: #0066cc;
    text-decoration: none;
}
.book-details a:hover {
    text-decoration: underline;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.tags span {
    background-color: #23a55a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
}
.summary h2 {
    margin-top: 20px;
    font-size: 18px;
}
.summary p {
    margin: 10px 0;
}
@media (max-width: 768px) {
    .book-promo {
        flex-direction: column;
    }

    .book-details {
        max-width: 100%;
    }
}
/* end summary page */

h1 {
    font-size: 2.2em;
    margin-top: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 12px;
    margin-top: 24px;
}
h1,
h2,
h3,
h4,
h5,
h6,
strong {
    color: #fff;
    color: var(--sub-color);
}
b,
h1,
h2,
h3,
h4,
h5,
h6,
strong,
th {
    font-weight: 500;
}
q:after,
q:before {
    content: none;
}
blockquote,
q {
    border-left: 4px solid rgba(0, 150, 191, 0.67);
    border-left: 4px solid var(--focus);
    margin: 1.5em 0;
    padding: 0.5em 1em;
    font-style: italic;
}
blockquote > footer {
    font-style: normal;
    border: 0;
}
address,
blockquote cite {
    font-style: normal;
}
a[href^="mailto\:"]:before {
    content: "📧 ";
}
a[href^="tel\:"]:before {
    content: "📞 ";
}
a[href^="sms\:"]:before {
    content: "💬 ";
}
mark {
    background-color: #efdb43;
    background-color: var(--highlight);
    border-radius: 2px;
    padding: 0 2px;
    color: #000;
}
a > code,
a > strong {
    color: inherit;
}
button,
input[type="button"],
input[type="checkbox"],
input[type="radio"],
input[type="range"],
input[type="reset"],
input[type="submit"],
select {
    cursor: pointer;
}
input,
select {
    display: block;
}
[type="checkbox"],
[type="radio"] {
    display: initial;
}

button,
input,
select,
textarea,
.button, 
input[type=button], 
input[type=reset], 
input[type=submit] {
    color: var(--sub-alt-color);
    background-color: #161f27;
    background-color: var(--sub-alt-color);
    cursor: pointer;
    transition: background-color .125s, color .125s, opacity .125s;
    padding: 0.5em;
    font-family: inherit;
    font-size: 1em;
    text-align: center;
     -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    align-content: center;
    height: -moz-min-content;
    height: min-content;
    line-height: 1.25;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin-right: 6px;
    margin-bottom: 6px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    outline: none;
    /*display: inline-flex;
    gap: 0.5em;*/
    align-items: baseline;
    justify-content: center;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background-color: var(--main-color);
    padding-right: 30px;
    padding-left: 30px;
}

button:hover, 
.button:hover, 
input[type=button]:hover, 
input[type=reset]:hover, 
input[type=submit]:hover {
    color: var(--sub-alt-color);
    background: var(--text-color);
    outline: none;
}

input[type="color"] {
    min-height: 2rem;
    padding: 8px;
    cursor: pointer;
}
input[type="checkbox"],
input[type="radio"] {
    height: 1em;
    width: 1em;
}
input[type="radio"] {
    border-radius: 100%;
}
input {
    vertical-align: top;
}
label {
    vertical-align: middle;
    margin-bottom: 4px;
    display: inline-block;
}
button,
input:not([type="checkbox"]):not([type="radio"]),
input[type="range"],
select,
/* textarea {
    -webkit-appearance: none;
} */
textarea {
    display: block;
    margin-right: 0;
    box-sizing: border-box;
    resize: vertical;
}
textarea:not([cols]) {
    width: 100%;
}
textarea:not([rows]) {
    min-height: 40px;
    height: 140px;
}
select {
    background: #161f27
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='63' width='117' fill='%23efefef'%3E%3Cpath d='M115 2c-1-2-4-2-5 0L59 53 7 2a4 4 0 00-5 5l54 54 2 2 3-2 54-54c2-1 2-4 0-5z'/%3E%3C/svg%3E")
        calc(100% - 12px) 50%/12px no-repeat;
    background: var(--background) var(--select-arrow) calc(100% - 12px) 50%/12px no-repeat;
    padding-right: 35px;
}
select::-ms-expand {
    display: none;
}
select[multiple] {
    padding-right: 10px;
    background-image: none;
    overflow-y: auto;
}
button:focus,
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(0, 150, 191, 0.67);
    box-shadow: 0 0 0 2px var(--focus);
}
button.active, 
.button.active, 
input[type=button].active, 
input[type=reset].active, 
input[type=submit].active {
    background: var(--main-color);
    color: var(--bg-color);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
fieldset {
    border: 1px solid rgba(0, 150, 191, 0.67);
    border: 1px solid var(--focus);
    border-radius: 6px;
    margin: 0 0 12px;
    padding: 10px;
}
legend {
    font-size: 0.9em;
    font-weight: 600;
}
input[type="range"] {
    margin: 10px 0;
    padding: 10px 0;
    background: transparent;
}
input[type="range"]:focus {
    outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 9.5px;
    -webkit-transition: 0.2s;
    transition: 0.2s;
    background: #161f27;
    background: var(--background);
    border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
    box-shadow: 0 1px 1px #000, 0 0 1px #0d0d0d;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #526980;
    background: var(--border);
    -webkit-appearance: none;
    margin-top: -7px;
}
input[type="range"]:focus::-webkit-slider-runnable-track {
    background: #161f27;
    background: var(--background);
}
input[type="range"]::-moz-range-track {
    width: 100%;
    height: 9.5px;
    -moz-transition: 0.2s;
    transition: 0.2s;
    background: #161f27;
    background: var(--background);
    border-radius: 3px;
}
input[type="range"]::-moz-range-thumb {
    box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #526980;
    background: var(--border);
}
input[type="range"]::-ms-track {
    width: 100%;
    height: 9.5px;
    background: transparent;
    border-color: transparent;
    border-width: 16px 0;
    color: transparent;
}
input[type="range"]::-ms-fill-lower,
input[type="range"]::-ms-fill-upper {
    background: #161f27;
    background: var(--background);
    border: 0.2px solid #010101;
    border-radius: 3px;
    box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d;
}
input[type="range"]::-ms-thumb {
    box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d;
    border: 1px solid #000;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #526980;
    background: var(--border);
}
input[type="range"]:focus::-ms-fill-lower,
input[type="range"]:focus::-ms-fill-upper {
    background: #161f27;
    background: var(--background);
}
a {
    text-decoration: none;
    color: #41adff;
    color: var(--links);
}
a:hover {
    text-decoration: underline;
}
code,
samp,
time {
    background: #161f27;
    background: var(--background);
    color: #ffbe85;
    color: var(--code);
    padding: 2.5px 5px;
    border-radius: 6px;
    font-size: 1em;
}
pre > code {
    padding: 10px;
    display: block;
    overflow-x: auto;
}
var {
    color: #d941e2;
    color: var(--variable);
    font-style: normal;
    font-family: monospace;
}
kbd {
    background: #161f27;
    background: var(--background);
    border: 1px solid #526980;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: #dbdbdb;
    color: var(--text-main);
    padding: 2px 4px;
}
img,
video {
    max-width: 100%;
    height: 100%;/* 100% */
    border-radius: 12px;
}
hr {
    border: none;
    border-top: 1px solid #526980;
    border-top: 1px solid var(--border);
}
table {
    border-collapse: collapse;
    margin-bottom: 10px;
    width: 100%;
    table-layout: fixed;
}
table caption,
td,
th {
    text-align: left;
}
td,
th {
    padding: 6px;
    vertical-align: top;
    word-wrap: break-word;
}
thead {
    border-bottom: 1px solid #526980;
    border-bottom: 1px solid var(--border);
}
tfoot {
    border-top: 1px solid #526980;
    border-top: 1px solid var(--border);
}
tbody tr:nth-child(2n) {
    background-color: #161f27;
    background-color: var(--background);
}
tbody tr:nth-child(2n) button {
    background-color: #1a242f;
    background-color: var(--bg-color);
}
tbody tr:nth-child(2n) button:hover {
    background-color: #202b38;
    background-color: var(--bg-color);
}
::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #161f27;
    background: var(--background);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb {
    background: #040a0f;
    background: var(--scrollbar-thumb);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #000;
    background: var(--scrollbar-thumb-hover);
}
::-moz-selection {
    background-color: #1c76c5;
    background-color: var(--selection);
    color: #fff;
    color: var(--text-bright);
}
::selection {
    background-color: #1c76c5;
    background-color: var(--selection);
    color: #fff;
    color: var(--text-bright);
}
details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #1a242f;
    background-color: var(--bg-color);
    padding: 10px 10px 0;
    margin: 1em 0;
    border-radius: 6px;
    overflow: hidden;
}
details[open] {
    padding: 10px;
}
details > :last-child {
    margin-bottom: 0;
}
details[open] summary {
    margin-bottom: 10px;
}
summary {
    display: list-item;
    background-color: #161f27;
    background-color: var(--background);
    padding: 10px;
    margin: -10px -10px 0;
    cursor: pointer;
    outline: none;
}
summary:focus,
summary:hover {
    text-decoration: underline;
}
details > :not(summary) {
    margin-top: 0;
}
summary::-webkit-details-marker {
    color: #dbdbdb;
    color: var(--text-main);
}
dialog {
    background-color: #1a242f;
    background-color: var(--bg-color);
    color: #dbdbdb;
    color: var(--text-main);
    border-radius: 6px;
    border: #526980;
    border-color: var(--border);
    padding: 10px 30px;
}
dialog > header:first-child {
    background-color: #161f27;
    background-color: var(--background);
    border-radius: 6px 6px 0 0;
    margin: -10px -30px 10px;
    padding: 10px;
    text-align: center;
}
dialog::-webkit-backdrop {
    background: rgba(0, 0, 0, 0.61);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
dialog::backdrop {
    background: rgba(0, 0, 0, 0.61);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
footer {
    border-top: 1px solid #526980;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    color: #a9b1ba;
    color: var(--text-muted);
}
body > footer {
    margin-top: 40px;
}
@media print {
    body,
    button,
    code,
    details,
    input,
    pre,
    summary,
    textarea {
        background-color: #fff;
    }
    button,
    input,
    textarea {
        border: 1px solid #000;
    }
    body,
    button,
    code,
    footer,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    input,
    pre,
    strong,
    summary,
    textarea {
        color: #000;
    }
    summary::marker {
        color: #000;
    }
    summary::-webkit-details-marker {
        color: #000;
    }
    tbody tr:nth-child(2n) {
        background-color: #f2f2f2;
    }
    a {
        color: #00f;
        text-decoration: underline;
    }
}
/* extra */
html {
    scroll-behavior: smooth;
}

#link-snippet-headline {
    margin: 1rem 2.5rem 1rem 0;
}
#copy-button {
    position: relative;
    margin-right: 2px;
    overflow: visible;
}
#copy-button-feedback {
    position: absolute;
    left: -2rem;
    display: inline-block;
    transform: scale(1.3);
}
#link-snippet-container {
    overflow: hidden;
    display: grid;
    display: -ms-grid;
    -ms-grid-columns: 1fr;
}
#link-snippet-container > pre {
    overflow: auto;
    grid-column: 1;
    grid-row: 1;
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1) 0.22s;
}
#link-snippet-container > pre[hidden] {
    display: block;
    visibility: hidden;
    transform: scale(0);
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1), visibility 0ms 0.22s;
}
#theme-form > label:not(:last-of-type) {
    margin-right: 1rem;
}
#version-info th {
    width: 35%;
}
body > footer {
    text-align: center;
}
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}