@font-face {
  font-family: Silkscreen;
  src: url(./src/Silkscreen.ttf);
}
@font-face {
  font-family: Rajdhani;
  src: url(./src/Rajdhani.ttf);
}

:root {
  --col-bread1: #d39d82;
  --col-bread2: #fbe8b6;
}

body, main, canvas, .login {
  width: 100vw;
  height: 100vh;
  margin: 0;
}
canvas, .login {
  position: fixed;
  top: 0;
  left: 0;
}
.login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}
.login > * {
  text-align: center;
  width: 80%;
  margin: 0 auto;
}
.login h1 {
  font-family: Silkscreen;
  margin: 0 auto 70px;
}
.login h1 .bread {
  content: "";
  display: inline-block;
  height: 80%;
  aspect-ratio: 1;
  background-image: url(./src/bread.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 7px;
  vertical-align: -10%;
}
.login h3, .howtoplay {
  font-family: Rajdhani;
  letter-spacing: 2px;
}
.login input {
  font-size: 200%;
  border: none;
  outline: none;
  font-family: Rajdhani;
  background: none;
  border-bottom: 1px solid var(--col-bread1);
  color: var(--col-bread2);
}
.login button {
  border: none;
  background-image: linear-gradient(to right, var(--col-bread2), var(--col-bread1));
  font-size: 200%;
  width: fit-content;
  padding: 15px;
  margin: 10px auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .3s;
}
.login button:hover {
  transform: scale(1.1);
}
.login p.error {
  color: red;
  min-height: 18px;
  font-family: Rajdhani;
}

.lead {
  display: flex;
  background: #0005;
  border: 2px solid white;
  border-radius: 15px;
  width: 300px;
  color: white;
  flex-direction: column;
  z-index: 2;
  position: fixed;
  right: 20px;
  top: 20px;
}
.lead h1 {
  font-family: Silkscreen;
  margin: 0;
  text-align: center;
}
.lead div {
  display: flex;
  flex-direction: row;
  padding: 10px;
  font-family: Rajdhani;
}
.lead div lvl {
  width: 20%;
  text-align: left;
}
.lead div name {
  width: 80%;
  text-align: right;
}
.lead div.me {
  background: #ff05;
  border-radius: 10px;
  font-weight: bold;
}

canvas {
  background-image: radial-gradient(circle at center, #171717, #070707);
}