html, body {
    margin:0;
    -webkit-tap-highlight-color: rbga(255, 255, 255, 0);
    -webkit-user-select: none;
    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: bold; 
}
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: white;
    -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;
}

/* canvas */
#animation {
  width: 1920px;
  height: auto;
}

/** Home screen **/
#home {
  background-image: url(../img/home/home.jpg);
}

.start-button {
  position: absolute;
  bottom: 20px;
  cursor: pointer;
}
canvas {
  pointer-events: auto;
}

.play_again {
  cursor: pointer;
  display: none;
  opacity: 0;
  transition: opacity 1s;
}

/* Select Cards content */
#select-cards {
  flex-direction: column;
  background-image: url(../img/select/background.jpg);
}
.next-button {
  display: none;
  cursor: pointer;
  right: 40px;
  bottom: 0px;
}
#card-menu p {
  font-size: 36px;
}
#pos {
  position: absolute;
  top: 74px;
}
div.scrolling {
  height: 100%;
  width: calc(100% - 70px);
  left: 5vh;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: left;
}
div.menu-area {
  /* overflow: hidden; 
  background-color: #4f160075;*/
  border-radius: 4vh; 
  width: 1500px;
  height: 750px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
}
div.menu-area img {
  position: absolute;
  top: -293px;
  left: -309px;pointer-events:none;
}
div.headerbar {
  flex-direction: row;
  z-index:20;
  left: 20px;
  margin-bottom: 6px;
  display: flex;
  justify-content: flex-start;
}
div.headerbar img {
  height: 8vh;
  margin-left: 4vh;
  margin-right: 4vh;
  cursor: pointer;
}
#bb {
  display: flex;
  align-items: center;
  padding: 20px 40px;
}
input[type=radio] {
  margin: 10px 30px;
  width: 3em;
  height: 3rem;
  accent-color: green;
  cursor: pointer;
}
/*div.headerbar > div {
  width:305px;
   height:98px; 
}*/
div.tab {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ab3f0b;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  cursor: pointer;
}
div.tab-on {
  background-color: #8d232b;
  cursor: default;
}
h1.title {
  /* text-align: center; */
  /* font-family: 'norwesterregular'; */
  /* -webkit-text-stroke: 2px black; */
  font-size: 40px;
  color: white;
  margin: 0;
  padding: 6px 16px;
}
/* #tab1 {
  background-image: url(../img/select/btn-red.png)
}
#tab2 {
  background-image: url(../img/select/btn-green.png)
}
#tab3 {
  background-image: url(../img/select/btn-purple.png)
}
#tab4 {
  background-image: url(../img/select/btn-blue.png)
} */
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;
}


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;
}
