/* Welcome to the Iframe Stylesheet for saltedslug.net */
/* Authored by Salty P. Slug using VSCodium from 2024-2025 A.D. */
/* Free to use, destroy, tear apart, and rebuild; 2024-FOREVER */

/* --------------------------- *
* Normalizations, Resets, Etc. *
* ---------------------------- */

/* Removes the gap between audio, canvas, iframes,
images, videos and the bottom of their containers: */
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Improve line wrapping & set accessible line height for body text */
p {
  text-wrap: pretty;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

img, /* Make things less blearing on this dark background */
video {
  opacity: 0.95;
  max-width: 100%;
}

/* Import/Declare Fonts */
/* Input Sans Font Family  */
@font-face {
  src:
    url("/fonts/InputSansNarrow-Regular-Edu.woff2") format("woff2"),
    url("/fonts/InputSansNarrow-Regular-Edu.woff") format("woff");
  font-family: "InputSansNarrow";
  font-style: normal;
  font-weight: normal;
}
@font-face {
  src:
    url("/fonts/InputSansNarrow-Italic-Edu.woff2") format("woff2"),
    url("/fonts/InputSansNarrow-Italic-Edu.woff") format("woff");
  font-family: "InputSansNarrow";
  font-style: italic;
  font-weight: normal;
}
@font-face {
  src:
    url("/fonts/InputSansNarrow-Medium-Edu.woff2") format("woff2"),
    url("/fonts/InputSansNarrow-Medium-Edu.woff") format("woff");
  font-family: "InputSansNarrow";
  font-style: normal;
  font-weight: 500;
}
@font-face {
  src:
    url("/fonts/InputSansNarrow-MediumItalic-Edu.woff2") format("woff2"),
    url("/fonts/InputSansNarrow-MediumItalic-Edu.woff") format("woff");
  font-family: "InputSansNarrow";
  font-style: italic;
  font-weight: 500;
}
@font-face {
  src:
    url("/fonts/InputSansNarrow-Black-Edu.woff2") format("woff2"),
    url("/fonts/InputSansNarrow-Black-Edu.woff") format("woff");
  font-family: "InputSansNarrow";
  font-style: normal;
  font-weight: 800;
}
@font-face {
  src:
    url("fonts/InputSansNarrow-BlackItalic-Edu.woff2") format("woff2"),
    url("fonts/InputSansNarrow-BlackItalic-Edu.woff") format("woff");
  font-family: "InputSansNarrow";
  font-style: italic;
  font-weight: 800;
}
@font-face {
  src:
    url("/fonts/sh-pinscher.woff2") format("woff2"),
    url("/fonts/sh-pinscher.woff2") format("woff"),
    url("/fonts/sh-pinscher.otf") format("opentype");
  font-family: "sh-pinscher";
  font-weight: 300;
  font-style: normal;
}
/* Rotgut Heading Font */
@font-face {
  src:
    url("/fonts/rotgut_regular.woff") format("woff"),
    url("/fonts/rotgut_regular.otf") format("opentype");
  font-family: "rotgut";
}
/* ShareTech Regular */
@font-face {
  src: url("/fonts/sharetech_regular.ttf") format("truetype");
  font-family: "share-tech";
}
/* Yukimura */
@font-face {
  src:
    url("/fonts/yukimura.ttf") format("truetype"),
    url("/fonts/yukimura.otf") format("opentype");
  font-family: "yukimura";
}
/* 04b_08 */
@font-face {
  src:
    url("/fonts/04b_08.woff") format("woff"),
    url("/fonts/04b_08.woff2") format("woff2");
  font-family: "04b";
}

/* Declare root variables */
:root {
  /* Declare global variables */
  --font-sans:
    "share-tech", -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", Arial,
    Helvetica, sans-serif;
  --font-mono:
    "InputSansNarrow", Consolas, Menlo, Monaco, "Ubuntu Mono", monospace;
  --font-heading: "rotgut", "Times New Roman", Times, serif;
  --font-fancy: "sh-pinscher", Consolas, Menlo, Monaco, monospace;
  --font-size-reg: 1.1rem;
  --font-size-small: 0.9rem;
  --font-size-xsmall: 0.75rem;
  --border-radius: 16px;

  /* Color Palette */
  --bg: #25222b;
  --bg-accent: #3d3d3d;
  --text: #f5f5f5;
  --text-light: #bfbfbf;
  --text-alt: #fef37a;
  --text-alt-shadow: #bdb33b;
  --border: #8fab11;
  --border-shadow: #bdb33b;
  --accent: #5acdb9;
  --accent-hover: #38ad9a;
  --accent-visited: #de7bef;
  --accent-visited-shadow: #994fa7;
  --code: #ff6f9d;
  --code-shadow: #d4406f;
  --code-class: #b8eb00;
  --preformatted: #ccc;
  --marked: #ffdc2e;
  --status-critical: #df3b1e;
  --status-critical-shadow: #b63f2a;
  --status-warning: #eca528;
  --status-warning-shadow: #c98f2b;
  --status-good: #c5ea33;
  --status-good-shadow: #89ad12;
}

/* Set global font, inherit width, scrollbar settings, cursor import */
html {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: var(--font-size-reg);
  color: var(--text);
  width: inherit;
  min-height: 100%;
  box-shadow: inset 0px 0px 25px rgba(0, 0, 0, 0.75);
  scrollbar-width: thin;
  scroll-behavior: smooth;
  cursor: url("/img/cursor_bio_red.cur"), auto;
  /* Hide scrollbars */
  overflow: -moz-scrollbars-none;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  /* Hide scrollbar for Chrome, Safari and Opera */
  &&::-webkit-scrollbar {
    display: none;
  }
}

body {
  padding: 1rem 2.75rem;
  height: fit-content;
  background-color: var(--bg);
}

/* This plops the scanline overlay across the frame - Shoutout to kidwithtthechemicalz.neocities.org for the inspiration! I love Ivan's website so much. */
body::before {
  content: "";
  background-image: url("/img/ui/overlay_scanlines.png");
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  opacity: 0.05;
  pointer-events: none;
}

a:hover,
.tooltip:hover {
  cursor: url("/img/cursor_bio_green.cur"), pointer;
}

/*-------------*
/   HEADINGS   /
/ ------------*/
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  color: var(--text-alt);
  opacity: 0.8;
  font-weight: normal;
  font-style: normal;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  text-shadow: 0 0 15px rgba(189, 178, 59, 0.5);
  font-size: 1.725rem;
  margin-top: 75px;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.5rem;
  text-shadow: 1px 1px 25px rgba(189, 178, 59, 0.5);
}

