.menu {
    background-image: url(../img/shared/menu-background.jpg)
}
img.top {
    top: 0px;
}
img.left {
    left: 0px;
}

#home {
    flex-direction: column; 
 }
#home div {
    width: 1300px;
    /* height: 263px; */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 80px;
}

#targetnum {
    background-color: rgba(20, 20, 20, 0.3);
    border-radius: 20px;
    height: 200px;
    border: solid 8px #ffcc00;
    -webkit-box-shadow: inset 0px 5px 10px 10px rgb(0 0 0 / 10%);
    -moz-box-shadow: inset 0px 5px 10px 10px rgb(0 0 0 / 10%);
    box-shadow: inset 0px 5px 10px 10px rgb(0 0 0 / 10%);
}

#targetnum span {
    font-size: 60px;
    /* pointer-events:none; */
    font-weight: 600;
    font-family: 'Baloo 2', cursive;
    -webkit-text-stroke: 2px #83282d;
    /* offset-x | offset-y | blur-radius | color */
    text-shadow: 0 4px 0 #83282d;
}

span.b {
    cursor: pointer;
    width: 110px;
    height: 110px;
    line-height: 110px;
    border-radius: 20px;
    background-color: #ffcc00;
    border: solid 3px white;
    background-repeat: no-repeat;
    background-image: url(../img/shared/glint.png);
    background-position: top left;
    -webkit-box-shadow: inset 0px 5px 0px 0px rgba(255,255,255,0.4);
    -moz-box-shadow: inset 0px 5px 0px 0px rgba(255,255,255,0.4);
    box-shadow: inset 0px 5px 0px 0px rgba(255,255,255,0.4);
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.4))
}

#select-game {
    top: 460px;
}
#buttons img {
    position: relative;
}

#preload {
    width: auto;
    height: 100%;
    /*50vw = half viewport width*/
    /* bootstrap width = 1920 height = 1080*/
    left: calc(50vw - ((100vh / 1080) * 960));
}

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.scrim {
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    position: absolute;
}

div.dialog-panel {
    width: 1119px;
    height: 394px;
    background-image: url(../img/shared/popup-dialog.png);
}

div.popup  {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    justify-items: center;
    align-items: center;
    align-content: center;
    grid-auto-flow: column;
}

div.blends-panel {
    width: 1786px;
    height: 882px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    padding: 96px 0;
    background-image: url(../img/shared/popup-dialog-large.png);
}

div.popup a {
    background-image: url(../img/articulation/popup-item.png);
    width: 509px;
    height: 84px;
    font-size: 40px;
    line-height: 76px;
    /* margin: 20px; */
    cursor: pointer;
}

div.blends-panel a{
    width: 360px;
    background-image: url(../img/articulation/popup-blend-item.png);
    background-repeat: no-repeat;
}

#game{
    background-image: url(../img/game/game-screen-background.jpg)
}

div.menu-area {
  overflow-x: hidden;
  overflow-y: auto;
  width: 1460px;
  height: 520px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  position: absolute;
}

#topic-submenu {
    margin-right: 20px;
}

#language-menu {
  height: 590px;
}

#articulation-menu {
  justify-content: center;  
}

.submenu {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

#topic-submenu {
  direction: rtl;
  height: 566px;
  width: 520px;
}

div.topic {
    /* color: #00606e; */
    font-family: 'Open Sans Condensed';
    font-weight: 700;
    font-size: 44px;
    background-image: url(../img/language/white-button.png);
    width: 500px;
    display: flex;
    flex: none;
    height: 104px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

a.subtopic {
    background-image: url(../img/language/subtopic.png);
    width: 471px;
    height: 67px;
    font-size: 30px;
    line-height: 60px;
    margin: 0 0 20px 20px;
    cursor: pointer;   
}

img.point {
  right: -10px;
  position: absolute;
}

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;
}

p.login {
    background-color: rgba(0,0,0,0.6);
}

.dialog {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-transition: opacity 1s ease;
    transition: opacity 1s ease;
}

#word-zone {
    position: absolute;
    bottom: 124px;
    width: 548px;
    height: 122px;
    opacity: 0;
    -webkit-transition: opacity 1s ease;
    transition: opacity 1s ease;
    background-image: url(../img/game/word-zone.png);
    display: flex;
    justify-content: center;
    align-items: center;
}

#word-zone span{
    /* z-index: 10; */
    font-size: 52px;
    pointer-events:none;
    font-weight: 600;
    font-family: 'Baloo 2', cursive;
    -webkit-text-stroke: 2px #83282d;
    /* offset-x | offset-y | blur-radius | color */
    text-shadow: 0 4px 0 #83282d;
}

#sentence-zone {
    position: absolute;
    bottom: 16px;
    width: 908px;
    height: 77px;
    background-image: url(../img/game/sentence-zone.png);
    display: flex;
    justify-content: center;
    align-items: center;
}

#sentence-zone span {
    font-size: 36px;
    pointer-events:none;
    font-weight: 600;
    font-family: 'Baloo 2', cursive;
}

div.win-popup {
    z-index: 10;
    opacity: 0;
    background-image: url(../img/game/win-image.jpg);
}

#play-again {
    position:absolute;
    bottom: -140px;
    -webkit-transition: bottom 1s ease;
    transition: bottom 1s ease;
}