/* General Styles */

@font-face {
  font-family: "Redwood";
  src: url("../fonts/RWR.ttf");
}

* {
  box-sizing: border-box;
}

:root {
  --header-offset: 160px;
  /* Header offset fallback */
}

body {
  margin: 0;
  padding: 0;
  padding-top: var(--header-offset);
  font-family: "Redwood";
  font-weight: bolder;
  background-color: #F2F2F2;
  overflow-x: hidden;
}

p {
  color: black;
  font-size: 1.4rem;
}

a {
  color: black;
  text-decoration: none;
}

hr {
  width: 95vw;
}

/* Header */

header {
  width: 95vw;
  height: -moz-fit-content;
  height: fit-content;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  font-size: 1.7rem;
  border-bottom: 2px solid #000;
  margin: auto
}

header img {
  height: 125px;
  width: 190px
}

header .nav-toggle {
  display: none;
  color: #404040;
  background: rgba(0, 0, 0, 0);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: transform .4s ease
}

header .navigation {
  display: flex;
  justify-content: right;
  width: 100%;
  margin: auto;
  gap: 20px;
}

header .navigation .navigation-link {
  position: relative;
  display: inline-block;
  line-height: 1.5;
  padding: 5px 10px;
}

header .navigation .navigation-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  transform: scaleX(0);
  transition: transform .2s ease-out;
  transform-origin: center
}

header .navigation .navigation-link:hover::after {
  transform: scaleX(1)
}

header .navigation .navigation-link.center::after {
  transform-origin: bottom center
}

header .navigation .navigation-link.center::after:hover {
  transform-origin: bottom center
}

/* Active Link */
header .navigation .navigation-link.active::after,
.navigation-link.active::after {
  transform: scaleX(1) !important;
  transition: none !important;
}

/* Keep it underlined on hover, still no animation */
header .navigation .navigation-link.active:hover::after,
.navigation-link.active:hover::after {
  transform: scaleX(1) !important;
}


header#header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 9999;

  background: #F2F2F2;
  /* match your body bg */
  transition: transform 0.25s ease;
  will-change: transform;
}

header#header.header--hidden {
  transform: translateX(-50%) translateY(-110%);
}


.nav-toggle {
  display: none;
  /* shown only on mobile */
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.4s ease;

}

/* Desktop navigation */

.navigation {
  display: flex;
  justify-content: space-between;
  width: 90%;
  text-align: center;
  margin: auto;
}

.navigation-link {
  display: inline-block;
  position: relative;
  line-height: 1.5;
}

.navigation-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: black;
  transition: transform 0.35s ease-out;
}

.navigation-link:hover::after {
  transform: scaleX(1);
}

.navigation-link.center::after {
  transform-origin: bottom center;
}

.navigation-link.center:hover::after {
  transform-origin: bottom center;
}

footer {
  width: 95vw;
  height: 150px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 20px 0;
  border-top: 2px solid black;
  margin-top: 50px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.footer-right {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  text-align: right;
}

.footer-right a {
  text-decoration: underline;
}

.footer-left p,
.footer-right p {
  margin: 0;
}

.footer-mobile {
  display: none;
}

/* Main Section */

.main-section {
  width: 100%;
  max-width: 1200px;
  margin: 35px auto;
  gap: 40px;
}

.text-section-top {
  text-align: center;
}

.text-section-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 25px;
}

.button-container {
  width: 100%;
  display: flex;
}

.main-section .button {
  display: inline-block;
  margin: 40px auto 0 auto;
  padding: 6px 12px;
  border: 2px solid #111;
  transition: all .42s;
}

.main-section .button:hover {
  background: #111;
  color: white;
}

/* Slideshow */

.slideshow-section {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  text-align: center;
}

.slideshow-container {
  width: 100%;
  height: 550px;
  margin: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.slideshow-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 1;
  transition: opacity 800ms ease;
}

/* Text styling */
.slideshow-container p {
  margin-top: 10px;
  font-size: 1.2em;
  color: #333;
  font-style: italic;
  text-align: center;
  padding-bottom: 10px;
}

/* Mobile view */

@media (max-width: 767px) {

  /* Header */

  header {
    width: 100vw;
    margin: 0;
    padding: 10px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center
  }

  header img {
    height: 125px;
    width: 175px
  }

  header .nav-toggle {
    display: block;
    margin: 10px 0
  }

  header .navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    border-top: 1px solid #000;
    transition: max-height .4s ease, opacity .4s ease
  }

  header .navigation.open {
    max-height: 300px;
    opacity: 1
  }

  header .navigation .navigation-link {
    width: 100%;
    padding: 15px 0;
    font-size: 1.7rem;
    text-align: center
  }

  header .navigation .navigation-link::after {
    display: none
  }

  /* header stays fixed, dropdown can hang below */
  header#header {
    left: 0;
    top: 0;
    width: 100vw;
    transform: translateY(0);
    overflow: visible;
    /* IMPORTANT */
    background: #F2F2F2;
  }

  header#header.header--hidden {
    transform: translateY(-110%);
  }

  /* dropdown overlays page instead of increasing header height */
  #primary-nav.navigation {
    position: absolute;
    /* IMPORTANT */
    top: 100%;
    left: 0;
    width: 100%;
    background: #F2F2F2;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-top: 1px solid #000;

    pointer-events: none;
    transition: max-height .4s ease, opacity .4s ease;
  }

  #primary-nav.navigation.open {
    max-height: 350px;
    opacity: 1;
    pointer-events: auto;
    border-bottom: 2px solid black;
  }


  /* show the V toggle on mobile */
  .nav-toggle {
    display: block;
    margin: 10px 0;
    position: relative;
  }

  /* Mobile nav: collapsed by default, expands from under the header */
  .navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: hidden;

    max-height: 0;
    /* takes no vertical space when closed */
    opacity: 0;
    border-top: 1px solid black;

    transition:
      max-height 0.4s ease,
      opacity 0.4s ease;
  }

  .navigation.open {
    max-height: 300px;
    opacity: 1;
    margin-top: 0;
  }

  .navigation-link {
    width: 100%;
    padding: 15px 0;
    font-size: 1.7rem;
    text-align: center;
  }

  .navigation-link::after {
    display: none;
  }

  /* Footer */

  footer {
    width: 100vw;
    padding: 20px;
    display: block;
  }

  .footer-left,
  .footer-right {
    display: none;
  }

  .footer-mobile {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .footer-image-links {
    display: flex;
    justify-content: space-between;
    width: 70%;
    margin: auto;
  }

  .footer-image-links img {
    height: 110px;
  }

  /* Main Section */

  .main-section {
    width: 100%;
    padding: 0 15px;
  }

  .art-section img {
    width: 100%;
    height: auto;
  }


  .text-section-bottom {
    line-height: 1.6;
    padding: 0 10px;
    font-size: 1rem;
  }

  .slideshow-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .slide img {
    max-height: 70vh;
  }

  .arrow {
    font-size: 24px;
    padding: 8px 12px;
  }

  .arrows {
    display: none;
  }

  .pagination-dots {
    display: flex;
  }

  .main-section .button {
    font-size: 1.1rem;
    margin-top: 10px;
  }
}