/* Copyright 2016 Spongelab Inc. */
html {
  font-family: sans-serif; 
  -ms-text-size-adjust: 100%; 
  -webkit-text-size-adjust: 100%; 
}
body {
  margin: 0;
}
article,
aside,
details, 
figcaption,
figure,
footer,
header,
main, 
menu,
nav,
section,
summary { 
  display: block;
}
audio,
canvas,
progress,
video {
  display: inline-block;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
progress {
  vertical-align: baseline;
}
template, 
[hidden] {
  display: none;
}
a {
  background-color: transparent; 
  -webkit-text-decoration-skip: objects; 
}
a:active,
a:hover {
  outline-width: 0;
}
abbr[title] {
  border-bottom: none; 
  text-decoration: underline; 
  text-decoration: underline dotted; 
}
b,
strong {
  font-weight: inherit;
}
b,
strong {
  font-weight: bolder;
}
dfn {
  font-style: italic;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
mark {
  background-color: #ff0;
  color: #000;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
img {
  border-style: none;
}
svg:not(:root) {
  overflow: hidden;
}
code,
kbd,
pre,
samp {
  font-family: monospace, monospace; 
  font-size: 1em; 
}
figure {
  margin: 1em 40px;
}
hr {
  box-sizing: content-box; 
  height: 0; 
  overflow: visible; 
}
button,
input,
select,
textarea {
  font: inherit; 
  margin: 0; 
}
optgroup {
  font-weight: bold;
}
button,
input { 
  overflow: visible;
}
button,
select { 
  text-transform: none;
}
button,
html [type="button"], 
[type="reset"],
[type="submit"] {
  -webkit-appearance: button; 
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
legend {
  box-sizing: border-box; 
  color: inherit; 
  display: table; 
  max-width: 100%; 
  padding: 0; 
  white-space: normal; 
}
textarea {
  overflow: auto;
}
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; 
  padding: 0; 
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield; 
  outline-offset: -2px; 
}
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-input-placeholder {
  color: inherit;
  opacity: 0.54;
}
::-webkit-file-upload-button {
  -webkit-appearance: button; 
  font: inherit; 
}

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}
::selection {
    text-shadow: none;
}
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}
audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
/* ==========================================================================
   jQuery-UI(v1.12.0) Structure CSS, for the few cases where it helps
   Copyright jQuery Foundation and other contributors, released under the
   MIT license: http://jquery.org/license
   ========================================================================== */
.ui-draggable-handle {
    -ms-touch-action: none;
    touch-action: none;
}
.ui-helper-hidden {
    display: none;
}
.ui-helper-hidden-accessible {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.ui-helper-reset {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    line-height: 1.3;
    text-decoration: none;
    font-size: 100%;
    list-style: none;
}
.ui-helper-clearfix:before,
.ui-helper-clearfix:after {
    content: "";
    display: table;
    border-collapse: collapse;
}
.ui-helper-clearfix:after {
    clear: both;
}
.ui-helper-zfix {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    opacity: 0;
    filter:Alpha(Opacity=0); 
}
.ui-front {
    z-index: 100;
}
.ui-state-disabled {
    cursor: default !important;
    pointer-events: none;
}
.ui-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.ui-button {
    padding: .4em 1em;
    display: inline-block;
    position: relative;
    line-height: normal;
    margin-right: .1em;
    cursor: pointer;
    vertical-align: middle;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    overflow: visible;
}
.ui-button,
.ui-button:link,
.ui-button:visited,
.ui-button:hover,
.ui-button:active {
    text-decoration: none;
}
input.ui-button::-moz-focus-inner,
button.ui-button::-moz-focus-inner {
    border: 0;
    padding: 0;
}
.ui-dialog {
    position: absolute;
    top: 0;
    left: 0;
    padding: .2em;
    outline: 0;
}
.ui-dialog .ui-dialog-titlebar {
    padding: .4em 1em;
    position: relative;
}
.ui-dialog .ui-dialog-title {
    float: left;
    margin: .1em 0;
    white-space: nowrap;
    width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ui-dialog .ui-dialog-titlebar-close {
    position: absolute;
    right: .3em;
    top: 50%;
    width: 20px;
    margin: -10px 0 0 0;
    padding: 1px;
    height: 20px;
}
.ui-dialog .ui-dialog-content {
    position: relative;
    border: 0;
    padding: .5em 1em;
    background: none;
    overflow: auto;
}
.ui-dialog .ui-dialog-buttonpane {
    text-align: left;
    border-width: 1px 0 0 0;
    background-image: none;
    margin-top: .5em;
    padding: 0.3em 0.5em;
}
.ui-dialog .ui-dialog-buttonpane button {
    margin: 0.2em 0.4em;
    cursor: pointer;
}
.question-dialog {
    border: 1px solid;
    border-radius: 5px;
    text-align: center;
}
body {
    width: 100vw;
    height: 95vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
}
.dialog-hide-close .ui-dialog-titlebar-close {
    display: none !important;
}
.dialog-hide-titlebar .ui-dialog-titlebar {
    display: none !important;
}
.dialog-hide-background {
    background: none !important;
    border: none !important;
	outline: none !important;
}
#title-screen {
    width: 60vw;
    height: 60vh;
    
    border-radius: 3em 3em 0.5em 0.5em;
}
#title-screen h1 {
    padding: 0.3em 0 0.3em;
    margin: 0;
    
    border-radius: 0.5em 0.5em 0 0;
    text-align: center;
    font-size: 3em;
}
#title-screen ul {
    display: inline-block;
    width: 100%;
}
#title-screen li {
    margin: 0.3em;
}
#title-screen button {
    width: 95%;
    margin-top: 20px;
    display: block;
    margin: auto;
    color: white;
    font-size: 2em;
    font-family: 'Open Sans', sans-serif;
    background-color: #89B0AE;
    padding: 20px;
    font-size: 1.6em;
    border-radius: 20px;
    text-align: center;
    border-style: none;
    color: white;
    transition: all 1s ease;
    font-family: 'Open Sans', sans-serif;
}
#title-screen button:hover {
    background-color: #aededc;
}
#title-screen img {
    display: block;
    margin: 0.5em auto;
    width: 100%;
}
#game-version {
    margin: 0.3em;
    position: absolute;
    right: 0;
    bottom: 0;
}
#game-screen {
    width: 100vw;
    height: 100vh;
}
#game-screen > header {
    height: 50px;
    margin: 0;
    padding: 10px;
}
#game-screen > header > h1 {
    display: inline;
    position: absolute;
    margin: 0;
    top: 0;
    left: 1.4em;
    font-size: 3em;
}
#game-screen > header > ul {
    position: absolute;
    right: 0;
    top: 0;
}
.game-header-button {
    padding: 0;
    margin: 0;
}
.game-header-button > img {
    width: 3em;
    height: 3em;
}
#game-button-quit {
    position: absolute;
    left: 0.5em;
    top: 0.5em;
}
#game-panel-preview {
    display: inline-block;
    
    height: calc(100vh - 230px);
    width: 240px;
    padding: 15px;
}
#game-object-preview {
    display: block;
    width: 200px;
    height: 140px;
    margin: auto;
}
#game-object-name {
    margin: 10px 0;
    text-align: center;
}
#game-object-description {
    
    height: calc(100vh - 230px - 190px);
    padding: 0;
    margin: 0;
    overflow-y: auto;
}
#game-panel-construction {
    float: right;
    position: relative; 
    display: inline-block;
    
    height: calc(100vh - 200px);
    
    width: calc(100vw - 270px);
    vertical-align: top;
    overflow-x: auto;
    overflow-y: auto;
}
#construction-area {
    display: block;
    margin: auto;
    position: absolute;
    bottom: 15px;
    border-radius: 20px;
    left: 0; 
    right: 0; 
    margin-left: auto; 
    margin-right: auto; 
}
.system-border {
    border-left: 1px solid;
    border-right: 1px solid;
    border-bottom: 1px solid;
}
.sub-system-construction {
    position: absolute;
    display: block;
    top: 5px;
    
    opacity: 0.8;
    filter: Alpha(Opacity=80);
    
    border: 3px dotted;
}
#game-panel-components {
    height: 128px;
    border: 1px solid;
}
#game-system-selected,
#game-case-selected {
    float: left;
    display: inline-block;
    width: 269px; 
    height: 100%;
}
#game-button-select-system {
    float: left;
    display: inline-block;
    height: calc(100% - 20px);
    width: calc(100% - 130px);
    margin: 10px;
    padding: 5px;
    font-size: 1.2em;
    border-radius: 20px;
    text-align: center;
    border-color: #555B6E;
    background-color: #555B6E;
    border-style: none;
    color: white;
    transition: all 1s ease;
    font-family: 'Open Sans', sans-serif;
}
#game-case-selected > label {
    display: block;
    margin: 10px 0;
    font-size: 1.5em;
    text-align: center;
}
#game-case-selected > select {
    display: block;
    margin: auto;
    width: 90%;
}
#game-system-selected-preview {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin: auto;
}
#game-system-selected-preview > img {
    display: block;
    width: 75px;
    height: 75px;
    margin: 10px auto 5px;
}
#game-system-selected-preview > p {
    margin: auto;
    text-align: center;
}
.force-block-centered {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
#game-system-list,
#game-object-list {
    height: 100%;
    
    width: calc(100% - 269px);
    margin: auto;
    white-space: nowrap;
    overflow-y: hidden;
    overflow-x: auto;
    
    text-align: center;
}
#game-system-list > li > label,
#game-object-list > li > label {
    display: block;
    margin: 0;
    padding: 0;
    text-align: center;
}
#game-system-list > li {
    margin: 0 5px 0;
    padding: 5px 30px 0;
}
.game-drag-button {
    display: block;
    margin: auto;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}
