/* Author: Andreas Müller (2049182) */

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: black;
}

#canvas {
  width: 100%;
  height: 100%;
}

#timer>span {
  font-size: 30px;
  color: red;
}

#startUI, #endUI {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#innerStartUI {
  width: 50%;
  height: 25%;
  border-radius: 10px;
  text-align: center;
  color: yellow;
  font-size: 50px;
}

#gameOverUI {
  color: white;
  width: 50%;
  height: 80%;
  border: 1px solid black;
  border-radius: 10px;
  text-align: center;
}

#startBtn, #playAgainBtn {
  color: white;
  background-color: black;
  width: 80%;
  height: 40%;
  border: 1px solid black;
  border-radius: 10px;
  padding: 5px;
  margin: 10px;
  font-weight: bold;
  font-size: 40px;
}

#startBtn:hover, #playAgainBtn:hover {
  color: black;
  background-color: yellow;
}

#timer {
  position: fixed;
  color: white;
}

/* Form Elements*/

#form {
  margin: auto;
  width: 50%;
}

fieldset {
  border-radius: 5px;
  border-color: yellow;
}

input {
  width: 50%;
  color: black;
  margin: 4px 2px;
}

/* Table CSS */

#highscore {
  width: 80%;
  margin: auto;
}

table, th, td {
  border-collapse: collapse;
}

table {
  width: 80%;
  margin: auto;
  font-size: 20px;
}

th, td {
  padding: 5px;
  border: 1px solid grey;
  font-weight: bold;
}

th {
  height: 50px;
  background-color: yellowgreen;
  color: black;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
}

td:focus {
  font-weight: bold;
}

tr:hover {
  background-color: #e67e22;
}

#game_over {
  font-size: 50px;
  color: red;
  font-weight: bolder;
}

#time_ending {
  font-size: 20px;
  color: white;
}

#final_time {
  font-size: 30px;
  color: red;
}