@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Zen+Kurenaido&display=swap');

:root {
  touch-action: pan-x pan-y;/* ios anti zoom */
  --loading: white;
  --cho: #5e5f9d;
  --han: #4b7d49;
  --color1: #644627;
  --color2: #532b2b;
}
* {
  font-family: 'Zen Kurenaido', sans-serif;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

*:not(input):not(textarea){
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
}
body {
 background: black;
overflow: hidden;
background-color:black;
}
#allCanvas{
/*max-height: 740px;*/
width: 100%;
height: 100%;
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
}
canvas{
width: 100%;
}
.blackscreen{
width: 50%;
position: absolute;
height: 100%;
background: black;
transition: all 0.3s ease-out;
z-index: 1;
}
.blackscreenOpen{
width: 0%;
}
.blackscreenRight{
right: 0;
}
.blackscreenLeft{
left: 0;
}
.loading{
  z-index: 2;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:150px;
  height:150px;
  background:transparent;
  border:3px solid var(--loading);
  border-radius:50%;
  text-align:center;
  line-height:150px;
  font-family:sans-serif;
  font-size:14px;
  color:var(--loading);
  letter-spacing:4px;
  text-transform:uppercase;
  text-shadow:0 0 10px var(--loading);
  box-shadow:0 0 20px rgba(0,0,0,.5);
}
.loading:before
{
  content:'';
  position:absolute;
  top:-3px;
  left:-3px;
  width:100%;
  height:100%;
  border:3px solid transparent;
  border-top:3px solid var(--loading);
  border-right:3px solid var(--loading);
  border-radius:50%;
  animation:animateC 2s linear infinite;
}
.loading span
{
  display:block;
  position:absolute;
  top:calc(50% - 2px);
  left:50%;
  width:50%;
  height:4px;
  background:transparent;
  transform-origin:left;
  animation:animate 2s linear infinite;
}
.loading span:before
{
  content:'';
  position:absolute;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--loading);
  top:-6px;
  right:-8px;
  box-shadow:0 0 20px var(--loading);
}
.loadingEnd{
display:none;
}
.main{
overflow: hidden;
width: 100%;
position: absolute;
height: 100%;
} 

button {
  align-self: center;
  background-color: #efefef;
  border: none;
  color: #333;
  font-size: 1.25rem;
  font-weight: 700;
  justify-self: center;
  padding: 0.5rem 1rem;
}
button:hover {
  cursor: pointer;
}

@media (min-width: 900px) {
  .dice {
    perspective: 1300px;
  }
}

/* login page */
.houseOuside{
position: absolute;
z-index: 0;
height: 100vh;
height: 100svh;
overflow: hidden;
background-repeat: no-repeat;
width: 100%;
background-position: center;
background-size: cover;
}
.loginBox{
width: min-content;
box-shadow: 0 1px 8px rgb(0 0 0);
padding: 15px;
background-color: var(--color1);
margin: auto;
border-radius: 0 0 10px 10px;
position: relative;
color: black;
max-width: 300px;
}
.loginBox input{
width: 200px;
margin: 10px;
line-height: 35px;
text-align: center;
font-size: 16px;
border: 0;
border-radius: 5px;
}
.loginBox button{
box-shadow: 0 1px 5px rgb(0 0 0);
margin: auto;
display: block;
width: 75px;
height: 35px;
font-size: 15px;
padding: 0;
border: 0;
border-radius: 5px;
background: aliceblue;
cursor: pointer;
}
.guardian{
width: 100%;
height: 90%;
background-repeat: no-repeat;
position: absolute;
bottom: 0;
background-size: contain;
display: none;
background-position: bottom right;
z-index:-2;
}
@media (max-width: 1000px)  {
	.guardian{
	bottom:-100px;
	}
}
@media (max-width: 400px) and (min-height: 750px) {
	.guardian{
	bottom:0;
	}
}
.bulle{
width: 100%;
height: 200px;
position: absolute;
text-align: center;
bottom: 0;
background: #0000006b;
z-index: -1;
}
#msg{
font-size: 50px;
color: white;
line-height: 200px;
text-align: center;
text-shadow: 2px 0 0 #000, 0 3px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
letter-spacing: 10px;
}
@media (max-width: 400px) {
	#msg{
	font-size: 33px;
	letter-spacing: 5px;
	}
}

/*animation*/
@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}
@keyframes animateC
{
  0%
  {
    transform:rotate(0deg);
  }
  100%
  {
    transform:rotate(360deg);
  }
}
@keyframes animate
{
  0%
  {
    transform:rotate(45deg);
  }
  100%
  {
    transform:rotate(405deg);
  }
}