.game-drag-button:active {
    cursor: none;
}
.game-drag-button > img {
    width: 80px;
    height: 80px;
    z-index: 10;
}
.lock-icon {
    width: 24px !important;
    height: auto !important;
    position: absolute;
    left: 0;
    top: 0;
}
.game-drag-div {
    opacity: 0.5;
    filter: alpha(opacity=50);
    z-index: 8;
    cursor: none;
}
.game-drag-image {
    position: absolute;
    top: 0;
    left: 0;
}
.game-system-button-with-image {
    display: block;
    margin: auto;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}
.game-system-button-with-image > img {
    width: 78px;
    height: 78px;
}
.game-system-button-without-image {
    display: block;
    width: 20px;
    height: 20px;
    margin: 29px auto;
    padding: 0;
    border: 3px solid #555B6E;
    border-radius: 50%; 
    background-color: #89B0AE;
    cursor: pointer;
}
#game-score,
#game-clock {
    position: absolute;
    top: 70px; 
    left: 270px; 
    margin: 15px;
    z-index: 10; 
}
#game-score {
    margin-top: 15px;
}
#game-score > img,
#game-clock > img {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
}
#game-score > p {
    display: inline-block;
    margin: 0 0 0 5px;
    padding: 0;
    font-size: 1em;
    vertical-align: bottom;
}
#game-clock > p {
    display: inline-block;
    margin: 0 0 0 5px;
    padding: 0;
    font-size: 1em;
}
#game-button-subsystem-close {
    position: absolute;
    right: 0;
    margin: 10px;
}
#victory-dialog {
    opacity: .8;
    filter: Alpha(Opacity=80);
    border-radius: 10px;
    outline: none !important;
    border: none !important;
}
.timed-out-dialog {
    border-radius: 10px;
    outline: none !important;
    border: 1px solid;
}
#victory-dialog > h1,
#timed-out > h1 {
    margin: auto;
    text-align: center;
    font-weight: bold;
    font-size: 4em;
}
#victory-dialog > img,
#victory-dialog > p,
#timed-out > p {
    display: block;
    margin: 0.5em auto;
    text-align: center;
}
#victory-scoring, #victory-timing {
    font-size: 1.2em;
}
#help-image {
    width: 100vw;
    height: 100vh;
    margin: 0;
}
.help-dialog {
    margin: 0;
    padding: 0;
}
.js .js-warning,
.canvas .browser-warning,
.no-js .browser-warning {
    display: none;
}
.lt-ie8 .browser-warning {
	display: block !important;
}
.js-warning, .browser-warning {
    text-align: center;
}
.ui-widget-greyed-out {
    filter: gray; 
    filter: grayscale(1); 
    -webkit-filter: grayscale(1); 
}
.ui-button-disabled {
    cursor: default;
}
.center-layout {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}
.left-layout {
    float: left;
}
.right-layout {
    float: right;
}
.center-text {
    text-align: center;
}
.table-layout {
    display: table;
    table-layout: fixed;
    width: 100%;
}
.table-layout-cell {
    display: table-cell;
    vertical-align: top;
}
.table-layout-row {
    display: table-row;
}
.horizontal-layout ul {
    display: block;
}
.horizontal-layout li {
    display: inline-block;
    margin: 5px;
    padding: 5px;
    vertical-align: top;
}
.unstyled-list {
    padding: 0;
    margin: 0;
    list-style: none;
}
.hidden {
    display: none !important;
}
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}
.invisible {
    visibility: hidden;
}
.clearfix:before,
.clearfix:after {
    content: " "; 
    display: table; 
}
.clearfix:after {
    clear: both;
}

