#main{
    width:100vw;
    height:100vh;
    
}
.main-menu{
    width:100%;
    height:100%;
    background-image: url("/static/image/main/background.png");
    background-size: 100% 100%;
}

.main-menu-setting{
    background-color:rgba(130, 130, 130, 0.453);
    width:20vw;
    /*height: 35vh;*/
    user-select: none;

    position: relative;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);

}

.main-menu-setting-login{
    text-align: center;
    padding: 10%;
}

.main-menu-setting-register{
    text-align: center;
    padding: 10%;
}

.main-menu-setting-title{
    color:white;
    font-size:3vh;
}

.main-menu-setting-item
{
    padding-top:2vh;
}
.main-menu-setting-item>input{
    
    width:15vw;
    height:3vh;
}
.main-menu-setting-login-button{
    padding-top: 3vh;
}
.main-menu-setting-login-button>button{
    width:15vw;
    height:4vh;
    font-size:2vh;
}

.main-menu-setting-login-error-message{
    color:red;
    text-align: left;
}

.main-menu-setting-login-register{
    padding-top:2vh;
    color:white;
    font-size: 2vh;
    text-align: right;
    cursor:pointer;
}
.main-menu-setting-register-error-message{
    color:red;
    text-align: left;
}
.main-menu-setting-register-button{
    padding-top:3vh ;
}
.main-menu-setting-register-button>button{
    width: 15vw;
    height: 4vh;
    font-size: 2vh;
}
.main-menu-setting-register-login{
    padding-top:2vh;
    color:white;
    font-size: 2vh;
    text-align: right;
    cursor:pointer;
}

.main-menu-setting-register-photo{
    padding-top: 2vh;
    font-size: 2vh;
    color:white;
    text-align: left;
}

.main-menu-setting-register-photo >input{
    display: none;
}


#canvas{
    position: absolute;
    left:0px;
    top:0px;
    width:100%;
    height:100%
}


#lobby-ui-head-photo{
    width: 5vh;
    height: 5vh;
}

.lobby-ui{
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;


    height: 6vh;
    width: 100%;
    background-color: rgb(45, 44, 44);
}

#lobby-ui-head-photo{
    display: inline-flex;

    position: relative;
    right:12%;
    border-radius: 50%; /* 设为正圆 */

    user-select: none;/*不能被用户选择*/
}

.lobby-chat-choose-friend{
    background-color: aliceblue;
    width:15%;
    height: 80%;
    
    box-shadow: 5px 5px 5px rgba(69, 69, 69, 0.3);
    position: absolute;/*绝对位置*/
    left:10%;
    top:12%;

    border-radius: 8px 8px;
}

.lobby-chat-choose-friend-title > div{
    
    display: inline-flex;/*同行flex布局*/
    width: 50%;
    height: 5vh;

    font-size: 2vh;

    justify-content: center;/*文字居中*/
    align-items: center;/*文字垂直居中*/

    user-select: none;
    cursor: pointer;
}

.lobby-chat-choose-friend-title-friend{
    border-top-left-radius: 8px;
}
.lobby-chat-choose-friend-title-group{
    border-top-right-radius: 8px;
}

.lobby-chat-choose-friend-title>div:hover{
    background-color: #dbdbdb;
}


.lobby-chat-choose-friend-title{
    border-bottom:1px solid #000;
}

.lobby-chat-choose-friend-tool-ui-add-friend{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 1%;
}


.lobby-chat-choose-friend-tool-ui-add-friend>p{
     
    background-color: rgb(144, 144, 144);
    cursor: pointer;
}

.lobby-chat-choose-friend-tool-ui-add-friend>input{

    width: 45%;
    height:15%;
    margin-right: 2%;
}


.lobby-chat-choose-friend-friend-list{
    height: 80%;
}
.lobby-chat-choose-friend-friend-list>ul{
    height: 100%;
    list-style-type: none;/*清除列表前面的那个点*/
    padding: 0; /* 可选：重置内边距 */
    margin: 0; /* 可选：重置外边距 */
    overflow: auto;

}

.lobby-chat-choose-item{
    display:inline-flex;
}

.lobby-chat-choose-item:hover{
    background-color: #dedede;
}

