/* CSS Reset */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
  color: #fff;
  background-color: #000;
}

ol, ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/******************** Reset End *********************/
/*************Typeface************/
@font-face {
  font-family: marcellus-sc-regular;
  src: url('../fonts/marcellus-sc-regular.ttf');
}

@font-face {
  font-family: gill-sans-medium;
  src: url('../fonts/gill-sans-medium.ttf');
}

h1, h2, h3, h4 {
  font-family: 'marcellus-sc-regular', sans-serif;
}

p {
  font-family: 'gill-sans-medium', sans-serif;
}

/*************************************************/
/* Nav Menu */
.logo {
  margin-top: 12px;
  margin-left: -20px;
  width: 180px;
}

* {
  box-sizing: border-box;
  /* The box-sizing property allows us to include the padding and border in an element's total width and height */
}

body {
  margin: 0;
  /* Removes padding set by browser */
  font-family: sans-serif;
}

.top-nav {
  background-color: #000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  /* position: fixed; */
  width: 100%;
}

.top-nav a:not(:first-child) {
  display: none;
  /* If it's not the first anchor on the element that has .nav-class, don't display it */
}

.top-nav a.icon {
  display: block;
  position: absolute;
  top: 1rem;
  right: 0;
  color: #fff;
  text-decoration: none;
  font-size: 36px;
}

.top-nav a {
  color: #f2f2f2;
  text-align: center;
  padding: 1rem;
  text-decoration: none;
  font-size: 18px;
}

.top-nav a:hover {
  background-color: #ddd;
  color: #000;
}

.top-nav a.logo:hover {
  background: none;
}

.top-nav a.icon:hover {
  color: #a503c8;
  background: none;
}

.top-nav.responsive {
  display: flex;
  flex-direction: column;
  /* column layout for 600px and less */
}

.top-nav.responsive a.icon {
  /* prevents the icon from being positioned at the bottom of the column (due to inheritance from the above flex-direction rule) */
  position: absolute;
  right: 0;
  top: 1rem;
  /* This value should match your padding value to be even */
}

.top-nav.responsive a {
  /* Display and format the nav items for mobile */
  display: block;
  text-align: left;
}

/*************************************************/
/* Landing */
#landing {
  object-fit: cover;
}

#landing img {
  border-radius: 1rem;
  margin: 1rem;
  /* margin-top: 10rem; */
  object-fit: cover;
}

/*************************************************/
/* Text */
.head {
  text-align: center;
  justify-content: center;
  align-items: center;
  padding-bottom: 1rem;
}

.synopsis {
  text-align: center;
  padding: 1rem;
}

.crew {
  text-align: center;
  padding: 1rem;
}

.row {
  display: flex;
  flex-direction: column;
}

.col {
  width: 100%;
  /* border: solid #ccc; */
}

#trailer iframe {
  text-align: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
  min-height: 300px;
  border: 0;
}

#trailer .trailers {
  color: #fff;
  text-align: center;
  text-decoration: underline;
  margin-top: -.7rem;
  margin-bottom: 3rem;
}

#text {
  margin-top: 2rem;
  margin-bottom: -.5rem;
}

/****************************************************/
/* Gallery */
#gallery img {
  max-width: 100%;
}

#gallery {
  margin: 0 auto;
  text-align: center;
}

.type-one {
  text-align: center;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: -1rem;
}

.type-two {
  text-align: center;
  justify-content: center;
  align-items: center;
}

#trailer {
  text-align: center;
  margin-top: 1rem;
}

#scroll-gallery img {
  display: none;
}

#gallery-laptop {
  display: none;
}

@media screen and (min-width: 426px) and (max-width: 768px) {
  .col {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #text .synopsis {
    text-align: center;
    padding: 1rem 4rem 0 4rem;
  }

  #text .crew {
    text-align: center;
    padding: 2rem 4rem 2rem 4rem;
  }

  #landing img {
    margin: 1rem;
    /* margin-top: 10rem; */
  }

  #trailer .trailers {
    color: #fff;
    text-align: center;
    text-decoration: underline;
    margin-top: -.5rem;
    margin-bottom: 3rem;
    font-size: 14px;
  }

  #trailer iframe {
    text-align: center;
    align-items: center;
    padding: 1rem;
    width: 100%;
    min-height: 450px;
    border: 0px;
  }

  #gallery {
    column-width: 300px;
    column-gap: 0.5em;
  }

  figure {
    display: inline-block;
    margin: 0.25rem;
    padding: 1rem;
    width: 100%;
    border: 0.1em solid black;
    text-align: center;
  }

  #scroll-gallery img {
    display: none;
  }
}