h3 {
  font-size: 1.5rem;
  text-shadow: 1px 1px 22px rgba(189, 178, 59, 0.4);
}

h4 {
  font-size: 1.35rem;
  text-shadow: 1px 1px 22px rgba(189, 178, 59, 0.3);
}

h5 {
  font-size: 1.2rem;
  text-shadow: 1px 1px 22px rgba(189, 178, 59, 0.25);
}

/*----------------*
/ TEXT FORMATTING /
/ ---------------*/
code, /* Preformatted Text */
pre,
kbd,
samp,
div.codeblock {
  font-family: var(--font-mono);
  font-weight: normal;
  font-style: normal;
  /* Set mono font for code elements */
}

code {
  font-size: var(--font-size-small);
  color: var(--code);
  &.green {
    color: var(--code-class);
  }
  &.blue {
    color: var(--accent);
  }
  &.heavy {
    font-weight: 800;
  }
  &.bold {
    font-weight: 500;
  }
}

kbd {
  text-transform: uppercase;
  font-size: var(--font-size-xsmall);
  font-weight: 500;
  background-color: var(--bg-accent);
  border: 2px solid var(--preformatted);
  line-height: 0.5;
  padding: 0 4px 1px 4px;
  border-radius: 6px;
}

h1, /* center text in element */
h2,
.center,
footer {
  text-align: center;
}

/*----------*
/   LINKS   /
/ ---------*/
a {
  color: var(--accent);
  &:hover {
    color: var(--accent-hover);
    text-decoration: none;
  }
  &:visited {
    color: var(--accent-visited);
    &:hover {
      color: var(--accent-visited-shadow);
    }
  }
}

a > img {
  &::after {
    content: url("/img/ui/icons/photo.svg");
  }
  &:hover {
    color: var(--text-alt-shadow);
    text-shadow: 0px 0px 2px var(--text-alt-shadow);
    &::after {
      opacity: 0.55;
    }
  }
}

