/**
 * The Render Engine
 * Engine CSS
 *
 * @author: Brett Fattori (brettf@renderengine.com)
 * @author: $Author: bfattori $
 * @version: $Revision: 1555 $
 *
 * Copyright (c) 2011 Brett Fattori (brettf@renderengine.com)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 */

body {
    overflow: hidden;
    margin: 0;
    font: 10pt Arial;
}

div.metrics {
    position: fixed;
    top: 10px;
    width: 200px;
    right: 10px;
    border: 1px solid black;
    background: white;
    padding: 2px;
    font: 10px Arial, Helvetica;
    z-index: 10000;
}

div.metrics .items {
    clear: both;
    position: relative;
    width: 200px;
    background: ghostwhite;
}

div.metric-button {
    background-color: silver;
    width: 15px;
    height: 15px;
    border: 1px outset white;
    float: left;
    margin-right: 3px;
}

div.metric-button.close,
div.metric-button.minimize,
div.metric-button.maximize {
    float: right;
}

.run {
    background: url('$<enginePath>/css/run.png') no-repeat;
}

.step {
    background: url('$<enginePath>/css/step.png') no-repeat;
}

.pause {
    background: url('$<enginePath>/css/pause.png') no-repeat;
}

.shutdown {
    background: url('$<enginePath>/css/shutdown.png') no-repeat;
}

.minimize {
    background: url('$<enginePath>/css/minimize.png') no-repeat;
}

.maximize {
    background: url('$<enginePath>/css/maximize.png') no-repeat;
}

.close {
    background: url('$<enginePath>/css/close.png') no-repeat;
}

canvas.engine-profile {
    position: fixed;
    bottom: 10px;
    width: 150px;
    height: 100px;
    left: 10px;
    border: 1px solid white;
    background: black;
    z-index: 10000;
}

/* Virtual D-Pad Styles */

.virtual-d-pad,
.virtual-buttons {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 20000;
    width: 280px;
    height: 200px;
}

.virtual-buttons {
    left: auto;
    right: 20px;
}

.virtual-d-pad .button,
.virtual-buttons .button {
    position: absolute;
    background: gray url('$<enginePath>/css/virtualdpad.png') no-repeat;
    opacity: 0.5;
    border-radius: 10px;
    width: 80px;
    height: 80px;
}

.virtual-buttons .button {
    font: 40pt Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: black;
    background: gray;
    text-align: center;
    padding-top: 1px;
    border-radius: 80px;
}

.virtual-d-pad .button.up {
    top: 0;
    left: 90px;
    background-position: 3px 2px;
}

.virtual-d-pad .button.down {
    bottom: 10px;
    left: 90px;
    background-position: -37px 4px;
}

.virtual-d-pad .button.left {
    left: 0;
    top: 50px;
    background-position: -79px 2px;
}

.virtual-d-pad .button.right {
    right: 20px;
    top: 50px;
    background-position: -116px 2px;
}

.virtual-buttons .button.A {
    left: 0;
    top: 50px;
}

.virtual-buttons .button.B {
    left: 90px;
    top: 50px;
}

.virtual-buttons .button.C {
    left: 180px;
    top: 50px;
}

/* UI Control Styles */

.ui.default {
    visibility: hidden;
    display: inline-block;
    color: #000000;
    background-color: #ffffff;
    border: 1px #888888;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.ui.inputcontrol {
}

.ui.buttoncontrol {
    background-color: silver;
    text-align: center;
    width: 100px;
    height: 24px;
}

.ui.checkboxcontrol,
.ui.radiocontrol {
    color: #555;
    width: 16px;
    height: 16px;
}

.ui.labelcontrol {
    color: #fff;
    background-color: transparent;
    border: 1px transparent;
    font-weight: bold;
}

.ui.fieldgroup {
    background-color: transparent;
    color: white;
}