.lobby-chat-choose-item>img{

    width: 20%;
    aspect-ratio: 1/1;
    
    position: relative;
    margin-left: 5%;/*用margin调边距*/
    margin-top: 5%;
    
    border-radius: 50%; /* 设为正圆 */

    user-select: none;/*不能被用户选择*/
}

.lobby-chat-choose-item>div{
    
    background-color: red;
    border-radius: 50%;
    
    aspect-ratio: 1/1;
    height: 5%;
    width:5%;  
    margin-top: 1%;


    
    
}

.lobby-chat-choose-item>p{

    display: flex;
    margin-top: 0;

    align-items: center;
    user-select: none;
}


.lobby-chat-main{
    background-color: aliceblue;

    width:60%;
    height:80%;
    position: absolute;
    left: 30%;
    top: 12%;
    border-radius: 8px 8px;

    box-shadow: 5px 5px 5px rgba(69, 69, 69, 0.3);
}

.lobby-chat-main-title{
    display: flex;
    height: 5vh;
    user-select: none;
    border-bottom:1px solid #000;

}

.lobby-chat-main-title>p{
    margin: 0;
    position: relative;
    left:5%;
    top:20%;
    font-weight: bold;
    font-size: 2vh;
}

.lobby-chat-choose-friend-title-active{
    background-color: #dbdbdb;
}

.lobby-chat-main-no-choose{
    position: relative;
    width:25%;
    left: 40%;
    top: 45%;
    color: rgb(182, 182, 182);
}

.lobby-chat-main-had-choose{
    height: 100%;
}
.lobby-chat-main-message{
    width:100%;
    height:70%;
}

.lobby-chat-main-chat{
    width:100%;
    height:24%;
    border-top:solid 1px;
    border-bottom-left-radius: 8px ;
    border-bottom-right-radius: 8px;
}

.lobby-chat-main-chat >textarea{
    position:relative;
    left:2%;
    top:5%;
    width: 95%;
    height: 62%;
    
    font-size: 2.5vh;
    font-family: "黑体";

    resize: none;
    outline: none;
    border:none;
    background-color: #ff000000;
}

.lobby-chat-main-chat>button{
    display: block;
    width:10%;
    height: 18%;
    position: relative;
    left:87%;
    top:5%;

    text-align: center;
    line-height: 15%;

    border-radius: 6px;
    border: solid 0px;
    background-color:rgb(4, 255, 0);
    color: #ffffff;
}

.lobby-chat-main-chat>button:hover{
    background-color: rgb(4, 240, 0);
}

.lobby-chat-main-chat>textarea::-webkit-scrollbar{
    display:none;
}


.lobby-chat-choose-item-active{
    background-color: #dedede;
}

.lobby-chat-main-message-to-friend{
    display:inline-flex;
    width:100%;
    height:20%;
    justify-content: flex-end;
    align-items: center;
    
}

.lobby-chat-main-message-to-friend>p{
    width:auto;
    padding: 2%;
    text-align: right;
    background-color: greenyellow;
    display:flex;
    margin-right: 1%;
    align-items: center;
    border-radius:8px ;
}

.lobby-chat-main-message-to-friend>img{
    aspect-ratio: 1/1;
    width: 8%;
    height: auto;
    
    border-radius: 50%;
    user-select: none;
    margin-right: 1%;
}


.lobby-chat-main-message-to-self{
    display:inline-flex;
    width:100%;
    height:20%;
    justify-content: flex-start;
    align-items: center;
}

.lobby-chat-main-message-to-self>p{
    width:auto;
    padding: 2%;
    text-align: left;
    background-color:rgb(222, 222, 222);
    display:flex;
    margin-left: 1%;
    align-items: center;
    border-radius:8px ;
}

.lobby-chat-main-message-to-self>img{
    aspect-ratio: 1/1;
    width: 8%;
    height: auto;
    
    border-radius: 50%;
    user-select: none;
    margin-left: 1%;
}

.lobby-chat-main-message-screen{
    width:100%;
    height: 100%;
    overflow: auto;
}

.lobby-ui-logout{
    display: inline-flex;
    position: relative;
    right:7%;
    width:4%;
    height: 85%;
    background-color: #224e00;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.lobby-ui-logout:hover{
    background-color: #1b3d00;
}

.lobby-ui-logout>p{

    
    color:#ffffff;
    user-select: none;
    cursor: pointer;
    
}

.lobby-chat-choose-item-img-grey{
    filter:grayscale(1);
}

