body {
  max-width: 1200px;
  margin: auto;
}
img {
  max-width: 100%;
}
.hero {
  background-color: var(--color-foreground);
  height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.hero_text h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: var(--color-text-primary);
}
.hero_text p {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: var(--color-text-secondary);
}
.hero_image img {
  height: 70vh;
}
@media screen and (max-width: 650px) {
  .hero_image img {
    display: none;
  }
  .hero {
    justify-content: center;
  }
}

.statistics {
  display: flex;
  justify-content: space-evenly;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
@media screen and (max-width: 650px) {
  .statistics {
    flex-direction: column;
    gap: 2rem;
  }
}
.statistics .box {
  background-color: var(--color-foreground);
  width: 100%;
  height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.statistics .box h2 {
  color: var(--color-text-primary);
}
.statistics .box p {
  font-size: 6rem;
  font-weight: bold;
  color: var(--color-text-secondary);
}
.elo {
  margin-right: 1rem;
}
.games {
  margin-left: 1rem;
}

.featured_games_wrapper {
  background-color: var(--color-foreground);
  padding-top: 2rem;
  padding-bottom: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}
.featured_games_wrapper h2 {
  text-align: center;
  color: var(--color-text-primary);
  padding-bottom: 3rem;
  font-size: 2rem;
}
.featured_games {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: space-evenly;
}
.featured {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
  align-items: center;
}
.featured a {
  display: block;
  max-height: 350px;
  max-width: 350px;
}
.featured a img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease;
  box-shadow: 0px 0px 20px black;
}
.featured a img:hover {
  transform: scale(1.03);
}
.text_under {
  width: 300px;
  text-align: center;
}
.featured h3{
  color: var(--color-text-secondary);
}
.featured h4 {
  color: #333;
}

.latest_posts_wrapper {
  background-color: var(--color-foreground);
  padding-top: 2rem;
  padding-bottom: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}
.latest_posts_wrapper h2 {
  text-align: center;
  color: var(--color-text-primary);
  padding-bottom: 3rem;
  font-size: 2rem;
}
.latest_posts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.post {
  display: flex;
  gap: 1rem;
  padding-right: 2rem;
  align-items: center;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 500px;
  max-width: 600px;
  box-shadow: 0px 0px 10px black;
}
.post .win,
.post .loss,
.post .draw {
  width: 4rem;
  height: 100%;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}
.post .win {
  background-image: url("/assets/svg/win.svg");
  background-color: green;
}
.post .draw {
  background-image: url("/assets/svg/draw.svg");
  background-color: orange;
}
.post .loss {
  background-image: url("/assets/svg/loss.svg");
  background-color: red;
}
.post:hover{
  background-color: var(--color-background);
}
.post:hover > h4 {
  color: var(--color-text-secondary);
}
.post:hover > h3 {
  color: var(--color-text-secondary);
}

.post h3,
.post h4 {
  color: #333;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
@media screen and (max-width: 650px) {
  .post h4 {
    display: none;
  }
}

footer {
  padding-top: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  background-color: #b58863;
}
footer .footer_wrapper {
  display: flex;
  justify-content: space-evenly;
  height: 20rem;
}
footer p,
a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

footer nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
footer .footer_image {
  display: flex;
  justify-content: end;
}
footer .footer_image img {
  height: 100%;
}
footer .copyright {
  text-align: center;
  color: var(--color-text-primary);
  font-size: 0.8rem;
  font-weight: 400;
}
@media screen and (max-width: 550px) {
  footer .footer_image img {
    display: none;
  }
  footer .footer_wrapper {
    justify-content: start;
  }
}
