:root {
  --green: rgb(156, 238, 153);
  --dark: rgb(15, 15, 17);
  --light: rgb(253, 247, 240);
}

@font-face {
  font-family: "Literata";
  src: url("./assets/Literata-Variable.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

html,
body {
  font-family: "Manrope", sans-serif;
}

body {
  color: var(--light);
  background-color: var(--dark);
}

::-moz-selection {
  background-color: var(--green);
  color: var(--dark);
}

::selection {
  background-color: rgb(156, 238, 153);
  color: rgb(15, 15, 17);
}

#root {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

#background {
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;

  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );

  mask-image: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );

  --grid-size: 64px;
  --grid-color: rgba(140, 140, 148, 0.25);
  background-size: var(--grid-size) var(--grid-size);
  background-image: linear-gradient(
      to right,
      var(--grid-color) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  /* set offset */
  background-position: calc(var(--grid-size) / -2) calc(var(--grid-size) / -2);
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: -1;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  #cursor-glow {
    display: none;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: rgb(156, 238, 153);
}

.title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

#title {
  font-size: 2.5em;
  font-family: "Manrope", serif;
  text-align: center;
  margin: 0 0 0.5rem 0;
  padding: 0;
}

#description {
  font-size: 1.5em;
  font-weight: 400;
  text-align: center;
  margin: 0;
  padding: 0;
}

#download-box {
  text-align: center;
}

#download-box button {
  margin: 2rem 1rem 0.5rem 1rem;
  font-size: 1.2em;
  font-weight: 400;
  font-family: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid rgb(156, 238, 153);
  border-radius: 0.5rem;
  background-color: transparent;
  color: rgb(156, 238, 153);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#download-box button:hover {
  background-color: rgb(156, 238, 153);
  color: rgb(15, 15, 17);
}

#download-box button:active {
  /* darken color */
  background-color: rgb(113, 167, 113);
}

#download-box p {
  color: rgb(140, 140, 148);
  font-weight: 400;
  text-align: center;
  margin: 0;
  padding: 0;
}

a {
  color: var(--light);
}

a:hover {
  color: rgb(156, 238, 153);
}

#source-code {
  margin-top: 0.5rem;
}

.use-case {
  display: flex;
  align-items: center;
  gap: 3rem;

  margin-bottom: 4rem;
}

.use-case:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .use-case {
    flex-direction: column;
  }

  .use-case:nth-child(even) {
    flex-direction: column;
  }
}

.use-case .content {
  flex: 1;
}

.use-case .content h1 {
  font-size: 2em;
  margin: 0 0 0.5rem 0;
  padding: 0;
}

.use-case .content p {
  font-size: 1.2em;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

.use-case .video {
  flex: 1;
}

.use-case video {
  width: 100%;

  border-radius: 0.5rem;

  /* variable for glow color */
  --glow-color: rgba(228, 248, 228, 0.2);
  box-shadow: 0px 0px 56px 0px var(--glow-color);
}

.credit {
  text-align: center;
  margin: 2rem 0;
}
