@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@1,300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Condensed:wght@300&display=swap');

body {
  box-sizing: border-box;
  margin: 0;
}

main {
  margin-bottom: 50px;
}

.main-picture {
  height: 100vh;
  width: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.445), rgba(0, 0, 0, 0.445)), url('./images/thermals-0.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.custom-main-description,
.main-section,
.display-image {
  display: flex;
}

.custom-main-description {
  height: 100%;
  justify-content: center;
  align-items: center;
}

h1 {
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
  font-size: 40px;
  color: #fff;
}

.main-section {
  margin: 40px 30px;
}

.display-image {
  width: 100%;
  justify-content: space-evenly;
}

.description {
  width: 40vw;
}

.custom-profile-picture {
  width: 45vw;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,.21);
}

.description h4 {
  font-family: 'Fjalla One', sans-serif;
  font-size: 30px;
}

.description p {
  font-size: 20px;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  word-spacing: 0.5px;
  letter-spacing: 0.5px;
  text-align: justify;
}

h4 {
  text-align: center;
}

.posts h4 {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 30px;
  text-align: center;
}

.latest-posts {
  display: flex;
  justify-content: space-around;
}

.post {
  width: 25vw;
  border: 1px solid lightgray;
  border-radius: 10px;
}

.post-header {
  display: flex;
  margin-bottom: 5px;
  align-items: center;
}

.profile-picture img {
  margin-right: 5px;
  height: 30px;
  border-radius: 15px;
}

.post-image img {
  width: 25vw;
}

a {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-weight: 900;
  text-decoration: none;
  color: #000000;
}

.post-footer {
  margin: 15px 0;
  padding-left: 10px;
}

.post-footer p {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  margin: 5px 0;
}

.custom-heart {
  margin-right: 5px;
}

.profile-picture img,
.user-name a,
.post-footer .reaction,
.post-footer a,
.post-footer p {
  margin: 5px 5px;
}

.floating-button {
  display: flex;
  justify-content: flex-end;
}

.custom-button {
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 15px;
  right: 15px;
  border-radius: 30px;
  color: #fff;
  border: 1px solid #006400;
  background-color: #006400;
  cursor: pointer;
}

.custom-button i {
  font-size: 20px;
}

@media (min-width: 320px) and (max-width: 480px) {
  main {
    margin-bottom: 30px;
  }

  h1 {
    font-size: 20px;
    width: 70vw;
  }

  .display-image {
    flex-direction: column;
    align-items: center;
  }

  .custom-profile-picture {
    width: 70vw;
  }

  .description {
    width: 80vw;
  }

  .latest-posts {
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
  }

  .post {
    width: 54vw;
  }

  .profile-picture img {
    height: 20px;
  }

  .post-image img {
    width: 54vw;
  }
  .user-name,
  .post-footer a,
  .post-footer p {
    font-size: 12px;
  }

  .reaction {
    font-size: 12px;
  }
}

@media (min-width: 768px) and (max-width: 860px) {
  h1 {
    font-size: 30px;
    width: 80vw;
  }

  .display-image {
    align-items: center;
  }
}
