html,
body {
  margin: 0;
  -webkit-tap-highlight-color: rbga(255, 255, 255, 0);
  -webkit-user-select: none;
  -ms-touch-action: none;
  touch-action: none;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #1e153a;
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  font-family: "Open Sans Condensed", sans-serif;
  font-size: 30px;
  color: white;
}
div {
  position: relative;
  margin: 0;
}
.sans {
  font-family: "Open Sans Condensed", sans-serif;
  color: white;
  font-weight: 300;
}
.bold {
  font-family: "Open Sans", sans-serif;
  color: white;
  font-weight: 700;
}
h1.preload {
  position: absolute;
  top: -2000px;
  left: -2000px;
}
#root {
  width: 1920px;
  height: 1080px;
  text-align: center;
  background-size: auto 100%;
  overflow: hidden;
  transform-origin: top left;
}
div.screen {
  width: 100%;
  height: 100%;
  text-align: center;
  display: none;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform-origin: top left;
  position: absolute;
}
img {
  position: absolute;
  -webkit-user-drag: none;
}
.button {
  cursor: pointer;
}
div {
  background-repeat: no-repeat;
  background-position: center;
}
#error p {
  font-size: 80px;
}

#preload {
  width: auto;
  height: 100%;
  /*50vw = half viewport width*/
  /* bootstrap width = 1920 height = 1080*/
  left: calc(50vw - ((100vh / 1080) * 960));
}

/* spinner **/
div.spinner {
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  width: 100%;
  height: 100%;
  position: absolute;
}
div.spinner img {
  width: 256px;
  height: 256px;
}

#lightbox {
  width: 1920px;
  height: 1080px;
}

div.scrim {
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  position: absolute;
}

/** checkbox **/
input[type="checkbox"].css-checkbox {
  position: absolute;
  z-index: -1000;
  left: -1000px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}
input[type="checkbox"].css-checkbox + label.css-label {
  padding-left: 40px;
  height: 25px;
  line-height: 25px;
  font-size: 35px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: 0 0;
  vertical-align: middle;
  cursor: pointer;
}
input[type="checkbox"].css-checkbox:checked + label.css-label {
  background-position: 0 -25px;
}
label.css-label {
  background-image: url(../img/select/checkbox.png);
  font-family: "Open Sans", sans-serif;
  font-size: 2vh;
  /* -webkit-text-stroke: 1px black; 
  color: black;*/
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

div.msg {
  width: 100%;
  height: 100%;
  background-color: #bbc700;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s;
  pointer-events: all;
  z-index: 10;
}

div.msg img {
  cursor: pointer;
}

/* Select Cards content */
#select-cards {
  flex-direction: column;
  background-image: url(../img/select/background.jpg);
}
.next-button {
  display: none;
  cursor: pointer;
  bottom: 20px;
  right: 20px;
}
#card-menu p {
  font-size: 36px;
}
h1.title {
  text-align: center;
  /* font-family: 'norwesterregular'; */
  font-size: 36px;
  /* -webkit-text-stroke: 2px black; */
  color: white;
  margin: 1vh 2vh;
}
div.tab {
  background-color: #6d310c;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  cursor: pointer;
}
div.tab-on {
  background-color: #8a490e;
  cursor: default;
}
#pos {
  position: absolute;
}
div.menu-area {
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #8a490e;
  border-radius: 4vh;
  width: 1360px;
  height: 660px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
}
div.headerbar {
  flex-direction: row;
  width: 1200px;
  left: 20px;
  display: flex;
  justify-content: flex-start;
}
div.headerbar img {
  height: 8vh;
  margin-left: 4vh;
  margin-right: 4vh;
  cursor: pointer;
}
div.scrolling {
  height: 640px;
  width: 1260px;
  left: 5vh;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: left;
}

div.menu-button {
  display: flex;
  height: 120px;
  overflow: hidden;
  line-height: 106px;
  font-size: 60px;
  justify-content: center;
  background-image: url(../img/articulation/item.png);
  min-width: 168px;
  color: white;
}
div.option {
  margin-top: 2vh;
  margin-bottom: 2vh;
}

#game {
  pointer-events: none;
}

img.fading {
  opacity: 0.25;
  transition: opacity 0.4s;
  cursor: pointer;
  position: absolute;
}

img.fading:hover {
  opacity: 1;
}

.card {
  transform-origin: left top;
  position: absolute;
  z-index: 1;
  cursor: pointer;
  pointer-events: all;
}

.done {
  z-index: 9;
  position: absolute;
  left: 830px;
  display: none;
  cursor: pointer;
  pointer-events: all;
}

.text {
  z-index: 9;
  position: absolute;
  left: 530px;
  display: none;
  cursor: pointer;
  pointer-events: all;
}

.draw {
  z-index: 9;
  position: absolute;
  left: 630px;
  display: none;
  cursor: pointer;
  pointer-events: all;
}

.clear {
  z-index: 9;
  position: absolute;
  left: 730px;
  display: none;
  cursor: pointer;
  pointer-events: all;
}

input[type="text"] {
  position: absolute;
  font-size: 40px;
  z-index: 999;
  pointer-events: all;
}

.cardface {
  transform-origin: left top;
  position: absolute;
  z-index: 10;
  cursor: pointer;
  display: none;
  pointer-events: all;
}

.lightbox {
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0;
  display: none;
  z-index: 5;
  position: absolute;
  top: 0px;
  left: 0px;
  transition: opacity 0.4s;
  pointer-events: all;
}

#finish {
  bottom: 0px;
  right: 110px;
  cursor: pointer;
}

