body, div, section, aside {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: rgb(234, 234, 234);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

header {
  margin: 50px 0;
  width: 100%;
  text-align: center;
}

main {
  margin: auto;
  width: 1380px;
  display: flex;
  justify-content: space-between;
}

footer {
  background-color: #656464;
  padding: 40px;
  display: flex;
  gap: 20px;
}

section, aside {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

section {
  width: 66%;
}

aside {
  width: 31%;
}

h2, h3 {
  margin: 0;
}
p {
  font-size: 95%;
}


.dark {
  background: #000;
  color: white;
  padding: 1px 4px;
}

.light {
  background-color: #9e9e9e;
  padding: 1px 4px;
  color: black;
}

.data {
  color: gray;
}


.section_card, .section_card_img, .profile_img {
  width: 100%;
}

.card {
  background-color: white;
  box-shadow:
    3px 10px 10px #9e9e9e,
    -3px -1px 3px #9e9e9e;
}

.card_title {
  background-color: #c4c3c3;
  padding: 15px 5px;
  font-size: 130%;
}

.card_caption {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section_card_title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section_card_subtitle {
  font-size: 110%;
}

.section_card_footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section_card_button {
  width: 150px;
  height: 50px;
  font-size: 16px;
  text-transform: uppercase;
  background-color: white;
  border: 1px solid rgb(230, 230, 230);
}
.section_card_button:hover {
  background-color: rgb(230, 230, 230);
}

.post_card {
  width: 100%;
  padding: 10px 0px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgb(202, 202, 202);
}

.post_img {
  width: 50px;
  height: 50px;
}

.card_caption.tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 7px;
}

.button {
  width: 150px;
  height: 50px;
  font-size: 120%;
  border: none;
}
.button.old {
  background-color: #797979;
  color: rgb(200, 200, 200);
}
.button.old:hover {
  background-color: #4d4d4d;
}

.button.next {
  background-color: #000;
  color: white;
}
.button.next:hover {
  background-color: #e6e5e5;
  color: #000;
}

@media (width < 1380px) {
  main {
    width: 100%;
  }
}

@media (width < 994px) {
  main {
    display: block;
  }
  section, aside {
    width: 100%;
  }
}