/**
 * style.css (https://github.com/chjj/tty.js)
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 */

html, body {
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  overflow-y: hidden;
}

div {
  border: 0;
  padding: 0;
  margin: 0;
}

html {
  background: #fff;
}

html.dark {
  background: #333;
}

html.maximized {
  overflow: hidden;
}

body {
  margin: 25px;
}

/* Only allow plaintext?
[contenteditable=""],
[contenteditable="true"] {
  -webkit-user-modify: read-write-plaintext-only !important;
}
*/

/**
 * Terminal
 */

.window {
  padding-top: 18px;
  /* border: #555 solid 1px; */
  /* background: #272829; */
  background: #ccc;
  border-radius: 4px;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  box-shadow: rgba(0, 0, 0, 0.8) 2px 2px 20px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.8) 2px 2px 20px;
  -moz-box-shadow: rgba(0, 0, 0, 0.8) 2px 2px 20px;
}

.maximized .window {
  border: none;
  box-shadow: none;
}

.dark .window {
  box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 20px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 20px;
  -moz-box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 20px;
}

.bar {
  position: absolute;
  border-bottom: #aaa solid 1px;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  padding: 1px;
  font-family: "DejaVu Sans Mono", "Liberation Mono", "Menlo", "Monaco", monospace;
  color: #333;
}

.dark .bar,
.maximized .bar {
}

.title {
  position: absolute;
  right: 5px;
  top: 2px;
  font-size: 11px;
  cursor: default;
}

.tab {
  font-family: "DejaVu Sans Mono", "Liberation Mono", "Menlo", "Monaco", monospace;
  font-size: 13px;
  line-height: 14px;
  margin-left: 8px;
  /* margin-top: -2px; */
  float: left;
  cursor: pointer;
}

.tab:hover {
  font-weight: bold;
}

.grip {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  cursor: se-resize;
  z-index: -1;
  background: transparent;
}

.grip:hover {
}

.terminal {
  border: #000 solid 5px;
  font-family: "DejaVu Sans Mono", "Liberation Mono", "Menlo", "Monaco",  monospace;
  font-size: 11px;
  color: #f0f0f0;
  background: #000;
}

.reverse-video {
  color: #000;
  background: #f0f0f0;
}

/**
 * Page
 */

h1 {
  font: 20px/1.5 sans-serif;
  background: #333;
  margin: -25px -25px 0 -25px;
  height: 30px;
  padding: 10px 25px;
  color: white;
  border-top: #e15729 solid 10px;
}

#open, #lights {
  font: 20px/1.5 sans-serif;
  position: fixed;
  right: 0;
  padding: 10px;
  height: 50px;
  color: white;
  cursor: pointer;
  margin: 0;
  background: none;
  border: none;
  -webkit-appearance: none;
}

#open {
  top: 10px;
  background: #333;
}

#lights {
  font-size: 18px;
  height: 46px;
  top: 60px;
  background: #555;
}

#open:hover, #lights:hover {
  color: slategrey;
  background: white;
}

#open:active, #lights:active {
  color: orange;
}

#help {
  font: 12px/1.5 sans-serif;
  color: #666;
  position: fixed;
  bottom: 10px;
  left: 10px;
}

#help a {
  color: #666;
}

.dark h1, .dark #help { }
