/* STATES [ editSlide, editChapter, overview, dynamicAgenda ] */
/* Display */
.hidden,
.builder-feature,
.state-editSlide .chapter-edit-feature,
.state-editChapter .slide-edit-feature {
  display: none !important;
}
.sb-invisible {
    opacity: 0;
    transition:opacity 0.5s;
}
/*
.mode-builder .builder-feature {
  display: inherit;
}*/

/* GENERAL STYLES*/
.storyboard-plugin {
  background-color: transparent;
  display: none;
  font-family: 'Roboto', helvetica, arial, sans-serif;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9992;
}
.storyboard-plugin.open {
  display: block;
}
.sb-action {
  cursor: pointer;
}

/* HEADER */
.sb-header {
  padding:20px 0;
  overflow: hidden;
}
.sb-edit-buttons {
    margin-top: -17px !important;
}
.sb-right {
  float: right;
}
#sb-save-changes .md-btn {
  margin:0 auto;
}

/* VIEWER */
.storyboard-plugin .sb-viewer {
  top:105px;
  bottom:90px;
}
.storyboard-plugin .sb-overview {
  padding:0 120px;
}

/* EDIT BAR */
#sb-edit-controls {
  position: fixed;
  bottom:0;
  width: 100%;
  text-align: center;
  padding:20px;
  background-color: #333;
}

#sb-edit-controls button {
  display: inline-block;
  margin:0;
  margin-right:20px;
}
.mode-builder .state-editSlide #sb-duplicate-slide {
  display: inline-block !important;
}

.group button {
    margin:auto 3px;
}

/* SLIDE PICKER */
.sb-slide-list {
  position: fixed;
  bottom: 0;
  background-color: #333;
  z-index: 9;
  width: 100%;
  height: 0;
  transition:height 0.5s;
}
.sb-slide-list.open {
  height: 255px;
}
.sb-list-bar {
  height: 50px;
}
.sb-list-bar span {
  display: inline-block;
  padding: 10px;
  color: white;
  float:left;
}
.sb-list-bar span button {
  display: inline-block;
  padding: 10px;
  margin: 7px 0px 0px
}
.sb-list-bar .pick-label {
  padding:17px 10px;
}
.sb-list-bar .new-slide-label {
  color: #b2b2b2;
  padding:0;
}
.sb-list-bar .close-list-bar {
  float: right;
  color: #FFF;
  padding: 10px;
  display: inline-block;
  margin: 7px 10px 0px 0px;
}
.sb-repo-container {
  overflow: scroll;
  padding:0 10px;
  clear: both;
}
#sb-repository {
  display: table;
  white-space: nowrap;
}
#sb-repository .repo-slide {
  display: table-cell;
  padding-right: 10px;
}

.icon-handle {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAeElEQVQ4T82UPQ5AUBAGhxKnUDibxi01boNEI/6yjzjBSGzzusn3dnY3Q64MaIBC4i4BPIB4jVoDdBqkh7HbwC2ALVBJKSerd2+eT4ADUJpf/rXlNDa9aHn8RIrk48ZEwk60PNurp+9yAu5ALjUyna/aPrBSuBtzASJKGIihOmqkAAAAAElFTkSuQmCC);
}

/* FORM */
/*#sb-new-item {
  position: fixed;
  top:25%;
  bottom: 25%;
  left:25%;
  right: 25%;
  background-color: white;
  padding: 50px;
}*/

.accelerator .paused .sb-overlay.pause-overlay {
  background-color: rgba(0,0,0,0.8);
}

.sb-form-content {
/*A box that the form resides in - centered vertically and horizontally based on the window. The max-width and % width combo allow it to resize for small devices*/  
  background: #FFF;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: block;
  left: 50%;
  max-width: 360px;
  position: absolute;
  top: 50%;
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 90%;
  z-index: 2;
}

.sb-form-content form {
  display: block;
  margin: auto;
  padding: 27px 0;
  width: 85%;
}

/*Text-inputs*/
.mat-in {
  position: relative;
  margin-bottom: 32px;
}

.sb-form-content input {
  border: none;
  border-bottom: 1px solid #9E9E9E;
  display: block;
  font-size: 16px;
  padding: 8px 0px;
  -webkit-transition: 0.2s border-bottom;
  transition: 0.2s border-bottom;
  width: 100%;
}

