*{
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'MyCustomFont';
  src: url('../font/SmileySans-Oblique.ttf') format('truetype'), /* TTF 格式 */
       url('../font/SmileySans-Oblique.woff2') format('woff2'), /* WOFF2 格式 */
       url('../font/SmileySans-Oblique.otf') format('opentype'), /* OTF 格式 */
       url('../font/SmileySans-Oblique.otf.woff2') format('woff2'); /* OTF 格式的 WOFF2 */
}


body{
  background-color: black;
  color: azure;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items:center;
  font-family: 'MyCustomFont', sans-serif; /* 使用自定义字体 */

}

/*register*/
  /*配色方案：背景 rgb(224,207,254);rgb(255,239,255)
             按钮 rgb(181,154,254);rgb(245.189,253)*/

.container {
  position:relative;
  width:100vw;
  
}
.container img{
  width:100vw;
  height: 100vh;
}

.switch span{
  color:#ccc;
  font-size:4 rem;
  font-weight: bold;
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(to bottom, #898585, #333232);
  border: none;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;

  
}


.switch span.active{
  color:rgb(181,154,254)
}

.panel {
  width: 80%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.form{
  width:12 rem ;
  margin:2rem 0 0;
}

.form .input{
  position:relative;
  opacity:1;
  height: 2rem;
  width:100%;
  margin:2rem 0;
  transition:0.4s;

}

input:-webkit-autofill{
  -webkit-box-shadow: 0 0 0px 1000px rgb(0, 0,0) inset;
  -webkit-text-fill-color:white;
  -webkit-border-radius: 5px; /* 设置边框圆角 */
}

.input input{
  outline:none;
  width:100%;
  border:none;
  border-bottom: .1rem solid rgb(181,154,254);
  color:white;
  background:transparent !important ;
}


.input::after{
  content:attr(placeholder);
  position:absolute;
  left:0;
  top:-20%;
  font-size:1.3rem;
  color: rgb(181,154,254);
  transition:.3s;
  background:transparent;
}

.input.focus::after{

  top:-70%;
  font-size:1rem;
}



.login_switch .input#email,
.login_switch .input#repeat,
.login_switch #getCode
{
  margin:0;
  height:0;
  opacity:0;
}

.signup_swit .input#email,
.signup_swit .input#repeat,
.signup_swit #getCode,
.signup_swit #registerByCode
{
  margin:0;
  height:0;
  opacity:0;
}

.login_swit #registerRegular
{
  margin:0;
  height:0;
  opacity:0;
}

.form span{
  display:block;
  color:rgh(110,89,167);
  font-size:.8rem;
  cursor:pointer;

}



#register,
#registerByCode,
#registerRegular {
 border:none;
 outline:none;
 margin:2rem 0 0;
 width: 100%;
 height: 3.5rem;
 border-radius: 3rem;
 background: linear-gradient(30deg,rgb(181,154,254),rgb(245,189,253));
 box-shadow:0 0 8px rgb(181,154,254);
 cursor:pointer;
 color:white;
}

#getCode{
  border:none;
  outline:none;
  margin:2rem 0 0;
  width: 100%;
  height: 3.5rem;
  border-radius: 3rem;
  background: linear-gradient(30deg,rgb(172, 168, 168),rgb(74, 74, 74));
  box-shadow:0 0 8px rgb(98, 98, 98);
  cursor:pointer;
  color:white;
 }

/*other gamify*/

#map {
  touch-action: none;
}

 #game-container {

    font: caption;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    overflow-y: hidden;
  }
  #promptText{
    font-family: 'MyCustomFont';
    perspective: 500;
    -webkit-perspective: 500;
     scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE, Edge */
    z-index: 9999;
    color : #ffd54e;
    font-family :\534E\6587\7EC6\9ED1;
    font-size: 3.5rem; 
    overflow: scroll;
  }
  #rotateaaa{
    transform: rotateX(40deg) ;
    -webkit-transform: rotateX(40deg) ;
  }
  #promptText::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  
@keyframes scroll-up {
  0% {
    transform: translateY(0) 
  }
  100% {
    transform: translateY(-100%) 
  }
}


  #game-container > canvas {
    border-radius: 15px;
  }
