html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

/* Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
  z-index: -1;
  background-image: var(--bg1);
}

body::after {
  background-image: var(--bg2);
}

body.show-bg1::before {
  opacity: 1;
}

body.show-bg2::after {
  opacity: 1;
}

/* NAVBAR */
.navbar {
  min-height: 72px;
}

.container-fluid.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.main-nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.main-ul {
  padding: 4px;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  width: auto !important;
}

.main-ul li {
  width: auto !important;
  font-size: 20px;
  text-align: center;
}

.main-ul li a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
}

.main-ul li a:hover {
  color: #f2f1f1;
  padding-top: 0.5rem;
}

/* LOGO */
.navbar-brand.logo,
.navbar-brand.logo:hover,
.navbar-brand.logo:focus,
.navbar-brand.logo:active {
  color: #f5f5f5 !important;
  text-decoration: none;
}

.logo-margin {
  margin-left: 24px;
}

.logo {
  display: inline-block;
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.logo:hover {
  opacity: 0.6;
}

.logo,
.logo:focus,
.logo:active {
  color: #f5f5f5 !important;
  text-decoration: none;
}

.logo-title strong {
  letter-spacing: 1.4px;
}

.logo-title,
.logo-subtitle,
.navbar a {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

/* NAV LINKS */
.navbar-nav .nav-link {
  position: relative;
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  width: 100%;
}

/* Hero overlay */
.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.08) 16%,
    rgba(0, 0, 0, 0.03) 30%,
    rgba(0, 0, 0, 0) 45%
  );
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* Branding */
.logo-font {
  font-weight: 600;
  text-align: center;
  font-size: 30px;
  font-family: "Arial Narrow", sans-serif;
}

.bp-rules {
  font-size: 22px;
  font-weight: 500;
}

.text-color {
  color: #f5f5f5;
}

.brand {
  padding: 7px 1px;
  align-items: center;
  background-color: transparent;
}

.brand p {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  font-family: "Buda", sans-serif;
}

.text-size {
  font-size: clamp(30px, 5vw, 32px);
}

/* Toggler */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Tablet */
@media (max-width: 991.98px) {
  .container-fluid.hero {
    align-items: flex-start;
  }

  .brand {
    flex: 1 1 auto;
  }

  .main-nav-bar {
    width: 100%;
    margin-top: 0.75rem;
    align-items: stretch;
  }

  .main-ul {
    width: 100% !important;
    gap: 0.25rem;
    padding-top: 0.5rem;
  }

  .main-ul li {
    width: 100% !important;
    text-align: center;
  }

  .main-ul li a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }
}

/* Phones */
@media (max-width: 576px) {
  .navbar {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .bd-888 {
    padding: 3px;
    border: 2px solid #777;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(119,119,119,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }

  .navbar-brand.bp-rules {
    margin-left: 0 !important;
  }

  .logo-margin {
    margin-left: 5px;
  }

  .brand p {
    font-size: 16px;
  }

  .main-ul li {
    font-size: 18px;
  }
}
