* {
  box-sizing: border-box;
  font-family: "Open Sans";
}

a {
  text-decoration: none;
  color: inherit;
}

html {
    position: relative;
    background-color: lightgray;
}

body{
    height: 100vh;
    max-width: 60vh;
    position: relative;
    margin: 0 auto;
    background-color: lightblue;
    overflow: hidden;
}

img {
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.hidden{
    display: none;
}

.shown{
    display: inline-block;
}

.ontop{
    position: absolute;
    z-index: 999;
}

.overlay{
    z-index: 50;
}

.center{
    text-align: center;
}

.background {
  z-index: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}

.background > div{
  display: none;
  width: 100%;
  height: 100%;
}

.background .default{
  display: block;
}

#loading{
    z-index:2999;
    width: 100%;
    height: 100%;
    display: block;
    background-color: #000;
    opacity: 0.8;
    position: absolute;
}

#loading:before{
  position: absolute;
  content: "LOADING ...";
  color: #fff;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  width: 100px;
  height: 20px;
}

#loading:after{
  content: "";
  position: absolute;
  border-radius: 50%;
  border: solid 30px gray;
  border-left: none;
  border-top: none;
  width: 30vw;
  height: 30vw;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  -webkit-animation: rotating 5s linear infinite;
  -moz-animation: rotating 5s linear infinite;
  -ms-animation: rotating 5s linear infinite;
  -o-animation: rotating 5s linear infinite;
  animation: rotating 5s linear infinite;
}

.message_pane {
  z-index: 1000;
  position: absolute;
  width: 100vw;
  height: 100vw;
  max-width: 100%;
  max-height: none;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.content {
  z-index: 1;
  position: absolute;
  width: 100vw;
  height: 100vw;
  max-width: 100%;
  max-height: none;
  background-color: lightgray;
  top: 50%;
  transform: translateY(-50%);

   background-image: url("/image/background.png");
    background-size:  cover;
    background-repeat:   no-repeat;
    background-position: center center;
}

#content_container, .content_overlay {
    height: 100%;
    width: 100%;
    position: relative;
}

#content_container .content_overlay {
    position: absolute;
    left: 0;
    top: 0;
    background-size:  contain;
    background-repeat:   no-repeat;
    background-position: center center;
}

#content_container img{
    height: 100%;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#menuleft {
    left: 2vw;
    right: 50vw;
    bottom: 3vh;
    top: auto;
}

#menuright {
    left: 50vw;
    right: 2vw;
    bottom: 3vh;
    top: auto;
}

#statusbar {
    top: 5vh;
    left: 0;
    right: 0;
    pointer-events: none;
}

.statuscontainer{
    display: inline-block;
    position: relative;
    margin-left: 49.5vw;
    transform: translateX(-49.5%);
    white-space: nowrap;
}

.statuscontainer .status{
    display: inline-block;
    position: relative;
    width:  11vw;
    height: 11vw;
}

.statuscontainer .status:not(:last-child){
    margin-right: 1vw;
}

.statuscontainer .status img{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.statuscontainer .status img.overlay{
    object-position: 0 100%;
    object-fit: cover;
}

.message {
    position: absolute;
    width: 94%;
    padding: 5px;
    left: 3%;
    font-size: 3vmin;
    border-radius: 7px;
    display: none;
    z-index: 51;
    word-wrap: break-word;
}

#infodialog {
    bottom: 3%;
    background-color: rgba(255, 255, 255, .4);
    border: solid 5px rgba(80, 29, 29, 0.28);
}

#errordialog {
    top: 3%;
    background-color: rgba(220, 170, 170, .9);
    border: solid 5px rgba(255, 29, 29, 0.9);
}

.menucontainer{
    position: relative;
    margin-left: 3%;
}

.menuitem{
    display: inline-block;
}
    
.menuitem:not(:last-child){
    margin-right: 4%;
}

.bubblemenu{
    position: relative;
}

.bubblemenu .mainbubble:active, .bubblemenu .mainbubble:focus {
  outline: 0;
  border: none;
  -moz-outline-style: none;
}

.bubblemenu .mainbubble:focus + .bubblemenusub,
.bubblemenu .mainbubble:active + .bubblemenusub{
    display: block;
}

.bubblemenusub {
    display: none;
    position: absolute;
    bottom: 130%;
    left: 0;
    white-space: nowrap;
}

.bubblemenusub .bubble{
    display: block;
    margin-bottom: 1vw;
}

