* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "B Yekan+";
    direction: rtl;
}

html {
    height: 100vh;
    background-color: #f9f4fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

a{
    text-decoration: none;
    color: black;
}
.parent {

    background-color: #fffdff;
    width: 365px;
    height: 540px;
    margin: 20px auto;
    border-radius: 13px;
    box-shadow: 1px 10px 20px #d6c9d9;
    backdrop-filter: blur();
    overflow: scroll;

}

.parent h2 {
    text-align: center;
    margin: 20px;

}

.err {
    background-color: red;
    color: white;
    padding: 5px;
    margin: 0 20px;
    border-radius: 5px;
    display: none;

}

.off {
    display: none;
}

.on {
    display: block;
}

.form {
    margin: 20px;
    text-align: right;
    display: flex;
    flex-direction: column;

}

.form span {

}

.input {
    text-align: right;
    padding: 5px;
    margin: 5px 0;
    border-radius: 5px;
}

.btn-login {
    margin-top: 10px;
    background-color: #081c34;
    color: white;
    padding: 7px;
    border: hidden;
    border-radius: 5px;
}

/*chat design*/


.header {

    display: flex;
    justify-content: space-between;
    margin: 10px auto;
    box-shadow: 1px 10px 20px #d6c9d9;
    backdrop-filter: blur();;

}

.head-info {

    display: flex;
    flex-direction: row;
}


.header img, .head-info img, img {
    width: 45px;
    border-radius: 50%;
    margin: 5px;
}

.profile-name {
    margin-right: 5px;
}

.exit-btn {
    background-color: #383338;
    color: white;
    border: hidden;
    border-radius: 5px;
    width: 60px;
    margin: 5px;
    font-size: 1rem;

}

.contact-list {

    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 10px auto;
    align-items: center;

}

.status {
    margin: 10px 30px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: darkgreen;
}

/*chat*/
.text {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    width: auto;
    border-radius: 17px;
    padding: 7px;
    box-sizing: border-box;
    margin: 10px auto 10px 10px;
    background-color: #363237;
    border-bottom-left-radius: 0px;
    color: white;
    direction: rtl;
    justify-content: end;
}

.textu {
    flex-direction: column;
    display: flex;
    font-size: 16px;
    width: auto;
    border-radius: 17px;
    padding: 7px;
    box-sizing: border-box;
    margin: 10px 5px 10px auto;
    background-color: white;
    border-bottom-right-radius: 0px;
    color: #363237;
    direction: rtl;
    box-shadow: 0 10px 20px rgba(67, 58, 58, 0.30);
    backdrop-filter: blur();;

}
.chat-boxx{
    height: 77%;
    overflow: scroll;
}
.chat-box {
    flex-direction: column;
    display: flex;
    align-items: flex-end;
    margin: 5px;
}
.textu .time{

    text-align: right;
}
.text .time{

    text-align: left;
}

.time{
    margin: 3px;
    font-size: 10px;
    opacity: 0.7;
}
.chat-box img {
    width: 35px;
    height: 35px;


}

.typing {
border: 1px solid black;
    border-radius: 7px;
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    margin: 0 auto;

align-items: center;

}

.textbox {
flex-grow: 11;

    border: hidden;
    margin: 5px;
    height: 35px;
    text-align: right;
}
.exit-btn a{
    color: #d6c9d9;
}
.btn {

    flex-grow: 2;
    background-color: #660b7a;
    width: 20px;
    height: 20px;
    background-image: url("img/send.png");
    background-position: center;
    background-color: transparent;
    background-repeat: no-repeat;
    border: hidden;
    margin: 2px;
}
