.stage {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    border: none;
    font: normal 100%/normal 'Gill Sans Infant Std', Arial, Helvetica, sans-serif;
    color: #000000;
    -o-text-overflow: clip;
    text-overflow: clip;
    background-color: #ffffff;
    /*
    background: -webkit-linear-gradient(90deg, rgba(66,66,66,0.29) 0, rgba(255,255,255,0.298039) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 100%),
                -webkit-linear-gradient(0deg, rgba(73,73,73,0.29) 0, rgba(255,255,255,0.298039) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 100%),
                rgba(220,220,220,0.7);
    background: -moz-linear-gradient(0deg, rgba(66,66,66,0.29) 0, rgba(255,255,255,0.298039) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 100%), -moz-linear-gradient(90deg, rgba(73,73,73,0.29) 0, rgba(255,255,255,0.298039) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 100%), rgba(220,220,220,0.7);
    background: linear-gradient(0deg, rgba(66,66,66,0.29) 0, rgba(255,255,255,0.298039) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 100%), linear-gradient(90deg, rgba(73,73,73,0.29) 0, rgba(255,255,255,0.298039) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 100%), rgba(220,220,220,0.7);
    */
    background-position: -1px -1px;
    -webkit-background-origin: padding-box;
    background-origin: padding-box;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-background-size: 20px 20px;
    background-size: 20px 20px;
}

#prevstage {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    border: none;
    font: normal 100%/normal Arial, Helvetica, sans-serif;
    color: rgba(255, 255, 255, 1);
    -o-text-overflow: clip;
    text-overflow: clip;
    background: -webkit-linear-gradient(90deg, rgb(238, 238, 238) 0.1em, rgba(0, 0, 0, 0) 0.1em), rgb(255, 255, 255);
    background: -moz-linear-gradient(0deg, rgb(238, 238, 238) 0.1em, rgba(0, 0, 0, 0) 0.1em), rgb(255, 255, 255);
    background: linear-gradient(0deg, rgb(238, 238, 238) 0.1em, rgba(0, 0, 0, 0) 0.1em), rgb(255, 255, 255);
    background-position: auto auto;
    -webkit-background-origin: padding-box;
    background-origin: padding-box;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-background-size: 100% 1.2em;
    background-size: 100% 1.2em;
}

div#underLayer, svg.prevstage {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    border: none;
    font: normal 100%/normal Arial, Helvetica, sans-serif;
    color: rgba(255, 255, 255, 1);
    -o-text-overflow: clip;
    text-overflow: clip;
    background: -webkit-linear-gradient(90deg, rgb(238, 238, 238) 0.1em, rgba(0, 0, 0, 0) 0.1em), rgb(255, 255, 255);
    background: -moz-linear-gradient(0deg, rgb(238, 238, 238) 0.1em, rgba(0, 0, 0, 0) 0.1em), rgb(255, 255, 255);
    background: linear-gradient(0deg, rgb(238, 238, 238) 0.1em, rgba(0, 0, 0, 0) 0.1em), rgb(255, 255, 255);
    background-position: auto;
    -webkit-background-origin: padding-box;
    background-origin: padding-box;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-background-size: 100% 1.2em;
    background-size: 100% 1.2em;
}

div#pagerDiv {
    overflow-y: scroll;
    overflow-x: hidden;
}

.introjs-tooltiptext {
    text-align: center;
}

#objectsNano {
    height: 252px;
}

#update-btn {
    float: right;
    margin-left: 5px;
    margin-right: -5px;
}

#saveAsTemplate-btn {
    float: right;
    margin-right: 0;
    margin-left: -5px;
}

#sidebar {
    top: 0px;
    right: 0px;
    position: fixed;
    width: 15%;
}

/*
#objLabel {
    background-color: #0088CC;
    color : white;
    font-size : 0.9em;
}*/

#objLabel {
    width: 100px;
}

#objLabelH {
    margin-left: 0.2em;
}

.panel {
    min-width: 190px;
}

rect.selection {
    stroke: gray;
    stroke-dasharray: 2px;
    stroke-opacity: 0.5;
    fill: transparent;
}

g.state rect, g.state circle, g.state path {
    stroke: gray;
}

g.state .outer {
    stroke-width: 0px;
    stroke-dasharray: 2px;
    stroke-color: gray;
    transition: all 0.5s;
    fill: transparent;
    cursor: pointer;
}

g.state.selected .outer {
    stroke-width: 1px;
}

g.state .inner {
    fill: white;
    transition: fill 0.5s;
    cursor: move;
}

g.state .inner.hover,
g.state .outer.hover {
    fill: #49F2F2;
    fill-opacity: 0.15;
}

g.state .outer.hover {
    stroke-width: 1px;
}

g.state.selected .outer {
    stroke-width: 1px;
}

g.state text {
    font: 12px 'Gill Sans Infant Std', "Open Sans";
    text-rendering: optimizeLegibility;
    pointer-events: none;
}

g.transition path,
path.dragline {
    fill: none;
    stroke: gray;
    stroke-width: 1px;
}

