:root {
  --bg-dark: #101010;
  --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: 2000;
  user-select: none;
  -webkit-user-select: none;
}

.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;
}

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

/*
 * Desktop links occupy the flexible middle section.
 * Account + hamburger live in a separate control group so the account
 * icon never becomes part of the collapsible mobile menu.
 */
.desktop-links {
  display: none;
  flex-direction: row;
  gap: 1.75rem;
  align-items: center;
  margin-left: auto;
}

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

.nav-account-controls {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.6rem;
  margin-left: auto;
}

.account-avatar-link {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
}

.avatar {
  width: 27px;
  height: 27px;
  padding: 1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
  object-position: center;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

.account-avatar-link:hover .avatar,
.account-avatar-link:focus-visible .avatar {
  border-color: #fff;
}

.account-avatar-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ham-button {
  display: block;
  flex: 0 0 auto;
}

/* Mobile Logo and Back */
.nav-back {
  all: unset;
  cursor: pointer;
  width: 1.5rem;
  height: 35px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  transition: opacity 0.3s ease;
  background-image: url('../images/icons/chevron-left.svg');
}

.nav-logo {
  width: 6.2rem;
  height: 2.25rem;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  transition: opacity 0.3s ease;
  background-image: url('../images/r-white-logo.png');
}

.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 {
  font-weight: 200;
  opacity: 1;
}

.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); }
}

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

.spacer {
  height: 65px;
}

.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;
  }

  .nav-account-controls {
    margin-left: 1.5rem;
  }
}
