/* Custom Geikha Styling */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Background colors */
  --color-background: #0a0a0a;
  --color-background-secondary: #0a0a0a;
  --body-background: #0a0a0a;
  
  /* Text colors */
  --color-text-primary: #e0e0e0;
  --color-text-secondary: #b0b0b0;
  
  /* Hugo-book link color variable */
  --color-link: #bbff33;
  --color-visited-link: #bbff33;
  
  /* Heading colors */
  --color-heading: #fff;
  
  /* Font families */
  --heading-font: 'Anton', sans-serif;
  --body-font: 'Roboto', sans-serif;
  --code-font: Consolas, monospace;
}

/* Override background */
body {
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--body-font);
}

/* Override headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-family: var(--heading-font);
  text-decoration: underline;
  text-decoration-color: red;
}

/* Code and highlights */
code, pre, kbd, samp {
  font-family: var(--code-font);
}

/* Book-specific overrides */
.book-menu {
  background-color: var(--color-background-secondary);
  font-family: var(--code-font);
}

.book-brand {
  padding: 0;
  margin: 0;
}

.book-brand a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
  width: 100%;
}

/* Override the theme's fixed logo size */
.book-brand img {
  height: auto;
  width: 100%;
  max-width: none;
}

.book-page {
  background-color: var(--color-background);
}

.book-toc {
  background-color: var(--color-background-secondary);
  font-family: var(--code-font);
}

/* Sidebar items */
.book-menu a {
  color: var(--color-text-primary);
}

.book-menu a:hover {
  color: var(--color-link);
}

.book-toc a {
  color: var(--color-text-primary);
}

.book-toc a:hover {
  color: var(--color-link);
}

.book-search input {
    width: 100%;
    padding: .5rem;
    border: 1px solid var(--gray-200);
    border-radius: 0;
    background: #000;
    color: var(--body-font-color);
}

.book-brand-text {
  text-align: center;
  padding-bottom: 20px;
  font-size: 0.85rem;
  color: var(--color-text);
  font-family: serif;
}

.book-brand-text p {
  margin: 0;
}

.book-post-date {
  text-align: right;
}

.book-footer {
  font-family: var(--code-font);
}

.markdown pre {
  background-color: #0f0f0f;
}

/* Justify body text */
.markdown,
.markdown p {
  text-align: justify;
  text-justify: inter-word;
}

/* CODEMIRROR */

.CodeMirror {
  height: 100% !important;
  text-align: left;
}

.editor-container .CodeMirror {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.editor-menu{
    font-family: var(--code-font);
}

.editor-button{
  background-color: #000;
  border-color: #555;
}

video {
  width: 100%;
  padding-left: 10%;
  padding-right: 10%;
}

/* Utility Classes for Centering */
.center {
  /* display: flex; */
  justify-content: center;
  text-align: center;
  margin: 1rem auto;
}

.center img {
  display: block;
  margin: 1rem auto;
}

.center-text {
  text-align: center;
}

.center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.padded {
  padding: 8vw;
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
}

.imagefoot {
  text-align: center;
  margin: auto;
  font-size: small;
}

.imagefoot p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: none;
}

.vimeo-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background-color: #000;
  margin-bottom: 3%;
}

.vimeo-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
}