@media screen and (min-width: 769px) {
  .row {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .col {
    flex: 1;
  }

  #gallery img {
    display: none;
  }

  #text .synopsis {
    text-align: left;
    padding: 1rem 4rem 0 4rem;
  }

  #text .crew {
    text-align: left;
    padding: 2rem 4rem 2rem 4rem;
  }

  #landing img {
    display: none;
  }

  #landing {
    background-image: url('../images/bike-image.jpeg');
    height: 80vh;
    background-repeat: no-repeat;
    object-fit: cover;
    background-size: cover;
    background-position: top;
  }

  #trailer {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
    padding: 1rem;
  }

  #trailer iframe {
    width: 80%;
    min-height: 600px;
  }

  #trailer .trailers {
    color: #fff;
    text-align: center;
    text-decoration: underline;
    margin-top: -.5rem;
    margin-bottom: 3rem;
    font-size: 18px;
  }

  /* #scroll-gallery img {
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    min-width: 700px;
    max-width: 100%;
    padding-bottom: 3rem;
    display: flex;
  } */
  #gallery-laptop {
    width: 100%;
    margin: 0 auto;
    display: block;
  }

  div#carousel {
    perspective: 1200px;
    font-size: 0;
    margin-bottom: 3rem;
  }

  figure#spinner {
    transform-style: preserve-3d;
    height: 300px;
    transform-origin: 50% 50% -500px;
    transition: 1s;
  }

  figure#spinner img {
    width: 40%;
    height: 100%;
    max-width: 425px;
    max-height: 250px;
    object-fit: cover;
    object-position: top;
    position: absolute;
    left: 30%;
    transform-origin: 50% 50% -500px;
    outline: 1px solid transparent;
  }

  figure#spinner img:nth-child(1) {
    transform: rotateY(0deg);
  }

  figure#spinner img:nth-child(2) {
    transform: rotateY(-45deg);
  }

  figure#spinner img:nth-child(3) {
    transform: rotateY(-90deg);
  }

  figure#spinner img:nth-child(4) {
    transform: rotateY(-135deg);
  }

  figure#spinner img:nth-child(5) {
    transform: rotateY(-180deg);
  }

  figure#spinner img:nth-child(6) {
    transform: rotateY(-225deg);
  }

  figure#spinner img:nth-child(7) {
    transform: rotateY(-270deg);
  }

  figure#spinner img:nth-child(8) {
    transform: rotateY(-315deg);
  }

  div#carousel~span {
    color: #fff;
    margin: 5%;
    display: inline-block;
    text-decoration: none;
    font-size: 2rem;
    transition: 0.6s color;
    position: relative;
    margin-top: -6rem;
    border-bottom: none;
    line-height: 0;
  }

  div#carousel~span:hover {
    color: #888;
    cursor: pointer;
  }

  /* Navigation Menu */
  .top-nav {
    justify-content: flex-end;
    align-items: center;
  }

  .top-nav a {
    display: flex;
  }

  .top-nav a:not(:first-child) {
    display: block;
    /* Makes the menu anchors visible for 600px+ devices */
  }

  .top-nav a:nth-child(1) {
    margin-right: auto;
    /* Applies automatic margin to the right of the first a element inside the top-nav class (the placeholder logo in this example) */
  }

  .top-nav a.icon {
    display: none;
    /* Hides the menu icon for 600px+ devices */
  }
}

/*****************************************************/
/* Footer */
footer a {
  color: white;
  text-decoration: none;
  text-align: center;
  flex: 1;
  margin-top: -3.5rem;
  font-size: 16px;
}

.second-footer {
  text-align: center;
  margin-top: -.5rem;
  margin-bottom: 1rem;
  font-size: 9px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.mgm {
  width: 80px;
  height: 40%;
  margin-top: 3rem;
  margin-bottom: .5rem;
}

.socials {
  justify-content: center;
  justify-content: space-around;
  margin: -.5rem auto 0 auto;
  display: flex;
  width: 30%;
  font-size: 18px;
}

#footer {
  background-color: #1F1B24;
  position: fixed;
  bottom: 0;
  width: 100%;
  -webkit-transition: height 1s, visibility 1s;
  transition: height 1s, visibility 1s;
}

#footerbuttondown {
  background-color: #121212;
  color: #BB86FC;
  font-size: 35px;
  width: 35px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  top: -20px;
  border-radius: 5px;
  border-radius: 5px;
}

#footerbuttonup {
  background-color: #121212;
  color: #BB86FC;
  font-size: 35px;
  width: 35px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  top: -60px;
  border-radius: 5px;
  border-radius: 5px;
  visibility: hidden;
}

#footercont {
  display: flex;
}

#centerbutton {
  align: center;
  width: 100%;
  content-align: center;
}