g.transition path.foreground {
    marker-end: url(#end-arrow);
}

g.transition.hover path.background {
    stroke-dasharray: none;
    stroke: #49F2F2;
    stroke-opacity: 0.15;
    transition: all 0.5s;
}

g.transition path.background {
    stroke-dasharray: none;
    stroke-width: 8px;
    stroke: transparent;
}

g.transition.selected path.foreground {
    stroke-dasharray: 2px;
    stroke-color: gray;
}

g.transition path {
    cursor: default;
}

/*
.end-arrow {
    fill            : gray;
    stroke-width    : 1px;
}
*/

g.transition circle.endpoint {
    display: none;
    fill: none;
    cursor: pointer;
    stroke: gray;
    stroke-dasharray: 2px;
}

g.transition circle.point {
    display: none;
    fill: aliceblue;
    cursor: move;
    stroke: gray;
}

g.transition.selected circle.endpoint,
g.transition.selected circle.point {
    display: inline;
    transition: all 0.5s;
}

g.transition:not( .selected).hover *,
path.dragline {
    display: inline;

}

g.transition:not( .selected).hover {
    transition: all 0.5s;
}

path.dragline {
    pointer-events: none;
    stroke-opacity: 0.5;
    stroke-dasharray: 2px;
}

path.dragline.hidden {
    stroke-width: 0;
}

/* disable text selection */
svg *::selection {
    background: transparent;
}

svg *::-moz-selection {
    background: transparent;
}

svg *::-webkit-selection {
    background: transparent;
}

#leftPanel {
    /*float: left;
    width: 13%;*/
    display: table;
    padding-left: 0;
    padding-right: 0;
}

#Container {
    padding-right: 0;
}

#rightPanel {
    /*float : right;
    width: 15%;*/
    padding-right: 0;
    /* display:table;*/
}

#introButton {
    float: left;
    padding: 10px;
}

td:nth-child(1) {
    padding-right: 2em;
}

td > input {
    max-width: 50%;
}

.canvas {
    margin-left: 10px;
    margin-bottom: 23px;
    background-color: #ffffff;
    border: 1px solid transparent;
    border-radius: 3px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.object-btn {
    padding: 0 0 -5em 0;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 6em;
    height: 4.8em;
}

.object-btn > p {
    margin-top: 0.25em;
    margin-left: -0.3em;
    font-size: 1.7em;
}

#insertImage {
    font-size: 1.2em;
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

.page-header {
    padding-bottom: 5px;
    margin: 10px 10px 10px;
}

.panel-body {
    padding: 5px 3px 5px 3px;
}

#transitionsPanel {
    cursor: default;
}

#transitionsPanel span:hover {
    background-color: #D4F6F6;
}

.glyphicon.glyphicon-remove-circle {
    cursor: pointer;
}

.rotatehandle {
    cursor: pointer;
    cursor: url('rotate.ico'), auto !important;
}

#insertAnswer {
    font-size: 1.1em;
    margin-top: -0.1em;
    margin-left: -0.6em;
    padding-top: 0;
}

.glyphicon.glyphicon-question-sign {
    margin-left: 0.3em;
    font-size: 2em;

}

#instructionPanel {
    margin-top: 45px;
}

.panel-heading .accordion-toggle:after {
    /* symbol for "opening" panels */
    font-family: 'Glyphicons Halflings'; /* essential for enabling glyphicon */
    content: "\e114"; /* adjust as needed, taken from bootstrap.css */
    float: right; /* adjust as needed */
    color: grey; /* adjust as needed */
}

.panel-heading .accordion-toggle.collapsed:after {
    /* symbol for "collapsed" panels */
    content: "\e080"; /* adjust as needed, taken from bootstrap.css */
}

.dropdown {
    cursor: pointer;
}

option {
    width: 100%;
}

/*TODO: Check for website css clashes*/
.btn-group .btn + .btn {
    margin-left: 0px;
}

.grid .tick {
    stroke: lightgrey;
    opacity: 0.7;
}

.grid path {
    stroke-width: 0;
}

.switch input {
    display: none;
}

.switch i {
    display: inline-block;
    cursor: pointer;
    padding-right: 20px;
    transition: all ease 0.2s;
    -webkit-transition: all ease 0.2s;
    border-radius: 20px;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, .5);
}

.switch i:before {
    display: block;
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.switch :checked + i {
    padding-right: 0;
    padding-left: 20px;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, .5), inset 0 0 40px rgb(0, 111, 186);
    -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, .5), inset 0 0 40px rgb(0, 111, 186);
}

.switch.red :checked + i {
    box-shadow: inset 0 0 1px rgba(0, 0, 0, .5), inset 0 0 40px red;
    -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, .5), inset 0 0 40px red;
}

.popover {
    width: 200%;
}

/*scrollbar*/

#overLayer::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}

#overLayer::-webkit-scrollbar {
    width: 20px;
    background-color: #F5F5F5;
}

#overLayer::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #AAA;;
}

.scrollbar {
    horiz-align: center !important;
    float: left;
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100%;
    position: absolute;
    z-index: 10;
    background-color: transparent !important;
}

#previewContainer {
    margin: auto !important;
}

#underLayer {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9;
}
