@import url("https://fonts.googleapis.com/css?family=Cabin|Herr+Von+Muellerhoff|Source+Sans+Pro:400,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Gugi&display=swap");

/*Global styles*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-font: "Source Sans Pro", sans-serif;
  --secondary-font: "Gugi", cursive;
  --body-font: "Cabin", sans-serif;
  --txt-light: #fff;
  --txt-dark: #252525;
  --bg-light: #fff;
  --bg-dark: #515151;
  --txt-colored-accent: #c90035;
  --txt-colored-primary: #400670;
  --txt-colored-secondary: rgb(255, 46, 57);
  --txt-colored-secondary-dark: rgb(233, 75, 64);
  --speed: 0.4s;
}

html {
  font-family: var(--main-font);
  font-size: 10px;
  color: var(--body-font);
  scroll-behavior: smooth;
}

section {
  padding: 3.9rem 0;
}

img {
  width: 100%;
  max-width: 100%;
}

a {
  text-decoration: none;
}

p {
  font-size: 1.6rem;
}

.hidden {
  display: none;
}

.container {
  /* width: 100% until 1225 pixels */
  width: 100%;
  max-width: 122.5rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}

.text-colored-secondary {
  color: var(--txt-colored-secondary-dark);
}

/* navbar ********************************/

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  /* doesn't do anythhing */
  /* background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent); */
  transition: 1s;
}

/* apply on scroll */

.scrolling-active {
  background-color: var(--bg-light);
  /* box shadow for separation with other white sections */
  box-shadow: 0 3px 1rem rgba(0, 0, 0, 0.1);
}

.scrolling-active .logo {
  color: black;
}

.scrolling-active .nav {
  height: 4.5rem;
}

.scrolling-active .menu_line {
  background-color: var(--txt-colored-accent);
}

.logo {
  color: var(--txt-light);
  font-size: 3rem;
  letter-spacing: 5px;

  /* align the logo with the text */
  position: relative;
  padding: 0 30px;
}

.logo img {
  max-width: 30px;
  padding-top: 2px;
  margin-right: -3px;
  
  /* align the logo with the text */
  position: absolute;
  left: 0;
  top: 3px;
}

.nav {
  height: 7.2rem;
  /* this will help with alignment */
  display: flex;
  align-items: center;
  justify-content: center;
  /* transition on scroll desktop*/
  transition: 1s;
}

/* toggler */

.menu-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0.5rem;
  cursor: pointer;
  z-index: 1500;
  display: inline-block;
  width: 6rem;
  height: 6rem;
  transition: all 0.25s;
}

/* yummy hamburger*/

.menu_line {
  position: absolute;
  top: 50%;
  width: 50%;
  height: 0.5rem;
  border-radius: 0.25rem;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--txt-light);
}

.menu_line-l {
  --top: 33%;
}

.menu_line-n {
  --top: 67%;
}

.menu_line-l,
.menu_line-n {
  top: var(--top);
  transition: opacity 0s var(--speed), width var(--speed) calc(var(--speed) * 2);
}

.on .menu_line-l,
.on .menu_line-n {
  width: 0.5rem;
  opacity: 0;
  transition: width var(--speed), opacity 0s var(--speed);
}

.menu_line-m {
  transition: transform var(--speed);
}

.on .menu_line-m {
  transform: translate(-50%, -50%) rotate(135deg);
  transition: transform var(--speed) calc(var(--speed) * 2);
}

.menu_line-o {
  --top: 33%;
}

.menu_line-p {
  --top: 67%;
}

.menu_line-o,
.menu_line-p {
  top: var(--top);
  width: 0.5rem;
  transition: top var(--speed) var(--speed),
    height calc(var(--speed) * 2) var(--speed), transform var(--speed);
}

.on .menu_line-o,
.on .menu_line-p {
  top: 50%;
  height: 50%;
  transform: translate(-50%, -50%) rotate(135deg);
  transition: top var(--speed) var(--speed), height calc(var(--speed) * 2),
    transform var(--speed) calc(var(--speed) * 2);
}


.nav-list {
  list-style: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  height: 100vh;
  background-color: var(--bg-dark);
  background-image: url(images/nav-mob.png);
  padding: 4.4rem;
  /* to better align content */
  display: flex;
  flex-direction: column;
  /* divide space around each nav link equally */
  justify-content: space-around;
  z-index: 1250;
  /* to help with the animation of opening menu */
  transform: translateX(-100%);
  transition: transform 0.5s;
}

/* make the right of the open sidebar darker */

