body {
    margin: 0 auto;
    font-size: 1.125rem;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 300;
    padding: 0;
}
img {
    max-width: 100%;
    display: block;
    background-color: red;
}
header {
    text-align: center;
    padding: 1.9em 0;
    background-color: #f8f8f8;
    margin: 0;
    text-align: center;
}
footer {
    margin-top: 2%;
}
h1 {
    font-size: 1.6em;
    margin: 0;
}
a {
    color: #1792d2;
}
p {
    letter-spacing: 0.03em;
}
a:hover,
a:focus {
    color: #143774;
}

strong {
    font-weight: 600;
}

h1,
h2,
h3 {
    color: #143774;
    font-weight: 500;
    font-family: 'Lora', serif;
    margin-top: 0;
}

h2 {
    font-size: 1.1em;
}
.top-text {
    color: #707070;
    font-size: .5rem;
    margin: 2rem 0;
}
.top-date {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* h1 subtitle */
.article-title {
    font-size: 1.3rem;
}
.article-read-more,
.article-info {
    font-size: 0.875rem;
}
.article-read-more,
.about-heading {
    color: #1792d2;
    text-decoration: none;
    font-weight: 700;
}
.article-read-more:hover,
.article-read-more:focus {
    color: #143774;
    text-decoration: underline;
}

.article-info {
    margin: 2em 0;
}

.subtitle {
    margin-bottom: 20px;
}

.subtitle {
    color: #1792d2;
    letter-spacing: 2.4px;
    font-weight: 700;
    font-size: 0.7rem;
    margin: 0;
    padding: 0;
}

.site-title {
    margin: 0;
    padding: 0;
}
.about-heading {
    font-size: 1.2em;
}
.about-heading-text {
    font-size: 1em;
}
.about-myself {
    font-size: 1.1em;
    font-weight: 600;
    color: #1792d2;
}
.about-sidebar-widget {
    margin: 4em 0;
}
/* layout */
.container {
    width: 90%;
    padding: 0;
    margin: 0 auto;
    
}
.container-flex {
    display: flex;
    justify-content: space-between;
    flex-direction: column;

}
nav {
    padding: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
nav li {
    margin: 0.9em;
}
nav a {
    text-decoration: none;
    color: #707070;
    font-weight: 700;
    padding: .25em;
}
nav a:hover,
nav a:focus {
    color: #1792d2;
}

.current_page {
    border-bottom: 1px solid #707070;
}
.current_page:hover,
.current_page:focus {
    color: #707070;
}


/*  articles */

.article-feature {
    border-bottom: 1px solid #707070;
    margin-bottom: 3em;
    padding-bottom: 1.5em;
}

.article-recent {
    display: flex;
    flex-direction: column;
    margin-bottom: 2em;
}

.article-recent-main {
    order: 2;
}
.article-recent-secondary {
    order: 1;
}
.sidebar-widget {
    border: 15px solid #EBEBEB;
    margin-bottom: 5em;
    padding: 1em;
}
.article-feature {
    display: flex;
    flex-direction: column;
}
.container-article-image {
    order: -2;
}
.article-info {
    order: -1;
}
.profil-image {
    width: 100%;
    height: 19em;
    object-fit: cover;
    margin-bottom: 1.5em;
}

.widget-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.4rem;
}
.widge-recent-post-title,
.widget-title {
   font-weight: 600; 
}
.widge-recent-post {
    display: flex;
    flex-direction: column-reverse;
    margin-bottom: 2.2em;
    border-bottom: 1px solid #707070;
    padding-bottom: .4em;
}
.widge-recent-post:last-child {
    border: 0;
    margin: 0;
}
.widget-image {
    margin-bottom: 1.1em;
}

/* footer */
footer {
    text-align: center;
    background-color: #143774;
    padding: 3em;
    color: #FFFFFF;
    font-family: 'Ubuntu', sans-serif;
}
.footer-title-text {
    font-size: 1.3em;
    font-family: 700;
}
.footer-copyright-text {
    font-weight: 300;
    font-size: 0.8em;
}

/* orders are used to interchange divs */
@media (min-width: 700px) {
    .container {
        flex-direction: row;
        width: 70%;
    }
    .header-container {
        align-items: center;
        
    }
    .about-me {
        flex-direction: column;
    }
    nav ul {
        flex-direction: row;
    }
    main,
    .about-me-section {
        width: 70%;
    }
    .sidebar {
        width: 25%;
        min-width: 190px;
        margin-left: 1em;
    }
    .article-recent {
        flex-direction: row;
        align-items: flex-start;
    }
    .article-image {
        width: 100%;
        height: 12em;
        padding: 0px;
        margin: 0px;
        object-fit: cover;
    }
    .article-recent-main {
        width: 70%;
        margin-left: 20px;
        height: 10em;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .article-recent-secondary {
        width: 30%;
    }
    .about-me-section {
        width: 100%;
    }
    .container-space {
        margin-top: 180px;
    }
    header {
        position: fixed;
        top: 0;
        width: 100%;
        height: auto;
        opacity: 99%;
    }
    
}

@media (min-width: 700px) and (max-width: 1150px) {
    .container {
        width: 95%;
    }
    nav li {
        margin: 0.35em;
    }
}


/* @media (min-width:501px) and (max-width: 1120px) {
    .container {
        width: 95%;

    }
    .header-container {
        flex-direction: column;
        align-items: center;
    }
    
} */
/* @media (min-width: 550px) {
    .article-recent-main {
        margin-top: -2.8em;
    }
    .article-info {
        text-align: right;
    }
} */

