@import url(color.css);
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Bebas+Neue&family=Cinzel&family=Cinzel+Decorative&family=Press+Start+2P&family=Special+Elite&family=Staatliches&display=swap');/*eslint-disable-line*/
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Alice&family=Bebas+Neue&family=Cinzel&family=Cinzel+Decorative&family=Press+Start+2P&family=Special+Elite&family=Staatliches&display=swap');/*eslint-disable-line*/
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300&display=swap');/*eslint-disable-line*/


.containerPosts{
    padding: 2%;
    margin: 4%;
}

.newPost{
    display: none;
}

.sectionPosts{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-self: start;
    align-self: flex-start;
}

.imgUser{
    height: 40px;
    width: auto;
}

.userName{
    margin: 0 0 0 auto;
    text-align: end;
    width: 85%;
    align-self: center;
    font-weight: bold;
}

.postDate{
    text-align: end;
    width: 100%;
    font-size: 0.7rem;
    font-family: 'Nunito',  Arial, Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.postTheme{
    padding: 1%;
    text-align: start;
    background-color: var(--button);
    font-weight: bold;
    border-radius: 7px;
    white-space: pre-wrap;
    font-size: 0.7rem;
}

.break{
    width: 100%;
    margin: 1%;
    display: flex;
    justify-content: start;
    align-items: flex-start;
}

.postMessage{
    max-width: 80%;
    height: 30%;
    background-color: var(--post);
    font-family: 'Nunito', Arial, Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: var(--fontColor);
    border: 5px solid var(--post);
    border-radius: 5px;
    width: 100%;
    text-align: start;
}

.likes{
    display: inline-flex;
    margin-left: auto;
    justify-content: flex-end;

}

.postLikes{
    margin: auto;
}

.btnPopLike{
    background: transparent;
    width: 50%;
}

.popLike{
    width: 100%;
    height: auto;
}

.postUser{
    width: 100%;
    margin-left: auto;
    display: flex;
    gap: 1%;
    height: auto;
}

.btnDelet, .btnEdit{
    margin:0;
    width: 5%;
    height: auto;
    background-color: transparent;
}

.btnEdit {
    margin-left: auto;
}

.imgDelet, .imgEdit{
    height: 20px;
    width: auto;
}

.modalDeletBack, .modalEditBack{
    display: none;
    width: 100%;
    height: 100%;
    background: var(--modalDeletBack);
    z-index: 1;
    position: fixed;
    left:0;
    top:0;
    padding-top: 20%;
    overflow: auto;
}

.modalDelet, .modalEdit {
    background-color: var(--post);
    margin: auto;
    padding: 2%;
    border-radius: 10px;
    border: 1px solid var(--body);
    width: 80%;
    color: var(--fontColor);
}

.btnDeletConfirm, .btnDeletCancel,.btnEditConfirm, .btnEditCancel{
    background-color: var(--button);
    color: var(--fontColor);
    width: auto;
    padding: 1%;
    border-radius: 10px;
}

.noLikes{
    filter: grayscale(1);
}

.editTextarea{
    width: 80%;
    resize: none;     
}

.imgAllPosts{
    height: auto;
    width: 40%;
}

.imgAllPosts[src="null"]{
    display: none;
}

.imgPostMobile{
    margin: 2%;
}

@media (min-device-width:900px){

    .newPost{
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-self: start;
        align-self: flex-start;
    }

    .containerPosts{
        width: 60%;
        height: auto;
        margin: 2% auto;
    }

    .imgUser{
        width: auto;
        height: 55px;
    }

    .userName{
        width: auto;
        margin-left: auto;
    }

    .postLikes{
        height: 10%;
        width: 10%;
        margin: 5% 5% 5% auto;
        text-align: end;
    }

    .postMessage{
        margin-bottom: 2%;
        height: auto;
    }

    .btnPopLike{
        height: 100%;
        width: auto;
        margin: 0% 2%;
    }

    .popLike{
        height: 100%;
        width: auto;
        max-height: 50px;
    }

    .btnDelet, .btnEdit{
        height: 100%;
        width: auto;
        margin: 0% 1%;
    }

    .btnEdit{
        margin-left: auto;
    }

    .modalDelet, .modalEdit{
        width: 50%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .descDel{
        width: 100%;
        text-align: center;
    }

    .btnDeletConfirm, .btnDeletCancel, .btnEditConfirm, .btnEditCancel{
        margin: 5% 2% 2% 2%;
    }

    .editTextarea{
        margin: 3% 5%;
        width: 100%;
        border-radius: 5px;
        padding: 1%;
    }

    .likes{
        width: 50%;
        display: flex;
        margin-left: auto;
        max-height: 70px;
    }

    .postUser{
        width: 100%;
        margin-top: 1%;
        display: inline-flex;
        justify-content: end;
        align-items: flex-end;
        gap: 1%;
    }
    
    .imgEdit, .imgDelet{
        height: 100%;
        width: auto;
        margin: 0;
        max-height: 25px;
    }
}