html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #2D2B55;
  color: white;
  font-size: 18px;
  font-family: "Source Sans 3", sans-serif;
  z-index: -999;
  position: relative;
}

#header {
  background-color: #1E1E3F;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 99;
}

.container {
  max-width: 1200px;
  height: 100%;
  min-height: max-content;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

#header .logo {
  height: 100%;
}

#header-img {
  height: 100%;
}

#nav-bar {
  text-align: center;
}

menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 40px;
  margin-right: 30px;
}

menu a {
  text-decoration: none;
  color: white;
  transition: 400ms;
  font-size: 20px;
  line-height: 24px;
}

menu a:hover {
  color: #DDF292;
  text-decoration: underline;
}

main {
  position: relative;
  z-index: -99;
}

section {
  margin-top: -60px;
  padding-top: 100px;
  position: relative;
  padding-bottom: 20px;
}

#hero {
  background-color: #2D2B55;
  margin-top: 0;
  z-index: -1;
}

#hero .container {
  position: relative;
}

h1 {
  margin: 30px 0 0;
  font-size: 40px;
  font-weight: normal;
  font-family: "Suez One", serif;
  text-transform: uppercase;
  text-shadow: 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C;
}

h2 {
  color: #F2E28C;
  font-size: 30px;
}

#hero p {
  color: #9CFCE6;
  max-width: 600px;
  line-height: 30px;
}

#hero img {
  position: absolute;
  right: 0;
  top: -40px;
  height: 420px;
  object-fit: none;
  object-position: top;
  z-index: -1;
  transition: opacity 1s;
}

#features {
  background-color: #28284E;
  z-index: -2;
}

#features ul {
  list-style: square;
}

#features h4 {
  font-size: 20px;
  color: #A5FF90;
}

#features p {
  color: #9CFCE6;
}

#how-it-works {
  background-color: #2D2B55;
  z-index: -3;
}

#how-it-works h2,
#how-it-works h3,
#how-it-works :not(li)>h4 {
  text-align: center;
}

#how-it-works strong,
#how-it-works em {
  color: #FAB142;
}

#how-it-works hr {
  border: none;
  margin: 30px 0;
  width: 100%;
  height: 1px;
  background-color: #9CFCE6;
}

#how-it-works ol {
  column-count: 4;
  column-gap: 30px;
}

#how-it-works li {
  break-inside: avoid;
  break-after: always;
}

#how-it-works li:first-child h4 {
  margin-top: 0;
}

#how-it-works li h4::first-letter {
  margin-left: 10px;
}

#how-it-works li p {
  color: #9CFCE6;
}

#how-it-works h3 {
  color: #F2E28C;
}

#how-it-works h4 {
  color: #A5FF90;
}

#how-it-works .container>div {
  column-gap: 30px;
  columns: 3;
}

#how-it-works .container>div h4:nth-of-type(odd) {
  break-before: column;
}

#more {
  background-color: #28284E;
  z-index: -4;
  text-align: center;
}

h2 b {
  font-family: "Suez One", serif;
  font-weight: normal;
  color: #fff;
  text-shadow: 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C, 0 0 1px #F2E28C;
  margin-right: 10px;
}

video {
  display: none;
}

iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

#languages {
  background-color: #2D2B55;
  z-index: -5;
  text-align: center;
}

#languages ul {
  padding: 10px 30px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

#languages li {
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: inset 0 0 20px #F2E28C;
}

#languages h4 {
  font-size: 40px;
}

#languages .icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  height: 80px;
}

#contact {
  background-color: #28284E;
  z-index: -6;
  height: 360px;
  overflow: hidden;
}

#contact img {
  position: absolute;
  left: 0;
  top: -75px;
  height: 420px;
  object-fit: none;
  object-position: top;
  transition: opacity 1s;
  z-index: -1;
}

#contact form {
  margin-left: auto;
  max-width: max-content;
  margin-right: 30px;
}

#contact input {
  background: #000;
  padding: 10px 20px;
  border: none;
  font-family: "Source Sans 3", sans-serif;
  font-size: 20px;
}

#contact #submit {
  background: #FAB142;
  color: #000;
  padding: 10px 20px;
}

footer {
  background-color: #14142F;
  z-index: -7;
  color: #FAB142;
}

#footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 30px 40px;
  flex-wrap: wrap;
}

#footer a {
  color: #F2E28C;
}

#footer img {
  height: 200px;
}

@media (max-width: 1080px) {
  #hero img {
    opacity: 0.2;
  }

  #how-it-works ol {
    column-count: 2;
    column-gap: 20px;
  }

  #how-it-works li:nth-child(odd) {
    break-after: avoid;
  }

  #how-it-works .container>div {
    column-gap: 20px;
    columns: 2;
  }

  #how-it-works .container>div h4 {
    break-before: unset !important;
    break-after: avoid;
  }

  #languages ul {
    flex-direction: column;
  }

  #languages h4 {
    margin: 5px;
  }
}

@media (max-width: 900px) {
  #header {
    height: unset;
    position: static;
  }

  #header-img {
    height: 180px;
  }
  
  menu {
    flex-direction: column;
  }

  #contact img {
    opacity: 0.2;
  }
}

@media (max-width: 700px) {
  #how-it-works ol, #how-it-works .container>div {
    column-count: unset !important;
  }
}
