body, html {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  line-height: 1.15;
  min-height: 100vh;
}

header {
  display: flex;
  background-color: #4CAF50;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: white;
  margin: auto;
}

.logo {
  margin: 1% 0;
}

.logo h2 {
  font-family: europa;
  font-weight: 700;
  font-size: 26px;
}

.logo a {
  text-decoration: none;
  color: white;
}

#toggle-nav {
  width: 40px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: transparent;
  border: none;
  transition: all 0.3s ease;
}

#toggle-nav::before,
#toggle-nav::after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}

#toggle-nav.open::before {
  transform: translate(0%, 200%) rotate(45deg);
}

#toggle-nav.open::after {
  transform: translate(0%, -200%) rotate(-45deg);
}

.show-nav {
  background-color: #4CAF50;
  color: white
}

nav {
  display: none;
}

nav.show {
  align-items: center;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  min-height: 40px;
}

nav a {
  text-decoration: none;
  color: white;
  font-family: europa;
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 125%;
  letter-spacing: -1px;
}

nav a:hover {
  text-decoration: none;
  color: white;
  font-family: europa;
  font-style: normal;
  font-weight: 600;
  font-size: 28px;
  line-height: 125%;
  letter-spacing: -1px;
  transition-duration: 0.2s;
}

.hero {
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: black;
}

.hero h1 {
  margin: 0;
  text-align: center;
  font-family: europa;
  font-weight: 700;
  font-size: 46px;
  line-height: 125%;
  letter-spacing: -1.5px;
  max-width: 750px;
}

.hero a {
  text-decoration: none;
  margin: 16px auto;
  border-radius: 5px;
  color: #4CAF50;
  padding: 10px 20px;
  text-align: center;
  font-family: europa;
  font-size: 20px;
  font-weight: 600;
  transition-duration: 0.4s;
  background-color: white;
  border: 2px solid #4CAF50;
  letter-spacing: 0.5px;
}

.hero a:hover {
  background-color: #4CAF50;
  color: white;
}

.hero a:active {
  background-color: white;
  color: #4CAF50;
}

.hero span {
  text-decoration: underline solid #4CAF50 2px;
}

.home-background {
  display: flex;
  background-color: #F1F1F1;
  max-width: 100%;
  justify-content: center;
}

.home {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2em;
  padding-top: 26px;
  padding-bottom: 26px;
}

.home h2, h3, h4 {
  margin: 0;
}

.home h2 {
  font-family: europa;
  font-style: normal;
  font-weight: 600;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: -1px;
  margin-bottom: 12px;
  text-align: left;
}

.show-button {
  display: none;
}

.topic-card .show-link {
  display: none;
}

.home h3 {
  font-family: europa;
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 125%;
  text-align: left;
}

.home h4 {
  font-family: europa;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 125%;
  text-align: left;
}

.article-home {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2em;
  padding-top: 26px;
  padding-bottom: 26px;
}

.page-home{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 0px;
}
.second{
  padding-top: 0px;
}

.third{
  padding-bottom: 26px;
}

.posts {
  gap: 2em;
  display: flex;
  flex-direction: column;
  max-width: 55%;
}

.post-card a {
  text-decoration: underline solid #4CAF50 2px;
  color: black;
}

.post-card a:hover {
  text-decoration: underline solid #4CAF50 4px;
  transition-duration: 0.4s;
}

.bottom-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.newsletter {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background-color: white;
  padding: 16px;
  text-align: center;
  min-height: 250px;
  justify-content: space-around;
  align-items: center;
  max-width: 40%;
}

.sidebar {
  max-width: 35%;
  max-height: 300px;
}

.newsletter h2 {
  text-align: center;
  font-size: 28px;
  margin: 0;
}

.sidebar h3 {
  text-align: center;
}

.sidebar h4 {
  text-align: center;
}

.newsletter h4 {
  font-family: europa;
  font-weight: 500;
  font-size: 18px;
  line-height: 125%;
}

.inputs {
  display: flex;
  flex-direction: column;
}

.newsletter-button {
  border-radius: 5px;
  color: #4CAF50;
  text-align: center;
  transition-duration: 0.4s;
  background-color: white;
  border: 2px solid #4CAF50;
  padding: 5px 10px;
  text-align: center;
  font-family: europa;
  font-size: 16px;
  font-weight: 700;
}

.newsletter-button:hover {
  background-color: #4CAF50;
  color: white;
}

