/*
 * Copyright 2017 The CodeWorld Authors. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

html { height: 100%; width: 100%; }

body {
  height: 100%;
  background-color: #e5eff9;
  margin: 0px;
  overflow: hidden;
}

#toolbar {
  display: flex;
  display: -webkit-flex;
  display: -ms-flex;
  align-items: stretch;
  -webkit-align-items: stretch;
  -ms-align-items: stretch;
  flex-direction: row;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
}

#toolbar div {
  flex: 0 0 auto;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  display: flex;
  display: -webkit-flex;
  display: -ms-flex;
  align-items: stretch;
  -webkit-align-items: stretch;
  -ms-align-items: stretch;
  flex-direction: row;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
}

#toolbar span {
  flex: 1 1 auto;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
}

#nav {
  display: flex;
  display: -webkit-flex;
  display: -ms-flex;
  align-items: stretch;
  -webkit-align-items: stretch;
  -ms-align-items: stretch;
  flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;

  overflow-y: auto;
  padding-bottom: 3px;
}

.nav_items {
  flex: 0 0 auto;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  display: flex;
  display: -webkit-flex;
  display: -ms-flex;
  align-items: stretch;
  -webkit-align-items: stretch;
  -ms-align-items: stretch;
  flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;

  margin: 0px;
}

#keyboard-shortcuts {
  text-align: center;
  height: 50vh;
  overflow: auto;
}

#keyboard-shortcuts table {
  border-collapse: collapse;
  display: inline-block;
}

#keyboard-shortcuts table tbody tr td {
  border: 1px solid black;
  padding: 4px;
}

#source {
  position: relative;
}
#source .CodeMirror {
  position:absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  height: auto;
}

#result {
  display: flex;
  display: -webkit-flex;
  display: -ms-flex;
  align-items: stretch;
  -webkit-align-items: stretch;
  -ms-align-items: stretch;
  flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;

  margin: 0px;
}

#runner {
  flex: 0 0 500px;
  -webkit-flex: 0 0 500px;
  -ms-flex: 0 0 500px;

  position: relative;
}

#message {
  flex: 1 1 20px;
  -webkit-flex: 1 1 20px;
  -ms-flex: 1 1 20px;

  overflow: auto;
  font-size: 11px;
  padding: 5px;
  margin-bottom: 0px;
}
#message.error {
  background-color: #fcc;
}

#message a {
  cursor: pointer;
}

.cw-button {
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
  font-family: arial, helvetica, sans-serif;
  margin: 3px 3px 0px 3px;
  padding: 6px 6px 6px 6px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  color: white; background-color: #144ba6;
  white-space: nowrap;
  overflow: hidden;
}

#toolbar .cw-button {
  margin-bottom: 3px;
  margin-top: 0px;
}

.cw-button * {
  vertical-align: middle;
}

.cw-button.yellow,
.cw-button.yellow:hover:active,
.cw-button.green.project-active,
.cw-button.green.project-active:hover:active {
  background-color: #a6a614;
}

.cw-button.yellow:hover,
.cw-button.green.project-active:hover {
  background-color: #78780f;
}

.cw-button.green,
.cw-button.green:hover:active {
  background-color: #4ba614;
}

.cw-button.green:hover {
  background-color: #36780f;
}

.cw-button.blue,.cw-button.blue:hover:active {
  background-color: #144ba6;
}

.cw-button.blue:hover {
  background-color: #0f3678;
}

.cw-button.red,.cw-button.red:hover:active {
  background-color: #a62b14;
}

.cw-button.red:hover {
  background-color: #78160f;
}

.cw-button.cyan,.cw-button.cyan:hover:active {
    background-color: #00A0A0;
}

.cw-button.cyan:hover {
    background-color: #007070;
}

.cw-button:focus { outline: none; }
::-moz-focus-inner { border:0; }

.dropbox {
  background-color: white;
  border: solid #cccccc 1px;
  box-shadow: 1px 1px 2px #000;
  margin: 2px 4px 4px 2px;
  text-align: left;
}

.sweet-alert.helpdoc {
  top: 3vh;
  left: 10vw;
  width: 80vw;
  height: 90vh;
  margin: 0px 0px 0px 0px !important;
  padding: 10px 15px 15px 10px !important;
  position: fixed;
}
.sweet-alert.helpdoc div { display: none; }
.sweet-alert.helpdoc fieldset { display: none; }
.sweet-alert.helpdoc h2 { display: none; }
.sweet-alert.helpdoc p {
  display: block;
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
  height: 100%;
}

.ui-layout-resizer-west-dragging {
  background-color: #444444;
  cursor: ew-resize !important;
}

.ui-layout-resizer-west-open:hover {
  cursor: ew-resize !important;
}

.ui-layout-toggler-east,
.ui-layout-toggler-west {
  background-color: #444444;
  opacity: 1.0;
  cursor: pointer !important;
}

.matching-bracket {
  font-weight: bolder;
}

.non-matching-bracket {
}

.function-highlight {
  border-bottom: solid ; border-color: #888888;
}

.function-name-highlight {
  border-bottom: solid ; border-color: #888888;
  font-style: italic;
}

#recordIcon {
  color: #B30000;
  animation: record-blink 1s cubic-bezier(.5, 0, 1, 1) infinite alternate;
}

@keyframes record-blink {
  from { opacity: 1; }
  to { opacity: 0; }
}

.widescreen {
    cursor: default;
    width: 100vw;
    height: 76vh;
    max-width: 100vw;
    max-height: 76vh;
}
.squared {
    cursor: default;
    width: 76vh;
    height: 76vh;
    max-width: 76vh;
    max-height: 76vh;
}
.fullscreen {
    cursor: default;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
}
#message.draw {
    cursor: default;
    width: 480vw;
    height: 20vh;
    max-width: 48vw;
    max-height: 20vh;
    float:right;
}
#message.game {
    cursor: default;
    width: 100vw;
    height: 20vh;
    max-width: 100vw;
    max-height: 20vh;
}

#textbutton {
float:left;margin-left:-4vw;margin-top:17vh;
}

#textmessage{cursor:default;width:48vw;height:20vh;max-width:48vw;max-height:20vh;float:right;}
 
textarea#text {
	width: 48vw;
	height: 20vh;
    max-width:48vw;max-height:20vh;
    float: left;
	border: 3px solid #cccccc;
	padding: 5px;
	font-family: Tahoma, sans-serif;
	background-position: bottom right;
	background-repeat: no-repeat;
}