
body {
    min-height: 100vh;
}

* {
    margin: 0;
    font-family: 'Dosis', sans-serif;
}

.register-user {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

input {
    margin-bottom: 20px;
    height: 40px;
    width: 80%;
    font-size: 16px;
    margin-top: 20px;
}

img {
    width: 35%;
    padding: 20px;
}

#root {
    align-items: center;
}

.register-container {
    min-height: 85vh;
    background: rgba(94, 23, 235, .3);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    justify-content: center;
}

h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: 'Ysabeau Office', sans-serif;

}

h3 {
    margin-left: 5%;
    grid-area: creator;
}
button {
    border-radius: 20px;
    height: 40px;
    width: 50%;
    color: #fff;
    background: #5E17EB;
    border: 0px;
    margin: 10px;
    font-size: large;
    justify-content: center;
    display: flex;
    align-items: center;

}
textarea{
    resize:none;
    font-size: 1.1rem;
}
button img {
    height: 30px;
    width: 30px;
    padding: 0;
    padding-left: 5%;


}

.login-user {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.login-container {
    min-height: 85vh;
    background: rgba(94, 23, 235, .3);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    justify-content: center;
}
#activeSection{
    width: 80%;
    text-align: center;
}

#checkStorage{
    width: 3%;
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px 0 0;
}
#textPost{
    width: 50%;
}
#btnPublish{
    width: 30%
}
#error-section {
    width: 100%; 
    min-height: 100vh;
    background: rgba(94, 23, 235, .3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#contentHome {
    background:rgba(94, 23, 235, .3);
    min-height: 100vh;
    display: grid;
    grid-template-columns: 20% 60% 20%;
}
#section-all-posts {
    margin-top: 40px;
    display: flex;
    align-items: center;
    flex-direction: column;
}
#btnSaveChanges{
    margin: 5px 0 0 25%;
    grid-area: btnSave;
}
#contentHome > img {
    width: 100%;
    padding: 0%;
}
.like-icon-checkbox{
    grid-area: likeIcon;
    margin-left: 30%;
}
.post-box{
    width: 90%;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 10px;
    border-radius: 20px;
    border: 1px solid rgb(94, 23, 235);
    display: grid;
    grid-template: 
        'creator creator creator creator creator' auto
        'textPost textPost textPost textPost textPost' auto
        'likeIcon likes ...... dateInformation dateInformation' auto/ 10% 40% 18% 2% 30%;
}
.post-box-owner{
    width: 90%;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 10px;
    border-radius: 20px ;
    border: 1px solid rgb(94, 23, 235);
    display: grid;
    grid-template: 
        'creator creator creator creator menuPost' auto
        'textPost textPost textPost textPost textPost' auto
        'btnSave  btnSave btnSave btnSave btnSave' auto
        'likeIcon likes ...... dateInformation dateInformation' auto/ 10% 40% 18% 2% 30%;
}
select{
    width: 80%;
    text-align: center;
}
#btnLogout{
    margin: 50px 0 0 20px;
    width: 80%;
}
.text-box{
    background: #FFFFFF;
    grid-area: textPost ;
}
.show-likes{
    grid-area: likes;

}
.datePost {
    grid-area: dateInformation ;
}
.post-menu{
    grid-area: menuPost;
}

.text-box > textarea{
    background: #FFFFFF;
    width: 98%;
    border: none;
    font-size: 1em;
}
.post-section{
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

article {
    align-items: center;
}
.like {
  position: absolute;
  left: -100vw;
}

.like-icon {
    display: inline-block;
    vertical-align: top;
    position: relative;
    shape-margin: 2;
    color: rgba(94, 23, 235, .5);
    font-size: 1.5em;
    cursor: pointer;
  }

  
.like:checked + .like-icon {
  color: #5E17EB;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
  }

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media screen and (max-width: 415px) {

    .register-user {
        min-height: 100vh;
        flex-direction: column;
        align-items: center;
    }

    input {
        margin-bottom: 20px;
        height: 40px;
        width: 80%;
        font-size: 16px;
        margin-top: 20px;
    }

    .register-container {
        min-height: 85vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 300px;
    }

    h2 {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    img {
        width: 60%;
    }

    button {
        border-radius: 20px;
        height: 40px;
        width: 70%;
        border: 0px;
        margin: 10px;

    }

    .login-user {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .login-container {
        width: 300px;
        min-height: 85vh;
        display: flex;
        flex-direction: column;
        align-items: center;

    }

    #checkStorage{
    width: 7%;
    } 

    .text-box{
        background: #FFFFFF;
    }
    .post-section{
        width: 100%;
        /*background: #39295a;*/
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #section-all-posts {
        width: 80%;
        margin-top: 40px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    #contentHome {
        display: flex;
        align-items: center;
        flex-direction: column;
        /* background:rgba(94, 23, 235, .3);*/
        min-height: 100vh;
    }
    #textPost{
        width: 80%;
    }
    #btnPublish{
        width: 60%
    }
    #newPost {
        margin-top: 20px;
        width: 80%;
        height: 150px;
        align-items: center;
    }    
      .modal {
      /* display: none; */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      z-index: 1;
    }

    .modal-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    }
    .like-icon-checkbox{
        margin-left: 15%;
    }
    .post-box{
        width: 100%;
        grid-template: 
            'creator creator creator creator creator' auto
            'textPost textPost textPost textPost textPost' auto
            'likeIcon likes ...... dateInformation dateInformation' auto/ 10% 30% 10% 20% 30%;
    }
    .post-box-owner{
        width: 100%;
        grid-template: 
        'creator creator creator creator menuPost' auto
        'textPost textPost textPost textPost textPost' auto
        'btnSave btnSave btnSave btnSave btnSave' auto
        'likeIcon likes ...... dateInformation dateInformation' auto/ 10% 30% 10% 20% 30%;
    }
}
