* { box-sizing: border-box; }

/*body {
  display: flex;
  max-height: 250px;
  padding: 10px 0 10px 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: transparent;
  background-size: cover;
  overflow: hidden;
}

.window {
  width: 400px;
  height: 250px;
  max-width: 700px;
  max-height: 250px;
  background-color: rgba(0,0,0);
  border: 1px solid #c9c9c9;
  box-shadow: 4px 4px 0 rgba(0,0,0);
  transition: all ease-in-out .3s;
}
.window.window--maximized {
  width: 100%;
  flex-grow: 1;
}
.window.window--minimized {
  height: 25px;
  width: 180px;
  .window-content { display: none; }
}

.window.window--destroyed {
  opacity: 0;
  width: 0;
  height: 0;
}

.window-header {
  background-color: #eee;
  height: 25px;
}

.window-controls {
  display: flex;
  height: 100%;
  justify-content: flex-end;
  align-items: center;
}

.window-controls .control-item {
  width: 25px;
  height: 25px;
  text-align: center;
  color: #333;
  transition: all ease-in .15s;
  cursor: pointer;
  
  &:hover { background-color: #ccc; }
}

.control-item.control-close {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  
  &:hover {
    background-color: #ec6060;
    color: #fff;
  }
}
.control-item.control-maximize { line-height: 19px; }
.control-item.control-minimize { line-height: 22px; }

.window-cursor {
  display: flex;
  margin: 5px;
  .i-cursor-indicator {
    color: #fff;
    font-size: 1em;
    font-family: 'Consolas', monospace;
    margin: 0 2px 0 5px;
  }
  .i-cursor-underscore {
    width: 10px;
    height: 3px;
    background-color: #fff;
    align-self: flex-end;
    margin-right: 5px;
    animation: blink 1s steps(2, start) infinite;
  }
}
.window-input {
  background-color: inherit;
  border: none;
  outline: 0;
  color: transparent;
  text-shadow: 0 0 0 #fff;
  font-family: 'Consolas', monospace;
  flex: 1;
  
  &:focus {
    outline: none;
  }
}

.i-prompt {
  width: 62px;
  height: 62px;
  background: url("https://cdn4.iconfinder.com/data/icons/small-n-flat/24/terminal-48.png") no-repeat center;
  background-color: rgba(0,0,0);
  border-radius: 10px;
  box-shadow: 0 3px 1px rgba(0,0,0);
  cursor: pointer;
  transition: all ease-in-out .15s;
  &:hover {
    background-position: center 4px;
  }
}
.i-prompt.hidden {
  width: 0;
  height: 0;
  opacity: 0;
}

@keyframes blink {
  to { visibility: hidden; }
}*/

/**/

body {
  display: flex;
  max-height: 250px;
  padding: 10px 0 10px 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: transparent;
  background-size: cover;
  overflow: hidden;
}

body .shell {
    width: 400px;
    height: 200px;
}
body .shell .terminal {
    height: calc(100% - 29px);
    padding: 10px;
    --size: 1.1;
    /*
     * padding bottom 0 on terminal and margin
     * on .cmd will be in version 2.0.1
     * that fixes FireFox issue
     */
    padding-bottom: 0;
}
body .shell .terminal .cmd {
    margin-bottom: 10px;
}
.shell .typed-cursor, .shell .cursor {
    background: transparent;
}

@supports (--css: variables) {
    .shell .terminal {
        --color: #aaa;
    }
    .shell.ubuntu .terminal {
        --background: #300924;
    }
    .shell.osx .content.terminal {
        --background: #222;
    }
    .shell.light .content.terminal {
        --background: white;
        --color: black;
    }
    /*
    * windows and custom are the last ones so
    * they don't get overwritten by light
    */
    .shell.windows .content.terminal {
        --background: black;
        --color: white;
        --animation: terminal-underline;
    }   
    .shell.custom .content.terminal {
        --background: #292929;
        --color: #aaa;
    }
}
/*
 * overwrite shell.js style because shell.js   
 * selectors are stronger then terminal ones
 */
.cmd span.cursor {
    animation: none;
    width: auto;
    background-color: var(--background, #000);
}
.shell:not(.light) terminal.content,
.shell.osx.dark .content,
.shell.ubuntu:not(.light) .content {
    background-color: var(--background, #222) !important;
}
.shell .terminal.content {
    font-size: 12px;
}
.cmd {
    background-color: inherit;
}
@supports (--css: variables) {
    .shell .terminal.content {
        font-size: calc(var(--size, 1) * 12px);
    }
}
/* fix for Firefox */
.terminal > .resizer, .terminal > .font .resizer {
    visibility: visible;
    pointer-events: none;
}
.terminal::-webkit-scrollbar-track
{
  border: 1px solid var(--color, #aaa);
  background-color: var(--background);
}
.terminal::-webkit-scrollbar
{
  width: 10px;
  background-color: var(--background);
}
.terminal::-webkit-scrollbar-thumb
{
  background-color: var(--color, #aaa);
}