.sb-form-content input:focus, .sb-form-content input:invalid {
  box-shadow: none;
  outline: none;
}

.sb-form-content input:focus {
  border-bottom: 1px solid #2196f3;
}

/*Labels*/
.sb-form-content label {
  color: #9E9E9E;
  font-size: 16px;
  pointer-events: none;
  position: absolute;
  top: 10px;
  -webkit-transition: 0.2s ease all;
  transition: 0.2s ease all;
}

.sb-form-content input:focus ~ label, .sb-form-content input:valid ~ label {
  color: #2196f3;
  font-size: 12px;
  top: -16px;
}

/*Bar that appears when an input is selected*/
.sb-form-content .bar:before, .sb-form-content .bar:after {
  background: #2196f3;
  bottom: 1px;
  content: '';
  height: 2px;
  position: absolute;
  -webkit-transition: 0.2s ease all;
  transition: 0.2s ease all;
  width: 0;
}

.sb-form-content .bar:before {
  left: 50%;
}

.sb-form-content .bar:after {
  right: 50%;
}

.sb-form-content input:focus ~ .bar:before, .sb-form-content input:focus ~ .bar:after {
  width: 50%;
}

/* Buttons */
.sb-form-content button {
  border: none;
  border-radius: 2px;
  color: #FFF;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.999;
  padding: 8px 0;
  position: relative;
  -webkit-transition: 0.2s ease background;
  transition: .2s ease background;
  width: 45%;
}
.sb-form-content #createContentBtn {
  background: #2196f3;
}
.sb-form-content #createContentBtn:hover {
  background: #1976d2;
}
.sb-form-content #cancelContentBtn {
  background-color: #e74c3c;
  margin-right: 8%;
}
.sb-form-content #cancelContentBtn:hover {
  background-color: #c0392b;
}

.sb-form-content button:before, .sb-form-content button:after {
  border-radius: 2px;
  content: '';
  height: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  -webkit-transition: 0.2s ease all;
  transition: .2s ease all;
  z-index: -1;
}

.sb-form-content button:before {
  top: 50%;
}

.sb-form-content button:after {
  bottom: 50%;
}

.sb-form-content button:active:before, .sb-form-content button:active:after {
  background: #0d47a1;
  height: 50%;
  opacity: 1;
}

/*Error Messages*/
.sb-form-content .error {
  color: #F44336;
  margin: 16px auto 0;
  text-align: center;
  width: 90%;
}

.group        { 
  position:relative;
  float:left;
  margin-right: 20px;
}
.text-input input         {
  font-size:24px;
  padding:2px 10px 2px 5px;
  display:block;
  width:300px;
  border:none;
  border-bottom:1px solid #757575;
  background-color: transparent;
}
.switch-input p {
  display: inline-block;
  color:#b2b2b2;
  line-height: 24px;
  margin: 0 20px 0 0;
  vertical-align: middle;
  -webkit-transition: color 0.56s cubic-bezier(0.4, 0, 0.2, 1);
          transition: color 0.56s cubic-bezier(0.4, 0, 0.2, 1);
}

.sb-linear .switch-input p {
  color:black;
}

input:focus     { outline:none; }

/* LABEL ======================================= */
.text-input label          {
  color:#999; 
  font-size:20px;
  font-weight:normal;
  position:absolute;
  pointer-events:none;
  left:5px;
  top:10px;
  transition:0.2s ease all; 
  -moz-transition:0.2s ease all; 
  -webkit-transition:0.2s ease all;
}

/* active state */
.text-input input:focus ~ label, .text-input input:valid ~ label    {
  top:-20px;
  font-size:14px;
  color:#b2b2b2;
}

/* BOTTOM BARS ================================= */
.text-input .bar  { position:relative; display:block; width:300px; }
.text-input .bar:before, .text-input .bar:after   {
  content:'';
  height:2px; 
  width:0;
  bottom:1px; 
  position:absolute;
  background:#5264AE; 
  transition:0.2s ease all; 
  -moz-transition:0.2s ease all; 
  -webkit-transition:0.2s ease all;
}
.text-input .bar:before {
  left:50%;
}
.text-input .bar:after {
  right:50%; 
}

