* {
    padding: 0;
    margin: 0;
    font-family: Segoe UI, Helvetica Neue, Helvetica, Lucida Grande, Arial, Ubuntu, Cantarell, Fira Sans, sans-serif;
    --textwhite: #d1d7db;
    --headerColor: rgb(3, 141, 146);
}

body {
    overflow: hidden;
}


main {
    display: flex;
    background-color: rgb(21, 59, 60);
    width: 100vw;
    height: 100dvh;

}

#perfil-controller {
    position: absolute;
    top: 0;
    left: -400px;
    min-width: 400px;
    max-width: 400px;
    height: 100%;
    transition: left 0.3s ease;
    background-color: rgb(21, 59, 60);
}

.tab-header {
    display: flex;
    justify-content: left;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 5px;
    background-color: rgb(3, 141, 146);
}

.tab-header h1 {
    color: rgb(255, 255, 255);
}

.tab-header img {
    margin-top: 4px;
    margin-left: 10px;
    margin-right: 30px;
    width: 30px;
    cursor: pointer;

}

.perfil-picture {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;

}

#photoChanger {
    display: none;
    cursor: pointer;
    position: absolute;
    justify-content: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.37);
    width: 200px;
    height: 200px;
    border-radius: 100%;
}

#photoChanger span {
    color: rgb(203, 204, 206);
    font-size: 1.5rem;
}

.perfil-picture img {
    border-radius: 100%;
}

.perfil-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 50px;
}

.perfil-span {
    margin-bottom: 20px;
    color: var(--textwhite)
}



.perfil-fields {
    display: flex;
    width: 80%;

    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgb(97, 96, 96);

}

.perfil-fields span {
    width: 255px;
    height: 25px;
    font-size: 1.3rem;
    font-family: 'Segoe UI';
    color: var(--textwhite)
}

.perfil-fields img {
    margin-top: 6px;
    min-width: 15px;
    height: 15px;
    cursor: pointer;
}


#new-chat-tab {
    position: absolute;
    top: 0;
    left: -400px;
    min-width: 400px;
    max-width: 400px;
    height: 100vh;
    transition: left 0.3s ease;
    background-color: #0e4c4e;
}


#profiles {
    display: flex;
    flex-direction: column;
    max-height: 79vh;
    overflow: hidden;
    overflow-y: scroll;

}

#profiles::-webkit-scrollbar {
    width: 4px;
}

#profiles::-webkit-scrollbar-thumb {
    background-color: rgb(173, 173, 173);
}

.profiles-div {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 10vh;
    background-color: #126063;
    border-bottom: 1px solid #136d70;
}

.profiles-div .picture {
    padding-inline: 20px;
}

.profiles-div .picture img {
    width: 50px;
    height: 50px;
    border-radius: 100%;
}

.profiles-div .user-name {
    width: 60%;

}

.profiles-div .user-name p {
    font-size: 1.5rem;

}

.profiles-div .new-chat-icon {
    padding-inline: 10px;
}

.profiles-div .new-chat-icon img {
    cursor: pointer;
    width: 40px;
    height: 40px;
}


#input-username {
    outline: none;
    border-style: none;
    width: 210px;
    height: 30px;
    font-family: 'Segoe UI';
    font-size: 1.3rem;
    background-color: rgb(21, 59, 60);
    color: var(--textwhite);
}

#username-confirm {
    margin-top: 10px;
    margin-left: 45px;
    width: 15px;
    height: 15px;
}



#user-controller {
    display: flex;
    flex-direction: column;
    min-width: 400px;
    border-right: 1px solid rgb(97, 96, 96);

}

header {
    background-color: rgb(3, 141, 146);

    min-height: 10vh;
    display: flex;
    justify-content: left;
    align-items: center;
    border-bottom: 1px solid black;

}


.header-items {
    display: flex;
    justify-content: center;
    align-items: center;

}

#profile-picture {
    margin-left: 10px;
    margin-right: 220px;
    width: 40px;
    cursor: pointer;
    border-radius: 100%;

}


.profiles-button {
    margin-left: 30px;
}

.profiles-button img {
    cursor: pointer;
    padding: 8px;
    width: 20px;
    height: 20px;
}

.logout-button {
    margin-left: 20px;
}

.logout-button img {
    cursor: pointer;
    padding: 8px;
    width: 20px;
    height: 20px;

}


#Search {
    background-color: #126063;
    height: 11vh;
    min-height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#label-search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    height: 70%;
    background-color: rgb(27, 173, 179);
    border-radius: 10px 0px 0px 10px;
}

