html { 
    height: 100%;
    width: 100%;
    font-family: "FF Clan Web Pro Narrow Medium", FF Clan Web, Arial, Verdana, Sans-serif;
}
body { 
    height: 100%; 
    width: 100%;
    overflow:hidden;
    margin: 0;
}

@-ms-viewport {
    width: device-width;
}

#application {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 40px;
}
/********************************/
/********** Responsive **********/
/********************************/
@media only screen and (min-width: 750px) {
    #menu, #results, #cube-hitarea {
        max-width: 500px;
    }

    div#spielfiguren {
        width: 50px;
        height: 50px;
        margin: -25px 0 0 -25px;
    }

    div#dice-wrap {
        height: 70vh;
        top: 50%;
        margin: -35vh 0;
    }
    
    div#results {
        left: 50%;
        margin-left: -250px;
    }

    div#application {
        top: 60px;
    }
    
    div#header {
        height: 60px;
    }
}
/********************************/
/******* Erkundungs-Modus *******/
/********************************/
.erkundungsmodus #dice-wrap,
.erkundungsmodus #notification,
.erkundungsmodus #contentDialog,
.erkundungsmodus #spielfiguren,
.erkundungsmodus #punkteButton,
.erkundungsmodus #beendeSpielButton,
.erkundungsmodus #erkundenButton,
.erkundungsmodus #menuButton
{
    display: none !important;
}
.erkundungsmodus #menuBar {
    padding-right: 0;
}
.erkundungsmodus #impressumButton {
    float: right;
    margin-right: 0;
    cursor: pointer;
}
.erkundungsmodus .open#erkundungsDialog {
    display: block;
}

/********************************/
/************ Header ************/
/********************************/
#header {
    height: 40px;
    width: 100%;
    background-color: #A0C814;
    background-image: url("../images/GI_Logo_horizontal_white_sRGB_klein.png");
    background-repeat: no-repeat;
    background-position: 25px center;
    background-size: auto 80%;
}
/********************************/
/************ KrPano ************/
/********************************/
#tourDIV {
    height:100%;
    width:100%;
    position:relative;
    overflow:hidden;
}

#panoDIV {
    height:100%;
    width:100%;
    position:relative;
    overflow:hidden;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

#block_scrolling {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
    z-index: 11000;
}
/********************************/
/************* Dice *************/
/********************************/
#dice-wrap {
    width: 100%;
    top: 0;
    bottom: 40px;
    z-index: 15000;
    position: absolute;
    display: none;
}
#diceHeader, #diceFooter {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    width: 100%;
    height: 50px;
    line-height: 50px;
}
#diceHeader {
    visibility: hidden;
}
#diceFooter {
    position: absolute;
    bottom: 0;
}

#cube-hitarea{
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    box-sizing: content-box;
    overflow: hidden;
    margin: auto;
    background-color: rgba(24,26,27,0.8);
}

#square{
     position: relative;
     height: 50vh;
     width: 50vh;
     margin: auto;
}

#cube {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 10vh;
    backface-visibility: hidden;
    transform-origin: center center;
    transition: transform 1s;
    transform: rotateX(-45deg) rotateY(50deg);
    -ms-transform: none;
    transform-style: preserve-3d;
    -ms-transform-style: none;
    -webkit-transform-style: preserve-3d;
    -webkit-transform-origin: center center;
    -webkit-transform: rotateX(-45deg) rotateY(50deg);
    -webkit-transition: -webkit-transform 1s;
    -moz-transform-style: preserve-3d;
    -moz-transform-origin: center center;
    -moz-transform: rotateX(-45deg) rotateY(50deg);
    -moz-transition: -moz-transform 1s;
}

#cube .side{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -webkit-transform-origin: center center;
    -moz-transform-origin: center center;
    transition: transform 1s;
}

#cube .side:nth-child(1) {
    transform: translateY(50%) rotateX(90deg) rotateY(180deg);
    -webkit-transform: translateY(50%) rotateX(90deg) rotateY(180deg);
    -moz-transform: translateY(50%) rotateX(90deg) rotateY(180deg);
}

#cube .side:nth-child(2) {
    transform: rotateY(-90deg) translateX(-50%) rotateY(90deg) rotateZ(0deg) rotateY(180deg);
    -webkit-transform: rotateY(-90deg) translateX(-50%) rotateY(90deg) rotateZ(0deg) rotateY(180deg);
    -moz-transform: rotateY(-90deg) translateX(-50%) rotateY(90deg) rotateZ(0deg) rotateY(180deg);
}

#cube .side:nth-child(3) {
    transform: translateX(50%) rotateY(-90deg) rotateY(180deg);
    -webkit-transform: translateX(50%) rotateY(-90deg) rotateY(180deg);
    -moz-transform: translateX(50%) rotateY(-90deg) rotateY(180deg);
}

#cube .side:nth-child(4) {
    transform: translateX(-50%) rotateY(-90deg);
    -webkit-transform: translateX(-50%) rotateY(-90deg);
    -moz-transform: translateX(-50%) rotateY(-90deg);
}

#cube .side:nth-child(5) {
    transform: rotateY(-90deg) translateX(50%) rotateY(90deg) rotateZ(90deg);
    -webkit-transform: rotateY(-90deg) translateX(50%) rotateY(90deg) rotateZ(90deg);
    -moz-transform: rotateY(-90deg) translateX(50%) rotateY(90deg) rotateZ(90deg);
}

#cube .side:nth-child(6) {
    transform: translateY(-50%) rotateX(-90deg) rotateY(180deg);
    -webkit-transform: translateY(-50%) rotateX(-90deg) rotateY(180deg);
    -moz-transform: translateY(-50%) rotateX(-90deg) rotateY(180deg);
}
/********************************/
/************* Menu *************/
/********************************/
#menu {
    bottom: 0;
    position: absolute;
    width: 100%;
    text-align: center;
    z-index: 25000;
    right: 0;
    min-height: 40px;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0.9;
    background-color: #181A1B;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