.bubblemenu .bubble{
    border-radius: 50%;
    background-color: green;
    width:  11vw;
    height: 11vw;
    position: relative;
    cursor: pointer;
    box-shadow: inset 30px 30px 75px rgba(0, 0, 0, 0.1), 
                inset 0px 0px 15px rgba(0, 0, 0, 0.5), 
                inset 0px 0px 20px rgba(255, 255, 255, 0.5), 
                inset 1px 1px 3px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(255, 255, 255, 0.35);
   background:rgba(255,255,255,.4); 
}

.bubblemenu .bubble:hover{
   background:rgba(255,255,255,.2); 
}

.bubblemenu .bubble img{
    border-radius: 50%;
    width:  100%;
    height: 100%;
    position: relative;
    z-index: -1;
}

.bubblemenu .bubble:before{
    border-radius: 75% 25%;
    position: absolute;
    width: 50%;
    height: 50%;
    //background-color: rgba(255, 0, 0, 0.3);
    content: "";
    top: 10%;
    left: 10%;
    box-shadow:inset 10px 10px 50px rgba(255,255,255,.4);
    z-index: 3;
}

.bubblemenu .bubble:hover:before{
    box-shadow:inset 10px 10px 50px rgba(255,255,255,.2);
}

.bubblemenu .bubble:after{
    border-radius: 50%;
    position: absolute;
    width: 100%;
    height: 100%;
    //background-color: rgba(0, 0, 255, 0.3);
    content: "";
    top: 0;
    left: 0;
    box-shadow:inset 0px -10px 10px rgba(0,0,0,.05);
    z-index: 3;
}

.bubblemenu .bubble:hover:after{
    box-shadow:inset 0px -10px 10px rgba(0,0,0,.02);
}

.dialog{
  position: absolute;
  display: flex;
  flex-flow: column;
  min-width: 10vw;
  max-width: 90vw;
  width: 80vw;
  min-height: 30vh;
  max-height: 80vh;
  border: solid 3px #c69f8a;
  border-radius: 10px;
  box-shadow: 2px 3px #897772;
  background-color: #DCCEC6;
  overflow: hidden;
  resize: both;
  z-index: 1000;
}

