/*
  Copyright (2010-2013) Cédric Coussinet (cedric.coussinet@nomoseed.net)

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published
  by the Free Software Foundation, version 2 of the License.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program. If not, see <http://www.gnu.org/licenses/>
*/

#benchmark {
	width: 100%;
	height: 100%;
	margin: 0px;
	padding: 0px;
	display: -webkit-box;
	-webkit-box-pack: justify;
	-webkit-box-align: center;
	-webkit-box-orient: vertical;
}

form {
	display: -webkit-box;
	-webkit-box-pack: justify;
	-webkit-box-align: center;
	-webkit-box-orient: horizontal;
}

#controls form{
	-webkit-box-pack: center;
}

#benchmark form {
	text-align: center;
}

#benchmark fieldset {
	display: -webkit-box;
	border:none;
}

#controls input[type=button] {
	font-size:15px;
	height: 3em;
	width: 10em;
}

#worldsquare, #pointsscatter, #controls {
	width: 100%;
}

#worldsquare , #pointsscatter{
	border-top-left-radius: 10px;
	margin-top: 0em;
	-webkit-box-flex: 2;
}

#controls {
	margin-top: 0.5em;
	border-bottom-right-radius: 10px;
	height: 124px;
}
#controls.pause{
	pointer-events:none;
	opacity: 0.5;
}

#controls.pause.one1{
	pointer-events:none;
	opacity: 1;
}

#controls fieldset {
	margin:12px;
	margin-top:0px;
	padding-top:10px;
	height: 94px;
	width:100%;
	min-width: 100px;
	max-width: 500px;
	display: -webkit-box;
	-webkit-box-pack: justify;
	-webkit-box-align: center;
	-webkit-box-orient: vertical;
	-webkit-box-flex:1;
}

#controls select, #controls input[type=text], #controls label{
	position:relative;
	margin-left:0;
	margin-right:0;
/*	left:-20px; */
}


#controls select, #controls input[type=text]{
	width: 200px;
	text-align: left;
	height: 20px;
}

#controls input[type=text]{
width: 195px;
}

#controls label{
	display: inline-block;
	width: 200px;
	text-align: right;
}

input[type='range'] {
	border: none;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url(../share/images/hue_scale.jpg);
	background-size: 92% 100%;
	width: 180px;
	text-align: center;
	-webkit-appearance: none;
}

input[type='range']::-webkit-slider-thumb {
	background-repeat: no-repeat;
	background-position: top right;
	background-image: url(../share/images/cursor_color.png);
	background-size: 100% 100%;
	width: 16px;
	height: 20px;
	opacity: 0.5;
	-webkit-appearance: none;
}

input[type='range']:active::-webkit-slider-thumb {
	background-repeat: no-repeat;
	background-position: top right;
	background-image: url(../share/images/cursor_color.png);
	background-size: 100% 100%;
	width: 16px;
	height: 20px;
	opacity: 0.8;
	-webkit-appearance: none;
}

#logging {
	border-top-left-radius: 18px;
}

#clocking {
	border-bottom-right-radius: 18px;
}

#map, #points, #unit {
	position: absolute;
	margin: 20px;
	margin-top: 10px;
	margin-bottom: 5px;
	top: 0;
	z-index:100;
}

#map, #points {
	left: 0;
	text-align: left;
	-webkit-transition: left 0s ease-in-out;
}

#unit {
	right: 0;
	text-align: right;
	-webkit-transition: right 0s ease-in-out;
}

#action{
	display: -webkit-box;
	-webkit-box-pack: justify;
	-webkit-box-align: center;
	-webkit-box-orient: horizontal;
	position: relative;
	margin-top:-65px;
}

#unitReloading, #mapReloading, #pointsReloading{
	background-size: 25px 23px;
	height: 50px;
	width: 45px;
	margin: 0px;
	position:relative;
	top: -5px;
	opacity: 0.5;
	background-image: url(../benchmark/icons/reload.png);
}

#unitReloading:active, #pointsReloading:active, #mapReloading:active{
	border-color: rgba(255,255,255,1);
	opacity: 0.95;
}

#starting{
	background-size: 40px 40px;
	height: 52px;
	width: 52px;
	margin: 5px;
}

#starting[name='start']{
	background-image: url(../benchmark/icons/start.png);
}

#starting[name='pause']{
	background-image: url(../benchmark/icons/pause.png);
}

#progressVal, #progressBar {
	-webkit-transition: opacity 0.5s ease-in-out;
}

#progressVal{
	display: inline-block;
	font-size: 12px;
	text-align:center;
	background: none;
	margin-right:1em;
	color: white;
	opacity:0.6;
}

#progressBar {
	padding-left: 0px;
	padding-right: 10px;
	margin-left: 0px;
	margin-right: 20px;
	-webkit-box-flex:2;
}

