body {
  margin: 0;
}

h1, h2, p, input, button, li, div, ul, li, a {
  font-family: 'Barlow', sans-serif;
  box-sizing: border-box;
}

a {
  color: #6f2acf;
  text-decoration: none;
}

h1, h2, p {
  text-align: center;
}

header {
  margin: 4.0rem 0;
}

h1 {
  font-size: 2.375rem;
  font-weight: 900;
}

h2 {
  font-size: 1.0rem;
  font-weight: 700;
}

h2 img {
  max-height: 1.2rem;
  vertical-align: middle;
  padding: 0 0.25rem;
}

p#description {
  display: none;
  padding: 1.0rem 1.5rem;
  font-weight: 500;
}

p#description.visible {
  display: block;
}

main {
  width: 94%;
  max-width: 700px;
  margin: auto;
}

input#query {
  width: 100%;
  border: 2px solid #000;
  padding-left: 3rem;
  height: 2.75rem;
  line-height: 2.75rem;
  border-radius: 1.375rem;
  font-size: 1.0rem;
  transition: border-color 0.5s;
  background-image: url(../images/magnifying-glass.svg);
  background-size: auto 50%;
  background-repeat: no-repeat;
  background-position: 2.1% 50%;
}

input#query:focus {
  outline: none;
  border-color: #6f2acf;
}

div#result-container {
  font-size: 0;
  display: none;
  margin-top: 2.375rem;
}

div#result-container.visible {
  display: block;
}

h2#suggested-title,
div#hashtags {
  display: inline-block;
  vertical-align: top;
  padding: 0;
  margin: 0;
}

div#hashtags {
  width: 75%;
}

h2#suggested-title {
  width: 25%;
}

ul#result-tags {
  padding: 0;
}

ul#result-tags li {
  display: inline-block;
  list-style: none;
  font-size: 1.0rem;
  font-weight: 500;
  color: #6f2acf;
  margin: 0 0.5rem;
}

button#btn-copy {
  display: block;
  background-color: #641bcc;
  color: #FFF;
  font-size: 1.0rem;
  padding: 0.45rem 0 0.65rem 0;
  border-radius: 1.625rem;
  margin: 1.625rem auto auto auto;
  width: 7.5rem;
  font-weight: 700;
  border: none;
  transition: background-color 0.5s;
  cursor: pointer;
}

button#btn-copy:hover,
button#btn-copy:active,
button#btn-copy:focus {
  outline: none;
  background-color: #440c92;
}

footer {
  width: 100%;
  margin-top: 4.0rem;
  text-align: center;
  font-size: 0.875rem;
}

footer div {
  width: 95%;
  margin: auto;
}

footer img {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 1.0rem auto;
}

@media screen and (max-width: 767px) {
  header {
    margin: 3.0rem 0;
  }

  h1 {
    font-size: 2.0rem;
  }

  h2 {
    font-size: 1.0rem;
  }

  p {
    padding: 1.0rem 0.5rem;
  }

  input#query {
    background-position: 4% 50%;
  }

  h2#suggested-title,
  div#hashtags {
    display: block;
    text-align: center;
    width: 100%;
  }

  div#hashtags {
    margin-top: 1.0rem;
  }

  footer img {
    margin-bottom: 0.6rem;
  }

}
