/* Fonts */
@font-face {
  font-family: 'UbuntuMono Nerd Font';
  src: url('../fonts/UbuntuMonoNerdFont-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'UbuntuMono Nerd Font';
  src: url('../fonts/UbuntuMonoNerdFont-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'UbuntuMono Nerd Font';
  src: url('../fonts/UbuntuMonoNerdFont-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'UbuntuMono Nerd Font';
  src: url('../fonts/UbuntuMonoNerdFont-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'UbuntuMono Nerd Font Mono';
  src: url('../fonts/UbuntuMonoNerdFontMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'UbuntuMono Nerd Font Mono';
  src: url('../fonts/UbuntuMonoNerdFontMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'UbuntuMono Nerd Font Mono';
  src: url('../fonts/UbuntuMonoNerdFontMono-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'UbuntuMono Nerd Font Mono';
  src: url('../fonts/UbuntuMonoNerdFontMono-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'UbuntuMono Nerd Font Propo';
  src: url('../fonts/UbuntuMonoNerdFontPropo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'UbuntuMono Nerd Font Propo';
  src: url('../fonts/UbuntuMonoNerdFontPropo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'UbuntuMono Nerd Font Propo';
  src: url('../fonts/UbuntuMonoNerdFontPropo-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'UbuntuMono Nerd Font Propo';
  src: url('../fonts/UbuntuMonoNerdFontPropo-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

/* Global */

* {
  padding: 0;
  margin: 0;
  font-size: 18px;
  transition: ease 0.3s;
  text-shadow: 0 0 1px currentColor;
  font-family: 'UbuntuMono Nerd Font', monospace;
}

html body {
  min-height: 100vh;
  min-width: 100vw;
}

/* Definitions */

body {
  --bg: #1c1c1c;
  --bg-semi: #1c1c1cee;
  --secondary: #353535;
  --text: #bcbcbc;
  --hlight: #f92672;
  --hlight-hover: #960050;
  --link: #00d6b5;
  --link-hover: #51edbc;
  --heading: #fd971f;
}

body.light {
  --bg: #f4f4f4;
  --bg-semi: #f4f4f4ee;
  --secondary: #dbdbdb;
  --text: #545454;
  --hlight: #70e000;
  --hlight-hover: #960050;
  --link: #00d6b5;
  --link-hover: #51edbc;
  --heading: #fd971f;
}

/* Main */

body {
  background-color: var(--bg);
  color: var(--text);
}

header {
  width: 100%;
  background-color: var(--secondary);
  padding: 0.5rem 1.5rem;
  margin-bottom: 5rem;
}

footer {
  width: 100%;
  background-color: var(--secondary);
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  margin-top: auto;
  position: fixed;
  bottom: 0;
}

h1 {
  color: var(--heading);
  font-size: 1.5rem;
}

h2 {
  color: var(--heading);
  margin: 0.5rem 0;
  font-size: 1.3rem;
}

em {
  color: var(--hlight);
}

em:hover {
  color: var(--hlight-hover);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover)
}

a:clicked {
  color: var(--link);
}

div.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

@property --deg {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}

div.main::before,
div.main::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background: conic-gradient(from var(--deg) at center,
      var(--hlight),
      var(--link),
      var(--link),
      var(--hlight));
  border-radius: 0.5rem;
  z-index: -1;
  padding: 0.2rem;
  animation: autoRotate 7s linear infinite;
}

div.main::after {
  filter: blur(0.6rem);
}

div.main {
  background: var(--bg);
  position: relative;
  border-radius: 0.3rem;
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  height: fit-content;
  min-width: 60rem;
  max-width: 60rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 5rem;
}

div.main-padded {
  padding: 3rem 0;
}

div.main-home {
  margin-top: 10%;
}

@keyframes autoRotate {
  to {
    --deg: 360deg;
  }
}

.logo-img {
  width: 30%;
  margin-bottom: 1rem;
}

.flex {
  display: flex;
  width: 100%;
}

.row {
  flex-direction: row;
  justify-content: space-around;
}

button,
a.button {
  width: 20%;
  background: var(--bg);
  color: var(--link);
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 1rem;
  border: 0.1rem solid var(--link);
  outline: none;
  box-shadow: 0 0 0px var(--link);
  text-align: center;
  height: fit-content;
}

button:hover,
a.button:hover {
  border: 0.1rem solid var(--hlight);
  color: var(--hlight);
  letter-spacing: 0.1rem;
  box-shadow: 0 0 7px var(--hlight);
}

.blog-list {
  width: 80%;
}

.blog-list a li {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 0.7rem;
  border: 0.1rem solid transparent;
}

.blog-list a li:hover {
  /*  box-shadow: 0 0 7px var(--hlight);*/
  border: 0.1rem solid var(--hlight);
  background-color: var(--secondary);
}

.title-date {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.title-date h4 {
  color: var(--hlight);
  width: 70%
}

.title-date div {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.title-date div p {
  color: var(--link);
  opacity: 0.7;
}

.title-date div small {
  color: var(--link);
  opacity: 0.5;
}


/**/

.tag-combobox {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: 320px;
  /* adjust */
}

#tag-input {
  flex: 1;
  padding: 8px;
}

#tag-toggle {
  padding: 0 10px;
  cursor: pointer;
}

.tag-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  max-height: 220px;
  overflow-y: auto;
  margin: 4px 0 0 0;
  padding: 0;
  list-style: none;
  z-index: 9999;
}

.tag-options li {
  padding: 8px;
  cursor: pointer;
}

.tag-options li:hover {
  background: #eee;
}

#post-list {
  width: 90%;
}

.glossary-list {
  display: flex;
  flex-direction: column;
}

.glossary-summary {
  position: relative;
  display: inline-block;
  margin: 0.5rem 0;
  width: 100%;
}

.glossary-summary:hover .definition-hover {
  display: block;
}

.blur-scope {
  width: 90%;
}

.blur-scope:has(.glossary-summary:hover) .glossary-summary {
  filter: blur(0.2rem);
  opacity: 0.7
}

.definition-hover {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 10;
  background-color: var(--secondary);
  padding: 0.5rem;
  border-radius: 0.3rem;
  filter: none;
}


.blur-scope:has(.glossary-summary:hover) .glossary-summary:hover {
  filter: none;
  z-index: 5;
  position: relative;
  opacity: 1;
}

.pagination {
  width: fit-content;
  margin-left: auto;
}

pre {
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
}

.blog-content-wrapper {
    padding: 0 3rem;
}

.blog-rendered p {
    margin: 0.5rem;
}

.blog-rendered h3 {
    font-size: 1.2rem;
    color: var(--hlight);
}
