@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital@1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Dots&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    width: 100%;
    height: 100vh;
    background: linear-gradient(120deg, #e0393e, #ffffff);
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
body .head{
    position: relative;
    top: 0px;
    width: 300px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;

}
body .head figure> img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px;
    margin-top: 10px;
    border: 2px solid gray;
}
body .head h1{
    font-size: 10px;
    margin-left: 10px;
    margin-top: 10px;
    color: white;
    font-family: 'Ubuntu Mono', monospace;
}
body #showmsg{
    width: 300px;
    height: 460px;
    background: rgba(0,0,0,0.4);
    overflow-y: auto;
    overflow-x: hidden;
    white-space: wrap;
    padding-left: 10px;
    
}
body #showmsg > .left{
    display: flex;
    align-items: center;
    position: relative;
    width: 200px;
    margin-top: 10px;
    margin-bottom: 10px;
}
body #showmsg > .left img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 15px;
    margin-top: 15px;
    border: 2px solid gray;
}
body #showmsg > .left > p{
    width: 200px;
    position: relative;
    color: #ffffff80;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    border-bottom-left-radius: 0px;
    top: 5px;
    left: 10px;
}
/*body #showmsg > .left > p::before{
    content: "";
    /*width: 20px;
    height: 20px;*/
    /*background: linear-gradient(120deg, #4cc2c4, #f54785);*/
  /*  position: absolute;
    top: 28px;
    left: 0px;
    border-top: 6px solid rgba(0, 0, 0, 0.5);
    border-right: 7px solid transparent;

}*/

body #showmsg > .right{
    display: flex;
    align-items: center;
    position: relative;
    left: 85px;
    /*top: 85%; */
    width: 200px;
    margin-top: 10px;
    margin-bottom: 10px;
    
}
body #showmsg > .right img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 10px;
    margin-top: 10px;
    border: 2px solid gray;
}
body #showmsg > .right > p{
    color: white;
    padding-top: 5px;
    padding-left: 10px;
    position: relative;
    background: linear-gradient(120deg, #4cc2c4, #f54785);
    left: 10px;
    width: 150px;
    border-radius: 10px;
    border-bottom-right-radius: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
}
/*body #showmsg > .right > p::before{
    content: "";
    /*width: 20px;
    height: 20px;*/
   /* background: linear-gradient(120deg, #4cc2c4, #f54785);
    position: absolute;
    top: 22px;
    left: 143px;
    border-top: 6px solid #f54785;
    border-left: 7px solid transparent;

}*/
body #showmsg > .right > p .delBtn{
    position: relative;
    background: linear-gradient(120deg, #0b648f, #e21737);
    color: white;
    width: 50px;
    top: -3px;
    left: 10px;
    border-radius: 10px;
    border: none;
}
body #showmsg .timeParaLeft{
    font-size: 10px;
    position: relative;
    left: 20px;
    
}
body #showmsg .timeParaRight{
    font-size: 10px;
    position: relative;
    left: 105px;
    
}
body  #msg{
    position: relative;
    top: 0px;
    width: 300px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding-left: 8px;
    padding-top: 12px;
    padding-right: 87px;
    color: white;
    border: none;
    outline: none;
    resize: none;
}
body #btn{
    position: relative;
    top: -35px;
    left: 6%;
    width: 70px;
    height: 30px;
    border-radius: 50px;
    border: none;
    outline: none;
    background: linear-gradient(120deg, #a82400, #ffffff);
    color: white;
}
body #showmsg p{
    color: white;
}

/* width */
::-webkit-scrollbar {
    width: 5px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
    border-radius: 10px;
  }
  ::-webkit-scrollbar-track-piece{
    border-radius: 10px;
    box-shadow: inset 0 0 5px gray;
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, #e0393e, #ffffff); 
    border-radius: 10px;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #b30000; 
  }
  ::-webkit-scrollbar {
    display: none;
}

/* make user login interface*/

body .login_page{
    position: absolute;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}
body .login_page .card{
    width: 400px;
    height: 400px;
    background: linear-gradient(120deg, #ff4000, #ffffff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    box-shadow: 2px 2px 50px 3px #ffffff,
                -4px -4px 50px 3px #ff4000;
}
body .login_page .card label{
    font-family: 'Dancing Script', cursive;
    font-size: 25px;
    margin-bottom: 20px;
    color: #ffffff;
    
}
body .login_page .card #user_input{
    width: 200px;
    height: 30px;
    border: none;
    outline: none;
    border-radius: 20px;
    text-align: center;
    font-family: 'Zen Dots', cursive;
    color: #ff4000;
    transition: all 0.2s;
}
body .login_page .card #user_input:focus{
    box-shadow: 2px 2px 15px -3px rgba(0,0,0,0.5),
                -3px -3px 15px -3px rgba(0,0,0,0.5);
}
body .login_page .card .checking_btn{
    width: 70px;
    height: 30px;
    margin-top: 20px;
    font-family: 'Zen Dots', cursive;
    background: white;
    border: 2px solid dodgerblue;
    color: dodgerblue;
    transition: all 0.6s;
}
body .login_page .card .checking_btn:hover{
    color: white;
    background: dodgerblue;
}








/* for responsive*/


@media (max-width: 1400px) {
    body  #msg{
        padding-right: 90px;

    }
    body #btn{
        left: 8%;
    }
}


@media (max-width: 1200px) {
    body  #msg{
        padding-right: 100px;

    }
    body #btn{
        left: 8%;
    }
}


@media (max-width: 1000px) {
    body #btn{
        left: 10%;
    }

}
@media (max-width: 400px) {
    body  #msg{
        padding-right: 90px;

    }
    body #btn{
        left: 25%;
    }
}
