h1 {
  font-family: 'Bungee', cursive;
  color: #E58C16;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: #f5f0eb;
  background-image: none;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('images/PaperBG.png');
  background-repeat: repeat;
  background-size: 50%;
  background-position: top left;
  opacity: 0.15;
  z-index: -1;
}

/* Navbar Styles */
.navbar {
  background-color: #000000;
  font-family: 'bungee', sans-serif;
  padding-top: 16px;
  padding-bottom: 16px;
}

.navbar-brand {
  color: #ffffff !important;
  font-family: 'Kenia', sans-serif;
  transition: color 0.3s ease;
  font-size: 28px;
}

.navbar-brand:hover {
  color: #E58C16 !important;
}

.navbar a.nav-link {
  color: #fff !important;
  transition: color 0.3s ease, background-color 0.3s ease;
  border: 2px solid transparent;
  border-radius: 30px;
  padding: 6px 18px !important;
  font-size: 16px;
}

.navbar a.nav-link:hover,
.navbar a.nav-link:focus {
  color: #000 !important;
  background-color: #E58C16;
  border-color: #E58C16;
}
.navbar-toggler {
  border-color: #fff;
}

.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='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* GIF Section */
#gif-section {
  padding-top: 90px;
  padding-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mig-klatter-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* About Me Section */
#om-mig {
  padding-top: 0;
  padding-bottom: 60px;
  max-width: 1400px;
}

#om-mig .row {
  align-items: center;
  gap: 20px 0;
}

#om-mig p {
  font-size: clamp(17px, 2.5vw, 19px);
  font-family: 'Roboto Condensed', sans-serif;
  color: #222121;
  line-height: 2;
}

.custom-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Footer Styles */
.custom-footer {
  font-family: 'Kenia', sans-serif;
  padding: 1rem 0;
  margin-bottom: 40px;
}

.custom-footer .footer-icon {
  vertical-align: middle;
  height: 20px;
  margin-right: 8px;
}

.custom-footer .footer-text {
  vertical-align: middle;
  font-size: 18px;
}

/* Large screens */
@media (min-width: 992px) {
  .mig-klatter-image {
    max-width: 700px;
  }

  .custom-image {
    max-width: 800px;
  }
}

/* Tablets */
@media (max-width: 991px) {
  #om-mig p {
    text-align: center;
  }

  .mig-klatter-image {
    max-width: 500px;
  }

  .custom-image {
    max-width: 500px;
    margin-top: 20px;
  }
}

/* Phones */
@media (max-width: 576px) {
  #gif-section {
    padding-top: 70px;
    padding-bottom: 20px;
  }

  #om-mig {
    padding-bottom: 40px;
  }

  #om-mig p {
    font-size: 15px;
    text-align: center;
    padding: 0 10px;
  }

  .mig-klatter-image {
    max-width: 100%;
  }

  .custom-image {
    max-width: 100%;
    margin-top: 16px;
  }

  .custom-footer .footer-text {
    font-size: 15px;
  }
}


/* About Me entrance animation */
#om-mig .col-lg-6 > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#om-mig .col-lg-6 > *.about-visible {
  opacity: 1;
  transform: translateY(0);
}


/* Navbar nav wrapper needs to be relative for the slider */
.navbar-nav {
  position: relative;
}

/* Remove the old active/hover background from individual links */
.navbar a.nav-link {
  color: #fff !important;
  border: none;
  border-radius: 30px;
  padding: 6px 18px !important;
  font-size: 16px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.navbar a.nav-link:hover,
.navbar a.nav-link:focus {
  color: #000 !important;
  background: none;
}

.navbar a.nav-link.active {
  color: #000 !important;
}

/* The sliding pill */
.nav-slider {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #E58C16;
  border-radius: 30px;
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.navbar a.nav-link.active {
  color: #000 !important;
}

.navbar-nav:hover .nav-link.active:not(:hover) {
  color: #fff !important;
}