﻿@-webkit-viewport { width: device-width; zoom: 1; }
   @-moz-viewport { width: device-width; zoom: 1; }
     @-ms-viewport {width: extend-to-zoom; zoom: 1;}
     @-o-viewport { width: device-width; zoom: 1; }
        @viewport { width: device-width; zoom: 1; }

*, *:before, *:after {
  box-sizing: border-box;
}

* {
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    -moz-touch-callout: none;
    -ms-touch-callout: none;
    touch-callout: none;

    -webkit-tap-highlight-color: rgba(255, 255, 255, 0); 
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important; 
    outline: none !important;

    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    user-drag: none;
}

input
{
    -webkit-user-select: auto !important;
    -khtml-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

html, body {
	height: 100%;
	margin: 0;
	overflow: hidden;
    font-family: 'PT Sans', 'Fira Sans', 'Myriad Pro', Tahoma, ​Verdana, sans-serif;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: none;
    -webkit-backface-visibility: hidden;
    scrolling: none;
    background-color: #e1e6eb;
}

body {
    padding: 5px;
}

body {
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust:none;
}

img {
    image-rendering: optimizeQuality;
}

#logo,
#state-wrapper svg {
    height: 34px;
    width: auto;
    float: left;
    cursor: pointer;
    padding-right: 1em;
}

#logo {
    width: 159px;
    height: 34px;
}

#state-wrapper {
    max-width: 50px;
    float: left;
}

#state-headline {
    color: #003065;
    font-weight: 400;
    font-size: 26px;
    line-height: 34px;
    vertical-align: middle;
    cursor: pointer;
    display: inline-block;
}

#interface {
    width: calc(100% - 10px);
    height: calc(100% - 69px);
    background-color: #fff;
    border-radius: 5px;
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    padding: 15px;
}

#interface > div {
    background-color: #fff;
    position: absolute;
    left: -101vw;
    top: -101vh;
    width: 0px;
    height: 0px;
    overflow: hidden;
    pointer-events: none;
}

#interface > div.active {
    position: static;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: all;
}

#variant-select {
    position: relative;
    float: right;
    z-index: 907;
}

#nav_pie #cake > *,
#nav_pie #plates > * {
    cursor: pointer;
}

#variant-select span {
    width: 34px;
    height: 34px;
    display: none;
    cursor: pointer;
    margin-right: 10px;
    border-radius: 50%;
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    background-color: #dadadb;
    background-repeat: no-repeat;
    background-size: 60% 60%;
    background-position: center;
}

#variant-select span.available {
    display: inline-block;
}

#variant-select span:hover,
#variant-select span.active {
    background-color: #f08a00;
}

#variant-select-design {
    background-image: url('../img/ico_magnifier.svg');
}

#variant-select-function {
    background-image: url('../img/ico_gear.svg');
}

#variant-select-simulation {
    background-image: url('../img/ico_play.svg');
}

#variant-select-springbase {
    background-image: url('../img/ico_spring.svg');
}


#language-select.active .language-select-list {
	max-height: 100vh;
    -webkit-transition: max-height 1s; /* Safari */
    transition: max-height 1s;
}

#language-select .language-select-list {
	max-height: 0px;
    overflow: hidden;
	position: absolute;
    top: 100%;
    padding: 0px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    color: #003065;
    border-top: none;
    margin: 4px 0 0 0;
    list-style: none;
    background: #e1e6eb;
    z-index: 30;
    width: 100%;
    text-align: center;
    -webkit-transition: max-height 1s; /* Safari */
    transition: max-height 1s;
}

#language-select {
	position: relative;
    float: right;
	font-size: 1.25em;
	text-transform: uppercase;
	color: #68767e;
    z-index: 909;
    min-width: 128px;
    margin-left: 15px;
}

#language-select a {
	text-decoration: none;
    display: inline-block;
    padding: 10px;
    color: #68767e;
}

#language-select a:hover {
    color: #283035;
}

#language-select.active .language-select-trigger {
	background-color: #e1e6eb;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    -webkit-transition: all 0.3s; /* Safari */
    transition: all 0.3s;
}
#language-select .language-select-trigger {
	padding: 5px 25px 5px 10px;
    display: inline-block;
    background-color: #FFFFFF;
    -webkit-transition: all 0.3s; /* Safari */
    transition: all 0.3s;
    width: 100%;
    text-align: right;
}

#language-select .language-select-trigger .icon-arrow-down {
    position: relative;
    display: inline-block;
    height: 18px;
}
#language-select .language-select-trigger .icon-arrow-down:before,
#language-select .language-select-trigger .icon-arrow-down:after {
    position: absolute;
    display: block;
    content: "";
    border: 9px solid transparent; /*adjust size*/
}
#language-select .language-select-trigger .icon-arrow-down:before {
    top: 7px;
    border-top-color: #68767e; /*icon-arrow-down Color*/
}
#language-select .language-select-trigger:hover .icon-arrow-down:before {
    border-top-color: #283035;
}

