/*
  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/>
*/

* {
	outline: none;
	cursor: default;
	-webkit-user-select: none;
}

body *:not(text):not(tspan){
	font-family: "Helvetica";
	-webkit-font-smoothing: antialiased;
	font-size:12px;
	color:rgba(255, 255, 255, 0.8);
}

.background {
	width: 100%;
	height: 100%;
	background-attachment:fixed;
	background-position: bottom left;
	background-repeat: no-repeat;
	background-size: contain;
	background-image: url(icons/petal.png), -webkit-gradient(radial, 50% 75%, 0, 50% 75%, 400, from(rgba(94,94,94,0.5)), to(rgba(94,94,94,0))), -webkit-gradient(linear,left bottom,left top, color-stop(0, #5f5f5f),color-stop(0, #313131));
}

.box{
	background-color: rgba(94,94,94, 0.2);
	background: -webkit-gradient(linear, left top, left bottom, from(rgba(94,94,94,0.5)), to(rgba(94,94,94,0)));
	-webkit-box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
}

input[type=button].heavy {
	border: 1px solid #313131;
	background: -webkit-gradient(linear, left top, left bottom, from(#939393), to(#4e4e4e), color-stop(0.4, #707070), color-stop(0.5, #636363));
}

input[type=button].heavy:hover{
	background: -webkit-gradient(linear, left top, left bottom, from(#909090), to(#616161), color-stop(0.4, #808080), color-stop(0.5, #747474));
}

input[type=button].heavy:active{
	background: -webkit-gradient(linear, left top, left bottom, from(#646464), to(#3d3d3d), color-stop(0.4, #5a5a5a), color-stop(0.5, #4e4e4e));
}

.big{
	font-size: 16px;
}

input[type=button].heavy.big{
	border-radius: 15px;
	-webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

input[type=button].light{
	background: none;
	opacity: 0.6;
}

input[type=button].light{
	padding: 3px;
	border: 2px solid rgba(255,255,255,0);
	border-radius: 9px;
	height: 37px;
}

input[type=button].light.big{
	padding: 6px;
	border: 3px solid rgba(255,255,255,0);
	border-radius: 17px;
	font-weight: bold;
	height: 50px;
}

input[type=button].light:hover{
	border-color: rgba(255,255,255,1);
}

input[type=button].light:active{
	border-color: rgba(255,255,255,1);
	opacity: 0.95;
}

input[type=button].image{
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
}

input[type=radio].light{
	visibility: hidden;
	display: none;
	background: none;
}

label.light{
	border: 2px solid rgba(0, 0, 0, 0);
	line-height: 2em;
	display: block;
	background: none;
	border-radius: 5px;
}

label.light:hover {
	border: 2px solid rgba(255, 255, 255, 0.6);
}

label.light:active {
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.9);
}

input.light[type=radio]:checked + label.light{
	background: rgba(255, 255, 255, 0.2);
}

input.light[type=radio]:checked + label.light:hover{
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.6);
}

input[type=text], input[type=number]{
	height: 20px;
	-webkit-user-select: text;
	outline-color:red;
}

input[type=text], input[type=number], select{
	border: 1px solid #313131;
	border-radius: 5px;
	box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
	background-color: rgba(255, 255, 255, 0.1);
	text-indent: 6px;
	margin: 3px;
}

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

select:hover, input[type=text]:hover, input[type=number]:hover{
	border-color: rgba(255, 255, 255, 0.5);
	background-color: rgba(0, 0, 0, 0.05);
}

input[type=text]:focus, input[type=text]:active, input[type=number]:focus, input[type=number]:active{
	border-color: #313131;
	border-bottom-color: rgba(0, 0, 0, 0.6);
	background-color: rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 1px 1px 4px #313131;
}

option {
	background-color: #666666;
}

select {
	background-image: url(icons/arrow_box.png);
	background-position: center right;
	background-repeat: no-repeat;
	overflow: hidden;
	padding-top: 2px;
	padding-bottom: 2px;
	padding-right: 20px;
	padding-left: 2px;
	text-overflow: ellipsis;
	white-space: nowrap;
	-webkit-appearance: none;
	-webkit-user-select: none;
}

select:hover {
	background-image: url(icons/arrow_box_hover.png);
}

select:active {  
	background-image: url(icons/arrow_box_pressed.png);
}

select.hidden, input.hidden {
	opacity: 1.0;
	-webkit-transition: opacity 0.5s ease-in-out;
}

select.hidden:disabled, input.hidden:disabled {
	opacity: 0.0;
}

select.limited:disabled, input.limited:disabled, select.limited:disabled:hover, input.limited:disabled:hover {
	opacity: 0.4;
}

input.heavy.limited:disabled:hover {
	background: -webkit-gradient(linear, left top, left bottom, from(#939393), to(#4e4e4e), color-stop(0.4, #707070), color-stop(0.5, #636363));
}

input.light.limited:disabled:hover {
	border-color: rgba(255,255,255,1);
}

.decoration {
	background-color: rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
	text-align: center;
}

legend{
	opacity: 0.3;
	text-align: left;
	padding-left: 20px;
	font-weight: bold;
}

a ins{
	border-radius:5px;
}

::-webkit-scrollbar {
    height: 12px;
	width: 12px;
	padding-bottom: 1px;
	background-color: rgba(255, 255, 255, 0.4);
    }
::-webkit-scrollbar-thumb {
	border-left-style: solid;
	border-left-width: 1px;
	border-left-color: rgba(255, 255, 255, 0.4);
	border-bottom-style: solid;
	border-bottom-width: 1px;
	border-bottom-color: rgba(255, 255, 255, 0.4);
	background: rgba(0, 0, 0, 0.4);
}
::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.6);
}
::-webkit-scrollbar-thumb:active {
	background: rgba(0, 0, 0, 0.8);
}

::-webkit-scrollbar-corner {
	background: rgba(0, 0, 0, 0.4);
}

*::-webkit-selection{
	background-color: rgba(255, 255, 255, 0.4);
}
*:focus{
	background-color: rgba(255, 255, 255, 0.4);
}
