/* 定义字体 */
@font-face {
  font-family: 'FusionPixel';
  src: url('./fonts/fusion-pixel-10px-proportional-zh_hans.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal; 
}
body{
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    font-family: 'FusionPixel', Arial, Helvetica, sans-serif;
}
.container{
    width: 100%;
    height: 100%;
}
#gameCanvas {
    width: 100%;
    height: 100%;
    display: flex;
    margin: 0 auto;
    background-color: #000000;
    z-index: 1 ;
}

#fps {
    position: absolute;
    top: 50px;
    left: 10px;
    color: white;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
    display: none ;
    z-index: 5;
}

#dialog-box{
    position: absolute;
    width: 100%;
    height: auto;
    bottom: 0;
    left: 0;
    text-align: center;
    z-index: 5;
    display: none;
}

#dialogText{
    /* border:#b9b9b9 2px solid; */
    position: absolute;
    width: 26%;
    height: 75%;
    left: 28%;
    bottom: 15%;
    font-size: 20px;
    text-align: left;
}

#dialogName{
    /* border:#b9b9b9 2px solid; */
    position: absolute;
    width: 15%;
    height: 14%;
    left: 57%;
    bottom: 11%;
    font-size: 16px;
    text-align: center;
}


#dialog-bg{
    width: 50%;
    height: auto;
}

#dialogAvatar{
    position: absolute;
    width: 10dvw;
    height: 10dvw;
    left: 60%;
    bottom: 33%;
    /* border: #b9b9b9 2px solid; */
    background-image: url('./img/HaleyAvatar.png');
    background-size: cover;
}

#coords {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
    display: none ;
    z-index: 5;
}

.controls{
    display: flex;
    position: fixed;
    right: 0;
    top: 0;
    background-color: #b9b9b9;
    width: 14%;
    /* height: 40px; */
    padding: 10px;
    z-index: 5;
}

.key {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 0px;
    background-color: #999999;
    border-radius: 4px;
    border: 1px solid #323232;
}