@import "layout.css";
@import "nav.css";
@import "footer.css";

/* additional text styling */

p a:hover {
  text-decoration: underline;
}

/* grid cont */

#full {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 100px 300px auto auto 30px;
  grid-template-areas:
  "nav"
  "hd"
  "post"
  "post-suggestions"
  "ft";
}

@media (min-width: 600px) {
  #full {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 60px auto 30px;
    grid-template-areas:
    "nav nav"
    "hd post"
    "ft ft";
  }
}

/* content */

header {
  grid-area: hd;
  width: 100%;
  height: auto;
  background-image: url("../img/p1.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
}

#poster {
  padding: 0 30px 20px 30px;
}

@media (min-width: 650px) {
  #poster {
    overflow: scroll;
    padding: 0 30px 0px 30px;
  }
}

footer {
  grid-area: ft;
  height: 30px;
  color: #222;
  padding-bottom: 10px;
  text-align: center;
}

/* author info */

.cv {
  text-align: center;
}

.postinf {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.05em;
  margin: 0.2em 0;
  font-size: 1.2em;
  text-align: center;
}

.authorinf {
  width: 100%;
  height: auto;
  background-color: #c4cfbe;
  padding: 10px;
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: space-between;
}

.authorinf p {
  margin: 0;
}

.authortxt {
  width: 100%;
}

.circle {
  display: flex;
  justify-content: center;
  width: 80%;
  border-radius: 50%;
  padding: 10px 20px;
}

.authorimg {
  border-radius: 50%;
  width: 100%;
  height: auto;
  min-width: 100px;
  max-width: 200px;
  object-fit: cover;
}

@media (min-width: 1000px) {
  .authorinf {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
  }

  .circle {
    width: 45%;
  }

  .authortxt {
    width: 55%;
  }
}

/* blog image */

.article img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* social links */

.social {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
}

/* post suggestion */

hr {
  border-top: 1px solid #e54b4b;
  margin: 20px 0;
}

.postsug {
  grid-area: postsug;
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  justify-content: space-around;
  align-items: flex-end;
  text-align: center;
}

.postsug h3 {
  width: 100%;
}

.cardsug {
  width: 30%;
  min-width: 120px;
  height: auto;
}

.cardsug h5 {
  font-size: 1.2em;
}

.cardimg {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
