:root {
  --text-color: #ddd;
  --accent-color: coral;
}

* {
  font-family: 'Open Sans', sans-serif;
}

body {
  background: #1e1e1e;
  display: grid;
  place-items: center;
  height: 100vh;
  color: #ddd;
}

body > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 3rem;

  a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s;

    &:hover {
      color: white;

      .highlighted {
        color: #fd926a;
      }
    }
  }
}

.highlighted {
  color: var(--accent-color);
  transition: color 0.2s;
}

.minimized {
  font-size: 0.75rem;
}

.author {
  position: absolute;
  bottom: 10px;
  font-size: 1rem;

  a {
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

input {
  background: #333;
  outline: none;
  border: 2px solid transparent;
  padding: 15px;
  color: var(--text-color);
  width: 50vw;
  transition: background-color .2s, border-color .2s;

  &:hover {
    background: #3a3a3a;
  }

  &:focus {
    border: 2px solid var(--accent-color);
  }
}

input, li {
  font-size: 20px;
}

.suggestion-wrapper {
  position: relative;

  .suggestion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    visibility: hidden;
    top: 110%;
    opacity: 0;
    background: #2e2e2e;
    z-index: 99;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    border-radius: 0 0 5px 5px;
    transition: all .2s;

    &.visible {
      visibility: visible;
      top: 100%;
      opacity: 1;
    }

    .suggestion-item {
      cursor: pointer;
      padding: 5px 10px;
      transition: all .1s;

      &:hover, &.selected {
        background-color: var(--accent-color);
        color: white;
      }

      &:last-child {
        border-radius: 0 0 5px 5px;
      }
    }
  }
}