:root {
  --page-background: #ffffff;
  --card-background: #f9f9f9;
  --card-text: #555555;
  --icon-fill: #2a2a2a;
  --theme-btn-bg: #2a2a2a;
  --primary-heading: #000000;
  --body-text: #515151;
}

.light {
  --page-background: #ffffff;
  --card-background: #f9f9f9;
  --card-text: #555555;
  --icon-fill: #2a2a2a;
  --theme-btn-bg: #2a2a2a;
  --primary-heading: #000000;
  --body-text: #515151;
}

.dark {
  --page-background: #2a2a2a;
  --card-background: #333333;
  --card-text: #cccccc;
  --icon-fill: #ffffff;
  --theme-btn-bg: #ffffff;
  --primary-heading: #f0f0f0;
  --body-text: #bbbbbb;
}

@media (prefers-color-scheme: light) {
  .system {
    --page-background: #ffffff;
    --card-background: #f9f9f9;
    --card-text: #555555;
    --icon-fill: #2a2a2a;
    --theme-btn-bg: #2a2a2a;
    --primary-heading: #000000;
    --body-text: #515151;
  }
}

@media (prefers-color-scheme: dark) {
  .system {
    --page-background: #2a2a2a;
    --card-background: #333333;
    --card-text: #cccccc;
    --icon-fill: #ffffff;
    --theme-btn-bg: #ffffff;
    --primary-heading: #f0f0f0;
    --body-text: #bbbbbb;
  }
}

.theme-btn {
  width: 50px;
  height: 50px;
  cursor: pointer;
  background-color: var(--theme-btn-bg);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background-color 0.3s;
  position: absolute;
  top: 25px;
  right: 25px;
}

.theme-btn svg {
  fill: var(--page-background);
  transition: fill 0.3s;
}

body {
  margin-top: 2em;
  background-color: var(--page-background);
  color: var(--body-text);
  font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 25px;
}

pre {
  font-family: "Fira Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
}

.header-padding {
  padding-top: 1.5rem;
}

.text-code {
  font-family: "Fira Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 300;
  font-size: 1.4rem;
}

.text-bold {
  font-weight: 500;
}

.text-header {
  margin-top: 3rem;
  font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-family: "Alfa Slab One", serif;
  color: var(--primary-heading);
  font-size: 4rem;
  margin-bottom: 0;
  margin-top: 1rem;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 1px;
}

h1 sup {
  font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  color: #fff;
  background-color: #0b7261;
  border-radius: 10px;
  padding: 7px;
  margin-left: 4px;
  margin-bottom: 50px;
}

h2 {
  color: var(--primary-heading);
  font-size: 2rem;
  font-weight: 300;
}

h5 {
  color: var(--primary-heading);
  font-size: 1.5rem;
  font-weight: 300;
}

.info p {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 1rem;
}

a {
  color: #0b7261;
  text-decoration: underline;
}

a:hover {
  color: #0d8b75;
  text-decoration: underline;
}

main {
  width: 80%;
  max-width: 1200px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}

.instructions {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgb(204, 204, 204);
  box-shadow: 0px 1px 4px 0px rgb(204, 204, 204);
  padding-bottom: 2rem;
}

.instructions > * {
  margin-left: auto;
  margin-right: auto;
}

hr {
  border-color: #0b7261;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

#card > p {
  width: 80%;
}

.video {
  margin-left: 3rem;
  margin-right: 3rem;
}

.platform-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.platform-header > span {
  padding-left: 1rem;
}

.command::before {
  color: black;
  content: " $ ";
  margin-left: 15px;
}

.command {
  color: black;
  padding: 1rem 1rem 1rem 0;
  text-align: center;
  border-radius: 10px 0px 0px 10px;
  box-shadow: inset 0px 0px 20px 0px #f1eeee;
  background-color: #f1eeee;
  overflow: hidden;
  font-size: 0.6em;
  white-space: nowrap;
  height: 26px;
  line-height: 26px;
  overflow-x: auto;
}

.github-link {
  outline: none;
  border: none;
  display: inline-block;
  background-color: #f1eeee;
  border-radius: 10px;
  font-size: 0.6em;
  padding: 1rem 1rem 1rem 1rem;
  overflow: hidden;
  overflow-x: auto;
  width: 60%;
  margin-left: 50px;
  margin-right: 50px;
  text-align: center;
}

#card div.copy-container {
  display: flex;
  align-items: center;
  width: 90%;
  justify-content: center;
}

#card button.copy-button {
  height: 58px;
  margin: 0;
  padding: 0 5px 0 5px;
  border-radius: 0 10px 10px 0;
  border-left-width: 0px;
  border-left-style: solid;
  border: none;
  background-color: #d0d2d2;

  &:hover {
    background-color: #c0c2c2;
  }
}

#card div.copy-icon {
  position: relative;
  width: fit-content;
  height: fit-content;
  top: 27px;
  left: 50%;
  transform: translate(-50%, -50%);
}

#card div.copy-button-text {
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
  font-size: 10px;
  color: #0b7261;
  width: 41px;
  height: 15px;
  position: relative;
  top: 5px;
}

#about {
  font-size: 16px;
  line-height: 2em;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.feature-item {
  background-color: var(--card-background);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-item svg path {
  fill: var(--icon-fill);
}

.feature-item h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.feature-item p {
  font-size: 1rem;
  color: var(--card-text);
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  header h2 {
    text-align: center;
  }

  header h5 {
    text-align: justify;
  }
}

@media (max-width: 576px) {
  .banner {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .banner h1 {
    font-size: 3rem;
  }

  header h2 {
    text-align: center;
  }

  header h5 {
    text-align: justify;
  }

  .github-link {
    width: 80%;
    margin-left: 10px;
    margin-right: 10px;
  }

  .platform-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .platform-header > span {
    padding-left: 0px;
  }

  .about-contrib {
    display: block;
  }

  h2.text-header {
    font-size: 1.5rem;
  }

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

  p#about {
    font-size: 0.9rem;
  }
}
