body {
  overflow: hidden;
  overscroll-behavior-y: none; /* disable pull to refresh */
  background-color: black;
  background-image: url("background.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
  font-size: 175%;
  font-family: "Roboto Mono";
  color: white;
}

/* hide the element used to preload the fonts */
#preloadfont {
  opacity: 0;
  height: 0;
  width: 0;
  display: inline-block;
  position: absolute;
}

#canvas {
  position: absolute;
  z-index: -1;
}

#container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

#details {
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

#name-flex-container {
  display: flex;
  justify-content: center;
}

#input-name-label {
  padding-right: 20px;
  font-size: 100%;
}

#input-name {
  width: 100%;
  max-width: 400px;
  padding: 2px;
  background-color: rgba(0, 0, 0, 0);
  border: 1px solid rgb(255, 255, 255);
  border-radius: 2px;
  color: white;
  font-size: 90%;
}

#scoreboard {
  width: 100%;
  max-width: 600px;
  min-height: 100px;
  margin: 20px auto 0px auto;
  box-sizing: border-box;
  border-radius: 2px;
  font-size: 80%;
}

.scoreboard-title {
  font-weight: bold;
  padding-left: 20px;
}

.scoreboard-line {
  overflow: hidden;
  display: flex;
}

.scoreboard-name {
  width: 75%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

.scoreboard-score {
  width: 25%;
  text-align: right;
}

#rules {
  width: 100%;
  max-width: 600px;
  min-height: 100px;
  margin: 20px auto 0px auto;
  box-sizing: border-box;
  border-radius: 2px;
  font-size: 60%;
}

.rules-title {
  font-weight: bold;
  padding-left: 20px;
}

.unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
