.error {
  padding: 0.5em;
  background-color: #d6a3a7;
  color: #780100;
  &:before {
    content: "ERROR: ";
    font-weight: bold;
  }
}

.unselectable {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
  &:hover {
    cursor: default;
  }
}

.scrollbar {
  &::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
  }

  &::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #000000;
  }
}

.header {
  font-weight: bold;
  font-variant: small-caps;
  font-size: 1.1rem;
}

.alignRight {
  text-align: right;
}

.alignCenter {
  text-align: center;
}

// The next two rules fix blur fucking up status line borders with white shit
body {
  background-color: #000;
}

#mainPage {
  background-color: #fff;
}

#mainPage, .topBottomFlex {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-content: stretch;
  align-items: flex-start;
}

.leftRightFlex {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-content: stretch;
  align-items: flex-start;
}

#mainPage {
  color: $mainFontColor;
  font-family: $mainFont;
}

#statusLine, .noshrinkFlex {
  flex: 0 0 auto;
  align-self: stretch;
  height: auto;
  overflow: visible;
  position: relative;
}

#statusLine {
  background-color: rgba(0,0,0, $dark0);
  color: $statusColor;
  font-family: $fixedWidthFont;
  white-space: nowrap;
  padding: 0.4rem;
}

.statusColumnRight {
  margin-left: auto;
}

.statusColumnCenter {
  margin-left: auto;
  margin-right: auto;
}

.statusColumnDivider {
  border-right: #fff solid 1px;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

#gameContainer, .growingFlex {
  flex: 1 1 auto;
  align-self: stretch;
  position: relative;
}

#leftWindow, #centerWindow, #rightWindow {
  flex: 1 0 auto;
  align-self: auto;
  flex-grow: 1;
  min-width: 10rem;
  position: relative;
  background-color: #fff;
}

#centerWindow {
  max-width: 60%;
  flex: 1 1 auto;
  flex-grow: 4;
}

#windowContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-content: stretch;
  align-items: stretch;
  height: 100%;
  width: 100%;
  position: absolute;
}

#currentTurn {
  overflow-x: hidden;
  overflow-y: scroll;
  min-height: 100px;
  background: linear-gradient(to bottom, rgba(0,0,0, $dark4) 75%,rgba(0,0,0, $dark3) 100%);
}

#currentTurn > * {
  animation: fadein 1s;
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#leftWindow {
  background: linear-gradient(to right, rgba(0,0,0, $dark1) 0%, rgba(0,0,0, $dark2) 50%,rgba(0,0,0, $dark3) 100%);
}

#appearanceTab {
  overflow: auto;
  //background: linear-gradient(to right, rgba(0,0,0, $dark1) 0%, rgba(0,0,0, $dark2) 50%,rgba(0,0,0, $dark3) 100%);
  padding: 0.8rem;
}

#inventoryTab {
  overflow: hidden;
  //background: linear-gradient(to left, rgba(0,0,0, $dark1) 0%, rgba(0,0,0, $dark2) 50%,rgba(0,0,0, $dark3) 100%);
}

#currentRoomTab {
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(0,0,0, $dark3) 75%,rgba(0,0,0, $dark4) 100%);
  padding: 0.8rem;
}

#hyperlinksTab {
  background: rgba(0,0,0, $dark4);
  text-indent: 1em;
}

#mainPage.mobile #fakeparserTab {
  display: none;
}

#fakeparserTab {
  overflow: visible;
  background: rgba(0,0,0, $dark4);
  padding: 0.8rem;
  font-family: $fixedWidthFont;

  &:before {
    content: ">";
  }
}

#currentCommand, #fakeParserThingy {
  font-weight: bold;
}

#fakeParserThingy {
  animation: blinker 0.9s cubic-bezier(.5, 0, 1, 1) infinite alternate;
}

@keyframes blinker { to { opacity: 0; } }

#rememberedRoomsTab, #mapTab {
  overflow-y: auto;
  background: linear-gradient(to left, rgba(0,0,0, $dark1) 0%, rgba(0,0,0, $dark2) 50%,rgba(0,0,0, $dark3) 100%);
  padding: 0.8rem;
}

// #mainPage.mobile
#roomExitsHolder {
  @extend .noshrinkFlex;
  background: linear-gradient(to top, rgba(0,0,0, $dark1) 0%, rgba(0,0,0, $dark2) 50%,rgba(0,0,0, $dark3) 100%);
  padding: 2ex;
  padding-top: 0px;
}

#exitsTab {
  overflow: hidden;
  background-color: rgba(0,0,0, $dark4);
  padding: 0.8rem;
}