/* Root Styling */
:root > * {
  /* Custom vars */
  --talos-fg: 227, 162, 78;

  /* Mkdocs vars */
  --md-primary-fg-color: rgba(255, 255, 255, 0.1) !important;
  --md-default-bg-color: rgba(0, 13, 26, 1) !important;
  --md-typeset-a-color: rgb(var(--talos-fg)) !important;
}

/* Selection */
::selection {
  background-color: rgba(var(--talos-fg), 0.5);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background-color: rgb(0, 4, 15);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.md-sidebar__scrollwrap:hover {
  scrollbar-color: rgba(var(--talos-fg), 0.5) #0000;
}

/* Primary nav links should ALWAYS be visible in TOC */
/*.md-nav--primary .md-nav__link[for=__toc]+.md-nav__link {
  display: inherit !important;
}*/

/* Main body background */
.md-container {
  background-image: url(../assets/images/theme/talos1_bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

/* Header */
header, .md-tabs {
  backdrop-filter: blur(20px);
}

/* Announcement bar */
[data-md-component="announce"]>.md-banner {
  background-color: rgba(var(--talos-fg), 0.4);
}

/* Typeset */
.md-typeset a {
  color: rgb(var(--talos-fg));
  transition: 0.1s linear filter;
}

.md-typeset a:hover {
  color: rgb(var(--talos-fg));
  filter: brightness(0.7);
}

.md-typeset code {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--talos-fg), 0.5);
  box-shadow: #00000085 2px 2px 16px 0px !important;
}

.md-top {
  background-color: rgba(var(--talos-fg), 0.5) !important;
  color: white;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(var(--talos-fg), 0.5);
  box-shadow: 1px 1px 7px 0px #00000073;
}

/* Copyright heart */
@keyframes heart-anim {
  0%, 40%, 80%, 100% {
    transform: scale(1);
  }
  20%, 60% {
    transform: scale(1.15);
  }
}

.heart-anim {
  color: rgb(var(--talos-fg)); /* 216, 54, 54 */
}

.heart-anim:hover {
  animation: heart-anim 1000ms infinite;
}

.img-rounded {
  border-radius: 10px;
  border: 1px solid rgba(var(--talos-fg), 0.5);
}

kbd {
  backdrop-filter: blur(50px);
}

.editor-icon-inline {
  display: inline-block !important;
  height: 1.4em !important;
  vertical-align: sub;
  margin-left: 0.2em;
  margin-right: 0.2em;
  background-color: var(--md-typeset-kbd-color);
  border-radius: .2rem;
  color: var(--md-default-fg-color);
  padding-bottom: 3px;
  padding-top: 3px;
  padding-left: 10px;
  padding-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.editor-icon {
  width: 32px;
  height: 32px;
}

img:not(.twemoji):not(.editor-icon-inline) {
  display: inherit !important;
}

.icon-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  justify-items: center;
  width: 50%;
  grid-gap: 0 !important;
  row-gap: 16px !important;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border: 1px solid rgba(var(--talos-fg), 0.5);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.icon-grid>figure>figcaption {
  margin-bottom: 0;
  font-size: 10pt;
}

@media screen and (min-width: 76.25em) {
  label.md-nav__link {
    display: none !important;
  }
}

.inline.small {
  height: 200px;
  width: initial !important;
  margin-bottom: 3.5em;
}

.inline.small>*>img {
  height: 100% !important;
}

.coordinate-x {
  color: #ef4545;
}

.coordinate-y {
  color: #19cc19;
}

.coordinate-z {
  color: #0093ff;
}

.device-grid {
  grid-template-columns: 1fr !important;
}

.device-grid>div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

span.highlight {
  color: rgb(var(--talos-fg));
}
