@font-face {
  font-family: "Lexend";
  src: url("assets/Lexend.ttf");
}

html,
body {
  padding: 0;
  margin: 0;
  width: 100%;
}

* {
  box-sizing: border-box;
}

html {
  --background: #fff;
  --on-background: #111111;
  --on-background-alter: #525252;

  --primary: #141813;
  --on-primary: #e7eef7;

  --outline: #252924;

}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
ul {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--on-background);
  font-family: "Lexend", system-ui;
  font-weight: normal;
  font-size: 1rem;
}

/* ----- Navigation ----- */

nav {
  width: 100%;
  border-bottom: 2px solid #BED9C4;
}

#nav-container {
  margin: auto;
  display: flex;
  width: 100%;
  max-width: 70rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  gap: 0.5rem;
}

#links {
  display: flex;
  gap: 1rem;
}

#logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  img {
    width: 2.25rem;
    height: 2.25rem;
  }
}

#github-link,
#webstore-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  color: #fff;

  img {
    width: 1.375rem;
    height: 1.375rem;
  }
}

#github-link {
  background: #111111;
}

#webstore-link {
  background: #03606D;
}

/* ----- Header ----- */

header {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

#video-container {
  flex: 5;
}

video {
  width: 100%;
}

header h1 {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

header h1 span:nth-child(1) {
  font-size: 2.5rem;
  font-weight: 400;
  text-align: center;
}

header h1 span:nth-child(2) {
  font-size: 3.5rem;
  font-weight: 400;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 50rem) {
  header {
    flex-direction: column-reverse;
  }
}

@media (max-width: 60rem) {
  #video-container {
    flex: 2;
  }

  header h1 {
    flex: 1;
  }

  header h1 span:nth-child(1) {
    font-size: 2rem;
  }

  header h1 span:nth-child(2) {
    font-size: 2.75rem;
  }

}


/* ----- Main ----- */

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 60rem;
  width: 100%;
  padding: 3rem 1rem;

}

section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

#about {
  gap: 0.5rem;
}

/* ----- Feature Icons ----- */

#feature-icons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-evenly;
  align-items: center;
}

#feature-icons .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.5rem;
  border-radius: 1rem;
  width: 10rem;
}

#feature-icons .item:nth-child(1) {
  background: #CDFD7F;
}

#feature-icons .item:nth-child(2) {
  background: #7FF6FD;
}

#feature-icons .item:nth-child(3) {
  background: #EEBEFF;
}

#feature-icons .item img {
  width: 5rem;
  height: 5rem;
}

#feature-icons .item h3 {
  font-size: 1rem;
  font-weight: 500;
}

@media screen and (max-width: 30rem) {
  #feature-icons .item img {
    width: 3rem;
    height: 3rem;
  }

  #feature-icons .item h3 {
    font-size: 0.75rem;
    font-weight: 500;
  }

  #feature-icons .item {
    width: 6rem;
  }

}

/* ----- Features ----- */

#features {
  gap: 1rem;
}

#features ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#features ul li span {
  font-weight: bold;
}


/* ----- Screenshots ----- */
#screenshots {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.embla {
  position: relative;
  overflow: hidden;
}

.embla__container {
  display: flex;
}

.embla__slide {
  flex: 0 0 70%;
  min-width: 0;
  margin-right: 10px;
  margin-left: 10px;
}

.embla img {
  width: 100%;
}

.embla__prev,
.embla__next {
  position: absolute;
  top: 0;
  z-index: 100;
  height: 100%;
  border: none;
  padding: 0 2rem;
  cursor: pointer;
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.5);
}

.embla__prev {
  background: linear-gradient(to right, #3e3e3e 0%, transparent 90%);
  left: 0;
}

.embla__next {
  background: linear-gradient(to left, #3e3e3e 0%, transparent 90%);
  right: 0;
}

@media screen and (max-width: 40rem) {

  .embla__prev,
  .embla__next {
    padding: 0 1rem;
    font-size: 2rem;
  }
}