a.button {
  opacity: 0.95;
  font-family: "04b";
  scale: 1;
  text-decoration: none;
  border: 2px groove var(--accent);
  box-shadow: 0 0 8px rgba(185, 250, 255, 0.35);
  border-radius: 3px;
  padding: 0.25em 0.5em;
  margin: 0.25em;
  animation: glow-text 3s ease-in-out infinite;
  -moz-animation: glow-text 3s ease-in-out infinite;
  -webkit-animation: glow-text 3s ease-in-out infinite;
  transition: 150ms ease;
  &:hover {
    box-shadow: 0px 0px 10px rgba(185, 250, 255, 0.5);
    border-color: var(--accent-hover);
    transform: scale(0.95);
    opacity: 0.85;
  }
  &:active {
    box-shadow: 0 0 6px var(--border);
    border-color: var(--border-shadow);
    transform: scale(0.975);
    background: linear-gradient(
      180deg,
      rgba(128, 128, 128, 0.25) 10%,
      rgba(169, 169, 169, 0.6) 70%
    );
  }
}

/*-----------------*
/ SECTION ELEMENTS /
/ ----------------*/
section {
  display: block;
  margin: 0;
  padding: 1rem 0;
  /* Add border separator to the bottom of each section */
  border-bottom: 2px dashed var(--text-alt);
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    margin-left: inherit;
    margin-right: inherit;
  }
  > img {
    margin: inherit;
    max-width: 100%;
  }
  &::content {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

hr {
  border-color: var(--code);
  margin: inherit;
}

figure {
  text-align: center;
  max-width: 100%;
  margin: 0.5rem auto;
  > img {
    display: inline-block;
    border-radius: 3px;
    opacity: 0.9;
  }
  a > img {
    border-radius: 3px;
    transition: transform ease 300ms;
    &:hover {
      transform: scale(0.975);
      opacity: 0.85;
    }
  }
  figcaption {
    max-width: inherit;
    font-size: smaller;
    a {
      text-decoration: none;
    }
  }
}

section:first-of-type {
  border-top: 2px dashed var(--text-alt);
}

section:last-of-type {
  border-bottom: dashed 2px var(--text-alt);
}

section p {
  opacity: 0.925;
  text-align: justify;
  margin: inherit;
  line-height: 1.125;
  &.timestamp {
    /* Timestamps used on dated blogposts, articles, etc. */
    text-align: center;
    width: 50%;
    margin: auto;
    user-select: none;
    line-height: 1;
    font-family: var(--font-mono);
    font-size: var(--font-size-small);
    letter-spacing: 1px;
    background-image: linear-gradient(
      to right,
      #3e3e3e 0%,
      #333333 51%,
      #242424ef 100%
    );
    color: #7c7b7a;
    border: 1px outset var(--bg-accent);
    padding: 6px 4px 8px 4px;
    border-radius: var(--border-radius);
    &:hover {
      transition: 300ms ease;
      color: var(--text-light);
      border-color: var(--preformatted);
    }
  }
  &.notice {
    background: var(--bg-accent);
    border: 2px solid var(--status-warning);
    border-radius: var(--border-radius);
    padding: 1rem;
    line-height: 1.25;
    &::before {
      content: "⚠️";
    }
  }
}

b {
  color: var(--status-good);
  &.date {
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--code);
    font-weight: normal;
    text-shadow: 0 0 5px var(--code-shadow);
    transition: 300ms ease;
    &:hover {
      color: var(--code-shadow);
      text-shadow: 0 0 3px var(--code);
    }
  }
}

section p + p {
  margin-top: 1rem;
}

ul,
ol {
  margin: 1rem auto;
  line-height: 1.15;
  text-align: left;
  > li {
    margin: 0.75rem;
    text-align: justify;
    margin-inline-start: 1.25rem;
    margin-inline-end: 3rem;
    list-style-type: none;
  }
  > li::before {
    content: "🔸";
    padding-right: 5px;
  }
  &.list-style-none li::before {
    content: "";
  }
}

li:nth-child(odd) {
  color: var(--text-light);
}

