@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

:root {
  font-family: "IBM Plex Sans", sans-serif;

  --col-bg: #222120;
  --col-text: #ccc;
}

body {
  background-color: var(--col-bg);
  margin: 0;
  display: flex;
  align-items: center;
  color: var(--col-text);

  height: 100vh;
  overflow: hidden;
  padding: 16px;
}
main {
  margin: 0 auto;
  width: 60%;
}
::selection {
  background-color: #777;
}

input {
  border: none;
  background-color: #333;
  color: white;
}

label[for="feature-search"] {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: .5em;
}
input#feature-search {
  font-size: 1.5rem;
  display: block;
  padding: 16px;
  border-radius: 4px;
  width: 100%;
  font-family: inherit;
  &::-webkit-search-cancel-button {
    display: none; /* TODO style this thing white or something if possible (not sure it is) */
  }

  box-shadow: 0 4px 8px #00000030, inset 0 0 0 2px #3a3a3a;
  /* box-shadow: 0 4px 8px #00000020; */
  outline: 2px solid #ffffff00;
  transition: all 0.2s;

  &:hover:not(:focus) {
    background-color: #444;
    box-shadow: 0 4px 8px #00000020;
  }

  &:focus-visible {
    outline-color: #ffffffff;
  }
}

@media (max-width: 700px) {
  main {
    width: 100%;
  }
}

@media (prefers-color-scheme: light) {
  body {
    background-color: white;
    color: #444;
  }

  input {
    color: inherit;
    background-color: #ccc;
  }
}