.nav::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  /* change opacity with js */
  opacity: 0;
  transform: scale(0);
  /* transition efect for opacity */
  transition: opacity 0.5s;
}


.open .nav-list {
  /* translate 0 to bring it back on screen */
  transform: translateX(0);
}

.open .nav::before {
  /* make the darker side of navbar visible */
  opacity: 1;
  transform: scale(1);
}

/* style the navbar slide menu */

.nav-item {
  border-bottom: 2px solid var(--txt-colored-secondary);
}

/* remove border from language icon*/

nav ul li:last-child {
  border-bottom: none;
}

a .lang-icon {
  max-width: 3rem;
  max-height: auto;
}

.nav-link {
  display: block;
  color: rgb(218, 218, 218);
  text-transform: uppercase;
  font-size: 2rem;
  /* space letters and margin to align text back*/
  letter-spacing: 2px;
  margin-right: -2px;
  /* for color transition on hover */
  transition: color 0.5s;
}

.nav-link:hover {
  color: #fff;
}

/* Hero section **************************/

.hero {
  width: 100%;
  height: 100vh;
  /* flex to align items */
  display: flex;
  align-items: center;
  text-align: center;
  /* background will be relative to hero for parallax effect*/
  position: relative;
  /* important to not overlap content below it */
  overflow: hidden;
}

.parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(images/hero.jpg) center no-repeat;
  /* to not stretch the image */
  object-fit: cover;
  /* to make sure the img is behind text */
  z-index: -1;
}

.video {
  display: none;
  filter: grayscale(100%);
  
}

.sub-headline {
  font-size: 5.5rem;
  font-family: var(--secondary-font);
  color: var(--txt-colored-accent);
  text-shadow: 2px 2px rgb(36, 32, 32);
  font-weight: 100;
  /* line-height: 0.4; */
  letter-spacing: 2px;
  -webkit-text-stroke: 1px rgb(160, 158, 158);
}

.first-letter {
  font-size: 8.3rem;
}

.headline {
  color: #fff;
  text-shadow: 2px 2px 4px rgb(36, 32, 32);
  font-size: 3.7rem;
  font-family: var(--main-font);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.5rem;
  margin-right: -0.5rem;
}

.fancy-f {
  max-width: 40px;
  margin-bottom: -7px;
  margin-right: 2px;
}

.separator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.line {
  width: 100%;
  max-width: 8.4rem;
  height: 0.25rem;
  background-color: #fff;
  /* position relative to help with pseudo element */
  position: relative;
}

/* making the triangle */

.line-right::before,
.line-left::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0.6rem solid transparent;
}

.line-right::before {
  border-right-color: #fff;
  right: 0;
}

.line-left::before {
  border-left-color: #fff;
  left: 0;
}

.cog {
  font-size: 2rem;
  color: var(--txt-colored-secondary);
  margin: 0 1.6rem;
}

.headline-description h5 {
  color: var(--txt-light);
  font-size: 1.4rem;
  font-weight: 100;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  letter-spacing: 3px;
}

/* button styles */

.btn {
  display: inline-block;
  letter-spacing: 2px;
  margin-right: -2px;
  margin-top: 15px;
  color: var(--txt-dark);
  background-color: var(--bg-light);
  border: 3px solid var(--bg-light);
  padding: 0.9rem 1.8rem;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.5s;
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  width: 2rem;
  height: 2rem;
  border: solid var(--bg-light);
  transition: all 0.5s;
}

.btn::before {
  top: -1rem;
  left: -1rem;
  border-width: 3px 0 0 3px;
}

.btn::after {
  bottom: -1rem;
  right: -1rem;
  border-width: 0 3px 3px 0;
}

.btn:hover::before,
.btn:hover::after {
  width: calc(100% + 2rem);
  height: calc(100% + 2rem);
  border-color: var(--txt-colored-secondary);
}

.btn:hover,
.btn:focus {
  color: var(--txt-light);
  background-color: var(--txt-colored-secondary-dark);
  border-color: var(--txt-colored-secondary-dark);
}

/* dark button */

.btn-dark {
  display: inline-block;
  letter-spacing: 2px;
  margin-right: -2px;
  color: var(--txt-light);
  background-color: var(--bg-dark);
  border: 3px solid var(--bg-dark);
  padding: 0.9rem 1.8rem;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.5s;
}

.btn-dark::before,
.btn-dark::after {
  content: "";
  position: absolute;
  width: 2rem;
  height: 2rem;
  border: solid var(--bg-dark);
  transition: all 0.5s;
}