section aside {
  background-color: rgb(0, 0, 0, 0.2);
  max-width: 35%;
  color: var(--text-light);
  font-style: italic;
  font-size: var(--font-size-small);
  margin: inherit;
  padding: 1rem;
  line-height: 1;
  /* Hide scrollbars */
  overflow: -moz-scrollbars-none;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  /* Hide scrollbar for Chrome, Safari and Opera */
  &&::-webkit-scrollbar {
    display: none;
  }
  &.right {
    float: right;
    justify-content: left;
    margin-inline-start: 0.75rem;
    margin-inline-end: inherit;
    border-left: 5px solid var(--status-good);
    border-radius: 1px 6px 6px 1px;
    p {
      text-align: left;
    }
  }
  &.left {
    float: left;
    justify-content: right;
    margin-inline-start: inherit;
    margin-inline-end: 0.75rem;
    border-right: 5px solid var(--status-good);
    border-radius: 6px 1px 1px 6px;
    p {
      text-align: right;
    }
  }
  &.transparent {
    background: transparent;
    border: none;
  }
}

section aside:has(img) {
  padding: 0;
}

blockquote {
  position: relative;
  margin: 1rem 0;
  height: auto;
  background-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  line-height: 1.25;
  padding: 0.5rem 0.75rem;
  letter-spacing: 0.5px;
  border-radius: 1px 6px 6px 1px;
  border-left: 8px solid var(--status-warning-shadow);
  color: var(--text-light);
  align-content: center;
}

section audio {
  width: 100%;
  max-height: 35px;
  margin: 0.75rem 0;
  border-radius: 50px;
}

section details {
  margin: 0.75rem 0;
  > summary {
    display: block;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    color: var(--accent);
    opacity: 0.85;
    font-weight: normal;
    font-style: normal;
    text-shadow: 1px 1px 15px rgba(59, 159, 189, 0.25);
    user-select: none;
    &::before {
      display: inline-block;
      content: "▶️";
      padding-right: 6px;
    }
  }
  &[open] summary::before {
    /* This replaces the generic dropdown arrow */
    content: "🔽";
  }
}

/*-----------------*
/ ARTICLE ELEMENTS /
/ ----------------*/
article {
  background-color: var(--bg-accent);
  border: 2px outset var(--bg);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
  h2,
  h3,
  h4,
  h5,
  h6,
  p {
    margin: 0;
  }
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

article ul,
article ol {
  padding: 0;
}

article ul li,
article ol li {
  line-height: 1;
  a {
    text-decoration: none;
    &:hover {
      text-shadow: 0 0 3px var(--accent-visited-shadow);
    }
  }
}

article img {
  margin: 0.5rem 0;
  border-radius: 3px;
  box-shadow: grey 1px 1px 10px;
  border: solid 1.5px var(--border-shadow);
}

article img.clean {
  border: none;
  box-shadow: none;
  border-radius: none;
}

article.toc {
  max-width: 60%;
  margin: 1rem auto;
  ul,
  ol {
    text-align: center;
    li:before {
      content: none;
    }
  }
  h2 {
    font-size: 1.5rem;
  }
}

section + section, /* Prevent overlapping margins */
article + article {
  margin-top: 0;
}

/*-------------*
/  OTHER SHIT  /
/ ------------*/
p.fancy {
  font-family: var(--font-fancy);
  color: var(--status-good);
  font-size: 1.2rem;
}

div.codeblock,
article#toc,
.flex-gallery {
  max-width: 100%;
}

div.codeblock {
  color: var(--text-light);
  font-size: var(--font-size-xsmall);
  max-height: 30vh;
  max-width: 75%;
  margin: 1rem auto 1rem;
  padding-left: 1.25rem;
  overflow-y: scroll;
  border-left: 5px solid var(--code-shadow);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0px -2px 35px rgba(0, 0, 0, 0.35);
  white-space-collapse: preserve;
  /* Hide scrollbars */
  overflow: -moz-scrollbars-none;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  /* Hide scrollbar for Chrome, Safari and Opera */
  &&::-webkit-scrollbar {
    display: none;
  }
}

footer {
  font-family: var(--font-mono);
  font-size: var(--font-size-xsmall);
  color: var(--text-alt);
  text-shadow: 0px 0px 6px var(--text-alt-shadow);
  opacity: 0.85;
  padding: 0 0 inherit 0;
  max-width: 100%;
  margin: 0 0 2rem 0;
}

/*--------------*
/ MODAL POP-UPS /
/ -------------*/
.modal {
  z-index: 10;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  will-change: opacity;
  transition: opacity 200ms;
  opacity: 0;
  pointer-events: none;
}

.modal:target {
  pointer-events: all;
  opacity: 1;
}

.modal-inner {
  position: absolute;
  padding: 0;
  width: 70vw;
  max-height: 70%;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 2rem rgba(65, 51, 31, 0.75);
  background-image: url("/img/ui/bg/wildstar_texture.png");
  background-size: 600px;
  border-radius: 4px;
  border: outset 2px #604d41;
  box-shadow: rgba(109, 75, 52, 0.35) 2px 2px 25px;
  overflow-y: scroll;
}

.modal-inner-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem auto;
  width: 100%;
  overflow-x: hidden;
  h2 {
    width: 100%;
    font-family: yukimura;
    font-size: 3rem;
    color: #e15048;
    text-shadow: 0 0 5px darkred;
    opacity: 1;
  }
  img {
    position: relative;
    opacity: 0.9;
    max-width: 100%;
    border-radius: 3px;
    border: 1px solid #bb7e7177;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.75);
  }
  p {
    text-align: left;
    font-size: 1.15rem;
    color: var(--bg);
    padding: 12px 1rem;
    margin: 15px 0 0 0;
    background-image: url("/img/ui/bg/graph_seamless.jpg");
    background-size: 325px;
    border-radius: 3px;
    box-shadow: inset 0 0 0.25rem rgba(0, 0, 0, 0.5);
  }
}

