* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Yrsa", serif;
  line-height: 1.6;
  font-size: 18px;
}

#app {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 100dvh;
  main {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    .inside {
      max-width: 76ch;
      padding: 2em;
    }
    background: #999;
  }
}

header {
  display: flex;
  gap: 10px;
  padding: 10px;
  flex-direction: column;
  /* justify-content: space-between; */
  background-color: #202020;
  button {
    display: grid;
    gap: 0.5em;
    .icon {
      font-size: 3em;
    }
    .text {
      font-size: 0.875rem;
      text-transform: lowercase;
    }
    filter: grayscale(80%);
    cursor: pointer;
    &.active,
    &.active:disabled {
      appearance: none;
      background-color: #edfc6a;
      opacity: 1;
      filter: saturate(1.25);
      color: #000000;
      font-weight: 700;
    }
  }
}

main {
  .inside {
    box-shadow: 0.5rem 0.5rem 0.5rem rgba(0, 0, 0, 0.35);
    .button-holder {
      text-align: center;
      padding: 1em;
    }
    button {
      display: inline-grid;
      padding: 0.5em 1.25em;
      font-family: "Yrsa", serif;
      font-size: 1.25em;
      cursor: pointer;
    }
  }
}

:root {
  --background-color: #ffffff;
  --text-color: #000000;
  --primary-color: #1e7e34;
  --secondary-color: #4cae4c;
}
[data-scheme="warm"] {
  --primary-color: #b3542e;
  --secondary-color: #a12e2b;
  button {
    --text-color: #eee;
  }
}
[data-scheme="cool"] {
  --primary-color: #17a2b8;
  --secondary-color: #5bc0de;
}
[data-scheme="grayscale"] {
  --primary-color: #808080;
  --secondary-color: #a9a9a9;
}
[data-theme="dark"] {
  --background-color: #343a40;
  --text-color: #f8f9fa;
}
[data-theme="dark"][data-scheme="warm"] {
  --primary-color: #ff7f50;
  --secondary-color: #ff6347;
  button {
    --text-color: #111;
  }
}
[data-theme="dark"][data-scheme="cool"] {
  --primary-color: #1ba5b8;
  --secondary-color: #5fc8d4;
}
[data-theme="dark"][data-scheme="grayscale"] {
  --primary-color: #b0b0b0;
  --secondary-color: #bcbcbc;
  button {
    --text-color: #222;
  }
}
main {
  body {
    background-color: var(--background-color);
    color: var(--text-color);
  }
  button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 0.2em solid var(--secondary-color);
    transition: all 0.3s linear;
    &:hover,
    &:focus {
      background-color: var(--secondary-color);
      color: var(--background-color);
      border: 0.2em solid var(--primary-color);
    }
  }

  a[href] {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
  }

  a[href]:hover,
  a[href]:focus {
    color: var(--secondary-color);
    text-decoration: underline;
  }
  .inside {
    background-color: var(--background-color);
    color: var(--text-color);
  }
}