.dialog-titelbar{
  height: 25px;
  background-image: linear-gradient(#D2C9AF, #C7A28D, #957D76);
  border-bottom: solid 3px #c69f8a;
}

.dialog-titelbar .dialog-titel{
  display: inline-block;
  position: relative;
  vertical-align: middle;
  margin-left: 5px;
  margin-top: -4px;
  color: #F3E2D9;
  font-weight: bold;
}

.dialog-buttons{
  display: inline-block;
  position: relative;
  vertical-align: middle;
  float: right;
  margin-right:3px;
  height: 100%;
  margin-left: 15px;
  margin-top: -2px;
}

.dialog-button{
  padding: 0;
  border: none;
  background: none;
  -webkit-appearance: initial;
  width: 20px;
  height: 20px;
  text-align: center;
  color: #F3E2D9;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
}

.dialog-button:hover, .dialog-button:active, .dialog-button:focus{
  padding: 0;
  border: none;
  background: none;
  -webkit-appearance: initial;
  outline: none;
}

.dialog-button:hover{
  color: #c69f8a;
}

.dialog-content-container{
    position: relative;
    flex: 2;
    overflow-y: scroll;
    overflow-x: hidden;
}

.dialog-content{
  margin: 5px;
}

.default-button {
    text-transform: uppercase;
    font-weight: bold;
    border: solid 2px #c69f8a;
    border-radius: 5px;
    color: #725B4F;
    padding: 3px;
    margin: 3px;
    background-image: linear-gradient(#f2e9cF, #e7c2aD, #b59D96);
}

.default-button:hover, .default-button:focus, .default-button:active {
    outline: none;
}

.default-button:hover {
    background-image: linear-gradient(#e2d9bF, #d7b29D, #a58D86);
}

.default-button:active {
    background-image: linear-gradient(#e2d9bF, #d5b09b, #a58D86);
}


/* RELEASENOTES */

.releasenotes-container{
  width: 100%;
}

.releasenotes {
  display: block;
  position: relative;
  padding: 5px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: groove 3px #c69f8a;
}

.releasenotes:last-of-type {
    border-style: none;
}

.releasenotes-titelbar {
  margin-bottom: 5px;
  font-weight: bold;
}

.releasenotes-titelbar::after {
  content: "";
  clear: both;
}

.releasenotes-titel, .releasenotes-date {
  display: inline-block;
}

.releasenotes-date {
  float: right;
}

/* RELEASENOTES END*/



/* SCROLLPANE */

.scrollpane {
    position: relative;
    width: 100%;
    height:  100%;
}

.scrollpane .viewport { 
    width: 100%;
    height: 100%;
    overflow: hidden; 
    position: relative; 
}

.scrollpane .overview { 
    list-style: none; 
}

.scrollpane .scrollbar{ 
    background-color: blue; 
    position: relative; 
    background-position: 0 0;
    float: right; 
    width: 15px; 
}

.scrollpane .track { 
    background-color: red; 
    height: 100%; 
    width:13px; 
    position: relative; 
    padding: 0 1px; 
}

.scrollpane .thumb {
    background: yellow; 
    height: 20px; 
    width: 25px; 
    cursor: pointer; 
    overflow: hidden; 
    position: absolute; 
    top: 0; 
    left: -5px; 
}

.scrollpane .thumb .end { 
    background: gray; 
    overflow: hidden; 
    height: 5px; width: 
    25px; 
}
.scrollpane .disable { 
    display: none; 
}

.noSelect { 
    user-select: none; 
    -o-user-select: none; 
    -moz-user-select: none; 
    -khtml-user-select: none; 
    -webkit-user-select: none; 
}

/* SCROLLPANE END */



/* IFNO DIALOG */

.infobox-header::after {
  content: "";
  clear: both;
}

.infobox-portrait {
  display: inline-block;
  width: 16vw;
  height: 16vw;
  border: ridge 6px #9b8279;
  overflow: hidden;
  position: relative;
}

.infobox-portrait img{
  object-fit: cover;
  object-position: 50% 50%;
  margin-left: -41%;
  width: 186%;
  height: 100%;
}

.infobox-main {
  display: inline-block;
  margin-left: 15px;
  vertical-align: top;
  line-height: 25px;
  max-width: calc(100% - 16vw - 25px);
}

.infobox-main .info {
  display: block;
  margin-bottom: 8px;
}

.infobox-main .subinfo {
  display: block;
  padding-left: 10px;
  margin-bottom: 4px;
  position: relative;
  line-height: normal;
}

.infobox-main .subinfo p{
  margin: 0;
}

.infobox-main .subinfo:before {
  display: inline-block;
  position: absolute;
  font-weight: bold;
  font-size: 25px;
  left: 0;
  top: -6px;
  content: "·";
}

.infobox-main .info .key {
  font-weight: bold;
}

/* INFO DIALOG END */



/* FORM MATCH GAME */

.game-formmatch-form{
    position: fixed;
    display: inline-block;
    width: 8vh;
    height: 8vh;
    background-size:  cover;
    background-repeat:   no-repeat;
    background-position: center center;
    z-index: 8888;
    font-size: 50px;
}

.game-formmatch-sample{
    position: absolute;
    display: inline-block;
    width: 12%;
    height: 12%;
    background-size:  cover;
    background-repeat:   no-repeat;
    background-position: center center;
    z-index: 555;
    top: 15%;
    left: 30%;
}

/* FORM MATCH GAME END */






/* Landscape */
@media screen and (orientation:landscape) {

   body{
    height: 100vh;
    width: 100vw;
    max-width: none;
   }

   .message_pane {
      width: 100vh;
      height: 100vh;
      max-height: 100%;
      max-width: none;
      top: 0;
      transform: translateY(0);
      left: 50%;
      transform: translateX(-50%);
    }

   .content {
      width: 100vh;
      height: 100vh;
      max-height: 100%;
      max-width: none;
      top: 0;
      transform: translateY(0);
      left: 50%;
      transform: translateX(-50%);
    }

    #menuleft {
        left: 5vw;
        right: auto;
        top: 0;
        bottom: 0;
    }

    #menuright {
        right: 5vw;
        left: auto;
        top: 0;
        bottom: 0;
    }

    .menucontainer{
        position: relative;
        margin-top: 50vh;
        transform: translateY(-50%);
    }

    .menuitem{
        display: block;
    }

    
    .menuitem:not(:last-child){
        margin-bottom: 10vh;
    }

   .bubblemenu .bubble{
        width:  6vw;
        height: 6vw;
    }

    .bubblemenusub {
        top: 0;
        left: 130%;
        white-space: nowrap;
    }

    .bubblemenusub .bubble{
        display: inline-block;
        margin-left: 1vw;
    }

    #menuright .bubblemenusub{
        left: 0;
        transform: translatex(-130%);
    }

    .statuscontainer .status{
        width:  6vw;
        height: 6vw;
    }

    .statuscontainer .status:not(:last-child){
        margin-right: 3vw;
    }

    /* DIALOG */

    .dialog{
      min-width: 10vw;
      max-width: auto;
      width: 50vw;
      min-height: 10vh;
      max-height: 80vh;
    }

    /* DIALOG END */

    /* FORM MATCH GAME */

    .game-formmatch-form{
        width: 8vw;
        height: 8vw;
    }

    /* FORM MATCH GAME END */
}




@-webkit-keyframes rotating {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
