@import url('https://fonts.googleapis.com/css?family=Cinzel:400,700&display=swap');

body {
  margin: 0;
  background-image: url("../cyberworld.gif");
  max-height: inherit;
  max-width: inherit;
  font-family: 'phosphate';
}
.tom-runner {
  position: fixed;
  top: 15px;
  left: 32px;
  font-size: 50px;
  color: #40f2f5;
}
#player-name {
  position: fixed;
  top: 30px;
  left: 85%;
  color: white;
  font-size: 3vw;
  z-index: 999;
}

#player-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  left: 65px;
  top: 68px;
}

#time {
 color: white;
 font-size: 3vw;
 font-family: 'Cinzel', serif;
 font-weight: 700;
}

img {
  width: 40px;
  height: auto;
}

/* GAME CONTROLS */
.game-control-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 70%;
  left: 50%;
  font-family: 'Cinzel', serif;
  font-weight: 100;
  height: 200px;
  width: 350px;
  margin-left: -180px;
  z-index: 99999;
}

.game-control-bar > h1 {
  color: white;
  margin-top: 0;
}

.control-section {
  display: flex;
  flex-direction: row;
}

.control-section-col {
  display: flex;
  align-items: center;
  margin: 0 6px;
  padding: 8px 8px;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: rgb(253, 205, 255);
  width: 33%;
}

.control-section-col > img {
  margin-bottom: 12px;
}

#space-key {
  height: 20px;
  width: auto;
}
/* GAME CONTROLS */

/* MENU */

.login {
  overflow: hidden;
  position: fixed;
  top: 0;
  background-color: black;
  color: #40f2f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  height: 100vh;
  width: 100vw;

}

.login > h1 {
  font-size: 6vw;
  font-weight: lighter;
}

.login > h1:hover {
  cursor: pointer;
}

input {
  border: none;
  background: none;
  width: 30vw;
  color: white;
  font-size: 3vw;
  border-bottom: 1px solid white;
  font-family: 'phosphate';
}

input:focus{outline: 0;}


.menu, .endgame {
  overflow: hidden;
  position: fixed;
  top: 0;
  font-size: 3vw;
  background-color: black;
  color: #40f2f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 500;
  height: 100vh;
  width: 100vw;
}

.new-game-button, .leaderboard-button {
  border-radius: 30px;
  padding: 3vw;
  text-align: center;
  width: 35vw;
}

.new-game-button:hover, .leaderboard-button:hover {
  background-color: #262626;
  cursor: pointer;
}

ol.leaderboard {
  overflow: hidden;
  position: fixed;
  top: 0;
  background-color: black;
  font-family: 'phosphate';
  color: #40f2f5;
  display: flex;
  padding-left: 0px;
  flex-direction: column;
  align-items: center;
  z-index: 300;
  height: 100vh;
  width: 100vw;
  margin: 0;
  font-size: 2vw;
}

.leaderboard > h1 {
  margin: 0;
  font-size: 4vw
}

.leaderboard > li {
  color: white;
  font-family: 'Cinzel', serif;
  margin-bottom: 10px;
  width: fit-content;
}

/* MENU */

/* ================== Game Over ===================== */
div.endgame {
  height: 0%;
}

div.back {
  align-self: end;
  width: fit-content;
  height: 10vh;
  display: inline;
  color: white;
  margin-top: 1vh;
  margin-left: 2vh;
  font-size: 3vw;
  cursor: pointer;
}
.endgame > p {
  font-size: 15vh;
  margin-bottom: 5vh;
}

.endgame > h1 {
  cursor: pointer;
}

.play-again-button{
  padding: 2vw;
  color: white;
  border-radius: 30px;
}
.play-again-button:hover {
  background: #40f2f5;
  cursor: pointer;
}
