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: 'groboldregular';
    src: url('../fnt/grobold-webfont.woff2') format('woff2'),
         url('../fnt/grobold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@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';
}

#home-logo {
    top: 24px;
}
#buttons {
    width: 960px;
    height: 263px;
    top: -100px;
    display: flex;
}
#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: #ffea1a;
}
#articulation-menu {
  overflow-x: hidden;
  overflow-y: auto;
}

div.menu-area {
    width: 1400px;
    height: 426px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    position: relative;
    top: -60px;
}

div.menu-button {
    display: flex;
    width: 128px;
    padding: 0 20px 0 20px;
    height: 120px;
    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: 500;
    font-size: 36px;
    line-height: 40px;
    font-family: 'Kitten Swash'
}

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;
    overflow-x: hidden;
    overflow-y: auto;
}

#topic-submenu {
  direction: rtl;
  height: 423px;
  width: 560px;
}

div.topic {
    font-family: 'Kitten Swash';
    font-weight: 500;
    font-size: 40px;
    background-image: url(../img/language/white-button.png);
    width: 550px;
    display: flex;
    height: 97px;
    justify-content: center;
    align-items: center;
    flex: none;
    cursor: pointer;
    margin-bottom: 10px;
}

img.point {
    right: -10px;
    position: absolute;
}

a.subtopic {
    background-color: #5a183d;
    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))
}

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: 327px;
    background-image: url(../img/shared/popup-dialog.png);
    display: grid;
    grid-template-columns: 460px 460px;
    grid-template-rows: 120px 120px;
    align-content: end; 
    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: 456px;
    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;
}

.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))
}


#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: absolute;
    bottom: 34px;
    font-size: 60px;
    z-index: 10;
    font-weight: 700;
    font-family: 'Open Sans Condensed';
    color: #6d2c08;
    /* 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: 1809px;
    height: 133px;
    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: 126px; 
    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: 30px;
    bottom: 180px;
    z-index: 0;
}

#item {
    left: 90px;
    bottom: 280px;
    width: 103px;
    height: auto;
    cursor: pointer;
    transform-origin: center;
    z-index: 3;
}

#counter {
    background-image: url(../img/game/snowball-counter.png);
    background-repeat: no-repeat;
    width: 309px;
    height: 256px;
    position: absolute;
    right: 80px;
    bottom: 120px;
    padding-left: 16px;
    color: #451304;
    font-weight: 900;
    font-size: 80px;
    font-family: 'Open Sans Condensed';
    line-height: 210px;
    /* filter: drop-shadow(0 5px 5px rgba(255,255,255,0.8)) */
}
