/* #region MAIN */
h1 {
    font-size: 60px;
    padding-top: 50px;
}

article h2 {
    font-size: 45px;
    font-weight: 700;
    text-transform: lowercase;
    padding: 30px 0 25px;
    text-align: left;
    margin: 0;
}

.preview {
    margin: auto;
    width: 700px;
}

.author {
    font-size: 16px;
    color: var(--secondary-colour);
}

article h2::first-letter {
    text-transform: capitalize;
}

article header .link-header {
    display: none;
}

main img {
    margin: 0;
    width: 700px;
    height: 450px;
}

.content-wrapper {
    position: relative;
}

article,
.about-wrapper,
.more-blog,
.nav-blog {
    padding-left: 30px;
    padding-right: 30px;
}

.ads {
    margin: 30px 0 30px 50px;
    width: 350px;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ads img {
  width: 100%;
}

#blog-img {
    padding-bottom: 40px;
}

.recommend {
    width: 350px;
    margin-left: 50px;
}

.recommend h3 {
    margin-bottom: 10px;
}

.recommend h3,
.about-author h3,
.more-blog h3 {
    font-size: 23px;
    color: var(--secondary-colour);
}

.recommend ul {
    font-size: 16px;
    text-align: left;
    height: 400px;
    overflow-y: scroll;
    scrollbar-width: none;
}

.recommend ul li {
    margin: 20px 20px 20px 5px;
}

.recommend ul li hr:first-child,
.recommend ul li:first-child {
    margin-top: 5px;
}

.recommend a,
.more-col a {
    color: var(--primary-colour);
    position: relative;
}

@media(hover: hover) and (pointer: fine) {

    .recommend a:hover,
    .more-col a:hover {
        background-color: #a0a0a0;
        padding: 15px;
        padding-bottom: 20px;
        display: block;
        font-size: smaller;
        border-radius: 10px;
        color: white;
        z-index: 5;
        transition: .5s;
    }

    .recommend a::after,
    .more-col a::after  {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 90%;
        width: 0;
        z-index: -1;
    }

    .recommend a:hover::after,
    .more-col a:hover::after  {
        width: 100%;
        transition: width .5s;
        background-color: var(--secondary-colour);
        border-radius: 10px;
    }
}

.main-content {
    width: 700px;
    text-align: justify;
}

p {
    line-height: 1.7;
    font-weight: 400;
    text-align: justify;
}

aside:not(.recommend) {
    margin: 100px auto 50px;
    width: 900px;
}

.share-wrapper {
    align-items: flex-end;
}

aside .blog-btns div:first-child {
    margin-right: 40px;
}

.about-author {
    text-align: center;
    width: 800px;
    margin: 50px auto;
}

.about-author h3 {
    margin-bottom: 30px;
}

.author-img img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
}

.author-img-wrapper {
    margin-right: 50px;
    display: flex;
    align-items: center;
}

.about-author-content p {
    margin: 0;
    font-size: 18px;
}

aside.more-blog {
    margin-top: 50px;
    width: 100%;
}

.more-blog h3 {
    text-align: center;
    margin-bottom: 50px;
}

.more-blog .more-blog-content img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    margin: 0 20px 0 0;
    background-position: center;
    background-size: contain;
}

.more-col {
    flex-wrap: wrap;
}

.more-col a{
    flex-basis: 47%;
}

.more-blog h4 {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
}

.more-col a {
    margin-bottom: 30px;
}

.more-card {
    margin-bottom: 10px;
}

aside#disqus {
    margin-bottom: 0;
}

.nav-blog {
    padding-top: 100px;
    padding-bottom: 50px;
}

hr {
    margin: 20px auto;
    color: gray;
}

.long-line p:first-of-type {
    font-size: 35px;
    margin-top: -12px;
    margin-right: 20px;
}

.btn-xtra button {
    width: 100px;
}

.res-aside aside {
    display: none;
}

@media (min-width: 0px) and (max-width: 1100px) {
    header.preview {
        width: 80vw;
    }

    .res-aside .ads,
    .res-aside .recommend {
        display: block;
        margin: 0;
        width: 45%;
    }

    .res-aside .ads {
        display: flex;
        height: 450px;
        position: relative;
    }

    .res-aside aside {
        width: 80vw;
        margin-bottom: 100px;
        display: flex;
    }

    .ads, .recommend {
        display: none;
    }

    .main-content,
    article header {
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        font-size: 5.5vw;
    }

    article h2 {
        font-size: 3.7vw;
        padding-right: 0;
    }

    main img {
        margin: auto;
        width: 80vw;
        height: 45vw;
    }

    .main-content,
    aside,
    aside.share-wrapper,
    aside#disqus,
    article header {
        width: 80vw;
    }

    .about-author h2 {
        font-size: 3vw;
    }

    .about-author p {
        text-align: left;
    }

    .about-author {
        width: 70vw;
    }

    .author-img img, .author-img {
        width: 18vw;
        height: 18vw;
    }
}

@media (max-width: 950px) {
    article h2 {
        padding-top: 20px;
    }

    #blog-img {
        padding-bottom: 30px;
    }

    .long-line p:first-of-type {
        font-size: 30px;
        margin-top: -8px;
        margin-right: 15px;
    }

    .btn-xtra button {
        width: 90px;
    }

    .author {
        font-size: 14px;
    }

    .more-col {
        flex-direction: column;
    }

    .more-blog-content {
        width: 80%;
    }

    .more-blog .author-name {
        display: none;
    }
}

