nav {
  position: fixed;
  width: 100vw;
  color: white;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s;
}

.navbar {
  padding: 12px 64px;
  justify-content: center;
}

.scrolled {
  background-color: #2c0a6c;
}

#logo {
  width: 160px;
  max-width: 50%;
  max-height: 32px;
}

#o-two-logo {
  width: 160px;
  max-width: 50%;
  max-height: 24px;
}

#footer-logo {
  width: 160px;
  max-width: 50%;
  margin-bottom: 5rem;
}

.links {
  -ms-flex: 0 1 50%;
  flex: 0 1 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100vw;
  margin-left: auto;
}

#lander {
  position: relative;
  padding-top: 10vh;
  color: white;
}

.welcome-text {
  flex: 1 1 50%;
  max-width: 500px;
  padding: 2rem 1rem 5rem 0;
  overflow: hidden;
}

.bottom-info {
  font-size: 0.8rem;
}

.copyright {
  opacity: 0.5;
  font-size: 1rem;
  margin: 10px 0 0 0;
}

#lander-mockup {
  -ms-flex: 1;
  flex: 1;
  display: block;
  width: 400px;
  max-height: 75vh;
  margin: 0 auto;
  object-fit: contain;
}

#arrow-icon {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  width: 40px;
  margin: 0 auto;
  z-index: 100;
  opacity: 0.3;
  text-align: center;
  transition: opacity 0.3s;
}

#content {
  position: relative;
}

#screen-mockup {
  position: fixed;
  width: 25%;
  height: 800px;
  max-height: 70vh;
  margin: 0 auto;

  bottom: 50%;
  left: 0;
  right: 0;
  transform: translateY(50%);

  transition-timing-function: ease-in-out;
  background-image: url('assets/mockups/passenger/passenger-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;

  transition: background-image 0.5s;
  opacity: 0;
  z-index: -10;
}

.left-side {
  transform: translateX(-10%);
}

.right-side {
  transform: translateX(10%);
}

.content-block {
  opacity: 0;
  width: 30%;
  max-width: 350px;
  margin: 35vmin 0;
}

.content-block:nth-child(odd) {
  margin-left: auto;
  margin-right: 0;
}

.content-block:first-of-type {
  margin-top: 10vmin;
}
.content-block:last-of-type {
  margin-bottom: 10vmin;
}

#download {
  padding: 50vh 8% 20vh;
  background-color: #723bd9;
  color: white;
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
}

.download-icons {
  display: flex;
  width: 100%;
  max-width: 400px;
}

.download-icon {
  display: block;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  width: 50%;
  max-height: 90px;
  min-height: 40px;
  padding: 30px 10px 10px 0;
}

.social-icons {
  display: flex;
  width: 100%;
  max-width: 200px;
  margin: 20px 0 0 0;
}

.social-icon {
  display: block;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  max-height: 70px;
  min-height: 30px;
  margin: 0px 15px 15px 0;
}

.union-badge {
  max-height: 100px;
  border-radius: 10px;
  width: 100%;
  height: auto;
  object-fit: contain;

}

.union-badge-item {
  max-width: 200px;
  margin-bottom: 24px;
}

.finland-logo {
  max-width: 200px;
  margin-top: 24px;
  margin-right: 16px;
}

#driver {
  padding: 15vh 0;
  background-color: white;
}

#contact {
  background-color: #f0eff780;
  width: 100%;
  padding: 10vh 0;
  color: black;
}

.contact-persons {
  max-width: 500px;
}

.side-by-side {
  flex-direction: row;
  display: flex;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

@media (max-width: 450px) {
  .navbar {
    padding: 12px 24px;
  }
  .links {
    margin: 16px 0;
  }
}

@media (max-width: 800px) {
  #screen-mockup {
    width: 90vw;
    background-position: right center;
    bottom: 40%;
  }

  .content-block {
    width: 110%;
    padding: 1rem 5rem 1rem 0 !important;
    margin: 80vh 0 !important;
    text-shadow: 0px 3px 10px white;
    background-color: white;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  }

  #download {
    padding-top: 24vh;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
  }
  .links {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
  }

  .welcome-text {
    padding: 0;
    padding-top: 2.5rem;
  }

  .side-by-side {
    flex-direction: column;
  }
}

@media (min-width: 800px) and (max-width: 1100px) {
  #screen-mockup {
    width: 45%;
    margin-right: 1.5rem;
    margin-left: auto;
  }
  .content-block {
    width: 50%;
    padding: 1.5rem;
    padding-left: 0;
    margin-left: 0 !important;
    text-shadow: 0px 3px 10px white;
  }

  .links {
    -ms-flex: 0 1 60%;
    flex: 0 1 60%;
  }
}

iframe {
  padding-top: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  background-color: #f3e8ff;
}

@media (max-width: 800px) {
  iframe {
    width: 450px;
  }
}

@media (max-width: 600px) {
  iframe {
    width: 350px;
  }
}

@media (max-width: 450px) {
  iframe {
    width: 250px;
  }
}
