﻿#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 {
    opacity: .7;
    display: inline-block;
    position: absolute;
    pointer-events: auto;
}

.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 {
    font-size: .8em;
    vertical-align: bottom;
    position: relative;
    z-index: 5;
    opacity: .6;
    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: 0 0 .1em .25em;
}

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

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

/* MODAL - left - bottom */

.modal-left-bottom {
    padding: .2em .35em;
    background: black;
    opacity: 0.8;
    color: white;
    border-radius: 0 0 .4em .4em;
    min-height: 1.2em;
    height: auto;
    white-space: nowrap;
    overflow: hidden;
}

.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.8;
    border-radius: .5em;
    pointer-events: auto;
    bottom: 1em;
    right: 1em;
}

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

#global-settings-open-btn {
    font-size: 1.5em;
}

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

#global-options-dlg {
    opacity: 0.9;
    position: absolute;
    width: 11em;
    height: 29em;
    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: 1em 0;
    padding: .4em;
}

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

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

.global-options-section div[style*="text-align: center"] {
    margin-bottom: 1em;
}

.global-options-section div[style*="text-align: center"]:last-child {
    margin-bottom: 0;
}

/* 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;
}

/* Custom Buttons */

.game-intro-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.game-intro-container section {
    margin-bottom: 30px;
}

.game-intro-container h3 {
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.game-intro-container h4 {
    color: #444;
    margin: 15px 0 10px;
    font-size: 1.2em;
}

.game-intro-container p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.game-intro-container ul, 
.game-intro-container ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.game-intro-container li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #666;
}

.game-intro-container strong {
    color: #444;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .game-intro-container {
        margin: 20px;
        padding: 15px;
    }
    
    .game-intro-container h3 {
        font-size: 1.3em;
    }
    
    .game-intro-container h4 {
        font-size: 1.1em;
    }
}

.copyright-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9em;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.copyright-footer p {
    margin: 0;
}