/* Custom version of */
/* Typewriter theme CSS from BearBlog.dev */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

:root {
    --width: 1000px;
  	--font-main: 'Special Elite', monospace;
    --font-secondary: 'Special Elite', monospace;
    --font-scale: 20px;
    --font-small: 17px;
    --background-color: #fbfbf6;
    --heading-color: #333;
    --text-color: #333;
    --link-color: #333;
    --visited-color:  #333;
    --code-background-color: #fbfbf6;
    --code-color: #333;
    --blockquote-color: #fbfbf6;
}

/* @media (prefers-color-scheme: dark) {
    :root {
      --background-color: #01242e;
      --heading-color: #eee;
      --text-color: #ddd;
      --link-color: #8cc2dd;
      --visited-color: #8b6fcb;
      --blockquote-color: #ccc;
    }
} */

body {
    font-family: var(--font-secondary);
    font-size: var(--font-scale);
    margin: auto;
    padding: 20px;
    max-width: var(--width);
    text-align: left;
    background-color: var(--background-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--heading-color);
  	font-size: var(--font-scale);
  	font-weight: 400;
}

a {
    color: var(--link-color);
    cursor: pointer;
}

nav a {
    margin-right: 8px;
}

strong, b {
    color: var(--heading-color);
}

button {
    margin: 0;
    cursor: pointer;
}

time {
    font-family: var(--font-main);
    font-style: normal;
    /* font-size: 15px; */
}

main {
    line-height: 1.6;
}

table {
    width: 100%;
}

hr {
    border: 0;
    border-top: 1px dashed;
}

img {
    max-width: 100%;
}

code {
    font-family: monospace;
    padding: 2px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    border-radius: 3px;
}

blockquote {
    border-left: 1px solid #999;
    color: var(--code-color);
    padding-left: 20px;
    font-style: italic;
}

footer {
    padding: 35px 0px 25px 0px;
    text-align: center;
}

small {
    font-size: var(--font-small) !important;
}

mark {
  background-color: #ffeb3b; /* yellow */
  color: var(--text-color);
  padding: 2px 4px;
  border-radius: 3px;
}

/* .title:hover {
    text-decoration: none;
} */

.title h1 {
    font-size: 1.5em;
}

h1.page-title, h1.blog-title {
    font-weight: bold;
    padding-top: 20px;
}

br {
    display: inline-block !important;
}

.inline {
    width: auto !important;
}

.highlight, .code {
    padding: 1px 15px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    border-radius: 3px;
    margin-block-start: 1em;
    margin-block-end: 1em;
    overflow-x: auto;
}

/* .highlight pre,
  .code pre {
    min-width: 100%;
    width: max-content;
} */

/* 404 Error */
div.not-found {
    display: inline-block;
}

.not-found img {
    width: 100%;
    height: 100%;
}

/* blog post list */
ul.blog-posts {
    list-style-type: none;
    padding: unset;
}

ul.blog-posts li {
    display: flex;
}

ul.blog-posts li span {
    flex: 0 0 130px;  
}

ul.blog-posts li a:visited {
    color: var(--visited-color);
}

ul.blog-posts h1 {
    font-weight: bold;
    display: inline-block;
}

/* Dynamic LastMod */
.dynamic-lastmod {
    font-size: var(--font-scale);
    color: var(--code-color);
    font-style: italic;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* target the details element */
details {
    padding-top: 0;
    /*margin-top: 0;*/
}

/* target the summary element */
/* details > summary { } */

/* target the children of the summary element */
details > summary > * {
    padding-left: 1px;
}

/* target the content */
details > :not(summary) {
    padding: 0 5px;
}

/* Alerts / Callouts / Admonition */
/* Base Alert Styles */
.alert {
  display: flex;
  gap: .5rem;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
  border-left: 4px solid;
  background-color: #f8f9fa;
}

/* Specific Types */
.alert-note, .alert-note > * {
  border-color: #2196f3;
  background-color: #e3f2fd;
  color: #0d47a1 !important;
}

.alert-tip, .alert-tip > * {
  border-color: #4caf50;
  background-color: #e8f5e9;
  color: #1b5e20 !important;
}

.alert-important, .alert-important > * {
  border-color: #9c27b0;
  background-color: #f3e5f5;
  color: #4a148c !important;
}

.alert-warning, .alert-warning > *{
  border-color: #ff9800;
  background-color: #fff3e0;
  color: #e65100 !important;
}

.alert-caution, .alert-caution > * {
  border-color: #f44336;
  background-color: #ffebee;
  color: #b71c1c !important;
}

.alert-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.alert-content {
  flex-grow: 1;
}

.alert-body {
  margin-top: 0.25rem;
  padding: 0;
}

/* Badges */
.badge-link {
    text-decoration: none;
}
