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: 'Kitten Swash';
    src: url('../fnt/kittenswash.woff2') format('woff2'),
        url('../fnt/kittenswash.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html, body {
    font-family: 'Open Sans';
}

.kitten {
    font-family: 'Kitten Swash';
}
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: 1306px;
  height: 366px;
  background-image: url(../img/shared/popup-dialog.png);
  display: grid;
  grid-template-columns: 500px 500px;
  grid-template-rows: 120px 120px;
  align-content: center;
  position: absolute;
  bottom: 0px;
}

#p1 .dialog-panel {
  grid-template-rows: 100px 100px 100px;
  grid-auto-flow: column;
  grid-column-gap: 10px;
}

div.popup a {
  width: 509px;
  height: 82px;
  background-image: url(../img/articulation/menu-item-wide.png);
  font-size: 40px;
  line-height: 80px;
  filter: drop-shadow(0px 3px rgba(0, 0, 0, 0.5));
  cursor: pointer;
}

.dialog-panel a {
  color: #ffd9bb;
}

.popup h1 {
  font-family: "Kitten Swash";
  margin: 0;
  font-size: 56px;
  font-weight: 300;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.4));
}


#home-logo {
    top: 24px;
}
#buttons {
    width: 1000px;
    height: 263px;
    top: -100px;
    display: flex;
    justify-content: space-between;
}
#buttons img {
    position: relative;
}

#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/shared/menu-background.jpg);
  color: #ffffff;
}
#language {
  align-items: start;
}
#articulation {
  align-items: flex-start;
}
#articulation-menu {
  top: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  height: 412px;
}
div.menu-area {
  overflow: hidden;
  width: 1400px;
  height: 450px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  position: relative;
  top: 240px;
}

div.menu-button {
  display: flex;
  width: 188px;
  padding: 0 20px 0 20px;
  height: 166px;
  margin: 10px;
  justify-content: center;
  align-items: center;
  background-image: url(../img/articulation/menu-item.png);
  /* min-height: 120px;
    min-width: 168px; */
}

div.menu-button span {
  font-weight: 900;
  font-size: 36px;
  line-height: 40px;
  width: 160px;
  font-family: "Open Sans Condensed";
  color: #8719e2;
}

div.blends-panel {
  display: grid;
  grid-template-columns: 510px 510px;
  grid-gap: 10px 40px;
  align-content: center;
  width: 1788px;
  height: 700px;
  padding: 96px 0;
  background-image: url(../img/shared/popup-dialog-large.png);
}

.submenu {
  display: flex;
  flex-direction: column;
  top: 40px;
  overflow-x: hidden;
  overflow-y: auto;
}

#topic-submenu {
  direction: rtl;
  height: 410px;
  width: 560px;
}

div.topic {
  font-family: "Kitten Swash";
  font-weight: 500;
  font-size: 40px;
  background-image: url(../img/language/white-button.png);
  width: 540px;
  display: flex;
  flex: none;
  height: 97px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-bottom: 10px;
}

img.point {
  right: -10px;
  position: absolute;
}

a.subtopic {
  background-color: #f33342;
  border-radius: 30px;
  width: 555px;
  height: 64px;
  font-size: 30px;
  font-weight: 500;
  line-height: 60px;
  margin: 0 0 20px 20px;
  -webkit-box-shadow: inset 0px 5px 0px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: inset 0px 5px 0px 0px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0px 5px 0px 0px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.4));
}

/* #game {
  background-image: url(../img/game/game-screen-background.jpg);
} */

#play-again {
  position: absolute;
  display: none;
  bottom: 20px;
  width: 530px;
  height: 190px;
  cursor: pointer;
  z-index: 4;
  background-image: url(../img/game/play-again.png);
}

#play-again span {
  margin: auto;
  font-size: 60px;
  position: relative;
  top: -14px;
  font-weight: 900;
  font-family: Arial;
  -webkit-text-stroke: 3px #28c742;
}

#corner {
  position: absolute;
  bottom: 0;
  right: 0;
}

#word-display {
  pointer-events: none;
  position: absolute;
  display: flex;
  justify-content: center;
  bottom: 154px;
  width: 735px;
  height: 121px;
}

#word-zone {
  bottom: -10px;
  pointer-events: none;
}

#word-span {
  pointer-events: none;
  position: relative;
  top: 6px;
  font-size: 60px;
  z-index: 10;
  font-weight: 900;
  font-family: "Open Sans Condensed";
  color: #ffffff;
  -webkit-text-stroke: 3px rgba(133, 14, 10, 0.6);
  /* text-shadow: 0 5px #ffa644; */
  /* filter: drop-shadow(0 5px 5px rgba(0,0,0,0.4)) */
  /* -webkit-text-stroke: 3px #249321; */
}

#sentence {
  pointer-events: none;
  width: 1844px;
  height: 108px;
  justify-content: center;
  background-image: url(../img/game/sentence-display.png);
  position: absolute;
  bottom: 12px;
  display: flex;
  align-items: center;
}

#sentence span {
  color: #ffffff;
  pointer-events: none;
  font-size: 46px;
  line-height: 108px;
  font-weight: 600;
  font-family: "Open Sans Condensed";
  text-shadow: 0px 2px 0px rgba(0, 0, 0, 0.6);
}

#animation {
  /* z-index: 1; */
}

#dispenser {
  left: 130px;
  bottom: 150px;
  z-index: 0;
}

#item {
  left: 110px;
  top: 460px;
  width: 103px;
  height: auto;
  cursor: pointer;
  transform-origin: center;
  z-index: 3;
}

#counter {
  background-repeat: no-repeat;
  width: 200px;
  height: 100px;
  position: absolute;
  left: 336px;
  bottom: 578px;
  color: #ffffff;
  font-weight: 900;
  font-size: 60px;
  font-family: "Open Sans Condensed";
  line-height: 210px;
  -webkit-text-stroke: 3px #56370e;
}

