* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.container {
    align-items: start;
    column-gap: 50px;
    display: grid;
    grid-template-columns: 1fr 30%;
    margin: 0 auto;
    position: relative;
    row-gap: 60px;
    width: 80%;
}

.main-header {
    align-items: center;
    background-color: #f7f7f7;
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    padding: 20px 40px;
}

nav {
    /* float: right; */
    font-size: 18px;
    padding: 5px
}

nav a:link {
    /*
    // uses just enough space for fiting the content inside the box (No margin-top or bottom, neither padding-top or bottom or height)
    display: inline;

    // Uses all width of the line
    display: block;  
    */

    /* // uses just enough space for fiting the content inside the box (With all margins, paddings and height) */
    display: inline-block;
    margin-right: 30px;
}

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

/* .row{
    align-items: flex-start;
    display: flex;
    gap: 50px;
    justify-content: space-between;
} */

article{
    /*
    DEFAULTS:
    flex-grow: 0; // To allow an element to grow (0 means no, 1+ means yes)
    flex-shrink: 0; // To allow an element to shrink (0 means no, 1+ means yes)
    flex-basis: auto; // To define an item’s width, instead of the width property
    */
    /* shorthand for flex-grow, -shrink, -basis. */
    /* flex: 0 0 65%; */
}

.author-box{
    align-items: center;
    display: flex;
}

/* .clearfix::after {
    clear: both;
    content: "";
    display: block;
} */

/* article {
    float: left;
    margin-bottom: 60px;
    width: 65%;
} */

/* .author {
     float: left;
    margin-left: 20px;
    margin-top: 10px; 
} */

img {
    height: 75px;
    width: 75px;
}

.author-img {
    /* float: left; */
    margin-right: 15px;
    margin-bottom: 20px; 
}

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

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

/* Pseudo-classes  */
a:link {
    color: #1098ad;
    text-decoration: none;
}

/* a:visited {
    color: #1098ad;
}

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

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

/* LVHA  */

h1 {
    /* float: left; */
    font-size: 26px;
    font-style: italic;
    text-transform: uppercase;
}

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

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

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

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

h4 {
    font-size: 20px;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
}

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

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

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

/* Pseudo-classes  */
li:first-child {
    font-weight: bold;
}

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

/* 
li:nth-child(2) {
    color: red;
}

li:nth-child(odd) {
    color: orange;
} */

.article-header {
    margin-bottom: 40px;
    position: relative;
}

aside {
    background-color: #f7f7f7;
    border-top: 5px solid #1098ad;
    border-bottom: 5px solid #1098ad;
    /* flex: 0 0 30%; */
    /* float: right; */
    padding: 50px 30px;
    /* width: 30%; */
}

.author {
    font-style: italic;
}

.related {
    list-style: none;
    margin-left: 0;
}

.related-post {
    align-items: center;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* .related img {
    float: left;
    margin-right: 15px;
} */

.related-author {
    font-size: 14px;
    font-style: italic;
    font-weight: normal;
}

.related-link:link{
    display: block;
    font-size: 17px;
    font-style: normal;
    font-weight: bold;
    margin-bottom: 5px;
}

footer {
    /* clear: both; */
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
}

.copyright {
    font-size: 16px;
    margin-bottom: 0;
}

button {
    cursor: pointer;
    font-size: 18px;
    padding: 12px;
    /* Absolute related to its parent with position: relative (.container in this case) */
    position: absolute;
    bottom: 164px;
    right: 0%;
}