::selection {
    background: #89B0AE;
}
body {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    background-color: #FFFFFF;
}
h1, h2, h3 {
    font-family: Georgia, Times, "Times New Roman", serif;
}
#title-screen {
    background-color: #FAF9F9;
}
#title-screen > h1 {
    color: #FFFFFF;
    background-color: #555B6E;
}
.ui-button {
    border-color: #555B6E;
    background-color: #555B6E;
    font-weight: normal;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
}
.ui-button:hover,
.ui-button:focus {
    border-color: #555B6E;
    background-color: #444858;
    font-weight: normal;
    color: #ffffff;
}
.ui-visual-focus {
    box-shadow: 0 0 3px 1px rgb(240, 148, 144);
}
.ui-button:active,
.ui-button.ui-state-active:hover {
    border-color:#444858;
    background-color: #363946;
    font-weight: normal;
    color: #FFFFFF;
}
#game-screen header {
    background-color: #555B6E;
    color: #FFFFFF
}
.game-header-button {
    color: #FFFFFF;
    background-color: transparent;
    border: 0 transparent;
}
.game-header-button:hover,
.game-header-button:active {
    background-color: #555B6E;
    border: 0 transparent;
}
.game-header-button:focus {
    background-color: #555B6E;
}
.system-border {
    border-color: #89B0AE;
}
.sub-system-construction {
    background-color: #FFFFFF;
    border-color: #89B0AE;
}
#game-panel-preview {
    background-color: #FAF9F9;
}
#game-object-name,
#game-object-description {
    color: #555B6E;
}
#game-system-selected,
#game-case-selected {
    color: white;
    background-color: #89B0AE;
}
#game-panel-components {
    background-color: #FFFFFF;
    border-color: #89B0AE;
}
#game-object-list,
#game-system-list {
    color: #555B6E;
    background-color: #FFFFFF;
}
.game-drag-button,
.game-drag-button:active,
.game-system-button-with-image,
.game-system-button-with-image:active {
    background-color: transparent;
}
#game-object-list > li:hover,
#game-system-list > li:hover,
.game-drag-button:hover,
.game-system-button-with-image:hover,
.game-drag-button:focus,
.game-system-button-with-image:focus {
    background-color: #E7EFEF;
}
#game-system-list > li.greyed-out:hover {
    background-color: transparent;
}
.selected-game-component {
    background-color: #E7EFEF;
}
#game-score > p,
#game-clock > p {
    color: #ff0000;
}
.question-dialog,
#victory-dialog {
    color: #000000;
    background-color: #E7EFEF;
}
.timed-out-dialog {
    color: #000000;
    background-color: #DB7093;
    border-color: #8B0000;
}

