/*
    Document   : global styles
    Created on : 05-Jul-2011, 12:27:06
    Author     : Dominic da Costa
*/

body.has-output {
  margin-bottom: 2em;
}

#output {
  pointer-events: none;
  height: auto;
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff !important;
  padding: 0;
  margin: auto;
  font-size: 1rem;
  /*overflow: hidden;*/
  z-index: 999999999;
  transition: all 150ms ease-in-out;
  text-align: left;
}

#output nav {
  pointer-events: auto;
  display: inline-block;
  border-radius: 0 6px 0 0;
}

#output nav a {
  background: rgba(0, 0, 0, 0.25);
  border: none;
  border-radius: 6px 6px 0 0;
  box-shadow: none;
  color: #fff !important;
  cursor: pointer;
  display: inline-block;
  height: 2em;
  line-height: 2em;
  margin: 0 1px;
  padding: 0 0.5em 0 2em;
  position: relative;
  text-decoration: none;
  vertical-align: middle;
}

#output nav a:before {
  content: "";
  position: absolute;
  height: 0.75em;
  width: 0.75em;
  border-radius: 0.5em;
  top: 0;
  bottom: 0;
  margin: auto;
  left: 0.5em;
}

#output nav a.message:before {
  background: white;
}

#output nav a.error:before {
  background: red;
}

#output nav a.close {
  display: none;
  background: rgba(0, 0, 0, 0.85);
  color: #fff !important;
  cursor: pointer;
  padding: 0 1em;
  border-radius: 0 0;
  margin: 0;
}

#output [data-behaviour="output-messages"] {
  pointer-events: auto;
  padding: 0 0.5em;
  max-height: 10em;
  overflow: auto;
  clear: both;
  background: rgba(0, 0, 0, 0.85);
  margin: 0;
  display: block;
  height: 0;
  position: relative;
}

#output [data-behaviour="output-messages"]:target,
#output [data-behaviour="output-messages"][data-active] {
  min-height: 20em;
  height: auto;
}

#output [data-behaviour="output-messages"]:target pre,
#output [data-behaviour="output-messages"][data-active] pre {
  display: inline-block;
  width: 100%;
}

#output-error:target ~ nav a.error,
#output-error[data-active] ~ nav a.error,
#output-message:target ~ nav a.message,
#output-message[data-active] ~ nav a.message {
  background: rgba(0, 0, 0, 0.85);
}

#output-error:target ~ nav a.close,
#output-error[data-active] ~ nav a.close,
#output-message:target ~ nav a.close,
#output-message[data-active] ~ nav a.close {
  display: inline-block;
}

#output [data-behaviour="output-messages"]:target ~ nav,
#output [data-behaviour="output-messages"][data-active] ~ nav {
  position: absolute;
  top: -2em;
}

#output details {
  padding: 1rem 2rem;
}

#output details summary {
  position: relative;
  outline: none;
}

#output details summary::-webkit-details-marker {
  display: none;
}

#output details summary:after {
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='24px' height='24px' viewBox='0 0 24 24' enable-background='new 0 0 24 24' xml:space='preserve'%3E%3Cpath fill='white' d='M23,11H13V1.001C13,0.448,12.574,0,12.021,0l0,0c-0.553,0-1,0.447-1,0.999L11.012,11H1c-0.553,0-1,0.447-1,1 c0,0.552,0.447,1,1,1h10.01L11,22.999c-0.001,0.552,0.446,1,0.998,1.001h0.001c0.552,0,1-0.447,1.001-0.999V13h10 c0.552,0,1-0.448,1-1C24,11.447,23.552,11,23,11z'/%3E%3C/svg%3E%0A");
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  height: 0.75em;
  width: 0.75em;
  content: " ";
  position: absolute;
  top: 0.25rem;
  left: -1.25rem;
}

#output details[open] summary:after {
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Filled_Icons' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='24px' height='24px' viewBox='0 0 24 24' enable-background='new 0 0 24 24' xml:space='preserve'%3E%3Cpath fill='white' d='M23.002,11.021L1,11l0,0c-0.553,0-1,0.447-1,0.999c-0.001,0.552,0.446,1,0.998,1.001H23c0.553,0,1-0.426,1-0.977 C24.001,11.471,23.554,11.023,23.002,11.021z'/%3E%3C/svg%3E%0A");
}

#output details[open] summary pre {
  border-bottom: none;
}

#output pre {
  display: none;
  /*text-transform: uppercase;*/
  color: inherit !important;
  background: none !important;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  margin: 0 !important;
  position: relative;
  word-wrap: break-word;
  text-align: left;
}

#output pre:before {
  content: "";
  position: absolute;
  height: 0.75em;
  width: 0.75em;
  border-radius: 0.5em;
  top: 1.25em;
  margin: auto;
  left: 0.5rem;
}

#output pre code {
  color: rgba(255, 255, 255, 0.667);
  background: none;
  font-size: 0.875rem;
  display: block;
  font-family: "Courier New", Courier, monospace;
}

#output pre.message:before {
  background: white;
}

#output pre.error:before {
  background: red;
}
