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;
    font-weight: 300; 
    color: white;
}
div {
    position: relative;
    margin: 0;
}
.sans {
    font-family: 'Open Sans Condensed', sans-serif;
    color: white;
}
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, a {   
    background-repeat: no-repeat;
    background-position: center;
}
#error p {
    font-size: 80px;
}
img.top {
    top: 0px;
}
img.left {
    left: 0px;
}

p.login {
    background-color: rgba(0,0,0,0.6);
}



div.spinner {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    position: absolute;
    justify-content: center;
}

div.spinner img {
    position: relative;
}

@font-face {
    font-family: 'scarydream';
    src: url('../fnt/scarydream.woff2') format('woff2'),
        url('../fnt/scarydream.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.sd {/* for preloading */
    font-family: 'scarydream';
}

html, body {
    font-family: 'scarydream';
}

#home-logo {
    top: 24px;
}
#buttons {
    width: 760px;
    height: 520px;
}
#buttons img {
    position: relative;
    margin-top: 20px;
}

#preload {
    /* background-image: url(../img/bootstrap.jpg);
    display: flex;
    background-repeat:no-repeat;
    background-position: center center; */
    width: auto;
    height: 100%;
    /*50vw = half viewport width*/
    /* bootstrap width = 1920 height = 1080*/
    left: calc(50vw - ((100vh / 1080) * 960));
}

#menu {
  background-image: url(../img/menu/menu_screen.jpg);
}

#start {
  cursor: pointer;
  position: absolute;
  bottom: 50px;
  right: 50px;
}

/** 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/menu/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;
}

.menu-area {
  width: 1000px;
  height: 500px;
  background-color: rgba(168, 75, 3, 0.5);
  border-radius: 40px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 20px;
}


div.dialog {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
}

div.scrim {
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    position: absolute;
}

div.popup  {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; 
}

div.dialog-panel {
    width: 1449px;
    height: 502px;
    background-image: url(../img/shared/popup-dialog.png);
    display: grid;
    grid-template-columns: 510px 510px;
    grid-template-rows: 120px 120px;
    align-content: end; 
    position: absolute;
    row-gap: 40px;
    bottom: 0px;
}

#p1 .dialog-panel {
    grid-auto-flow: column;
    grid-template-rows: 120px 120px 120px;
    grid-row-gap: 0px;
    column-gap: 20px;
}

div.popup a {
    width: 510px;
    height: 104px;
    background-image: url(../img/articulation/menu-item-wide.png);
    font-size: 40px;
    line-height: 120px;
    filter: drop-shadow( 0px 3px rgba(0,0,0,0.5));
    cursor: pointer;
}

.popup h1 {
    margin: 0;
    font-size: 56px;
    line-height: 64px;
    font-weight: 300;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.4))
}

#game {
  background-image: url(../img/game/game_screen.png);
}

/* the multiple choice panel */
div.multiple-choice {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  position: absolute;
  display: none;
}
div.fading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 1s;
}

div.multiple-choice p {
  font-family: "Arial";
  font-size: 30px;
  color: black;
  margin: 10px 0 0 0;
}

div.story {
  width: 1546px;
  height: 544px;
  background-color: white;
  border-radius: 60px;
  margin-top: 40px;
  justify-content: center;
}

div.story p {
  text-align: justify;
  margin: 20px;
}

div.story img {
  float: right;
  display: none;
  position: initial;
  margin: 20px;
}

p.question {
  border-radius: 20px;
  height: 80px;
  background-color: white;
  border: solid 5px #adb9b9;
  padding-top: 20px;
  text-align: left;
  padding-left: 100px;
  width: 1446px;
  font-weight: bold;
}

/* p.question::before {
  content: " ";
  width: 200px;
  height: 20px;
} */

p.answer {
  text-align: left;
  width: 1546px;
  height: 80px;
  background-color: #adb9b9;
  border: solid 5px white;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}

p.answer::before {
  line-height: 80px;
  padding: 16px;
}

p.open::before {
  content: url(../img/game/ship-icon.png);
}

p.wrong::before {
  content: url(../img/game/ship-icon-wrong.png);
}

p.correct::before {
  content: url(../img/game/ship-icon-correct.png);
}

