@import url(https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css);
@import url(https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;800&display=swap);

body{
    font-family: 'Open Sans', sans-serif;
}

.inner-wrapper{
    margin-top: 20px;
}

article{
    background-color: #fff;
    padding: 0px;
}

.page-wrapper{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ccc;
    margin-top: 50px;
}

.page-header{
    position: fixed;
    z-index: 10;
    top: 0;
    width: 100%;
    height: 50px;
}
.page-content-wrapper{
    flex: 1;
    display: flex;
    flex-direction: column;
}
.inner-wrapper{
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    flex: 1;
}

.main-menu{
    width: 100%;
}

.main-menu ul{
    display: flex;
    justify-content: space-between;
}

.main-menu a{
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    text-transform: uppercase;
    font-size: 14px;
}

.main-menu li:nth-child(3){
    display: flex;
    flex: 1;
    flex-direction: row;
}

.searchbar{
    width:90%;
    margin: 5px;
    border-radius: 8px;
    height: 80%;

}

.searchbar-holder{
    display: flex;
    align-items: center;
    width: 100%;
    flex: 1;
}

.searchbar-button{
    height: 90%;
}

.login-page{
    margin-top: 50px;
    height: 100vh;
    align-items: center;
    justify-content: center;
    display: flex;
}

.login-window h1{
    font-size: 50px;
    font-weight: 700;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.login-window {
    width: 40%;
    height: 40%;
}


.login-form {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
}

.login-form button{
    width: 20%;
    padding: 20px;
    background-color: #222;
    color: #ddd;
    font-size: large;
}

.login-form input{
    padding: 10px;
}

.page-hero {
    height: 500px;
    background: url('../uploads/hero-01.jpg');
    background-position: 30%;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}


.post-page-hero {
    height: 500px;
    background: url('../uploads/hero-01.jpg');
    background-size: cover;
    margin-bottom: -20px;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}



.page-hero-title{
    font-size: 80px;
    font-weight: 800;

}

.post{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    line-height: 1.5;
    width: calc(50% - 15px);
    box-sizing: border-box;
    margin-right: 0;
    margin-bottom: 25px;
}

.posts{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.post-image{
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}

.post-author{
    text-transform: capitalize;
    font-size: 12px;
    margin-bottom: 10px;
}

.post-text{
    flex: 1;
    padding: 20px;
    font-size: 12px;
}

.post-title{
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 5px;
    text-align: left;
}

.post-center-title{
    font-size: 46px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 5px;
    text-align: center;
}

.post-btn{
    text-decoration: none;
    display: inline-block;
    padding: 5px 20px;
    margin-top: 10px;
    font-size: 14px;
}

.page-homepage{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.page-homepage .post:nth-child(1) {
    width: 100%;
    display: flex;
    flex-direction: column;   
}
.page-homepage .post:nth-child(1) .post-image {
   width: 100%;
   height: 300px;
}
.page-homepage .post:nth-child(1) .post-title {
   font-size: 32px;
   font-weight: bold;
   line-height: 1.2;
}

.title{
    font-size: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.page-posts .post {
    width: 100%;
    display: flex;
    flex-direction: row;
    height: 170px;
 }
 .page-posts .post-image {
    width: 200px;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
 }


 .page-post .post {
    margin-top: -100px;
    width: 100%;
 }

 

 .page-post .post .post-title {
    font-size: 54px;
    text-align: center;
}
.page-post .post-author {
   text-align: center;
   font-weight: bold;
   font-size: 16px;
}
.page-post .post-content {
   margin-top: 30px;
   line-height: 1.7;
   font-size: 16px;
}
.post-text {
   padding: 20px;
   min-width: 30%;
}

.btn-fixed {
    position: fixed;
    top: 70px;
    right: 20px;
   background-color:red;
   color: #fff;
   text-decoration: none;
   display: block;
   padding: 10px 20px;
   font-weight: normal;
   font-size: 16px;
}