.btn-dark::before {
  top: -1rem;
  left: -1rem;
  border-width: 3px 0 0 3px;
}

.btn-dark::after {
  bottom: -1rem;
  right: -1rem;
  border-width: 0 3px 3px 0;
}

.btn-dark:hover::before,
.btn-dark:hover::after {
  width: calc(100% + 2rem);
  height: calc(100% + 2rem);
  border-color: var(--txt-colored-secondary);
}

.btn-dark:hover,
.btn-dark:focus {
  color: var(--txt-light);
  background-color: var(--txt-colored-secondary-dark);
  border-color: var(--txt-colored-secondary-dark);
}

/* cookie consent banner ************************/

.cookie-container {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(37, 43, 51, 0.9);
  color: var(--txt-light);
  padding: 10px 32px 10px 32px;
  box-shadow: 0 -2px 16px rgba(47, 54, 64, 0.39);
  z-index: 10;
  transition: 400ms;
  text-align: center;
}

.cookie-container.active {
  bottom: 0;
}

.cookie-container a {
  color: var(--txt-colored-secondary);
}

.cookie-btn {
  margin: 2rem 0;
  /* background: #e84118;
  border: 0;
  color: #f5f6fa;
  padding: 12px 48px;
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 16px;
  border-radius: 8px;
  cursor: pointer; */
}

/* Services *****************************/

.section-title {
  font-size: 4rem;
  color: var(--txt-light);
  text-shadow: 2px 2px 4px rgb(36, 32, 32);
  text-align: center;
  letter-spacing: 0.7rem;
  margin-right: -0.7rem;
  margin-bottom: 2rem;
}

.line-dark {
  width: 100%;
  max-width: 30rem;
  height: 0.25rem;
  background-color: var(--txt-dark);
  /* position relative to help with pseudo element */
  position: relative;
}

.line-right-dark::before,
.line-left-dark::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0.6rem solid transparent;
}

.line-right-dark::before {
  border-right-color: var(--txt-dark);
  right: 0;
}

.line-left-dark::before {
  border-left-color: var(--txt-dark);
  left: 0;
}

.sub-section {
  font-size: 2rem;
  margin: 4rem 0;
  width: 100%;

  text-align: center;
}

.sub-section h3 {
  padding: 1rem 0;
}

.sub-section i {
  font-size: 4.5rem;
  padding: 0.5rem 0;
}

.services-content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  overflow: hidden;
  place-items: center;
}

@media screen and (min-width: 1000px) {
  .services-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    overflow: hidden;
    place-items: center;
  }
}

/* .front {
  font-family: "Palatino Linotype";
} */

.front h3 {
  color: #44a304;
}

/* .back {
  font-family: "Lucida Console";
} */

.back h3 {
  color: #c7640e;
}

/* .design {
  font-family: "Georgia";
} */

.design h3 {
  color: #b36bb3;
}

.global-headline {
  text-align: center;
  margin-top: 3.9rem;
}

.services .global-headline {
  margin-top: 6.9rem;
}

.global-headline .cog {
  color: var(--txt-colored-accent);
  margin: 2.4rem 0;
}

.global-headline .sub-headline {
  letter-spacing: -0.1rem;
  line-height: 0.8;
}

.description {
  margin-bottom: 3rem;
}

/* filler **************************************/

.between {
  min-height: 40vh;
  display: flex;
  align-items: center;
}

.filler1 {
  background: url(images/filler1.jpg) no-repeat center;
  background-size: cover;
}

.filler2 {
  background: url(images/filler2.jpg) center no-repeat;
  background-size: cover;
}

/* The team ***************************/

.team .container {
  max-width: 90rem;
}

.team .separator {
  padding-bottom: 3rem;
}

.card-wrapper {
  display: grid;
  /* align 2 items and take 1 fraction of screen*/
  grid-template-columns: repeat(1, 1fr);
  /* space between grid items*/
  gap: 5rem;
  overflow: hidden;
  place-items: center;
  /* hide overflow if animation is outside container*/
  overflow: hidden;
}

.card {
  width: auto;
  max-width: 300px;
  height: 450px;
  background-color: #ebeef8;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px auto;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.2);
  /* padding: 0 10px 50px 10px; */
  padding-bottom: 60px;
}

.card-text {
  padding: 10px 30px;
  margin-bottom: 20px;
}

.card-img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 59%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 59%, 0 100%);
}

.profile-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  /* no position absolute needed, just negative value to push picture and rest of content up */
  margin-top: -120px;
  z-index: 2;
  border: 5px solid #ebeef8;
}