#progressBar>span {
	display: inline-block;
	height: 10px;
	text-align: center;
	border-radius: 3px;
	background: white;
	opacity: 0.6;
	-webkit-box-shadow: 0 2px 0 rgba(255, 255, 255, 0.5) inset;
	width: 0%;
}

#action{
	-webkit-transition: opacity 0.5s ease-in-out;
}

#action:disabled{
	opacity:0.0;
}

#worldsquare>svg, #pointsscatter>svg {
	-webkit-transition-delay: 0s;
	-webkit-transition-duration: 0s;
	-webkit-transition-property: height;
	-webkit-transition-timing-function: ease-in-out;
}


#slabControl {
	display: none;
	position: absolute; 
	top: 0px; 
	left: 0px;
	height: 95px;
	width: 211px;
	-webkit-transition-delay: 0.0s;
	-webkit-transition-duration: 0.3s;
	-webkit-transition-property: all;
	-webkit-transition-timing-function: ease-in;
}

#slabControl div:last-child{
	display: -webkit-box;
	-webkit-box-pack: justify;
	-webkit-box-align: center;
	-webkit-box-orient: horizontal;
}


#slabControl input[type=number], #slabControl label[for="textHue"], #slabControl label[for="textSpheresNbr"]{
	left:-15px;
	position: relative;
	margin:0px;
}

#slabControl input[type=number]{
	width: 46px;
	text-align: left;
	margin-top: 0px;
	background-color: rgba(255, 255, 255, 0.2);
	text-indent: 3px;
	margin-right: -18%;
}

input[type=number]:invalid, input[type=number]:invalid:hover {
	font-weight: bold;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 5px;
}

#slabControl label[for="textHue"], #slabControl label[for="textSpheresNbr"]{
	height: 24px;
	top: -9px;
	display: inline-block;
	min-width: 120px;
	max-width: 200px;
	text-align: right;
	/*margin-left: 7%;*/
}

#slabControl div:last-child label, #slabControl input[type=radio]{
	width: 23px;
	height: 18px;
	padding: 1px;
}

#slabControl:hover{
	opacity: 1;
} 

#slabControl fieldset {
	text-align: center;
	margin: auto;
	position:relative;
	text-align: center;
	padding-top: 7px;
	background-color: rgba(40, 40, 40, 0.85);
	border-radius: 8px;
}

.space {
	stroke-opacity: 0.0;
	stroke-width: 9;
	stroke: white;
	fill: white;
	fill-opacity: 0.0;
	-webkit-transition: fill-opacity 1s ease-in-out;
}

.space:hover {
	stroke-opacity: 0.5;
	stroke-width: 3;
}

.space.nohover:hover {
	stroke-opacity: 0.0;
}

#slabs:hover .space {
	fill-opacity: 0.2;
	-webkit-transition: fill-opacity 0.5s ease-in-out;
}

#slabs.spaceStable .space{
	fill-opacity: 0.2;
	-webkit-transition: fill-opacity 0.0s ease-in-out;
}

#slabs.spaceInit .space{
	-webkit-transition: fill-opacity 0.0s ease-in-out;
}

#spaces path {
	stroke:white;
	stroke-opacity: 0.5;
	stroke-width: 5;
	fill-opacity: 0.01;
	-webkit-transition: fill-opacity 0.3s ease-in-out;
}

g.select:hover{
	opacity: 1;
}

#spaces:hover path {
	opacity:0.5;
	-webkit-transition: fill-opacity 0.5s ease-in-out;
}

.slab {
	stroke: #000;
	stroke-width: 1;
	opacity: 1;
/*	pointer-events: all;*/
}

use.select:hover{
	opacity: 1;
}

.slab:hover{
	fill-opacity:0.8;
}

#worldsquare text, #worldsquare ttspan{
	text-anchor: middle;
	text-decoration: underline;
	font-family: Verdana;
	fill: white;
	fill-opacity: 0.7;
}

#pointsscatter text, #pointsscatter ttspan{
	font-family: Verdana;
	fill: white;
	fill-opacity: 0.7;
}

#pointsscatter svg  rect:first-child{
	fill-opacity:0;
}

#pointsscatter svg  rect{
	fill-opacity:0.5;
}

#pointsscatter polygon{
	stroke: none;
	fill-opacity: 0.3;
}

#worldsquare tline{
	stroke: white;
	stroke-opacity: 0.7;
}

#worldsquare line{
	stroke: white;
	stroke-opacity: 0.7;
}

.noevents {
	cursor: url(../share/icons/no_way.png), not-allowed;
}

.noevents use.select, .noevents .slab{
	pointer-events: none;
}

.noevents *.*{
	pointer-events: none;
}

.noevents *, .noevents #slabs{
	pointer-events: none;
}

.head {
	fill: none;
	stroke-linejoin: round;
	stroke-width: 5;
	pointer-events: none;
}

#moveControl{
	stroke-linecap: round;
	stroke: white;
	stroke-opacity: 0.6;
	stroke-width: 10;
	pointer-events: none;
}