.minimap {
  width: 100%;
  height: 100%;

  border: 2px solid black;
  position: absolute;
  display: flex;

  z-index: 900;
  pointer-events: none;
  background: rgba(10, 10, 10, 0.7);
  border-radius: 0px;
}

body {
  margin: 0;
  overflow: hidden;
}

#minimapcanvas {
  width: 100%;
  height: calc(100vh - 40px);
  /* Adjust for top bar height */
  margin-top: 40px;
}

#top-bar {
  background-color: #090212;
  padding: 10px;
  display: flex;
  align-items: baseline;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  z-index: 1000;

  transition: height 1s ease;
}

#top-bar.leaderboard-enabled {
  height: 50px;
}

#top-bar p {
  display: inline-block;
  margin: 0;
}

#track-id-input {
  margin-right: 10px;
  width: 185px;
}

#ghost-count,
#speed-select {
  margin-right: 10px;
}

.leaderboard {
  z-index: 1000;
  padding: 0;
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;

  transition: opacity 0.3s ease-in-out;
  transition-delay: 0s;
}

.leaderboard.active {
  opacity: 1;

  transition: opacity 1s ease-in-out;
  transition-delay: 0.75s;
}

.name-box {
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  outline-style: solid;
  outline-width: 1.2px;

  margin: 0 2px;
  flex: 1;

  border-radius: 3px;
  outline-color: black;

  animation: none;

  transition: background-color 0.2s ease, flex 1s, margin 1s, outline-color 0.05s ease-out, animation 1s ease-in-out;
}

.name-box.active {
  flex-grow: 1.1;
  outline-color: white;
  animation: borderGlow 4s linear infinite;
}

.leaderboard p {
  display: inline-block;
  margin: 0;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  user-select: none;
}

#timer {
  color: white;
  font-size: 15px;
  font-family: 'monospace';
  width: 30px;
  user-select: text;
}