/* active state */
.text-input input:focus ~ .text-input .bar:before, .text-input input:focus ~ .text-input .bar:after {
  width:50%;
}

/* HIGHLIGHTER ================================== */
.text-input .highlight {
  position:absolute;
  height:60%; 
  width:100px; 
  top:25%; 
  left:0;
  pointer-events:none;
  opacity:0.5;
}

/* active state */
.text-input input:focus ~ .highlight {
  -webkit-animation:inputHighlighter 0.3s ease;
  -moz-animation:inputHighlighter 0.3s ease;
  animation:inputHighlighter 0.3s ease;
}

/* ANIMATIONS ================ */
@-webkit-keyframes inputHighlighter {
  from { background:#5264AE; }
  to  { width:0; background:transparent; }
}
@-moz-keyframes inputHighlighter {
  from { background:#5264AE; }
  to  { width:0; background:transparent; }
}
@keyframes inputHighlighter {
  from { background:#5264AE; }
  to  { width:0; background:transparent; }
}

/* switch */
.switch-input .switch {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 16px;
  border-radius: 8px;
  background: rgba(0,0,0,0.26);
  -webkit-transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1);
          transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  vertical-align: middle;
  cursor: pointer;
}
.switch-input .switch::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 24px;
  height: 24px;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
  border-radius: 50%;
  -webkit-transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
          transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.switch-input .switch:active::before {
  box-shadow: 0 2px 8px rgba(0,0,0,0.28), 0 0 0 20px rgba(128,128,128,0.1);
}
.switch-input input:checked + .switch {
  background: rgba(0,150,136,0.5);
}
.switch-input input:checked + .switch::before {
  left: 20px;
  background: #009688;
}
.switch-input input:checked + .switch:active::before {
  box-shadow: 0 2px 8px rgba(0,0,0,0.28), 0 0 0 20px rgba(0,150,136,0.2);
}

/* MENU */
.navOpen {
  overflow: hidden;
}
.sb-wrapper {
  transition-duration: 0.5s;
  transition-timing-function: swing;
  background-color: #f2f2f2;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 9991;
}
.sb-wrapper > section {
  padding: 13px 40px 20px 120px;
}
.navOpen .sb-wrapper {
  transform: translateX(250px) translateY(50px);
  -webkit-transform: translateX(250px) translateY(50px);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}
.openNav {
  transition-duration: 0.5s;
  transition-timing-function: swing;
  width: 50px;
  height: 50px;
  background-color: #14B9FF;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9992;
}
.openNav:hover {
  cursor: pointer;
}
.openNav .icon {
  transition-duration: 0.2s;
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: white;
  top: 24px;
  left: 10px;
}
.openNav .icon:before,
.openNav .icon:after {
  transition-duration: 0.5s;
  background-color: white;
  position: absolute;
  content: "";
  width: 30px;
  height: 2px;
  left: 0px;
}
.openNav .icon:before {
  top: -7px;
}
.openNav .icon:after {
  top: 7px;
}
.navOpen .openNav {
  transform: translateX(250px) translateY(50px);
  -webkit-transform: translateX(250px) translateY(50px);
}
.navOpen .openNav .icon {
  background-color: transparent;
}
.navOpen .openNav .icon:before,
.navOpen .openNav .icon:after {
  top: 0;
}
.navOpen .openNav .icon:before {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}
.navOpen .openNav .icon:after {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}
.storyboard-plugin nav {
  background-color: rgba(20,185,255, 0.85);
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  overflow:scroll;
  z-index: 9990;
}
.storyboard-plugin nav h3 {
  width: 230px;
  text-align: right;
  text-transform: uppercase;
  color: white;
  margin-bottom: 0;
  margin-top: 30px;
}
.storyboard-plugin nav ul {
  padding: 0;
  width: 250px;
}
.storyboard-plugin nav ul:first-child {
  margin-top: 50px;
}
.storyboard-plugin nav ul:hover li {
  color: rgba(255, 255, 255, 0.5);
}
.storyboard-plugin nav ul li {
  transition-duration: 0.25s;
  display: block;
  padding: 5px 20px 5px 0;
  color: white;
  letter-spacing: 0.02em;
  text-align: right;
}
.storyboard-plugin nav ul li:hover {
  cursor: pointer;
  color: white;
}