.card h1 {
  font-size: 25px;
  color: #333;
  margin: 15px 0;
}

.job-title {
  color: #777;
  font-size: 15px;
  font-weight: 300;
  margin: 0 0 20px;
}

/* .about {
  font-size: 15px;
  margin: 15px 0;
  font-style: italic;
  text-align: center;
  color: #333;
} */

@media screen and (min-width: 730px) {
  .card-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1650px) {
  .card-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .card {
    margin: 20px;
  }
  .team .container {
    max-width: 180rem;
  }
}

.team .description {
  padding-top: 3rem;
  margin-bottom: 0;
}

/* Contact *************************************/

.contact-content {
  font-size: 2rem;
  color: var(--txt-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* hide overflow if animation is outside container*/
  overflow: hidden;
}

.contact-details {
  width: 100%;
  max-width: 40rem;
  margin: 3rem auto;
}

.form-wrapper .btn-dark {
  /* fix overflow issue on a few resolutions */
  margin-left: 7px;
}

.form-group {
  margin-top: 15px;
}

.form-check-label, .contact-content a {
  color: var(--txt-dark);
  font-size: 1.4rem;
}
.form-check-label a {
  text-decoration: underline;
}
.contact-details i {
  font-size: 1.5rem;
}

/* style message on form submit */
.message-sent-box {
  margin-top: 15px;
  padding: 15px;
  text-align: center;
}
/* success and error on form submit message box */
.success {
  font-weight: bold;
  background-color: #128c59;
  color: rgb(221, 221, 221);
}
.error {
  background-color: var(--txt-colored-accent);
  color: white;
}
.error a {
  font-weight: bold;
  font-size: 1.6rem;
  color: white;
  text-decoration: underline;
}

.contact-details .fa-map-marker-alt {
  color: red;
}

.contact-details .fa-whatsapp {
  color: #128c7e;
}

.contact-details .fa-facebook-square {
  color: #3b5998;
}

.scale {
  transition: transform 200ms ease-in-out;
  transform-origin: left;
}

.scale:hover,
.scale:focus,
.scale:active {
  transform: scale(1.1);
  color: var(--txt-colored-primary);
}

.scale a {
  transition: transform 200ms ease-in-out;
  transform-origin: left;
}

.scale a:hover,
.scale a:focus,
.scale a:active {
  transform: scale(1.1);
  color: var(--txt-colored-primary);
}

.map {
  margin: auto;
}

.map iframe {
  width: 400px;
  height: 450px;
}

@media screen and (min-width: 900px) {
  .contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5.5rem;
    overflow: hidden;
    place-items: center;
  }
  .map {
    width: 100%;
    margin-top: 3rem;
  }
  .map iframe {
    width: 100%;
    height: 450px;
  }
}
/* Form */

/* input fields */

.form__group {
  position: relative;
  padding-top: 15px;
  /* width: 50%; */
}

.form__field {
  /* font-family: inherit; */
  width: 100%;
  border: 0;
  border-bottom: 2px solid #9b9b9b;
  outline: 0;
  font-size: 1.5rem;
  color: black;
  padding: 7px 0;
  background: transparent;
  transition: border-color 0.2s;
}

.form__field::placeholder {
  color: transparent;
}

.form__field:placeholder-shown ~ .form__label {
  font-size: 1.3rem;
  cursor: text;
  top: 20px;
}

.form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 1.3rem;
  color: #9b9b9b;
}

.form__field:focus {
  padding-bottom: 6px;
  border-width: 3px;
  border-image: linear-gradient(to right, rgb(73, 11, 187), rgb(31, 145, 226));
  border-image-slice: 1;
}

.form__field:focus ~ .form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 1.3rem;
  color: var(--txt-dark);
  font-weight: 700;
}

/* reset input */

.form__field:required,
.form__field:invalid {
  box-shadow: none;
}

/* Footer **************************************/

footer {
  padding: 7.9rem 0;
  background-color: #121212;
  color: #fff;
  text-align: center;
  /* for the back to top button */
  position: relative;
}

/* back to top button */

.back-to-top {
  width: 7rem;
  height: 7rem;
  background-color: #121212;
  /* position button above footer */
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}

.back-to-top i {
  display: block;
  color: #fff;
  font-size: 2rem;
  padding: 2rem;
}

.footer-content {
  /* hide overflow if animation is outside container*/
  overflow: hidden;
}

