/* Base */
:root {
  --navbar-height: 74px;
}

body {
  background-color: rgb(189, 189, 189);
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family:
    "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}

html,
body {
  overscroll-behavior: none;
}

/* Headings */
h1 {
  width: 80%;
  margin: 0 auto 5px;
  font-weight: 700;
}

h4 {
  font-weight: 600;
}

/* Content */
.content {
  margin: auto;
  width: 80%;
  border: 3px solid rgba(26, 26, 26, 0.966);
  border-radius: 10px;
  padding: 20px;
  font-size: larger;
  animation: fadeIn 0.8s ease;
  min-width: 300px;
}

/* Navbar */
.navbar-container {
  background-color: rgba(26, 26, 26, 1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  color: rgb(189, 189, 189);
  font-size: xx-large;
  font-weight: 500;
  margin: auto 10px;
}

.nav-item {
  margin: 0 10px;
  width: fit-content;
}

.nav-link {
  color: rgb(189, 189, 189);
  font-size: large;
}

.nav-link.active {
  color: rgb(255, 255, 255);
  font-weight: 900;
  border-bottom: 4px solid rgb(255, 255, 255);
}

.nav-link:hover,
.navbar-brand:hover {
  color: rgb(255, 255, 255);
  font-weight: 900;
}

.navbar-toggler {
  color: rgb(189, 189, 189);
  display: inline-block;

  transition:
    transform 0.25s ease,
    color 0.25s ease;
  transform-origin: center;
}

.custom-hamburger {
  font-size: 1.8rem;
  color: rgb(100, 100, 100);
  display: inline-block;

  transition:
    transform 0.25s ease,
    color 0.25s ease;
  transform-origin: center;
}
.navbar-toggler:hover .custom-hamburger {
  color: rgb(255, 255, 255);
  transform: scale(1.05);
}

.navbar-toggler:hover {
  border-color: rgb(255, 255, 255);
  transform: scale(1.1);
}

/* Layout */
.page-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Scroll container */
.scroll-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color: #555 #1a1a1a;
}

.scroll-container::-webkit-scrollbar {
  width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.scroll-container::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 6px;
  border: 2px solid #1a1a1a;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: #777;
}

/* Animated content only */
.scroll-content {
  padding: 30px 0;
  animation: contentSlideIn 0.6s ease-out;
  will-change: transform;
}

.scroll-content > :last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  background-color: rgba(26, 26, 26, 1);
  flex-shrink: 0;
  bottom: env(safe-area-inset-bottom);
  margin: 0;
}

.footer-content {
  width: 80%;
  margin: auto;
  padding: 15px 0;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-contact li {
  color: rgb(189, 189, 189);
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}

/* Animations */
@keyframes contentSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: larger;
  }

  .custom-hamburger {
    font-size: 1.1rem;
  }

  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }

  .footer-contact li {
    text-align: center;
  }
}