.newsletter input {
  font-family: europa;
  color: black;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  padding: 5px 10px;
  border: 1px solid #4CAF50;
}

footer {
  text-align: center;
  background-color: #4CAF50;
  color: white;
}

footer p {
  margin: 0;
  padding-top: 16px;
  padding-bottom: 16px;
}

.topic-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 32px 0 32px 0;
  gap: 2em;
}

.topic-card {
  display: flex;
  flex-direction: column;
  max-width: 30%;
  margin-bottom: auto;
  align-items: center;
}

.topic-card a {
  font-family: europa;
  font-style: normal;
  font-weight: 600;
  font-size: 28px;
  line-height: 125%;
  letter-spacing: -1px;
  margin: 0 0 8px 0;
  text-align: center;
  text-decoration: none;
  color: black;
}

.topic-card a:hover {
  text-decoration: underline solid #4CAF50 2px;
}

.topic-card h4 {
  font-size: 18px;
  font-weight: 500;
  text-align: justify;
}

.container {
  padding: 0 7.5%;
  max-width: 1100px;
}

.story{
  margin: 16px auto 0 auto;
  padding: 0 16px;
  text-align: center;
  font-family: europa;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 125%;
}

.rest{
  text-align: left;
  font-family: europa;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 150%;
}

.rest ul li{
  text-align: left;
  font-family: europa;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 150%;
}

.pad {
  padding-left: 20px;
}

.list-top{
  margin-bottom: 0;
}


.list-bottom{
  margin-top: 0;
}

.page{
  max-width: 60%;
  gap: 0.5em;
}

.page-side{
  max-width: 30%;
  max-height: 355px;
}

.page-side a {
  pointer-events: all;
  text-decoration: none;
  border-radius: 5px;
  color: #4CAF50;
  padding: 5px 10px;
  text-align: center;
  font-family: europa;
  font-size: 18px;
  font-weight: 600;
  transition-duration: 0.4s;
  background-color: white;
  border: 2px solid #4CAF50;
  letter-spacing: 0.5px;
}

.page-side a:hover {
  background-color: #4CAF50;
  color: white;
}

.page-side a:active {
  background-color: white;
  color: #4CAF50;
}

@media only screen and (max-width: 798px) {
  .hero h1 {
    font-size: 40px;
  }

  nav.show {
    flex-direction: column;
    min-height: 150px;
    justify-content: space-around;
  }

  .hero span {
    text-decoration: none;
  }

  .home {
    justify-content: space-around;
  }

  .posts {
    max-width: 100%;
  }

  .posts .post-card {
    width: 90%;
    align-self: center;
  }

  .sidebar, .newsletter {
    min-width: 90%
  }

  .topic-card {
    min-width: 100%;
    align-items: flex-start;
  }

  .topic-row {
    justify-content: flex-start;
    gap: 100%;
  }

  .mobile-card {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }

  .topic-card a {
    text-align: left;
    text-decoration: underline solid #4CAF50 2px;
    pointer-events: none;
  }

  .topic-card h4 {
    text-align: left;
  }

  .show-button {
    display: block;
    pointer-events: all;
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5px;
    background-color: transparent;
    border: none;
    transition: all 0.3s ease;
  }

  .show-button::before {
    content: "";
    width: 100%;
    height: 2px;
    background-color: Black;
    transition: all 0.4s ease;
    transform: translate(0%, 250%) rotate(225deg);
  }

  .show-button::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.4s ease;
    transform: translate(70%, -400%) rotate(135deg);
  }

  .show-button.open::before {
    transform: translate(0%, 250%) rotate(135deg);
  }

  .show-button.open::after {
    transform: translate(70%, -400%) rotate(225deg);
  }

  .topic-card .show-link {
    display: block;
    pointer-events: all;
    text-decoration: none;
    border-radius: 5px;
    color: #4CAF50;
    padding: 5px 10px;
    text-align: center;
    font-family: europa;
    font-size: 18px;
    font-weight: 600;
    transition-duration: 0.4s;
    background-color: white;
    border: 2px solid #4CAF50;
    letter-spacing: 0.5px;
  }

  .show-link:hover {
    background-color: #4CAF50;
    color: white;
  }

  .show-link:active {
    background-color: white;
    color: #4CAF50;
  }

  .topic-card .hide {
    display: none;
  }

  .story{
    font-size: 18px;
  }
}
