@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  width: 100%;
  height: 100%;
  font-family: "Press Start 2P", cursive;
  text-transform: uppercase;
}
a {
  color: inherit;
  text-decoration: none;
}
#canvas {
  height: 100vh;
  width: 100vw;
  display: block;
  /* background: url("./img/bg.jpg"); */
  background: transparent;
  background-repeat: no-repeat;
  background-size: cover;
}
.bgvideo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}
video {
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: -1;
}
.homescreen {
  text-transform: uppercase;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  background: url("./img/bg.jpg");
  background-size: cover;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}
.homescreen .title {
  margin: 20px;
  font-size: 48px;
}
.homescreen .subtitle {
  margin: 20px;
  font-size: 36px;
}
.homescreen div:nth-child(3) {
  margin-bottom: 100px;
}
.homescreen .playbtn {
  text-transform: uppercase;
  cursor: pointer;
  padding: 20px;
  border: 2px solid #fff;
  text-align: center;
  display: inline;
  transition: all 0.1s ease;
}

.homescreen .playbtn:hover {
  padding: 25px;
}

.level {
  text-transform: uppercase;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  background: url("./img/bg.jpg");
  background-size: cover;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.level .levelbox {
  margin: 30px;
  padding: 20px 0px;
  width: 200px;
  text-align: center;
  border: 3px solid #fff;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
}
.level .levelbox:hover {
  transform: scale(1.1);
  color: #485b49;
  background-color: #fff;
}
.level .speed {
  margin-top: 100px;
  display: flex;
  flex-direction: row;
}
.username {
  color: #fff;
  font-size: 1.2rem;
  background: transparent;
  outline: none;
  padding: 20px 10px;
  width: 200px;
  border: 3px solid #fff;
  text-align: center;
}
.username:focus {
  background: rgba(255, 255, 255, 0.1);
}

.navbar {
  color: #fff;
  padding: 30px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}
.navbar .navbar-brand {
  display: inline-block;
}
.navbar .navbar-nav {
  float: right;
  display: flex;
}
.navbar .navbar-nav {
  float: right;
  display: flex;
}
.navbar .navbar-nav a {
  padding: 0px 20px;
}
.lost,
.instruction {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9999;
}
.instruction .card,
.lost .card {
  color: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 600px;
  padding: 50px;
  text-align: center;
}
.instruction .title,
.lost .title {
  font-size: 2.5rem;
}
.instruction .title,
.lost .subtitle {
  padding: 30px;
}
.instruction .option {
  padding: 10px 0px 50px 0px;
  font-size: 0.8rem;
}
.instruction .option img {
  vertical-align: middle;
}
.lost .playagainbtn {
  border-radius: 25px;
  color: #fff;
  cursor: pointer;
  padding: 20px;
  margin: 20px;
  display: inline-block;
  background-color: #485b49;
}

.lost .leaderboardbtn {
  border-radius: 25px;
  color: #fff;
  cursor: pointer;
  padding: 20px;
  margin: 20px;
  display: inline-block;

  border: 2px solid #485b49;
  color: #485b49;
}

.instruction .card {
  padding-top: 100px;
  width: 800px;
}
.instruction .card .close {
  position: absolute;
  top: 25px;
  right: 25px;
  cursor: pointer;
}
.leaderboard {
  text-transform: uppercase;
  color: #000;
  position: fixed;
  top: 20px;
  left: 0;
  background: url("./img/lbbg.webp");
  background-size: cover;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

.leaderboard .card {
  position: relative;
  width: 50%;
  margin-left: 100px;
  background-color: #fff;
  height: 80vh;
  overflow-y: scroll;
}
.leaderboard .title {
  padding: 20px;
  font-size: 1.5rem;
  background-color: #485b49;
  color: #fff;
}
.leaderboard .row {
  padding: 20px;
  display: flex;
  justify-content: space-evenly;
}
.leaderboard .row .name {
  width: 40%;
}
.leaderboard .row .score {
  width: 40%;
}
.leaderboard .row .score {
  width: 40%;
}
.leaderboard .row div {
  width: 40%;
}
.leaderboard .row:nth-child(2) {
  font-size: 1.2rem;
}
.userrank {
  background-color: #485b49;
  color: #fff;
}