#menuButton {
    width: 20%;
    height: 50px;
    max-height: 100%;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    background-color: #788287;
    background-image: url("../images/up.png");
}
#menuButton.selected {
    background-image: url("../images/down.png");
}

#menuBar {
    height: 50px;
    line-height: 50px;
    padding-right: 20%;
}
#menuBar div {
    width: 24%;
    height: 100%;
    margin-right: 1%;
    display: inline-block;
    float: left;
    background-color: #788287;
    cursor: pointer;
}
#menuButton:hover, #menuBar div:hover, #menuBar .selected {
    background-color: #A0C814;
}
#menuBar .selected {
    cursor: default;
}
#menuBar div, #menuButton {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
#menuBar #punkteButton {
    background-image: url("../images/punkte.png");
}
#menuBar #impressumButton {
    background-image: url("../images/info.png");
}
#menuBar #beendeSpielButton {
    background-image: url("../images/exit.png");
}
#menuBar #erkundenButton {
    background-image: url("../images/erkunden.png");
}

#menuBar #starteSpielButton {
    width: 75%;
}

/********************************/
/****** Punkte(+Impressum) ******/
/********************************/
#scores, #impressum {
    display: none;
}
#scores.showAll, #impressum {
    padding: 10px;
}
#menu h2 {
    margin: 10px 0;
}

#scores {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#impressum a {
    color: #ffffff;
    text-decoration: none;
}
.menuTitle {
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
}

#scores > div {
    display: none;
}
#scores > div.player.selected {
    display: block;
    margin: 0 -10px;
}

.player
{
    line-height: 30px;
}
.showAll .player
{
    line-height: normal;
}

#scores.showAll > div
{
    display: block;
    -webkit-touch-callout: default;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

#scores.showAll .player.selected
{
    background-color: #788287;
}

.score
{
    color: #A0C814;
    min-width: 85px;
    text-align: left;
}

.player div
{
    display: inline-block;
    margin: 5px;
}

.player .name,
.result .name
{
    background-size: contain;
    background-repeat: no-repeat;
    padding-left: 35px;
}

.player .name {
    background-position: 0px center;
}
.showAll .player .name,
.result .name
{
    background-position: 5px center;
    
}

.player .score,
.result .score
{
    padding-right: 35px;
}
/********************************/
/********* Notification *********/
/********************************/
#notification {
    position: fixed;
    width: 100%;
    min-height: 80px;
    line-height: 80px;
    top: 50%;
    margin-top: -40px;
    z-index: 20000;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    display: none;
    font-size: 24px;
    background-color: #A0C814;
}

#notification.fail {
    background-color: #EB6400;
}

.green {
    color: green;
}

/********************************/
/******** Content-Dialog ********/
/********************************/

#contentDialog, #erkundungsDialog {
    width: 100%;
    height: 100%;
    z-index: 18000;
    position: absolute;
    top: 0;
    display: none;
    overflow: auto;
}

#contentDialog .dialogHeader,
#erkundungsDialog .dialogHeader {
    height: 50px;
    width: 100%;
    opacity: 0.9;
    background-color: #181A1B;
    color: #ffffff;
    font-size: 24px;
    line-height: 46px;
    text-align: center;
    position: absolute;
}

#contentDialog .dialogBody,
#erkundungsDialog .dialogBody {
    background-color: rgba(120, 130, 135, 0.8);  /*#788287*/
    width: 100%;
    min-height: 100%;
    padding: 80px 30px 50px;
    box-sizing: border-box;
}
#contentDialog .closeDialog,
#erkundungsDialog .closeDialog {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #474D50;
    color: #fff;
    height: 50px;
    width: 50px;
    font-size: 34px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    z-index: 1000;
}
#question {
    font-size: 24px;
}
#answers {
    padding: 25px 0;
}

#answers button
{
    background-color: #003969;
    color: #ffffff;
    width: 32%;
    padding: 9px;
    font-size: 18px;
    border: 2px outset #47ABD8;
}
button#answer2 {
    margin: 0 2%;
}
button#fail, button#success {
    width: 48%;
}
button#fail {
     float: right;
}
.correct {
    background-color: #A0C814 !important;
}
.wrong {
    background-color: #EB6400 !important;
}
#media {
    text-align: center;
    padding-bottom: 50px;
}
#media video {
    max-width: 100%;
}
/********************************/
/******** Ergebnis-Dialog *******/
/********************************/
#results {
    background-color: rgba(24,26,27,0.8);
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 10px;
    z-index: 16000;
    text-align: center;
    color: #ffffff;
    position: absolute;
    width: 100%;
    top: 0;
    display: none;
}
.title {
    font-size: 24px;
    padding: 10px 0;
}
.result div {
    display: inline-block;
    margin: 5px;
}
#rank1 .score
{
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    background-image: url("../images/punkte_w.png");
}
/********************************/
/********* Spielfiguren *********/
/********************************/
#spielfiguren {
    position: absolute;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    top: 50%;
    left: 50%;
    z-index: 14000;
}

#spielfiguren div {
    margin: auto;
    width: 100%;
    height: 100%;
    background-size: contain;
    display: none;
}
#figur1, .player1 .name {
    background-image: url("../images/figur1.png");
}
#figur2, .player2 .name {
    background-image: url("../images/figur2.png");
}
#figur3, .player3 .name {
    background-image: url("../images/figur3.png");
}
#figur4, .player4 .name {
    background-image: url("../images/figur4.png");
}
#figur5, .player5 .name {
    background-image: url("../images/figur5.png");
}