#Search img {
    width: 15px;
    cursor: pointer;

}

#Search input {
    background-color: rgb(27, 173, 179);
    border-style: none;
    outline: none;
    width: 70%;
    height: 70%;
    border-radius: 0px 10px 10px 0px;
}

#rooms {
    background-color: #0e4c4e;

    min-height: 80vh;
    max-height: 100%;
    /* max-height: 79vh; */
    overflow: hidden;
    overflow-y: auto;


}

#rooms::-webkit-scrollbar {
    width: 4px;
}

#rooms::-webkit-scrollbar-thumb {
    background-color: rgb(173, 173, 173);
}


.chatroom {
    display: flex;
    align-items: center;
    margin-inline: auto;
    /* margin-bottom: 3px; */
    width: 100%;
    min-height: 10vh;
    cursor: pointer;
    background-color: #126063;
    border-bottom: 1px solid #136d70;
}

.chatroom:hover {
    background-color: #a1a1a188;
}

.chatroom .chatroom-picture {
    padding-inline: 20px;
}

.chatroom .chatroom-picture img {
    width: 50px;
    height: 50px;
    border-radius: 100%;
}

.chatroom .chatroom-username {
    width: 100%;
}

.chatroom .chatroom-username p {
    font-size: 1.5rem;
    color: rgb(221, 220, 219);
}

#chat {
    background-color: rgb(21, 59, 60);
    width: 100%;

}

#chat-content {
    display: none;
}

.chat-picture {
    padding-inline: 20px;
}

.chat-picture img {
    width: 50px;
    height: 50px;
    border-radius: 100%;
}

.chat-name {
    color: var(--textwhite);
}

.chat-body {
    height: 80dvh;
    max-height: 80vh;
    width: 100%;
    overflow: hidden;
    overflow-y: scroll;
}

/* Estilo da barra de rolagem */
.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-body::-webkit-scrollbar-thumb {
    background-color: rgb(173, 173, 173);
}

.chat-input {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10vh;
    background-color: #136467;
}

.chat-input input {
    border-style: none;
    outline: none;
    font-size: 1.3rem;

    border-radius: 5px;
    width: 80%;
    height: 7vh;
    padding-left: 10px;
    background-color: #0b3738;
    color: var(--textwhite);
}

.chat-input img {
    margin-left: 20px;
    cursor: pointer;
    width: 35px;
    height: 35px;
}

.messagesDate {
    display: flex;
    width: 100%;
    margin-top: 5px;
}

.messagesDate .dateBox {
    margin: auto;
    border-radius: 10px;
    padding-inline: 10px;
    padding-block: 5px;
    text-align: center;
    background-color: rgb(39, 39, 39);
}

.messagesDate .dateBox span {
    color: var(--textwhite);
}

.myMessages {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-bottom: 15px;
}

.myMessages .messageBox {
    display: flex;

    align-items: flex-end;
    margin-top: 10px;
    min-width: 15%;
    max-width: 70%;
    padding: 7px;
    border-radius: 5px;
    margin-right: 10px;
    background-color: rgb(4, 118, 122);
}

.myMessages .messageText {
    font-size: 0.9rem;
    width: 100%;
    margin-right: 10px;
    color: var(--textwhite);

}

.myMessages .messageTime {
    font-size: 1rem;
    padding-top: 5px;
    font-size: 0.7rem;
    color: var(--textwhite);
}

.friendMessages {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 15px;

}

.friendMessages .messageBox {
    display: flex;
    align-items: flex-end;
    margin-top: 10px;
    min-width: 15%;
    max-width: 70%;
    padding: 7px;
    border-radius: 5px;
    margin-left: 10px;
    background-color: rgb(8, 82, 100);
}

.friendMessages .messageText {
    font-size: 0.9rem;
    width: 100%;
    margin-right: 10px;
    color: var(--textwhite);

}

.friendMessages .messageTime {
    padding-top: 5px;
    font-size: 0.7rem;
    color: white;
}

.back-button {
    display: none;
    margin-right: 10px;
    cursor: pointer;
}



@media (max-width: 768px) {
    .back-button {
        display: block;
    }

    .back-button img {
        width: 20px;
    }

    main {
        flex-direction: column;
    }

    #user-controller {
        width: 100%;
        min-width: 100%;
        display: block;
    }

    #chat {
        width: 100%;
        min-width: 100%;
        display: none;
        /* Esconde o chat por padrão */
    }

    #chat-content {
        display: flex;
        flex-direction: column;
        height: 100dvh;
    }
}