#content {
    display: block;
    margin: 50px 25%;
}

#header {
    padding: 0 10%;
}

#title-image {
    position: relative;
    width: 100%;
    display: block;
}

#title-image img {
    width: 100%;
}

#title-image.edit::after {
    display: flex;
    flex-direction: vertical;
    position: absolute;
    inset: 0;
    content: 'Change image';
    font-size: 3rem;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    line-height: 100%;
    opacity: 0;
}

#title-image.edit:hover::after {
    opacity: 1;
}

#related-articles {
    justify-self: stretch;
    align-self: stretch;
    margin: 50px;
}

#related-articles a {
    border-radius: 5px;
    text-decoration: none;
    color: white;
    display: inline-block;
}

#related-articles a:hover {
    background: orange;
}

#related-articles a > * {
    width: 90%;
    margin: 1rem auto;
    display: block;
}

.article-preview {
    width: 50%;
    display: block;
    margin-bottom: 1.5rem;
}

.article-preview h3 {
    margin-left: 5%;
}

.article-preview img {
    border-radius: 5px;
}

.article-preview p {
    display: block;
    font-size: 1rem;
    line-height: 1.2rem;
    height: 2.4rem;
    overflow: hidden;
}

#article-container {
    display: block;
    margin: 100px 10% 0 10%;

    justify-self: start;
    align-self: start;
}

article p {
    font-size: 1.25rem;
    line-height: 2rem;
}

article h1 {
    font-size: 3rem;
    font-weight: 600;
    margin: 3rem 0px 1rem 0px;
}

article h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2rem;
}

article p,
article h1,
article h2 {
    text-align: justify;
    color: #eee;
}

article img,
article img ~ em {
    display: block;
    max-width: 80%;
    margin: 2rem auto;
}

article img ~ em {
    font-style: normal;
    margin-top: -1rem;
}

article pre {
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    background-color:  #212529;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.375rem;
}

/*** Edit Article Picture ***/
#edit-picture-dialog {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*** Comments ***/
#comments {
    display: block;
    width: 100%;
}

#comments textarea {
    display: block;
    padding: 10px;
    width: 100%;
}

.comment {
    padding-left: 10px;
    margin-left: 5%;
}

.comment .header p {
    margin-left: 10px;
}

.comment > p {
    margin-left: 60px;
    text-align: justify;
}

.profile-picture {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

#images > * {
    width: 50%;
}

#images img {
    width: 90%;
    margin: auto;
}