@import url("https://fonts.googleapis.com/css2?family=Poppins");
@import url("https://fonts.googleapis.com/css2?family=Recursive");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: var(--accent);
}

:root {
  --accent: #ff7575;
  --primary: #0f1217;
  --button: #4699e0;
  --background: #232830;
  --link: #909090;
}

ul {
  list-style: none;
}

select {
  background: none;
  border: 0;
  padding: auto;
  outline: 0;
}

body {
  background-color: var(--background);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}

body > * + * {
  margin-top: 1rem;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--link);
  opacity: 0.1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.container {
  max-width: 70rem;
  padding: 0 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.text-white {
  color: #ffffff;
}

.nav-link {
  display: flex;
  margin: 0 auto;
  gap: 2rem;
}

.nav-link a {
  transition: color 0.5s;
}

section {
  max-width: 70rem;
  padding: 0 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

/* Hero */

section#hero > * + * {
  margin-top: 1rem;
}

section#hero {
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section#hero img {
  width: 10rem;
  margin-left: 4rem;
}

section#hero h1 {
  font-size: 3rem;
  font-family: "Recursive", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  text-align: center;
}

section#hero p {
  font-size: 1.25rem;
  font-weight: 500;
  color: white;
  text-align: center;
}

/* Category */

section#category {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3rem;
}

section#category > .icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.category-list {
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
  overflow-x: auto;
}

.category-list a {
  color: var(--link);
  font-size: 1.25rem;
}

.category-list a:hover {
  color: var(--accent);
}

section#category .blur {
  position: absolute;
  top: 0;
  width: 3rem;
  height: 2rem;
  filter: blur(10px);
  right: 0;
  background-color: var(--background);
}

/* Articles */

section#articles .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem !important;
}

section#articles .card {
  max-width: 21rem;
  height: 25rem;
  background-color: white;
  padding: 1rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
}

section#articles .card-content > * + * {
  margin-top: 0.5rem;
}

section#articles .card-content {
  max-height: 21rem;
  overflow: hidden;
  overflow-y: auto;
}

section#articles .card-image {
  width: 100%;
}

section#articles .card-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto !important;
}

section#articles .pagination {
  align-items: center;
  gap: 2rem;
  justify-content: center;
  margin-top: 4rem;
  width: 100%;
}

section#articles .pagination a {
  color: var(--link);
  font-size: 1.25rem;
  font-style: italic;
  font-family: "Recursive", Arial, Helvetica, sans-serif;
}

section#articles .pagination a:hover {
  color: var(--accent);
  position: relative;
}

section#articles .pagination a:not(:first-child):not(:last-child)::before {
  content: "━";
  position: absolute;
  top: -75%;
  left: -20%;
}

.pagination-select > * {
  font-style: italic;
}

.pagination-options {
  background-color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.pagination-desktop {
  display: none;
}

.pagination-mobile {
  display: flex;
}

footer {
  margin-top: 3rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

footer h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

footer .social-button {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--button);
  border-radius: 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

footer a:hover {
  color: white;
}

footer > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (min-width: 29em) {
  .pagination-desktop {
    display: flex;
  }

  .pagination-mobile {
    display: none;
  }
}
