html,body {
    height:100%;
}

#front {
    background-color: #ffcc01;
    background-image: url(/img/bg-main.jpg);
    background-position:center center;
    background-repeat:no-repeat;
    background-size: cover;
}

.col-lg-7 {
    background: rgba(255, 255, 255, 0.2);
}

#page-preloader {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #ffcc01;
    background-image: url(/img/bg-main.jpg);
    background-position:center center;
    background-repeat:no-repeat;
    background-size: cover;
    z-index: 1005009999;
}

.loader-text {
    position: absolute;
    left: 50%;
    top: 60%;
    width:250px;
    margin-left:-125px;
    text-align:center;
    text-transform:uppercase;
    font-weight:bold;
    font-size:32px;
}

.loader {
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -50px 0 0 -50px;
    background: url(/img/ball.png) center center no-repeat;
    background-size: cover;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.w-100 {
    clear:both;
} 

#textForInsert {
    height:150px;
}

#top-menu {
    height:57px;
    position:relative;
    z-index:99;
    box-shadow:0 1px 1px #777;
}

label {
    transition:.5s all ease;
}

button.nav-link, .obj {
    background:transparent;
}

#top-menu button.nav-link {
    min-width:48px;
    min-height:48px;
}

.obj, .color-box {
    width:calc(25% - 0.5rem);
    margin:.25rem;
}

.color-box {
    width:calc(20% - 0.5rem);
}

.marker-box {
    width:calc(50% - 0.5rem);
    margin:.25rem;
}

.color-box, .marker-box {
    padding:0;
    float:left;
}
.color-box input, .marker-box input{
    display:none;
}

.color-box label {
    width:100%;
    height:30px;
    border:1px solid #333;
    text-align:center;
} 

.marker-box label, .marker-box select, input[type="color"] {
    display:block;
    width:100%;
    min-height:35px;
    padding:5px;
    border:1px solid #46a845;
    text-align:center;
}

.cbx-black {
    background:black;
}

.cbx-yellow {
    background:yellow;
}

.cbx-red {
    background:red;
}

.cbx-white {
    background:white;
}

.color-box input[type="radio"]:checked+label { 
    border: 5px solid #333;
}

.marker-box input[type="radio"]:checked+label { 
    background: #46a845;
}

.plane {
    width:calc(33% - 0.5rem);
    margin:.25rem;
}

.btn-line {
    width:calc(33.3% - 0.5rem);
    margin:.25rem;
    border-radius:0;
    float:left;}

.objNumbers {
    width:calc(12.5% - 0.5rem);
    padding:.25rem;
}

.objNLabels {
    width:calc(9% - 0.5rem);
    padding:.25rem 0;
}

.objLLabels {
    width:calc(10% - 0.5rem);
    padding:.25rem 0;
}

.objEquipment {
    width:calc(16.6% - 0.5rem);
    height:60px;
    padding:.25rem;
}

.objGates {
    width:calc(50% - 0.5rem);
    height:175px;
    padding:.25rem;
    background:#333;
}

.objEquipment img, .objGates img {
    max-height:100%!important;
}

.objImage {
    width:100%;
    padding:0;
    margin:1rem 0;
}

.obj:focus, .btn-line:focus {
    background:#ffd800;
}

.obj, .nav-link { 
    border-radius:0; 
    transition:.5s all ease;
}

.nav-link {
    padding:.5rem!important;
    margin:0 .25rem;
    border:1px solid #191919;
    border-radius:.25rem;
    float:left;
}

.nav-link:hover, .obj:hover, .btn-line:hover {
    background:#ffffcc;
}

.nav-link.active {
    background:#ffd800;
}

.nav-link img {
    width:30px;
    height:auto;
}

.text-group {
    display:block;
    width:55px;
    text-align:center;
    line-height:24px;
}

.text-group span {
    width:100%;
}

#numSize{
    line-height: 48px;
}

#numSize:after, #numSizeGroup:after {
    content:"%";
}

h5 {
    padding-top:1rem;
}

text[data-select="1"] {
    stroke:#fff;
    stroke-dasharray:2;
    stroke-width:0.3;
}

circle[data-select="1"], rect[data-select="1"] ,ellipse[data-select="1"]{
    stroke:red!important;
}


.rotator {
    width: 120px;
    height: 48px;
}

#top-menu .rotator button {
    width: 33%;
    height: 33%;
    min-width: auto;
    min-height: auto;
    padding: 0!important;
    float: left;
    display: block;
    margin: 0;
    font-size: 8px;
}

#svgbox {
    width:calc(100% - 400px);
    height:calc(100% - 57px);
}

#svgparent {
    box-shadow: rgb(0, 0, 0) 0px 0px 15px;
}

#sidebar {
    width:400px;
    height:calc(100% - 57px);
    position:relative;
    z-index:99;
    box-shadow:-1px 2px 1px #777;
    overflow-y:scroll;
}

#block image:hover, #block circle:hover,  #block rect:hover, #block ellipse:hover {
    cursor:move;
}

image#plane:hover {
    cursor:default;
}

image#plane.objCreation:hover,path:hover,text,.exercise,.slide,.refresh, .nav-link:hover, .obj:hover, .btn-line:hover {
    cursor:pointer;
}

image#plane.figureCreation:hover {
    cursor:crosshair;
}

image#plane.figureCreation2:hover {
    cursor:e-resize;
}

circle[data-type="rotate"]:hover {
    cursor:url(/img/rotate.png) 10 10,auto;
}

.buttons-group {
    display: inline-block;
}

#animationFrames {
    padding:10px;
    margin-top:10px;
    border:1px dashed #000;
    clear:both;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
}

.slide {
    width:49%;
    font-size:12px;
    display:flex;
    padding:2px 10px;
    border:1px solid #46a845;
    background:#fff;
    box-shadow:2px 2px 5px #000;
    margin-bottom:10px;
}

.currentSlide {
    background:#46a845;
}


.slideName {
    flex:25 0 0;
    line-height:20px;
}

.slideContent {
    flex:75 0 0;
}

.animate image, .ffix {
    transition:1s all ease;
    -moz-transition:x 1s ease;
    -moz-transition:y 1s ease;
}

.nav-item.nav-link[disabled] {
    background:gray!important;
    cursor:default;
} 

.refresh {
    display:none;
    width:20px;
    height:20px;
    padding:0;
    border:none;
    background:url('/img/buttons/refresh.png') center center no-repeat;
    opacity:0.8;
    transition:all .5s;
    background-size:contain;
}

.refresh:hover {
    opacity:1;
}

.currentSlide .refresh {
    display:block;
}

@media (max-width: 1600px) {
    #svgbox {width:calc(100% - 350px);}   
    #sidebar {width:350px;}
}

@media (max-width: 1368px) {
    #svgbox {width:calc(100% - 300px);}   
    #sidebar {width:300px;}
}

@media (max-width: 1200px) {
    #svgbox {width:calc(100% - 250px);}   
    #sidebar {width:250px;}
}