.footer-content h4 {
  font-size: 1.9rem;
  text-transform: uppercase;
  font-weight: 100;
  letter-spacing: 3px;
  margin-bottom: 3rem;
}

.footer-content .cog {
  margin: 2.4rem 0;
}

.footer-content-about {
  margin-bottom: 5.4rem;
}

.footer-content-about p {
  line-height: 2;
}

.footer-content-legal,
.footer-content-legal p {
  font-size: 1.2rem;
  color: grey;
}

.footer-content-legal a {
  margin-left: 2rem;
  text-decoration: underline;
  color: grey;
  border-bottom: grey;
}

/* media queries ***********************/

@media screen and (min-width: 900px) {
  /* navbar ***********/
  /* change nav height on scroll */
  .scrolling-active .nav {
    height: 4.5rem;
  }
  /* change size and color smoothly on scroll */
  .scrolling-active .nav-deco {
    transform: scale(0.9);
    transform-origin: top;
    transition: all 1s ease;
    color: var(--txt-dark);
  }
  /* change size on scroll */
  .scrolling-active a .lang-icon {
    max-width: 2.3rem;
  }
  .scrolling-active .nav-link:hover {
    color: var(--txt-colored-primary);
  }

  .menu-toggle {
    display: none;
  }
  .nav {
    /* to have separation between logo and nav items */
    justify-content: space-between;
  }
  .nav-list {
    position: initial;
    width: initial;
    height: initial;
    background-color: transparent;
    background-image: none;
    padding: 0;
    justify-content: initial;
    flex-direction: row;
    transform: initial;
    transition: initial;
  }
  .nav-item {
    margin: 0 2.4rem;
    border: none;
  }
  .nav-item:last-child {
    margin-right: 0;
  }
  /* nav links font size when on top of page*/
  .nav-deco {
    font-size: 1.7rem;
  }
  /* nav link hover effect */
  nav ul li a {
    position: relative;
  }
  nav ul li a.nav-deco {
    transition: transform 0.7s ease-in-out;
  }
  nav ul li a.nav-deco:hover {
    transform: scale(1.1);
  }
  nav ul li a.nav-deco::before,
  nav ul li a.nav-deco::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--txt-colored-secondary);
    left: 0;
    transform: scaleX(0);
    /* transition or else it happens instantly and no effect visible */
    transition: all 0.5s;
  }
  nav ul li a.nav-deco::before {
    top: 0;
    transform-origin: left;
  }
  nav ul li a.nav-deco::after {
    bottom: 0;
    transform-origin: right;
  }
  nav ul li a.nav-deco:hover::before,
  nav ul li a.nav-deco:hover::after {
    transform: scaleX(1);
  }
  /* language icon*/
  a .lang-icon {
    max-width: 2.5rem;
    max-height: auto;
    margin-top: -2px;
    transition: all 0.7s ease-in-out;
  }
  a .lang-icon:hover {
    transform: scale(1.2);
  }
  /* active nav link */
  /* .active {
    position: relative;
  }

  .active::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    left: 0;
    bottom: -3px;
  } */
  /* hero *********/
  .parallax {
    background: transparent;
  }
  .video {
    display: block;
    /* position: fixed; */
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
  }
  section {
    padding: 5rem;
  }
  .cog {
    font-size: 3rem;
  }

  .fancy-f {
    max-width: 50px;
    margin-bottom: -10px;
    margin-right: 3px;
  }

  /* section titles *******/
  .sub-headline {
    font-size: 10rem;
  }
  .first-letter {
    font-size: 12.2rem;
  }
  .headline {
    font-size: 4.7rem;
    letter-spacing: 0.8rem;
  }
  .line {
    max-width: 11.4rem;
  }
  /* filler */
  .fill-headline {
    line-height: 0.5;
  }

  /* footer ***************/
  .footer-content {
    max-width: 77.5rem;
    margin: auto;
  }
  .footer-content-about {
    max-width: 51.3rem;
    margin: 0 auto 5.4rem;
  }
  .footer-content-legal {
    display: flex;
    justify-content: center;
  }
}

/* Animations *************************************/

/* Fade up animation */

@keyframes fadeUp {
  0% {
    transform: translateY(4rem);
  }
  100% {
    /* turn on opacity which was set to 0 in the class or it won't work*/
    opacity: 1;
    /* and then the value goes back to 0  */
    transform: translateY(0rem);
  }
}

/* only animation specific commands here to read them easier, the rest are placed normally higher */

.sub-headline {
  opacity: 0;
  animation: fadeUp 0.5s forwards;
  animation-delay: 0.5s;
}

