html,
body {
  overflow-x: hidden;
  width: 100vw;
  font-family: "Caveat", cursive;
  font-family: "Pacifico", cursive;
  background-color: rgb(0, 0, 0, 0.8);
}

:root {
  --navbarHeight: 0px;
}

/*Header*/

header {
  position: fixed;
  width: 100%;
  height: var(--navbarHeight);
  background-color: transparent;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

#navbar {
  list-style: none;
  display: flex;
  align-items: center;
}

#navbar .navlinks {
  text-decoration: none;
  color: white;
  font-size: 1.5em;
  margin-right: 10px;
  padding: 5px 20px;
}

/*Section 1: Welcome */

section {
  min-height: 100vh;
  width: 100%;
}

#hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/hero.png");
}

#hero h1 {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.4;
  font-size: 5em;
}

#hero span {
  color: rgba(255, 180, 180, 0.5);
  font-size: 2em;
  position: relative;
  top: 0.5em;
}

.arrow {
  width: 20px;
  height: 15px; /* adjust the distance between arrows */
  position: relative;
  top: 20vh;
  display: flex;
}

.left-wing,
.right-wing {
  background: rgba(255, 255, 255, 0.3);
  width: 5px;
  height: 30px;
  border-radius: 20px;
  animation: 1s arrow1 infinite;
  position: relative;
}

.left-wing {
  transform: rotate(-45deg);
  right: 7px;
}

.right-wing {
  transform: rotate(45deg);
  left: 7px;
}

.arrow:nth-of-type(3) .left-wing,
.arrow:nth-of-type(3) .right-wing {
  animation: 1s arrow2 infinite;
}

.arrow:nth-of-type(4) .left-wing,
.arrow:nth-of-type(4) .right-wing {
  animation: 1s arrow3 infinite;
}

@keyframes arrow1 {
  * from {
    background: rgba(255, 255, 255, 0.3);
  }

  25% {
    background: rgba(255, 255, 255, 0.8);
  }

  to {
    background: rgba(255, 255, 255, 0.3);
  }
}

@keyframes arrow2 {
  from {
    background: rgba(255, 255, 255, 0.3);
  }

  50% {
    background: rgba(255, 255, 255, 0.8);
  }

  to {
    background: rgba(255, 255, 255, 0.3);
  }
}

@keyframes arrow3 {
  from {
    background: rgba(255, 255, 255, 0.3);
  }

  75% {
    background: rgba(255, 255, 255, 0.8);
  }

  to {
    background: rgba(255, 255, 255, 0.3);
  }
}

/* Section 2: Intro */

#intro {
  background-color: white;
}

#intro p {
  font-size: 0.8em;
  font-style: italic;
  font-weight: 300;
  font-family: Sans-serif;
  line-height: 3em;
}

/* Section 3: Timeline */
#timeline {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/timeline.png");
}

.stripe {
  width: 15px;
  height: 10em;
  border-radius: 20px;
  background-color: white;
  position: relative;
  top: 5%;
  left: 1.5em;
}

.stripe:nth-of-type(1) {
  transform: rotate(-45deg) translateX(-40px);
}

.stripe:nth-of-type(2) {
  transform: rotate(45deg) translateX(-40px);
}

.stripe:nth-of-type(3) {
  transform: rotate(-45deg) translate(40px, -80px);
}

/* Section 4: Gallery */
.gallery {
  background-color: #0f1117;
  font-family: "Black Ops One", system-ui;
  font-weight: 400;
  font-style: normal;
}

.gallery h1 {
  margin-top: 0.8em;
  font-size: 1.6rem;
  font-weight: 600;
  font-style: bold;
  line-height: 1.5em;
}

.gallery .card {
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.gallery .card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery .card h5 {
  font-weight: bold;
}

#desktop-gallery .carousel-control-next,
#desktop-gallery .carousel-control-prev /*, .carousel-indicators */ {
  filter: invert(100%);
}

/*hover effect, slightly come up*/
.gallery .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
}

/* Section 5: Collaboration */
#collaboration {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/collab.png");
}

#collaboration h1 {
  font-size: 1.8em;
}

#collaboration form {
  font-family: Arial, sans-serif;
  font-style: italic;
  line-height: 1.5em;
  font-size: 0.8em;
  font-weight: 600;
}

#collaboration button {
  font-size: 1em;
}

.parallax {
  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/*when h1 becomes 1 line*/
@media (min-width: 528px) {
  /* Section 1 */
  .arrow {
    top: 30vh;
  }

  .left-wing,
  .right-wing {
    height: 30px;
  }

  .left-wing {
    right: 7px;
  }

  .right-wing {
    left: 7px;
  }

  /* Section 2 */
  #intro p {
    font-size: 0.9em;
  }
}

/*on lg*/
@media (min-width: 992px) {
  .gallery h1 {
    font-size: 2rem;
  }

  #intro p {
    font-size: 1em;
  }
}

/*on xxl*/
@media (min-width: 1400px) {
  #intro p {
    font-size: 1.2em;
  }
}

/*on mobile, turn off parallax*/
@media only screen and (max-device-width: 1366px) {
  .parallax {
    background-attachment: scroll;
  }
}