a.modal-btn-open {
  line-height: inherit;
  text-shadow: 0 0 2px var(--accent-shadow);
  &::after {
    content: url("/img/ui/icons/open.svg");
  }
  &:hover {
    color: var(--text-alt-shadow);
    text-shadow: 0px 0px 2px var(--text-alt-shadow);
    &::after {
      opacity: 0.55;
    }
  }
}

a.modal-btn-close {
  z-index: 2;
  position: sticky;
  float: right;
  text-align: center;
  top: 0.5rem;
  right: 0;
  transition: color 200ms;
  font-size: medium;
  text-decoration: none;
  margin-top: -2rem;
  margin-right: 0.5rem;
  line-height: 1.5;
  padding: 0 6px;
  border-radius: 2px;
  color: var(--bg-accent);
  border: outset 2px grey;
  background: darkgrey;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  &:hover {
    color: grey;
    border-color: lightgrey;
  }
  &:visited {
    color: var(--bg-accent);
  }
  &:visited:hover {
    color: grey;
  }
  &:active {
    transform: scale(0.9);
  }
}

/*-------------*
/   TOOLTIPS   /
/ ------------*/
.tooltip {
  display: inline-block;
  width: auto;
  color: var(--accent);
  line-height: 0.9;
  border-bottom: 1px dotted var(--accent);
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: rgba(42, 42, 42, 0.95);
  box-shadow: inset 0 0 10px black;
  color: var(--text-alt);
  text-shadow: 0 0 2px var(--text-alt-shadow);
  font-size: var(--font-size-small);
  text-align: center;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  right: inherit;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  padding: 4px 6px;
  margin-top: -15px;
}

/*----------------*
/ FLEX CONTAINERS /
/ ---------------*/
.flex {
  display: flex;
}

div.flex-gallery {
  width: 100%;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  transition: transform ease-in-out 300ms;
  gap: 8px;
  &.flex-between {
    justify-content: space-between;
  }
  &.flex-even {
    justify-content: space-evenly;
  }
  &.flex-around {
    justify-content: space-around;
  }
  &.flex-items-start {
    align-items: start;
  }
  &.flex-items-end {
    align-items: self-end;
  }
  &.flex-nowrap {
    flex-wrap: nowrap;
  }
  &.flex-column {
    flex-direction: column;
  }
  .float-left {
    max-width: 50%;
  }
  .float-right {
    max-width: 50%;
  }
}