/* Scale up animation*/

@keyframes scale {
  0% {
    /* make text bigger */
    transform: scale(2);
  }
  100% {
    opacity: 1;
    /* and then the value goes back to 1  */
    transform: scale(1);
  }
}

/* only animation specific commands here to read them easier, the rest are placed normally higher */

.headline {
  opacity: 0;
  animation: scale 0.5s forwards;
}

/* FIX: class already has 100% width and increased scale adds horizontal scroll*/

body {
  overflow-x: hidden;
}

/* grow animation */

@keyframes grow {
  0% {
    width: 0;
  }
  100% {
    opacity: 1;
    width: 100%;
  }
}

/* only animation specific commands here to read them easier, the rest are placed normally higher */

.line {
  opacity: 0;
  animation: grow 3s forwards;
  animation-delay: 0.9s;
}

/* triangles on the lines animate a bit later apparently*/

.line-right::before,
.line-left::before {
  opacity: 0;
  animation: grow 0.5s forwards;
  animation-delay: 1.2s;
}

/* Fade down animation */

@keyframes fadeDown {
  0% {
    transform: translateY(-1rem);
  }
  100% {
    /* turn on opacity which was set to 0 in the class or it won't work*/
    opacity: 1;
    /* and then the value goes back to 0  */
    transform: translateY(0);
  }
}

.single-animation {
  /*just the animation code*/
  opacity: 0;
  animation: fadeDown 0.5s forwards;
  animation-delay: 1.5s;
}

/* spin animation */

@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    opacity: 1;
    transform: rotate(720deg);
  }
}

.cog {
  opacity: 0;
  animation: spin 3s forwards;
}

.cog {
  opacity: 0;
  animation: spin 3s forwards;
}

/* back to top animation */

@keyframes up {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-1rem);
  }
}

.back-to-top i {
  animation: up 2s infinite;
}

/* Fade navbar links animation */

@keyframes anim-nav {
  0% {
    transform: translatex(3rem);
  }
  100% {
    /* turn on opacity which was set to 0 in the class or it won't work*/
    opacity: 1;
    /* and then the value goes back to 0  */
    transform: translateX(0);
  }
}

@keyframes anim-nav-mobile {
  0% {
    transform: translatex(-10rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade logo animation */

@keyframes anim-logo {
  0% {
    transform: translatex(-10rem);
  }
  100% {
    /* turn on opacity which was set to 0 in the class or it won't work*/
    opacity: 1;
    /* and then the value goes back to 0  */
    transform: translateX(0);
  }
}

/* navbar animation only in desktop */

@media screen and (min-width: 900px) {
  nav ul li:nth-child(1) {
    opacity: 0;
    animation: anim-nav 0.5s forwards;
    animation-delay: 0.3s;
  }
  nav ul li:nth-child(2) {
    opacity: 0;
    animation: anim-nav 0.5s forwards;
    animation-delay: 0.6s;
  }
  nav ul li:nth-child(3) {
    opacity: 0;
    animation: anim-nav 0.5s forwards;
    animation-delay: 0.9s;
  }
  nav ul li:nth-child(4) {
    opacity: 0;
    animation: anim-nav 0.5s forwards;
    animation-delay: 1.2s;
  }
  nav ul li:last-child {
    opacity: 0;
    animation: anim-nav 0.5s forwards;
    animation-delay: 1.5s;
  }
  .logo {
    opacity: 0;
    animation: anim-logo 0.5s forwards;
    animation-delay: 0.3s;
  }
}

/* navbar animation only in mobile */

@media screen and (max-width: 899px) {
  .open ul li:nth-child(1) {
    opacity: 0;
    animation: anim-nav-mobile ease-out 0.5s forwards;
    animation-delay: 0.3s;
  }
  .open ul li:nth-child(2) {
    opacity: 0;
    animation: anim-nav-mobile ease-out 0.5s forwards;
    animation-delay: 0.6s;
  }
  .open ul li:nth-child(3) {
    opacity: 0;
    animation: anim-nav-mobile ease-out 0.5s forwards;
    animation-delay: 0.9s;
  }
  .open ul li:nth-child(4) {
    opacity: 0;
    animation: anim-nav-mobile ease-out 0.5s forwards;
    animation-delay: 1.2s;
  }
  .open ul li:last-child {
    opacity: 0;
    animation: anim-nav-mobile ease-out 0.5s forwards;
    animation-delay: 1.5s;
  }
}

/* disable spinners */

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}
