* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root {
    --HEADER-BACKGROUND: #333;
    --HEADER-HEIGHT: 50px
}
body {
    background-color: #d6d6d6;
}
/* header */
.header {
    height: var(--HEADER-HEIGHT);
    width: 100vw;
    background-color: var(--HEADER-BACKGROUND);
    padding: 0 1rem;
    position: sticky;
    z-index: 10;
    top: 0;
    left: 0;
}
.header ul {
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    list-style: none;
    gap: 1rem;
    height: 100%;
}
.header a {
    color: white;
    text-decoration: none;
    display: block;
}
.header .header-right-side {
    margin-left: auto;
}
/* header END */

/* hero styling */
.hero {
    width: 100vw;
    height: calc(100vh - var(--HEADER-HEIGHT));
    display: grid;
    place-items: center;
    background-image: url("../img/hero-01.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.hero h1 {
    font-size: 5rem;
    color: white;
    -webkit-text-stroke: 1px black;
}
/* hero styling END */

/* article styling */
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 10px;
    max-width: 900px;
    margin: 10px auto;
    padding: 0 10px;
}
.posts > :first-child {
    grid-column: 1 / -1;
    flex-direction: column;
  }
.posts > :first-child  img{
    height: 300px;
    flex: auto;
  }
.article {
    display: flex;
    background-color: white;
}
.article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex: 1;
}
.article a {
    padding: 10px;
    color: white;
    background-color: #222;
    text-decoration: none;
    font-size: 1.2rem;
}
.article .button {
    margin: 20px 0px;
}
.article .text-area {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
/* article styling END */

/* posts articles */
.all-articles {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: auto;
}
.all-articles .article {
    margin: 10px;
}
/* posts articles END */

/* post styling */
.post .image-header {
    height: 40vh;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; 
}
.post .text-area {
    margin: -40px auto;
    z-index: 10;
    max-width: 900px;
    background-color: white;
    padding: 15px;
}
.post .text-area p {
    margin: 20px 0px;
}
.post .text-area .published-by {
    text-align: center;
}
.post .text-area h1 {
    text-align: center;
    font-size: 3rem;
}
/* post styling END */

/* login styling */
.login-main {
    width: 100%;
    height: calc(100vh - var(--HEADER-HEIGHT));
    display: grid;
    place-content: center;
}
.login-form {
    max-width: 900px;
    padding: 2rem 4rem;
    background-color: white;
}
label, input, textarea {
    display: block;
}
input, textarea {
    width: 100%;
    padding: 8px;
    border: solid 1px #999;
    background-color: #fff;
}
label {
    margin: 20px 0 5px 0;
}
button {
    margin-top: 20px;
    padding: 10px 20px;
    text-transform: uppercase;
    background-color: green;
    color: #fff;
    border: none;
}
/* login styling END */

/* style the search bar */

.search-container {
    display: flex;
    justify-content: center;
}
.search-bar-container {
    display: flex;
    width: 70%;
    margin: 10px;
}
.search-bar__button {
    width: 20%;
    background-color: green;
    color: white;
    border: 0;
}

/* END style the search bar */