:root {
  --color-accent: #E2FC91;
  --color-text: #111;
  --background: #FFF5EE;

  --r-main-font: 'Bueno';
  --r-heading-font: 'Bueno';
  --r-code-font: 'JetBrains Mono';
  --r-link-color: var(--color-accent);
  --r-link-color-hover: var(--color-accent);

  --r-background-color: var(--background);
}

* {
  box-sizing: border-box;
}

body {

  font-family: var(--r-main-font);
  text-transform: uppercase;

}

.reveal .controls {
  color: var(--color-accent) !important;
}


.hljs {
  background: none;
}

.hljs-title,
.hljs-keyword {
  font-weight: normal;
}

.reveal pre,
.reveal code {
  overflow: hidden;
}

.reveal pre {
  box-shadow: none;
}

.hljs-attribute {
  color: #c9d1d9 !important;
}

.progress {
  background-color: color-mix(in srgb, var(--color-accent) 50%, transparent) !important;
  color: var(--color-accent) !important;
}

.hide {
  opacity: 0;
}

.slide-number {
  background-color: var(--color-accent) !important;
  bottom: unset !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  position: absolute !important;
  top: var(--padding) !important;
  left: var(--padding) !important;
  right: unset !important;
  border-radius: 0.25rem !important;
  padding: 0.25rem 0.25rem 0.1rem !important;
  color: var(--color-text) !important;
  border: 2px solid var(--color-text);
  box-shadow: -2px 2px 0 var(--color-text);
  a {
    text-decoration: none !important;
  }
}

.reveal pre code {
  font-size: 1.25em;
  line-height: 1.3;
}


.reveal-item:has(+ .visible) {
  rotate: var(--rotate);
}


.media-container {
  position: relative;
  z-index: 1;

  .inner {
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-text);
    border-radius: 0.5rem;
    overflow: hidden;
  }

  &::before {
    content: "";
    position: absolute;
    top: 5px;
    left: -5px;
    right: 5px;
    bottom: -5px;
    background-color: var(--color-accent);
    z-index: -1;
    border-radius: 0.5rem;
    border: 2px solid var(--color-text);
  }
}

.top-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 1rem;
  align-items: center;
  background-color: var(--background);
  color: var(--color-text);
  border-bottom: 2px solid var(--color-text);
  padding: 0.5rem;

  .filename {
    padding: 0.1rem 0 0;
  }
}

.top-bar-controls {
  display: flex;
  gap: 0.45rem;

  div {
    border-radius: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid var(--color-text);
  }
}

.close {
  background-color: var(--color-accent);
}

.minimize {
  background-color: var(--color-accent);
}

.fullscreen {
  background-color: var(--color-accent);
}

img,
video {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--width, 100%);
  height: calc(var(--width) *  var(--aspect-ratio));
  max-height: 80vh;
  max-width: calc(80vh * var(--aspect-ratio));

  aspect-ratio: var(--aspect-ratio);
  height: auto;
  object-fit: cover;
}

.top-bar:has(.address-bar) {
  padding: 0.25rem 0.5rem;
  justify-items: start;
}

.address-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-text);
  border: 2px solid var(--color-text);
  border-radius: 0.5rem;
  padding: 0.25rem 0.25rem 0.15rem 0.5rem;
  background-color: var(--background);
  text-align: left;
  font-weight: 600;
  white-space: nowrap;

  svg {
    width: 0.8rem;
    height: 0.8rem;
    margin-bottom: 0.1rem;
  }
}

.lowercase {
  text-transform: lowercase;
}

.highlight {
  color: var(--color-text);
  background-color: var(--color-accent);
  padding: 0.125em 0.2em 0;
  border-radius: 0.25em;
  border: 2px solid var(--color-text);
}

.fragment.blur {
  filter: blur(8px);
}
.fragment.blur.visible {
  filter: none;
}

.custom.pos-abs {

  font-family: 'Comic Sans MS', cursive;
  color: var(--color-accent);
  text-shadow: none;
  text-transform: none;
  display: inline-block;
  background: linear-gradient(to right, 
  #f94144,  /* Bright red */
  #f3722c,  /* Orange */
  #f8961e,  /* Yellow */
  #f9c74f,  /* Bright green */
  #90be6d,  /* Blue */
  #43aa8b,  /* Indigo */
  #577590   /* Violet */
  );
  padding: 1rem 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: absolute;
  text-align: center;
  width: 300px;
  font-size: 80px;
  padding-bottom: 2rem;
  top: 100%;
  margin-top: -10vw;
  rotate: -4deg;
  left: 4vw;

}

.custom svg {
  width: 60%;
  height: 60%;
  margin-left: -5vw;
}