.flex-gallery img {
  border-radius: 3px;
  transition: 250ms ease;
  will-change: scale;
  image-rendering: pixelated;
  &.float-left {
    margin-right: 1rem;
  }
  &.float-right {
    margin-left: 1rem;
  }
  &:hover {
    opacity: 1;
    transform: scale(0.95);
  }
}

/*------------- *
/ PROGRESS BARS /
/ -------------*/
.progress-bar {
  /* This is the larger container with the semi-transparent white fill of the progress bar */
  width: 75%;
  height: 50px;
  margin: 1em auto;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 1em;
  justify-self: stretch;
  background: linear-gradient(
    to bottom,
    rgba(204, 204, 204, 0.5) 20%,
    rgba(176, 176, 176, 0.135) 80%
  );
  box-shadow: 1px 1px 20px rgba(255, 255, 255, 0.25) inset;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  & > label {
    width: 100%;
    text-align: center;
  }
}

.progress-bar-fill {
  width: 100%;
  margin: 5px;
  height: 40px;
  border: none;
  padding: 0 5px;
  opacity: 0.9;
  border-radius: 16px 0 0 16px;
  &::after {
    content: "";
    margin: 0;
    padding: 0;
    display: block;
    height: 100%;
    width: 100%;
    background: url("/img/ui/overlay_bubbles.gif");
    background-size: 90px;
    background-repeat: repeat;
    mix-blend-mode: overlay;
    overflow: hidden;
    border-radius: 10px 8px 6px 14px;
    opacity: 0.125;
  }
}

.progress-bar-status-crit,
.progress-bar-status-good,
.progress-bar-status-warn {
  border-radius: 16px 0.25em 0.25em 16px;
}

.progress-bar-status-crit {
  background: linear-gradient(
    to bottom,
    var(--status-critical) 20%,
    var(--status-critical-shadow)
  );
  box-shadow: 0 0 8px 2px rgba(255, 111, 79, 0.5) inset;
}

.progress-bar-status-good {
  background: linear-gradient(
    to bottom,
    var(--status-good) 20%,
    var(--status-good-shadow)
  );
  box-shadow: 0 0 8px 2px rgba(220, 255, 79, 0.5) inset;
}

.progress-bar-status-warn {
  background: linear-gradient(
    to bottom,
    var(--status-warning) 20%,
    var(--status-warning-shadow)
  );
  box-shadow: 0 0 8px 2px rgba(255, 211, 79, 0.5) inset;
}

.progress-bar-label {
  /* Styles the label text for progress bars */
  opacity: 0.9;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding-top: 5px;
  color: var(--status-good);
  text-shadow: var(--text-good-shadow) 0px 0px 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  animation: flash 4s infinite;
  animation-timing-function: cubic-bezier(0, 1, 0, 1);
}

.progress-bar-label-crit {
  color: var(--status-critical) !important;
  text-shadow: var(--status-critical-shadow) 0px 0px 8px;
  animation-delay: 5s;
  animation-timing-function: cubic-bezier(1, 0, 1, 0);
}

.progress-bar-label-warn {
  color: var(--status-warning) !important;
  text-shadow: var(--status-warning-shadow) 0px 0px 8px;
  animation-delay: 5s;
  animation-timing-function: cubic-bezier(1, 0, 1, 0);
}

.progress-bar-empty {
  border: none;
  width: 100%;
  height: 45px;
  &:after {
    background: none;
  }
}

.progress-bar-label-empty {
  /* For when the value of a progress bar is 0 */
  color: var(--text-light) !important;
  text-shadow: var(--text) 0px 0px 8px;
  font-weight: 500;
  animation: glow 3s infinite ease-in-out;
  opacity: 0.8;
}

@keyframes glow {
  0% {
    opacity: 0.99;
  }

  50% {
    opacity: 0.85;
  }

  100% {
    opacity: 0.99;
  }
}

@keyframes flash {
  0% {
    opacity: 0.95;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 0.95;
  }
}

.animate--flicker {
  animation: flicker 1.4 linear 1;
  -moz-animation: flicker 1.4s linear 1;
  -webkit-animation: flicker 1.4s linear 1;
}
@keyframes flicker {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 0.1;
  }

  15% {
    opacity: 0;
  }

  20% {
    opacity: 0.4;
  }

  25% {
    opacity: 0.2;
  }

  30%,
  100% {
    opacity: 1;
  }
}
