@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap');
body{
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    background:#F6F6F6;
    height: 100vh;
    overflow: hidden;
}
/*=====index, forget password, register===== */
.form-box{
    position: absolute;
    width: 350px;
    left: 50%; 
    top: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    box-shadow: 0px 20px 20px rgba(126, 152, 223, 0.05);
    border-radius: 30px;
    padding: 20px 10px;
}
.form-fg-box{
    height: 450px;
}
/* button < */
.back-page{
    margin-bottom: 10px;
}
.back-page img{
    position: relative;
    width: 10px;
    height: 20px;
    left: 30px;
    top: 15px;
    color: #7E98DF;
}
/* Header Login, Register, Forget Password (title) */
.back-page h3{
    font-weight: 500;
    font-size: 20px;
    color: #7E98DF;
    text-align: center;
    margin-top: -10px;
}
.form-box h3{
    font-weight: 500;
    font-size: 22px;
    text-align: center;
    color: #7E98DF;
}
.form-box p{
    font-size: 14px;
    color: #232323;
    padding-left: 25px;
    margin-top: 15px;
}
/* form input */
.form-login .form-login-group, 
.form-register .form-register-group, 
.form-forgot-password .form-fg-group{
    position: relative;
    border-bottom: 1px solid #232323;
    margin: 30px 25px;
}
.form-login-group input, 
.form-register-group input,
.form-fg-group input{
    width: 100%;
    height: 40px;
    font-size: 14px;
    font-weight: bold;
    color: #232323;
    border: none;
    background: none;
    outline: none;
}
.form-login-group label, 
.form-register-group label,
.form-fg-group label{
    position: absolute;
    top: 50%;
    left: 0;
    font-size: 14px;
    color: #848484;
    opacity: 0.75;
    transform: translateY(-50%);
    pointer-events: none;
    transition: .5s;
}
.form-login-group input:focus ~ label,
.form-login-group input:valid ~ label,
.form-register-group input:focus ~ label,
.form-register-group input:valid ~ label,
.form-fg-group input:focus ~ label,
.form-fg-group input:valid ~ label{
    top: -5px;
}
#password-login, #password-register{
    letter-spacing: 10px;
}
.form-login-group img, 
.form-register-group img,
.form-fg-group img{
    position: absolute;
    right: 0;
    top: 20px;
    color: #232323;
    width: 17px;
    height: 17px;
}
/* forget password? text */
.forget-password{
    text-align: right;
    font-size: 15px;
    margin: -5px 30px;
    cursor: pointer;
}
.forget-password a{
    text-decoration: none;
    color: #7E98DF;
}
.forget-password a:visited{
    color: #7E98DF;
}
/* button submit */
#submit-login, #submit-register, #submit-email{
    background: #7E98DF;
    border-color: transparent;
    border-radius: 70px;
    margin: 30px 26px;
    width: 85%;
    font-size: 14px;
    color: #FFFFFF;
    padding: 12px;
    outline: none;
}
#submit-email, #submit-register{
    margin-top: 0px;
}
/* login with (line) */
.form-box h4{
    text-align: center;
    color: #848484;
    margin-top: -5px;
    font-weight: normal;
    font-size: 13px;
}
.form-box h4::before{
    content: '';
    height: 1px;
    width: 90px;
    background-color: #848484;
    position: absolute;
    margin-top: 6px;
    left: 30px;
    z-index: -3;
}
.form-box h4::after{
    content: '';
    height: 1px;
    width: 90px;
    background-color: #848484;
    position: absolute;
    margin-top: 6px;
    right: 30px;
    z-index: -2;
}
.form-box h4 span{
    background: #FFFFFF;
    padding: 0 20px;
}
/* google login/register button */
#google-login, #google-register{
    background: #FFFFFF;
    border: 1px solid #7E98DF;
    box-sizing: border-box;
    border-radius: 70px;
    margin: 20px 26px;
    padding: 12px;
    width: 85%;
    font-size: 14px;
    color: #7E98DF;
    outline: none;
}
#google-login img, #google-register img{
    margin-top: -2px;
    width: 21px;
    height: 21px;
    padding-right: 0.5rem;
}
#google-register{
    margin-bottom: 30px;
}
/* signup link in login page*/
.signup-link{
    margin-bottom: 30px;
    color: #313131;
    font-size: 14px;
    text-align: center;
}
.signup-link a{
    text-decoration: none;
}
.signup-link a:visited{
    color: #7E98DF;
}

@media only screen and (max-width: 400px) {
    .form-box{
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        padding-top: 70px;
        border-radius: 0px;
    }
}

