@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
}

@media screen and (max-width: 1024px) {
  html {
    font-size: calc(1rem + 1px);
  }
}

body {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  background-color: #1e222e;
  color: #efffff;
}

p {
  text-align: justify;
  font-size: 1.1rem;
}

ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

h2 {
  font-size: 2rem;
}

strong {
  font-weight: bold;
}

/* --- NAV --- */
.navbar {
  display: flex;
  height: 5rem;
  justify-content: space-between;
  padding: 0 2rem;
  background-color: #212332;
  font-size: 1.2em;
  z-index: 1;

  font-weight: 500;
}

.sticky {
  position: sticky;
  top: 0;
}

.nav {
  align-self: center;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.nav > li {
  display: flex;
  align-items: center;
  text-align: center;

  list-style: none;
  min-width: 5rem;
  height: 2rem;
}

.nav > li > a {
  width: 100%;
  text-align: center;
  color: #c8cccd;
  transition: 0.5s;
}

.nav > li > a:hover {
  color: #3bcbca;
}

.navbar-header {
  text-transform: uppercase;
  font-size: 2.5rem;
  align-self: center;

  color: #e2e7e8;
}

@media screen and (max-width: 720px) {
  .navbar {
    display: block;
    height: auto;
    padding: 0;
    font-size: 2rem;
  }

  .sticky {
    position: relative;
  }

  .nav {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: repeat(4, 1fr);
    gap: 0;
  }

  .nav > li {
    width: 100%;
    height: 4.5rem;
  }

  .nav > li > a {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav > li > a:hover {
    background-color: rgb(56, 60, 85, 0.15);
  }

  .navbar-header {
    font-size: 3rem;
    text-align: center;
  }
}

@media screen and (max-width: 400px) {
  .nav > li > a > span {
    display: none;
  }

  .nav > li > a::before {
    content: "";
    background-size: cover;
    background-repeat: no-repeat;
    width: 2.7rem;
    height: 2.7rem;
  }

  .nav > li:nth-child(1) > a::before {
    background-image: url("../images/home.png");
  }

  .nav > li:nth-child(2) > a::before {
    background-image: url("../images/gym.png");
  }

  .nav > li:nth-child(3) > a::before {
    background-image: url("../images/diet.png");
  }

  .nav > li:nth-child(4) > a::before {
    background-image: url("../images/email.png");
  }
}

/* --- HEADER --- */
header {
  width: 100%;
  font-weight: 500;
}

/* --- MAIN --- */
main {
  width: 100%;
  height: 100%;
  background-color: #161922;
  padding-top: 10%;
}

/* --- HEADER --- */
.header-title {
  width: 100%;
  height: 12rem;
  display: grid;
  grid-template-rows: 60% 20%;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
}

.header-title h2 {
  font-size: 3rem;
  color: #ececec;
  text-shadow: 2px 4px 10px black;
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
}

.header-title p {
  font-size: 1rem;
  color: #b3b3b3;
  text-shadow: 1px 2px 5px black;
  font-family: "Roboto", sans-serif;
}

.header-categories {
  min-height: 5rem;
  display: flex;
  justify-content: space-around;
  text-align: center;
  align-items: center;
}

.header-categories > li,
.header-categories > li > a {
  width: 100%;
  height: 100%;
}

.header-categories > li {
  height: 5rem;
}

.header-categories > li > a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #bbbfc0;
}

.header-categories > li > a:hover {
  color: #bda900;
  background-color: rgb(0, 38, 88, 0.15);
}

@media screen and (max-width: 1024px) {
  .header-categories {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .header-categories > li {
    width: 20%;
    height: 5rem;
  }
}

@media screen and (max-width: 720px) {
  .header-title {
    width: 100%;
    height: 8rem;

    display: grid;
    grid-template-rows: none;
    align-items: center;
  }

  .header-title p {
    display: none;
  }

  .header-categories > li {
    width: 25%;
  }
}

@media screen and (max-width: 400px) {
  .header-categories > li {
    width: 33.33%;
  }
}

/* --- ARTICLES LIST --- */
.articles-list {
  width: 40%;
  margin: 0 auto;

  display: grid;
}

.articles-list > h2 {
  text-transform: uppercase;
}

.articles-list > h2,
.articles-list > article {
  margin-bottom: 10%;
}

.articles-list > article {
  border-top: 0.0625rem solid #3bcdd1;
  border-radius: 0.4rem;
  padding-top: 1.7rem;
}

.articles-list > article .article-content {
  margin: auto;
  position: relative;
  top: 50%;
  transform: translate(0, -50%);
}

.articles-list > article .article-content img {
  width: 100%;
  height: 20vw;
  margin-bottom: 0.5rem;
  border-radius: 1rem;
  filter: grayscale(60%);
  transition: 1s;
  transition-delay: 0.3s;
}

.articles-list > article .article-content:hover img {
  transform: rotateY(180deg);
}

.articles-list > article .article-content h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 0.15rem solid rgb(65, 66, 66);
  transition: 0.25s;
}

.articles-list > article .article-content a:hover h2 {
  color: #3bcbca;
}

.articles-list > article .article-content p {
  color: #b5c8d1;
}

.articles-list > article .article-content p:nth-child(3) {
  margin-top: 1.25rem;
}

@media screen and (max-width: 1440px) {
  .articles-list {
    width: 50%;
  }

  .articles-list > article .article-content img {
    height: 25vw;
  }
}

@media screen and (max-width: 1024px) {
  .articles-list {
    width: 85%;
  }

  .articles-list > article .article-content img {
    height: 42.5vw;
  }
}

@media screen and (max-width: 720px) {
  .articles-list {
    width: 95%;
    font-weight: 300;
    padding-top: 5rem;
  }

  .articles-list > article .article-content img {
    height: 47.5vw;
  }
}

@media screen and (max-width: 400px) {
  .articles-list {
    width: 98%;
    padding-top: 6rem;
  }

  .articles-list > article .article-content img {
    height: 49vw;
  }

  .articles-list > article .article-content p,
  .articles-list > article .article-content h2 {
    margin-right: 0.4rem;
    margin-left: 0.4rem;
  }
}

/* --- PAGINACION --- */
.pagination-container {
  margin-top: 5%;
  margin-bottom: 10%;
  font-weight: 400;
}

.pagination {
  width: 100%;
  border-top: 0.1rem solid rgb(133, 133, 133);
  border-bottom: 0.1rem solid rgb(133, 133, 133);

  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.pagination span:first-of-type {
  color: #b5c8d1;
  margin-right: 5%;
}

.pagination span a {
  padding-right: 0.5rem;
  color: #3e92b3;
}

.pagination > button {
  height: 1.1rem;
  margin-right: 0.7rem;
  transform: rotateY(180deg);
  background-color: inherit;
  border: none;
}

.pagination > span + button {
  margin-right: 0;
  margin-left: 0.7rem;
  transform: rotateY(0);
}

.pagination > button:hover {
  cursor: pointer;
}

.pagination > button > img {
  height: 1.1rem;
  padding: 0 1rem 0 1rem;
}

.pagination span a:hover {
  cursor: pointer;
}

.pagination span a:first-of-type,
.pagination .active {
  font-weight: 500;
  color: #bbba39;
}

@media screen and (max-width: 1024px) {
  .pagination-container {
    margin-top: 12.5%;
  }

  .pagination {
    justify-content: center;
    font-size: 1.1rem;
  }
}
/* --- FOOTER --- */
footer {
  background-color: #0c1122;
  height: 18rem;
  color: #c8cccd;
  font-size: 1.2rem;

  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-container {
  width: 60%;
  display: flex;
  justify-content: space-around;
}

.footer-help li:first-child {
  text-transform: uppercase;
  font-size: 2.2rem;
  text-align: center;
  padding-bottom: 10%;
}

.footer-help li a:hover {
  color: #2c8f8f;
}

@media screen and (max-width: 720px) {
  .footer-container {
    width: 80%;
  }
}

@media screen and (max-width: 400px) {
  footer {
    height: auto;
    padding: 4rem 0;
  }

  .footer-container {
    width: 90%;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    row-gap: 2rem;
  }
}