#language-select .language-select-trigger .icon-arrow-down:after {
    top: 4px; /*adjust thickness*/
    border-top-color: #fff; /*Match background colour*/
    -webkit-transition: all 0.3s; /* Safari */
    transition: all 0.3s;
}
#language-select.active .language-select-trigger .icon-arrow-down:after {
    top: 4px;
    border-top-color: #e1e6eb; /*Match background colour*/
    -webkit-transition: all 0.3s; /* Safari */
    transition: all 0.3s;
}

svg {
	max-height: 100%;
}

svg text {
	font-family: sans-serif !important;
}

#top-menu {
    background-color: #FFFFFF;
    height: 54px;
    border-radius: 5px;
    padding: 10px;
}

#copyright {
    position: absolute;
    bottom: 11px;
    left: 15px;
    color: #003065;
    z-index: 908;
    font-size: 0.8em;
}

#interface-menu-inner {
	opacity: 0;
    background-color: #F08A00;
    white-space: nowrap;
}

#interface-menu {
	transform: scale(0, 1.0);
	height: 100%;
	position:absolute;
	top: 0;
	left: 0;
	background-color: #F08A00;
	z-index: 999;
    max-height: 100%;
    overflow: hidden;
    overflow-y: auto;

    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -moz-box-shadow: 0 1px 10px rgba(0,0,0,0.33);
    -webkit-box-shadow: 0 1px 10px rgba(0,0,0,0.33);
    box-shadow: 0 1px 10px rgba(0,0,0,0.33);
}

#interface-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#interface-menu h2,
#interface-menu li {
	padding: 5px 60px 5px 30px;
	color: #fff;
}

#interface-menu h2 {
	margin: 0;
	background-color: #E96E00;
	border-top: 1px solid #F5AD4D;
}

#interface-menu h2:first-child {
	border-top: 0;
}

#interface-menu li {
    border-top: 1px solid #F5AD4D;
    -moz-transition: padding 0.2s, ease-in-out;
    -o-transition: padding 0.2s, ease-in-out;
    -webkit-transition: padding 0.2s, ease-in-out;
    transition: padding 0.2s, ease-in-out;
}

#interface-menu a {
    text-decoration: none;
    color: #fff;
    display: block;
}

#interface-menu li:hover {
    padding-left: 60px;
    padding-right: 30px;
}

#interface-menu h2,
#interface-menu li,
#interface-menu a {
	font-weight: normal;
	font-size: 1em;
	line-height: 2.25em;
}

#interface-menu li,
#interface-menu a {
	cursor: pointer;
}

.simba-stage {
    width: 100%;
    height: 100%;
}

.error {
    color: #ff0000;
    font-family: monospace;
}

#siforce_logo {
	z-index: 29;
	width: 85px;
	height: 30px;
	position: absolute;
	left: 1em;
	margin-top: 1em;
	display: none;
}

@media only screen and (max-width: 840px) {
    #state-wrapper svg {
        display: none;
    }

    #state-headline {
        font-size: 20px;
    }
}

/* dynamic interface select circle */

#radial-menu {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

#radial-menu svg {
    overflow: visible;
}

#radial-menu .segment {
    transition: all 250ms ease-in-out;
    transform-origin: center;
}
#radial-menu .segment:hover {
    scale: 1.02;
    cursor: pointer;
}

#radial-menu .segment .segment-outer,
#radial-menu .segment .segment-inner {
    transition: all 500ms ease-in-out;
    transform-origin: center;
}

#radial-menu .segment:hover .segment-outer {
    /*fill: #c6d1e8;*/
    filter: contrast(0) sepia(100%) hue-rotate(186deg) brightness(1.4) saturate(0.4);
}        

#radial-menu .segment:hover .segment-inner {
    fill: #f08a00;
}

#radial-menu text {
    font-family: sans-serif;
    font-size: 32px;
    fill: rgb(0, 48, 101);
    text-anchor: middle;
    dominant-baseline: central;
}

#radial-menu .text-background {
    fill: #D9DADB;
    fill-opacity: 0.85;
    rx: 5;
    ry: 5;
}

/* animation */
#radial-menu .fade-in {
    opacity: 0;
}
#radial-menu .scale-in {
    scale: 0.75;
}

#radial-menu .fade-in-active {
    animation: fadeIn 1s forwards;
}        
#radial-menu .scale-and-fade-in-active {
    animation: fadeIn 1s forwards, scaleIn 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes scaleIn {
    from {
        scale: 0.75;
    }
    to {
        scale: 1;
    }
}

body.preview {
    background-color: #f00;
}

body.preview::after {
    content: 'PREVIEW';
    position: absolute;
    right: 1em;
    bottom: 0.5em;
    font-size: 3em;
    color: #f00;
}