*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 62.5%;
}

:root {
  --primary-color: #c31c4a;
  --text-color: #3d3d3d;
  --bg-color: #fffdfa;
  --primary-font: "PlayFair Display", "sans-serif";
  --secondary-font: "Georgia", "sans-serif";
}

body {
  color: var(--text-color);
  font-family: var(--primary-font);
  background-color: var(--bg-color);
}

#main {
  margin-top: 2rem;
}

.container {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  background-color: var(--bg-color);
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 2rem;
  padding-top: 10rem;
  transform: translateX(110%);
  transition: transform 0.5s ease-in;
}

.nav-active {
  transform: translateX(0%);
}

li {
  list-style-type: none;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 2rem;
}

.link {
  display: block;
  font-size: 1.8rem;
  padding: 0.5rem 0.75rem 0 0.75rem;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-family: var(--primary-font);
  font-weight: 900;
  border: 0;
  background-color: var(--bg-color);
  cursor: pointer;
}

.link:hover {
  color: #fff;
  background-color: var(--primary-color);
}

.soon {
  position: relative;
  transition: 0.2s ease;
}

.soon:hover {
  color: var(--text-color);
  background-color: var(--bg-color);
  text-decoration: line-through;
}

.soon::after {
  content: "coming soon";
  position: absolute;
  font-size: 1.5rem;
  top: 100%;
  left: 0;
  text-align: center;
  width: 100%;
  height: 100%;
  color: var(--text-color);
  font-family: var(--primary-font);
  opacity: 0;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.soon:hover::after {
  opacity: 1;
  transform: translateX(0%);
}

.burger {
  right: 0;
  cursor: pointer;
}

.burger div {
  width: 3.5rem;
  height: 0.2rem;
  background-color: var(--text-color);
  margin: 0.5rem;
  transition: all 0.2s ease;
}

.nav-links > .burger {
  position: absolute;
  top: 2%;
}

.nav-links > .burger .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.nav-links > .burger .line3 {
  transform: rotate(45deg);
}

.footer {
  background-color: var(--primary-color);
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  line-height: 1.6;
  position: relative;
}

.footer a,
.footer p {
  font-size: 1.5rem;
  text-align: center;
  font-family: var(--secondary-font);
  font-size: 400;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: 0.2s ease all;
  border-bottom: 1px solid var(--primary-color);
}

.footer a:hover {
  border-bottom: 1px solid #fff;
}

.developer {
  font-size: 1.5rem;
  border-bottom: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.75rem 0 0.75rem;
  transition: background-color 0.2s ease;
  font-family: var(--secondary-font);
  font-size: 400;
  border: 0;
  background-color: var(--primary-color);
  cursor: pointer;
}

.developer:hover {
  background-color: #fff;

  color: var(--primary-color);
}

/* NEWS CARDS */

.news-name {
  font-size: 4rem;
  font-weight: 700;
  margin-left: 1rem;
}

.cards-container {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 90%;
  margin: 0 auto;
  overflow-x: scroll;
  margin-bottom: 2rem;
}

.card-content {
  width: 100vw;
  max-width: 25rem;
  min-height: 35rem;
  margin: 2rem 2rem 2rem 1rem;
  border-radius: 3px;
  border: 1px solid rgba(61, 61, 61, 0.1);
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.card-image img {
  width: 25rem;
  height: 16rem;
  display: block;
}

.card-text {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.category {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.category,
.date {
  font-size: 1.5rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 200;
}
.date {
  text-align: center;
}

.card-title {
  font-size: 2rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  margin-bottom: 1rem;
  flex: 1;
  text-decoration: none;
  color: var(--text-color);
  cursor: pointer;
}

.card-title:hover {
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .container {
    width: 80%;
  }

  .burger {
    display: none;
  }

  .nav-links {
    all: unset;
    display: flex;
    justify-content: space-between;
    transition: transform 0.5s ease-in;
    width: 70%;
  }

  .link {
    font-size: 1.6rem;
    margin-bottom: 0;
  }
  .developer {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 2%;
  }
}

@media (min-width: 1440px) {
  .container {
    width: 60%;
  }

  .nav-links {
    width: 65%;
  }
}
