@charset "UTF-8";

*{
  margin: 0;
  padding: 0;
}

/* PAGE SECTIONS */
body{
  font-family: sans-serif;
  color: #444;
  border-top:10px solid #1098ad;
}

.container{
  width: 800px;
  margin: 0 auto;
  position: relative;
}

.main-header{
  background-color: #f7f7f7;
  padding: 20px 40px;
  margin-bottom: 60px;
  /* height: 80px; */
}

.post{
  margin-bottom: 60px;
}

.post-header{
  margin-bottom: 40px;
}

nav {
  font-size: 18px;
  text-align: center;
}

nav a:link{
  display: inline-block;
  margin-right: 30px;
  margin-top: 10px;
}

nav a:link:last-child{
  margin-right: 0;
}

h1,
h2,
h3 {
  color: #1098ad;
}

h1 {
  font-size: 26px;
  text-transform: uppercase;
  font-style: italic;
}

h1::first-letter{
  font-style: normal;
  margin-right: 5px;
}

h2 {
  font-size: 40px;
  margin-bottom: 30px;
  position:relative;
}

h2::after{
  content: "TOP";
  background-color:#ffe70e;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  display: inline-block;
  padding:5px 10px;
  position:absolute;
  top:-10px;
  right:-25px;
}

h2::before{
  content: "";
  display: inline-block;
  border-style: solid;
  border-width: 10px 0 10px 15px;
  border-color:  transparent transparent transparent #007bff;
  margin-right: 5px;
}

h3 {
  font-size: 30px;
  margin-bottom: 20px;
  margin-top: 40px;
}

h4 {
  font-size: 20px;
  font-family: sans-serif;
  text-transform: uppercase;
  text-align: center;
}

p {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 15px;
}

h3 + p::first-line{
  color: red;
}

ul, ol{
  margin-left: 50px;
  margin-bottom: 20px;
}

li {
  font-size: 20px;
  margin-bottom: 10px;
}

li:last-child{
  margin-bottom: 0;
}

#author {
  font-style: italic;
  font-size: 18px;
}

#copyright {
  font-size: 16px;
}

.related-author {
  font-size: 18px;
  font-weight: bold;
}

.related {
  list-style: none;
}

aside{
  background-color: #f7f7f7;
  border-top: 5px solid #1098ad;
  border-bottom: 5px solid #1098ad;
  padding: 50px 0;
  width: 500px;
  position:relative;
}

/* Misconception: this won't work! */
article p:first-child{
  color: red;
}

a:link {
  color: #1098ad;
  text-decoration: none;
}

a:visited {
  color: #1098ad;
}

a:hover{
  color: orangered;
  font-weight: bold;
  text-decoration: underline;
}

a:active{
  background-color: black;
  font-style: italic;
}

.post-img{
  width: 100%;
  height: auto;
}

.like-button{
  font-size: 22px;
  padding: 20px;
  cursor:pointer;
  position: absolute;
  bottom:50px;
  right: 50px;
}
