body, html {background:white; width:100%; height:100%}

body, button, select {font-size:2.5vh;}

#loading {
   width: 264px; height: 34px;
    display: block;
    position:absolute;
    top:0;
    left: 0;
    right:0;
    bottom: 0;
    margin:auto;
  z-index:1000;
}

.buttonesolitario{
    display:none;
    position: absolute;
    right: 35%;
    bottom: 4vh;
    pointer-events: auto;
}


#canvas-wrap {
    height: 100%;
    overflow: hidden;
    background: url(art_assets/bg1.jpg) no-repeat;
    background-size: cover;
}

#canvas-resources {
    display: none;
}

#ui-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.lite-red {
    color: #fff2f2;
}

.lite-green {
    color: #e4ffe5;
}

.lite-yellow {
    color: #fcfedf;
}

.clear:after {
    content: "";
    display: block;
    clear: both;
}

/* MODAL */

.modal {
    display: inline-block;
    position: absolute;
    pointer-events: auto;
    padding-bottom:1vh; 
}

.modal:hover {
    opacity: 1;
}

.modal-controls, .modal-control, .modal-title, .modal-left, .modal-right {
    display: inline-block;
}

/* MODAL - left */

/* MODAL -left - top */

.modal-left-top, .modal-right-top {
   vertical-align: bottom;
    position: relative;
    z-index: 5;
    color: #e7f2c3;
    border-radius: .5em .5em 0 0;
}

.modal-left-top {
    background-color: #333333;
    border: black solid .1em;
}

.modal-left-top, .modal-title {
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

.modal-left-top:active, .modal-title:active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.modal-left-top:hover, modal-right-top:hover {
    opacity: 1;
}

.modal-title {
    float: left;
    color: lightgray;
    padding: 0 .1em;
}

.modal-controls {
    cursor: default;
    text-align: center;
    float: right;
    margin: .5vh;
}

.modal-control {
    cursor: default;
    text-align: center;
    vertical-align: bottom;
    opacity: .8;
    padding: 0 .5vh;
    margin: 0 .5vh;
}

.modal-control:hover {
    opacity: 1;
    color: black;
    background-color: white;
}

/* MODAL - left - bottom */

.modal-left-bottom {
    padding: 1vh 2vh;
    background: black;
    color: white;
    border-radius: 0 0 .4em .4em;
}

.modal-left-bottom:hover {
    opacity: 1;
}

/* MODAL - right */
.modal-right {
    vertical-align: top;
    opacity: 0.7;
    color: #ffffff;
}

.modal-right:hover {
    opacity: 1;
}

/* MODAL - right - top */
.modal-right-top {
    min-height: 1.45em;
}

/* MODAL - right - bottom */

.modal-right-bottom {
    background-color: black;
    border-top-right-radius: .4em;
    border-bottom-right-radius: .4em;
}

.modal-drag-handle {
    width: .55em;
    height: 1.3em;
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

.modal-drag-handle:active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.modal-btn {
    cursor: default;
}

/* MODAL */

/* Global Options Dlg */

#global-settings-open-wrap {
    position: absolute;
    background: black;
    opacity: 0.6;
    border-radius: .5em;
    pointer-events: auto;
    bottom: 1em;
    right: 1em;
}

#global-settings-open-wrap:hover {
    opacity: 1;
}

#global-settings-open-btn {
    font-size: 3vh;
}

#dim-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    opacity: 0.5;
    z-index: 1000;
    pointer-events: auto;
}

#global-options-dlg {
    position: absolute;
    width: 11em;
    height: 13em;
    z-index: 1001;
    background: black;
    border-radius: .75em;
    padding: .3em;
    color: white;
    border: #191919 solid .15em;
    box-shadow: #3b3b3b .1em .1em;
    pointer-events: auto;
}

#global-options-header {
    width: 100%;
    height: 1.5em;
    position: relative;
    background-color: #161600;
    border-top-left-radius: .75em;
    border-top-right-radius: .75em;
    padding: 0 .2em;
    margin: -.2em -.2em -.2em -.2em;
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

#global-options-header:active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

#global-options-close-btn {
    cursor: default;
    border-radius: .3em;
    padding: 0.1em;
}

#global-options-close-btn:hover {
    background: white;
    color: black;
}

.global-options-section {
    border-radius: .5em;
    margin-bottom: -.25em;
    padding: .4em;
}

.global-options-section legend {
    font-size: 3vh;
    color: white;
    display: block;
}

.global-options-section button {
    width: 100%;
}

/* Global Options Dlg */

/* Custom Buttons */
/* http://www.bestcssbuttongenerator.com/ */
button {
    border-radius: .3em;
    /*background-color: #191919;*/
    /*color: white;*/
    /*border: gray solid .1em;*/
}

button:hover {
    /*background-color: black;*/
}

button:disabled {
    background-color: #4e4e4e;
    color: #797979;
}




/* Portrait / Landcape on mobile */

@media all and (orientation:portrait) {
  #rotate { 
    background: #EEE url("../rotate-phone.png") no-repeat fixed center; 
    display: block;
    position:absolute;
    top:0;
    left: 0;
    right:0;
    bottom: 0;
    margin:auto;
  z-index:1000;
   }
}

@media all and (orientation:landscape) {
   #rotate { display:none;}
}

