body {
    font-family: "Arial", Gadget, sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: #eee;
    background-color: #000;

    margin: 0;

    overflow-y: hidden; /* hide page level scroll bar. */
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

div {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.game-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.game-canvas-container {
    position: relative;
}

.game-canvas {
    /*background-color: #000;*/
    background-color: #DDEEFF;
    z-index: -1;
    outline: none;
}

.game-title {
    padding: 10px;
}

/*******************************************************/
/* GENERAL                                             */
/*******************************************************/

.disabled-text {
    color: #888;
}

/* **************************************************************************************** */
/* Victory UI.                                                                              */
/* **************************************************************************************** */

.game-victory-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    text-align: center;
    background-color: #111;
    z-index: 10;
}

.victory-title {
    margin-top: 100px;
    font-size: 100px;
    color: #CCC;
    font-weight: bold;
}

.victory-comments {
    color: #CCC;
    font-size: 25px;
    margin-top: 15px;
}

.restart-button {
    margin-top: 30px;
    width: 450px;
    padding: 10px;
    text-align: center;
    font-size: 23px;
    margin-left: auto;
    margin-right: auto;
    background-color: #444;
}

/*******************************************************/
/* MENU                                                */
/*******************************************************/

.menu-closed {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 700px;
    height: 32px;
    z-index: 2;
    transition-duration: 0.2s;
}

.menu-open {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 867px;
    height: 349px;
    z-index: 2;
    transition-duration: 0.2s;
}

.menu-header {
    background-color: #400;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    cursor: pointer;
}

.menu-header:hover {
    background-color: #800;
}

.menu-open .menu-contents {
    position: absolute;
    visibility: visible;
    bottom: 0;
    left: 0;
    top: 32px;
    width: 100%;
    background-color: #222;
}

.menu-closed .menu-contents {
    position: absolute;
    overflow: hidden;
    visibility: collapse;
    bottom: 0;
    left: 0;
    top: 32px;
    width: 100%;
    background-color: #222;
}

.menu-contents-container {
    margin: 8px;
}

/*******************************************************/
/*    BOTTOM MENU HEADER                               */
/*******************************************************/

.menu-header-container {
    position: relative;
    height: 32px;
}

.menu-header-title {
    position: absolute;
    left: 10px;
}

.menu-header-rate {
    position: absolute;
    right: 10px;
}

.menu-header-money {
    position: absolute;
    right: 360px;
}

.menu-header-bonus {
    position: absolute;
    right: 200px;
}

/*******************************************************/
/* MODE MENU                                           */
/*******************************************************/

.mode-menu-closed {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 32px;
    z-index: 2;
    transition-duration: 0.2s;
}

.mode-menu-open {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 190px;
    z-index: 2;
    transition-duration: 0.2s;
}

.mode-menu-header {
    background-color: #400;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    cursor: pointer;
}

.mode-menu-header:hover {
    background-color: #800;
}

.mode-menu-open .mode-menu-contents {
    position: absolute;
    visibility: visible;
    bottom: 0;
    left: 0;
    top: 32px;
    width: 100%;
    background-color: #222;
}

.mode-menu-closed .mode-menu-contents {
    position: absolute;
    overflow: hidden;
    visibility: collapse;
    bottom: 0;
    left: 0;
    top: 32px;
    width: 100%;
    background-color: #222;
}

/*******************************************************/
/*  BUTTONS                                            */
/*******************************************************/

.game-button {
    border: 1px solid #444;
    padding: 10px;
    cursor: pointer;
    color: #FFF;
}

.game-button:hover {
    border: 1px solid #888;
    background-color: #333;
    cursor: pointer;
}

.game-button:active {
    position: relative;
    top: 1px;
    cursor: pointer;
}

/*******************************************************/
/*    SECTION                                          */
/*******************************************************/

.menu-section {
    border: 1px solid #444;
}

.menu-section-header {
    background-color: #444;
    padding: 8px;
}

.menu-section-body {
    padding: 8px;
}

/*******************************************************/
/*    SPECIFIC UI ELEMENTS                             */
/*******************************************************/

.auto-purchase-follow-mode-div {
    cursor: pointer;
    float:right;
}

.auto-purchase-checkbox-div {
    display: inline-block;
    cursor: pointer;
}

.auto-purchase-checkbox-label {
    float: right;
    padding-left: 3px;
    padding-top: 3px;
}

.link-item {
    padding: 2px;
}

.link-anchor {
    color: #EEE;
}

.import-export-textarea {
    width: 400px;
    height: 30px;
    /* chrome inserts some whitespace below textarea. this gets rid fo that. */
    vertical-align: top;
}

.save-button {
    float: left;
    margin-left: 5px;
    width: 50px;
    text-align: center;
}

/*******************************************************/
/*    NUMBERS SECTION                                  */
/*******************************************************/

.numbers-section-row {
    overflow:hidden;
    padding-bottom: 1px;
}
.numbers-section-value {
    text-align: right;
    float:right;
}
