@import url("https://fonts.googleapis.com/css2?family=Lora&display=swap");

header,
main,
footer {
  margin: auto;
  padding: 30px;
}
header {
  background-color: #6495ed;
}
h1 {
  text-align: right;
  color: #faebd7;
  text-decoration: none;
  font-size: 41px;
}
h1,
h2 {
  font-family: "Lora", serif;
}
a {
  color: #faebd7;
  list-style-type: none;
  text-decoration: none;
}
nav ul li {
  list-style-type: none;
  display: block;
  text-align: right;
  line-height: 2em;
  color: #faebd7;
}
nav a:visited {
  color: #faebd7;
}
nav ul li a:active {
  color: #deb887;
  text-decoration: none;
}

/*always place .active before "hover" so it can work properly*/

nav a:hover {
  color: white;
  transition: all 0.3s ease;
  text-decoration: underline;
}

main {
  background-color: #faebd7;
}
body {
  font-family: "Helvetica", Arial, sans-serif;
}
div.post-date {
  color: #808080;
  font-size: 18px;
}
section.post-content a {
  color: black;
}
section.post-content a:hover {
  text-decoration: underline;
  color: #6495ed;
}
section.post-content a:active {
  color: #deb887;
  text-decoration: none;
}
p a {
  /*this is not working*/
  color: blue;
}
article {
  background-color: #ffffff;
  padding: 40px;
  text-align: left;
  max-width: 500px;
  box-shadow: 5px 5px #d3d3d3;
  margin: 20px;
}
figure {
  margin: auto;
  max-width: 100%;
  text-align: center;
}
img {
  width: 250px;
  height: 337px;
}

@media screen and (min-width: 900px) {
  header {
    top: 1em;
    left: 0;
    width: 250px;
    position: absolute;
    margin-left: 10px;
  }
  body {
    border-left: 312px solid #6495ed;
  }
}