html, .mobileApp {
  background: #371b52;
  /* Stop scrolling issue on short monitors */
  overflow-y: hidden;
}
body {
  color: #fff;
  font-family: montserrat, helvetica, arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1#title {
  font-weight: normal;
  font-size: 24px;
  padding: 1rem;
  margin-bottom: 4em;
}

button {
  touch-action: manipulation;
}

a,
a:link,
a:hover,
a:active,
a:visited {
  color: #11c5bf;
  text-decoration: underline;
}
a:link {
  text-decoration: none;
}

button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
button:focus {
  outline: none;
}

button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-family: montserrat, helvetica, arial, sans-serif;

  padding: 0.5rem 1rem;
  cursor: pointer;
}
button:hover {
  background: #fff;
  color: #371b52;
}
button:focus {
  outline: 0;
}
.undoButton {
  margin-bottom: 1rem;
}

.app {
  margin: 8px;
}

.instructions {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
}
.appContainer {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
}
.scoreWrapper {
  flex: 0 1 auto;
  order: 2;
  margin-left: 1rem;
}
.scoreboardText {
  min-width: 10rem;
}

.mobileScoreBar {
  display: flex;
  width: 110px;
  min-width: 110px;
  max-width: 130px;
  padding-bottom: 0px;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  padding-bottom: 10px;
}

.mobileScoreBar h1 {
  margin: 0;
  padding: 0;
  color: #FFF;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.controlButtons {
  order: 3;
  display: flex;
  padding: 20px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.controlButtons button {
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  align-items: center;
  text-align: center;
  display: flex;
  justify-content: center;
}

.movementControlButtons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.movementControlButtons button {
  width: 48px;
  height: 48px;
}

.topDownControlButtons {
  display: flex;
  height: 168px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.movementControlRight {
  display: flex;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.movementControlLeft {
  display: flex;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pauseControlButtons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
}

.pauseControlButtons button {
  width: 40px;
  height: 40px;
}

.rotateControlButtons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.rotateControlButtons button {
  width: 68px;
  height: 68px;
}

.mobileGameModeAndControl {
  display: flex;
  width: 110px;
  min-width: 110px;
  max-width: 130px;
  padding: 10px 0px;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  align-self: stretch;
}

.expandedScoreWrapper .mobileGameModeAndControl {
  padding: 0px;
}

.gameContainer {
  flex: 0 1 auto;
  order: 1;
  position: relative;
}

.mobileApp .gameMode {
  margin: 0 !important;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.mobileAppContainer {
  flex-direction: column;
  align-items: center;
}

.mobileApp .scoreWrapper {
  order: 1;
  margin: 0;
  display: flex;
  padding: 10px 20px 0px 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.mobileApp .scoreboardText {
  min-width: 0rem;
  color: #FFF;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.mobileApp .gameContainer {
  order: 2;
  flex: 0 1 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  flex-direction: column;
}

.mobileApp #title {
  display: none;
}

.mobileApp .nextPiece {
  display: flex;
  height: 102px;
  min-width: 50px;
  max-width: 50px;
  padding-bottom: 0px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.expandedScoreWrapper .nextPiece {
  height: auto;
}

.mobileApp .nextPiece .piece {
  position: absolute;
  left: 6px;
  top: 50px;
}

.expandedScoreWrapper .nextPiece .piece {
  top: 0;
}

.mobileApp .nextPiece > div {
  color: #FFF;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.mobileScoreBar .scoreboardText {
  color: #FFF;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.mobileFullScreen, .mobileMute {
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  width: 20px;
  height: 32px;
  align-items: center;
  text-align: center;
  display: flex;
  justify-content: center;
}

.mobileMainControl {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.gameHeaderWithoutTimer-mobile {
  position: inherit !important;
}

.tabletOffset {
  padding: 40px;
}

.gameContainerTabletOffset {
  margin: 20px 0;
}

.mobileApp .gameHeader {
  position: inherit;
  overflow: hidden;
  display: flex;
  max-width: 110px;
  flex-direction: column;
  align-items: flex-end;
}

.mobileApp .gameHeader > div {
  display: flex;
  max-width: 110px;
  flex-direction: column;
  align-items: flex-end;
}

.mobileApp .modalText {
  left: auto;
  top: calc(50% - 27px);
  padding: 8px 0;
  font-size: 16px;
}

.mobileApp .modalText .modalSubText {
  font-size: 12px;
  margin-top: 5px;
}

.mobileApp .gameHeader .submissions {
  color: #FFF;
  text-overflow: ellipsis;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.mobileApp .timer {
  color: #FFF;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

.gameHeader {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: end;
  top: -50px;
  left: 0;
  width: 100%;
}

.gameHeaderWithoutTimer,
.gameHeaderWithoutSubmissionsStatus {
  top: -32px;
}

.gameMode {
  font-size: 15px;
  margin-bottom: 4px;
}

.gameMode.online {
  text-transform: capitalize;
  color: #7baa64;
  margin-left: auto;
}

.gameMode.practice {
  text-transform: capitalize;
  color: #0095d3;
  margin-left: auto;
}

.gameMode.disconnected {
  text-transform: capitalize;
  color: #e62700;
  margin-left: auto;
}

.gameMode.offline {
  text-transform: capitalize;
  color: #ffb900;
  margin-left: auto;
}

.nextPiece canvas {
  transform-origin: top left;
  transform: scale(0.5);
}

.configPanel {
  font-size: 10px;
}
.configPanel h3 {
  display: inline-block;
  margin: 0 0 0.5rem 0.5rem;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
}
.configPanel h3:hover {
  text-decoration: underline;
}
.configPanel button {
  border: none;
  background: transparent;
  color: white;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.configPanel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.configPanel div {
  margin-bottom: 0.5rem;
}
.configOptions {
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.5rem;
}
.configPanelText label {
  display: block;
}
.configPanelText input {
  background: #00263f;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.25rem;
}

.credits {
  font-size: 10px;
}

.modalText {
  position: absolute;
  top: 45%;
  left: 0;
  width: 100%;
  margin: auto 0;
  padding: 1rem 0;

  background: rgba(50, 50, 50, 0.4);
  color: #ffffff;
  font-size: 24px;
  text-align: center;
  vertical-align: middle;
}
.modalText .modalSubText {
  margin-top: 12px;
  font-size: 12px;
}

.timer {
  font-size: 15px;
  margin: 4px 0;
}

.submissions {
  font-size: 15px;
  color: #0095d3;
}
