@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
/* font-family: 'Montserrat', sans-serif; */

*,::after,::before{
    box-sizing: border-box;
}
html{
    font-size: 16px;
}
body{
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}
img{
    width: 100%;
    box-shadow: 0 2px 1.2px 0 rgba(0, 0, 0, 0.2);

}
.wrapper{
    padding: 0 2em;
}
/* ----------------------
     Header Section 
------------------------*/

header{
    margin: 0;
    padding: 0 2em;
    box-shadow: 0 0 1.3px 0.3px rgba(0, 0, 0, 0.2);
    margin-bottom: 2em;
    display: flex;
    justify-content: space-between;
}
.nav-logo{
    color: rgba(255, 165, 0, 0.8);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}
.toggle {
    height: 0;
    width: 0;
    visibility: hidden;
    margin-left: auto;
    background-color: rgba(0, 0, 0, 0.2); 
}

.labelTag {
    width: 50px;
    height: 30px;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    margin: 1em;
    background-color: rgba(0, 0, 0, 0.2);
}

label::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    top: 2px;
    left: 22px;
    transition: .5s;
    background-image: url(../img/sun-solid.svg);

}

.toggle:checked + label::after {
    transform: translate(-18px);
    background-image: url(../img/moon-solid.svg);
}

/* ---------------------
    Post Container
---------------------- */
.post-container{
    margin-top: 4em;
    box-shadow: 0 0 1.2px 0 rgba(0, 0, 0, 0.3);
}
.post-container:nth-child(7){
    margin-bottom: 3em;
}
.post-body{
    padding: 1em 1.8em 4em;
}
.post-title{
    font-size: 1.3rem;
    font-weight: 700;
}
.post-text{
    font-size: 0.9rem;
    line-height: 1.6;
}
a{
    text-decoration: none;
}
.post-btn{
    float: right;
    display: inline-block;
    padding: 0.5em 1.2em;
    color: rgba(255, 165, 0, 0.8);
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.2);
}
.post-btn:hover{
    color: rgba(32, 33, 36);
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(0.95);
}

@media(min-width: 500px){
  html{
      font-size: 18px;
  }
  header{
      padding: 0 10em;
  }
  .hero{
      width: 60%;
      margin-left: auto ;
      margin-right: auto ;
  }
}