html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

:root {
  --light-purple: #8c00ff;
  --dark-purple: #55009b;
  --dark-grey: #dadce0;
  --light-grey: #777; 
  --jet-black: #141414;
}

body {
  color: #8c00ff;
  background-color: black;
  background-image: url("https://i.pinimg.com/originals/e3/eb/31/e3eb311af2c90bd23b9b44d4c8353aa9.gif");
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

a {
  text-decoration: none;
  color: #333;
}

a:hover {
  text-decoration: underline;
}

a.button {
  border: 2px solid #55009b;
  color: var(--dark-purple);
  background-color: #7400d23a;
  border-radius: 4px;
  padding: 6px 24px;
  font-size: 18px;
  font-weight: 400;
}

a.button:hover {
  text-decoration: none;
  background-color: var(--dark-purple);
  color: var(--light-purple);
}

header {
  width: 100%;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  background-color: var(--light-purple);
  padding: 5px 10px;
  align-items: center;
}

.logo {
  color: #111111;
}

.box {
  height: 200px;
  width: 200px;
  background-color: var(--light-purple);
  color: #fff;
  padding: 10px;
  border: solid 3px black;
}

form {
  height: calc(100% - 10px);
}

.search-input {
  width: 500px;
  height: 100%;
  border-radius: 4px;
  border-color: var(--jet-black);
  background-color: transparent;
  color: var(--jet-black);
  font-size: 16px;
  line-height: 1.4;
  padding-left: 5px;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

.center {
  text-align: center;
}

.result-count {
  color: var(--dark-grey);
  text-align: center;
  margin-bottom: 15px;
}

.search-results {
  list-style: none;
}

.news-article {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  border: 1px solid var(--light-grey);
  padding: 15px;
  border-radius: 4px;
  justify-content: space-between;
}

.article-image {
  width: 200px;
  flex-grow: 0;
  flex-shrink: 0;
  margin-left: 20px;
}

.title {
  margin-bottom: 15px;
}

.description {
  color: var(--dark-grey);
  margin-bottom: 15px;
}

.metadata {
  display: flex;
  color: var(--dark-purple);
  font-size: 14px;
}

.published-date::before {
  content: '\0000a0\002022\0000a0';
  margin: 0 3px;
}

.pagination {
  margin-top: 20px;
}

.previous-page {
  margin-right: 20px;
}

@media screen and (max-width: 550px) {
  header {
    flex-direction: column;
    height: auto;
    padding-bottom: 10px;
  }

  .logo {
    display: inline-block;
    margin-bottom: 10px;
  }

  form, .search-input {
    width: 100%;
  }

  .github-button {
    display: none;
  }

  .title {
    font-size: 18px;
  }

  .description {
    font-size: 14px;
  }

  .article-image {
    display: none;
  }
}
