/* Global CSS */

:root {
  /* Colors: */
  --color-main: #032f32;
  --color-secondary: #032f32;
  --color-tertiary: #543842;
  --color-accent: rgb(159, 200, 202);
  --color-white: #ffffff;
  --color-black: #0a0908;

  --box-shadow: 0rem 0.5rem 1rem 0rem rgba(0, 0, 0, 0.1);

  /* Fonts: */
  --font-main: ;
  --font-secondary: ;

  /* Size Helpers: */
  --nav-height: 3.5rem;
  scroll-behavior: smooth;

  font-family: "Merriweather";

  color: var(--color-black);
}

body {
  background-color: var(--color-white);
}

p {
  line-height: 1.618em;
}

button {
  padding: 0.618em;
  border-radius: 1.618em;
  border: none;
  cursor: pointer;

  transition: all 0.4s ease-in-out;
}

/*  Navbar */

#navbar {
  display: flex;
  position: fixed;
  top: 0;
  justify-content: space-between;
  width: 100%;
  height: var(--nav-height);
  padding: 0 2rem;
  background-color: var(--color-white);
  color: var(--color-accent);
  box-shadow: var(--box-shadow);

  z-index: 99;

  h2 {
    align-self: center;
    font-size: 1.25rem;
  }

  ul {
    display: flex;
    justify-content: space-between;
    gap: 2vw;
    align-items: center;

    li {
      font-size: 1rem;
    }

    a {
      color: var(--color-black);
    }

    a.active {
      color: var(--color-accent);
    }
  }
}

/* General Section CSS */

section {
  position: relative;
  overflow: hidden;
}

.anchor {
  display: block;
  position: absolute;
  top: calc(var(--nav-height) * -1);
  left: 0;
  width: 0;
  height: 0;
  z-index: -1;
  visibility: hidden;
}

/* Home Section */

#home {
  margin-top: var(--nav-height);
  outline: 1rem solid var(--color-white);
  outline-offset: -1rem;
  height: calc(100vh - var(--nav-height));

  &::before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    content: " ";
    width: 100%;
    height: 100%;
    opacity: 0.85;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),
      url("img/zaalb14-photo1.jpg");
    background-position: center;
    background-size: cover;

    z-index: -1;
  }
}

.home-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 6rem 10vw;

  .tickets-btn {
    align-self: flex-end;
    width: 12rem;

    outline: 0.1rem var(--color-accent) solid;
    background-color: var(--color-accent);
    color: var(--color-white);

    font-size: clamp(1rem, 2vw, 1.2rem);
    box-shadow: var(--box-shadow);
  }

  .tickets-btn:hover {
    background-color: var(--color-white);
    color: var(--color-accent);
  }
}

.home-card {
  display: flex;
  color: var(--color-white);
  flex-direction: column;
  width: 100%;

  h2 {
    font-size: clamp(3rem, 4vw, 4rem);
    font-weight: bold;
    margin-bottom: 0.272em;
  }

  p {
    font-size: clamp(1rem, 3vw, 1.5rem);
  }
}

/* About Us */

.section-title {
  text-align: center;
  background-color: #eeeeee;
  margin-bottom: 2.618em;
  padding: 1.618em 0;
  h2 {
    font-size: 1.75rem;
    margin-bottom: 0.272em;
  }
  h3 {
    color: var(--color-secondary);
  }
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  max-width: 1024px;
  margin: 0 auto;
  margin-bottom: 6rem;
}

.about-card {
  --image-size: 20rem;
  display: grid;
  gap: 2.618em;

  .image-wrapper {
    display: flex;
    justify-content: center;
  }

  img {
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 0.5rem;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
  }

  .about-text {
    h3 {
      font-size: 1.25rem;
      font-weight: bold;
      margin-bottom: 0.128em;
    }

    h4 {
      font-style: italic;
      color: var(--color-secondary);
      margin-bottom: 1em;
    }
  }
}

.about-card:nth-child(odd) {
  grid-template-columns: var(--image-size) 1fr;
}

.about-card:nth-child(even) {
  grid-template-columns: 1fr var(--image-size);
}

/* Show */

#shows {
  min-height: 90vh;
}

.shows-container {
  display: flex;
  flex-direction: column;
  gap: 1.618em;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 6rem;
  padding: 0 1.618em;

  h4 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 1em;
  }
}

.show-info {
  display: flex;
  flex-direction: column;
  gap: 0.618em;

  em {
    font-weight: bold;
  }
}

.show-pictures {
  display: flex;
  flex-direction: column;
  gap: 1.618em;
}

.carousel {
  width: 80%;
  margin: 0 auto;
}

.card {
  display: none;
  height: 100%;

  transition: all;

  img {
    width: 100%;
    object-fit: contain;
  }
}

.card.active {
  display: block;
}

.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.dot-wrapper {
  display: flex;
  align-items: center;
  text-align: center;
}

.dot {
  display: inline-block;
  cursor: pointer;
  height: 0.618em;
  width: 0.618em;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
  background-color: #717171;
}

.btn-wrapper {
  display: flex;
  gap: 1.618em;
  justify-content: center;

  button {
    background-color: transparent;
    border-radius: 50%;
  }
}

/* Footer */

footer {
  width: 100%;
  border-top: 0.0125rem solid var(--color-secondary);
}

.footer-container {
  display: flex;
  min-height: 9vh;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.618em;
  padding: 0.618em;

  p {
    font-style: italic;
    font-weight: 300;

    a {
      color: var(--color-accent);
    }
  }
}

/* Mobile Screen Query */

@media (max-width: 700px) {
  #navbar ul {
    display: none;
  }

  .section-title {
    margin-bottom: 1.618em;
  }

  #home {
    outline: none;
    outline-offset: 0;
  }

  .about-container {
    gap: 1em;
    margin-bottom: 1.618em;
  }

  .about-card {
    padding: 1.618em;

    img {
      width: 16rem;
    }
  }

  .about-card:nth-child(even),
  .about-card:nth-child(odd) {
    grid-template-columns: 1fr;
  }

  .about-card:nth-child(even) {
    .image-wrapper {
      grid-row: 1/2;
    }
  }

  .carousel {
    width: 100%;
  }
}

/* Extra Animations & Transitions */

@media (prefers-reduced-motion) {
  .hidden {
    transition: none;
  }
}

.hidden {
  opacity: 0;
  filter: blur(0.05rem);
  transition: all 1s;
}
.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.hidden:nth-child(even) {
  transform: translateX(-5%);
}

.hidden:nth-child(odd) {
  transform: translateX(5%);
}

.show:nth-child(odd),
.show:nth-child(even) {
  transform: translateX(0);
}