/*=========chat list, call history, message========== */
/* button < and h3 (call history) */
.back-page-chat{
    margin-top: 10px;
}
.back-page-chat h3{
    padding-top: 2px;
}
/* background color for left column (col-md-4) */
.bg-color{
    background: #fff;
}
/* top nav (title-Telegram) & plus-search icon */
.first-nav-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.first-nav-wrapper .nav-sm-device{
    margin-top: -5px;
    margin-right: 30px;
    display: none;
}
.first-nav-wrapper .nav-sm-device img{
    width: 20px;
    height: 18px;
}
.first-nav-wrapper .nav-sm-device .fa-plus{
    margin-right: 8px;
}
/* top nav (title-Telegram & menu-icon) */
.main-menu{
    color: #7E98DF;
    padding: 15px 15px;
    position: relative;
}
.main-menu h5{
    padding-top: 5px;
}
.main-menu .menu img{
    margin-top: -28px;
    width: 20px;
    height: 15px;
    float: right;
    cursor: pointer;
}
/* menu list for > 425px (width-device)*/
.action .menu-list{
    position: absolute;
    right: 0;
    background: #7E98DF;
    border-radius: 35px 10px 35px 35px;
    z-index: 9;
    color: #fff;
    width: 200px;
    padding: 10px 5px;
    transition: 0.8s;
    margin-right: 15px;
    margin-top: -7px;
    visibility: hidden;
    opacity: 0;
}
.action .menu-list.active{
    visibility: visible;
    opacity: 1;
}
.action .menu-list ul li{
    margin-top: 14px;
    list-style: none;
}
.action .menu-list ul li img{
    width: 20px;
    height: 15px;
    margin-right: 15px;
    cursor: pointer;
}
.action .menu-list ul li a{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: 0.5s;
}
/* show menu list for < 426px (width-device)*/
.action .menu-list-sm{
    position: absolute;
    right: 0;
    background: #FFF;
    box-shadow: 0px 4px 50px rgba(0, 0, 0, 0.03);
    border-radius: 35px 0px 0px 35px;
    z-index: 9;
    color: #7E98DF;
    width: 250px;
    height: 100vh;
    padding: 20px 30px;
    margin-top: -50px;
    visibility: hidden;
    opacity: 0;
}
.action .menu-list-sm .back img{
    cursor: pointer;
    width: 19px;
    height: 19px;
}
.action .menu-list-sm .top-menu .right{
    float: right;
    width: 20px;
    height: 20px;
    margin-top: -25px;
}
/* menu list sm device - for photo profile account & name */
.action .menu-list-sm .middle-menu{
    display: flex;
    margin: 30px auto;
}
.action .menu-list-sm .middle-menu img{
    width: 65px;
    height: 65px;
    margin-right: 10px;
}
/* menu list sm device - for bottom part (contacts, calls,..) */
.action .menu-list-sm ul li{
    margin-top: 14px;
    margin-left: -25px;
    list-style: none;
    display: flex;
}
.action .menu-list-sm ul li img{
    width: 17px;
    height: 17px;
    margin-right: 25px;
    margin-top: 1px;
    opacity: 0.9;
    cursor: pointer;
}
.action .menu-list-sm ul li .call-sm{
    width: 20px;
    height: 20px;
    margin-right: 22px;
}
.action .menu-list-sm ul li a{
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
}
/* search and create*/
.search-and-create{
    display: flex;
    margin-left: 15px;
    position: relative;
}
.search-box{
    background:#FAFAFA;
    color: #848484;
    border-radius: 15px;
}
.search-box img{
    width: 28px;
    height: 28px;
    padding-left: 12px;
}
.search-and-create .search-box .input-wrapper input{
    background:#FAFAFA;
    outline: none;
    border: none;
    font-size: 14px;
    margin-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 15px;
    width: 16vw;
}
.search-and-create .create{
    width: 20px;
    height: 18px;
    align-self: center;
    position: absolute;
    right: 0;
    margin-right: 15px;
}
/* chat selection - all, important, unread, read */
.chat-selection{
    margin: 15px 20px;
    max-height: 120px;
    display: flex;
    overflow-x: scroll;
    margin-bottom: 0px;
}
.chat-selection::-webkit-scrollbar{
    width: 0;
}
.chat-selection .item{
    min-width: 90px;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    margin-right: 5px;
}
.chat-selection .active{
    background-color: #7E98DF;
    color: #fff;
}
/* chat list */
.chat-list{
    display: flex;
    margin-left: 20px;
    margin-right: 10px;
    cursor: default;
}
.chat-list a img{
    cursor: default;
}
.chat-list img, .call-list img{
    width: 55px;
    height: 55px;
}
.chat-list .text{
    margin-top: 5px;
    margin-left: 12px;
    width: 70%;
}
.chat-list .text img{
    margin-top: -3px;
    width: 20px;
    height: 14px;
}
.chat-list .text p{
    color: #7E98DF;
    font-size: 13px;
    margin-top: -5px;
}
.chat-list-right{
    display: flex;
    flex-direction: column;
}
.chat-list-right img{
    width: 22px;
    height: 22px;
}
.chat-list .time{
    color: #848484;
    font-size: 14px;
}
.chat-list .badge.round{
    background: #7E98DF;
    font-weight: 500;
    margin-top: 5px;
    border-radius: 50px;
    width: 23px;
}
.chat-list .badge{
    background: #7E98DF;
    font-weight: 500;
    margin-top: 5px;
}
/* call history list */
.call-list{
    display: flex;
    margin: 7px 20px;
}
.call-list .text{
    margin-top: 5px;
    margin-left: 12px;
}
.call-list .text h4{
    font-size: 16px;
}
.call-list .text img{
    width: 13px;
    height: 13px;
    margin-top: -5px;
}
.call-list .text p{
    font-size: 13px;
    margin-top: -5px;
}
.call-list .text .calling-replied{
    color: #1EB025;
    font-weight: 500;
}
.call-list .text .get-call-replied{
    color: #848484;
    font-weight: 500;
}
.call-list .text .get-call-rejected{
    color: #FF5555;
    font-weight: 500;
}
/* message box (center)*/
.message-box{
    color: #848484;
    background: #FAFAFA;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
/* message-box top wrapper (header) */
.message-box .top-wrapper{
    align-self: flex-start;
    position: absolute;
    left: 0px;
    display: flex;
    width: 100%;
    height: 60px;
    padding-left: 40px;
    padding-top: 10px;
    background: #fff;
}
.message-box .top-wrapper img{
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
.message-box .top-wrapper .text{
    font-size: 12px;
    color: #232323;
}
.message-box .top-wrapper .text p{
    margin-top: -5px;
    color: #7E98DF;
}
/* message-box section */
.message-box .message{
    position: absolute;
    left: 0px;
    width: 100%;
    padding-left: 80px;
    padding-right: 80px;
    margin-top: 30px;
}
.message-box .message .profile-image{
    width: 36px;
    height: 36px;
    margin-right: 10px;
    margin-left: 10px;
}
.message-box .message .single-message-left{
    position: relative;
    display: flex;
    align-items: flex-end;
    font-size: 13px;
    font-weight: 400;
    margin-left: -50px;
    margin-bottom: 5px;
}
.message-box .message .single-message-left .sender-content{
    background: #7E98DF;
    border-radius: 35px 35px 35px 10px;
    color: white;
    padding-left: 15px;
    padding-right: 10px;
    padding-top: 15px;
}
.message-box .message .single-message-left .sender-content-image img{
    width: 50%;
    height: 10%;
    margin-left: 0px;
}
.message-box .message .single-message-right{
    position: relative;
    display: flex;
    align-items: flex-end;
    font-size: 13px;
    font-weight: 400;
    float: right;
    margin-right: -50px;
}
.message-box .message .single-message-right .user-content{
    background: #fff;
    border-radius: 35px 10px 35px 35px;
    color: #232323;
    padding-left: 15px;
    padding-right: 10px;
    padding-top: 15px;
}
/* message box bottom wrapper (footer) */
.message-box .bottom-wrapper{
    position: absolute;
    color: #848484;
    background: #fff;
    bottom: 0px;
    width: 100%;
    height: 60px;
}
.message-box .bottom-wrapper .input-wrapper{
    background:#FAFAFA; 
    margin: 10px 20px; 
    padding-left: 20px;
    border-radius: 15px;
    width: 90%;
    height: 35px;
}
.message-box .bottom-wrapper .input-wrapper input{
    background:#FAFAFA; 
    font-size: 14px;
    margin: 5px 10px; 
    padding-left: 10px;
    width: 70%;
    outline: none;
    border: none;
}
.input-message-box .input-wrapper-right{
    float: right;
    margin-top: 3px;
    margin-right: 10px;
}
.input-message-box img{
    margin-right: 5px;
    width: 17px;
    height: 17px;
}
@media only screen and (max-width: 760px) and (min-width:426px){
    .search-and-create .search-box .input-wrapper input{
        width: 55vw;
    }
    .message-box{
        display: none;
    }
}
@media only screen and (max-width:425px){
    .bg-color{
        height: 100vh;
    }
    .first-nav-wrapper .nav-sm-device{
        display: block;
    }
    .action .menu-list-sm.active-sm{
        visibility: visible;
        opacity: 1;
    }
    .action .menu-list.active{
        visibility: hidden;
        opacity: 0;
    }
    .message-box{
        background: #fff;
    }
    .search-and-create, .list-md, .message-box .message .profile-image{
        display: none;
    }
    .message-box .message .single-message-right .user-content{
        background: #F6F6F6;
    }
    .message-box .bottom-wrapper .input-wrapper input{
        width: 55%;
    }
}

