:root {
  --bg-dark: #101010;
  /* --bg-dark: #212529; */

  --blur-bg: rgba(0, 0, 0, 0.15);

  --delay: 0.1s;
  --duration: 0.2s;
  --transit: ease-in-out;
}

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.2);
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  transition-property: opacity, visibility;
  transition-duration: var(--duration);
  transition-timing-function: var(--transit);
  transition-delay: var(--delay);
}

.blur-overlay.active {
  opacity: 1;
  visibility: visible;
  transition-property: opacity;
  transition-duration: var(--duration);
  transition-timing-function: var(--transit);
  transition-delay: var(--delay);
}

.nav-container {
  width: 100%;
  top: 0;
  position: fixed;
  display: flex;
  background-color: var(--bg-dark);
  flex-direction: column;
  align-items: center;
  color: rgb(240, 240, 240);
  z-index: 999;
}

.nav-menu-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgb(240, 240, 240);
}

.nav-sub-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  /* align-items: end; */

  /* Note: text-end justify's large
    screen nav to the right. */
}

.desktop-links {
  display: flex;
  justify-content: end;
  gap: 0.5rem;
}

.sub-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: start;
  gap: 0.5rem;
  padding-bottom: 6rem;
  padding-right: 4.75rem;
  padding-top: 1.8rem;
}

.sub-menu div {
  font-size: 1.65rem;
  color: white;
}

.sub-menu div:hover {
  color: rgb(195, 195, 195);
}

/* Bootstrap MODs */
input.form-control::placeholder {
  color: #f8f9fa;
  font-weight: 200;
  opacity: 1;
}

/* Image User Icon */
.avatar {
  width: 20px;
  height: 20px;
  padding: 1px;
  border-radius: 50%;
  border: 1px solid white;
  overflow: hidden;
  display: inline-block;
}

.avatar img {
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Mobile Logo and Back*/

.nav-back {
  all: unset;
  cursor: pointer;
  width: 35px;
  height: 35px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;

  width: 1.5rem;
  transition: opacity 0.3s ease;
  background-image: url("../images/icons/chevron-left.svg");
  cursor: pointer;
}

.nav-logo {
  width: 6.2rem;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;

  height: 2.25rem;
  transition: opacity 0.3s ease;
  background-image: url("../images/r-white-logo.png");
  cursor: pointer;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.25s ease-out forwards;
  pointer-events: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-out {
  opacity: 0;
  animation: fadeOut 0.25s ease-out forwards;
  pointer-events: none;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.slide-in {
  animation: slideInRight 400ms ease-out forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(5%);
  }

  to {
    transform: translateX(0);
  }
}

.mob-nav-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desktop-links {
  display: none;
  flex-direction: row;
  gap: 1.75rem;
  align-items: center;
  font: 2rem;
}

.desktop-links a {
  all: unset;
  font-size: 1.15rem;
  font-weight: 300;
}

/* .desktop-links a:hover {
  color: rgb(190, 190, 190);
} */

.ham-button {
  display: block;
}

.footer {
  width: 100%;
  background-color: #f8f9fa;
  color: #000000;
  text-align: center;
  padding: 1.25rem;
  margin-top: 2rem;
}

.spacer {
  height: 65px;
  /* Adds space behind navigation */
}

.fill-height {
  min-height: 100dvh;
}

.z-999 {
  z-index: 999;
}

.pb-10 {
  padding-bottom: 6rem;
}

.gray-text {
  color: rgb(162, 162, 162);
}

@media (min-width: 800px) {
  .ham-button {
    display: none;
  }

  .desktop-links {
    display: flex;
  }
}