@media (max-width: 768px) {
    .more-blog-content {
        width: 90%;
    }

    .main-content p {
        text-align: left;
    }

    aside.share-wrapper {
        margin-top: 50px;
        flex-direction: column;
        align-items: center;
    }

    aside.share-wrapper .social {
        order: 2;
        margin-top: 50px;
    }

    .res-aside aside {
        flex-direction: column;
        align-items: center;
        margin-top: 50px;
    }

    .res-aside .ads,
    .res-aside .recommend {
        width: 70%;
    }

    .res-aside .recommend {
        order: 2;
        margin-top: 50px;
    }

    .about-author .author-meta {
        flex-direction: column;
        align-items: center;
    }

    .about-author .author-meta p {
        margin-top: 30px;
        font-size: 16px;
    }

    .author-img-wrapper {
        margin-right: 0;
    }
}

@media (max-width: 610px) {
  .ads img {
    height: 100%;
  }
  
    .nav-blog {
        padding-left: 0;
        padding-right: 0;
    }

    .more-blog-content {
        padding: 0;
        width: 100%;
    }

    article h2 {
        padding-top: 0;
        padding-bottom: 15px;
    }

    .preview h2 {
        padding-top: 15px;
    }

    article header {
        padding: 0;
    }

    #blog-img {
        padding-bottom: 20px;
    }

    .long-line p:first-of-type {
        font-size: 20px;
        margin-top: -3px;
        margin-right: 10px;
    }

    .nav-blog {
        padding-top: 50px;
        padding-bottom: 30px;
    }

    .author {
        margin-bottom: 15px;
    }

    .res-aside .ads,
    .res-aside .recommend {
        width: 90%;
    }

    .res-aside aside {
        margin-bottom: 50px;
    }
}

@media (max-width: 550px) {
    .long-line p:first-of-type {
        margin-top: -5px;
    }

    article h2 {
        font-size: 20px;
    }

    .more-blog .more-blog-content img {
        width: 80px;
        height: 80px;
        margin-right: 15px;
    }

    .more-blog h4 {
        font-size: 13px;
    }

    .more-blog .more-meta {
        font-size: 12px;
    }

    .more-blog h3 {
        margin-bottom: 30px;
    }
}

@media (max-width: 450px) {

    .more-blog .more-blog-content img {
        width: 70px;
        height: 70px;
        margin-right: 10px;
    }

    .more-blog h4 {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .more-blog {
        padding-left: 15px;
        padding-right: 15px;
    }

    h1 {
        font-size: 25px;
    }

    article h2 {
        text-align: left;
        padding-top: 0;
    }

    .main-content p {
        font-size: 13px;
    }

    aside .link-header, .about-author .author-meta p {
        font-size: 13px;
    }

    section>div:last-child {
        padding-left: 0px;
        padding-right: 0px;
    }

    .btn-xtra button {
        width: 70px;
    }

    .author {
        font-size: 12px;
    }

    aside .blog-btns div:first-child {
        margin-right: 30px;
    }

    .res-aside .recommend h3,
    .about-author h3,
    .more-blog h3 {
        font-size: 18px;
    }

    .res-aside .recommend ul {
        font-size: 13px;
    }

    .about-author {
        width: 80vw;
    }

    aside.more-blog .more-blog-content {
        font-size: 13px;
        margin: 0;
    }
}

/* #endregion */

/* #region ADS */
.bar-banner-ad {
  padding-top: 50px;
}

@media (max-width: 610px) {
  .bar-banner-ad {
    padding: 30px 0;
  }
}
/* #endregion */

/* #region PRINT */

#cancel_print {
    display: none;
    width: 20px;
    height: 20px;
    font-size: 40px;
    font-weight: 400;
    color: #754C28;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    line-height: .5;
    z-index: 1;
}

#cancel_print:hover {
    color: black;
    font-weight: 700;
}

#copyright_print {
    display: none;
    margin: 70px;
    margin-bottom: 0;
    padding-bottom: 20px;
    text-align: center;
}

/* #endregion */

/* #region MODAL */
#modal {
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.4);
}

#modal_content {
    background-color: #fefefe;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #754C28;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
        0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation: animatetop 0.4s;
}

#cancel {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    height: 22px;
    line-height: 22px;
}

#cancel:hover,
#cancel:focus {
    color: #754C28;
    font-weight: 700;
    cursor: pointer;
    font-size: 30px;
}

#modal_head {
    padding: 2px 16px;
    font-size: 30px;
}

#modal_body {
    padding: 2px 16px 25px;
    font-size: 20px;
}

#modal_footer {
    padding: 2px 16px;
    margin-top: 15px;
}

#modal a {
    color: #754C28;
}

#modal a:hover {
    text-decoration: underline;
}

@keyframes animatetop {
    from {
        margin-top: -300px;
        opacity: 0;
    }

    to {
        margin-top: 0;
        opacity: 1;
    }
}

@media (max-width: 700px) {
    #modal_content {
        margin: 0 auto;
    }

    #modal_head {
        font-size: 4vw;
    }

    #modal_body, #modal_footer {
        font-size: 2.5vw;
    }

    #cancel {
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    #modal_body, #modal_footer {
        font-size: 10px;
    }
}

/* #endregion */
