/**
 *    Copyright 2015 Fondazione Bruno Kessler - Trento RISE
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

body {
	/* Needed if navbar-fixed-top and/or navbar-fixed-bottom */
	padding-top: 70px;
	padding-bottom: 70px;
}

.navbar-brand.navbar-brand-logo {
	padding-top: 0px;
}

.navbar-brand.navbar-brand-bigger {
	font-size: 36px;
}

.pull-center {
	margin-top: 50%;
}

.top-margined {
	margin-top: 20px;
}


.btn-circle {
	width: 30px;
	height: 30px;
	text-align: center;
	padding: 5px 0;
	font-size: 16px;
	line-height: 1.42;
	border-radius: 15px;
}

button.btn-default.btn-edit {
	color: #d9534f;
}

button.btn-default.btn-edit:focus {
	outline: none;
}


.top-spaced {
	margin-top: 5px;
}

.right-spaced {
	margin-right: 10px;
}

.rule-textarea {
	min-height: 240px;
	resize: vertical;
}



/*
	side menu
*/

#side-menu {
	margin-top: 15px;
	padding-right: 0;
}

.nav-pills> li> a {
	color: rgb(119, 118, 117);
	font-weight: bolder;
	border-radius: 0;
	padding: 12px 0 0 0;
	border-bottom: 5px solid white;
	transition: all .4s;
}

.nav-pills> li.active> a,
.nav-pills> li> a:hover,
.nav-pills> li.active>a:hover,
.nav-pills> li> a:focus {
	border-bottom: 5px solid rgb(65, 169, 246);
	background-color: rgb(255, 255, 255);
	color: rgb(65, 169, 246);
}

/*

STATE MONITOR
*/
.player {
	display: inline-block;
}
.player span.id {
	line-height: 10px !important;
	margin: 0;
	font-size: 17px;
	font-weight: normal;
}
.player span.id.bold {
	font-weight: bold;
}
.player span.points {
	line-height: 10px !important;
	display: block;
	font-size: 13px;
}
.record:before, .record:after, .details:before, .details:after {
	content: none;
}
.details h5 {
	width: 100%;
	color: rgb(55,159,244);
	border-bottom: 2px solid rgb(55,159,244);
}
.details .total {
	float: right;
	font-size: 13px;
	position: relative;
	top: -35px;
}
.details table {
	margin: 0 10px;
}
.details .value {
	font-weight: bolder;
}
.details .badge-elem {
	margin-right: 10px;
}

.glyphicon-plus {
	top: -0.3px;
	left: 0.9px;
}
/*
	game
*/
#main-container {
	min-height: 70vh;
	border-left: 2px solid rgb(159, 159, 159);
}

span#back {
	position: relative;
	top: 10px;
	padding-right: 7px;
	font-size:25px;
	cursor: pointer;
}

#game-name {
	margin: 0px;
	font-size: 24px;
	display: inline;
}

#game-id {
	padding-left: 30px;
	font-size: 15px;
	color: #5e5e5e;
}


/*
	input
*/

input.text {
	width: 300px;
	display: inline;
}

.modal-body {
	padding: 15px 0;
}

button.btn-add {
	margin-bottom: 25px;
}
/*
	tables
*/

.table-bordered>tbody>tr>td {
	border: 2px solid rgb(170, 170, 170);
	padding: 5px 15px;
	vertical-align: middle;
	line-height: 29px;
}

.table-bordered {
	border-collapse: separate;
	border-spacing: 0 14px;
	border: 0;
}

hr {
	margin: 5px 0;
	background-color: rgb(159, 159, 159);
	height: 2px;
}


/*
	rules
*/

.rule-detail {
	margin: 15px 0;
	resize: none;
	height: 250px !important;
}

.rule:before, .rule:after {
	content: none;
}

/*
	concepts
*/

.nav-tabs {
	border-bottom: 5px solid rgb(65, 169, 246);
}

.nav-tabs> li {}

.nav-tabs> li> a {
	padding: 10px 40px;
	border-radius: 0;
	color: rgb(119, 118, 117);
	margin: 0;
	border: 0;
	transition: all .4s;
}

.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a,
.nav-tabs > li:hover > a,
.nav-tabs > li.active:hover > a
 {
	color: #fff;
	background: rgb(65, 169, 246);
	border: 0;
}


/*
	alert
*/

.alert {
	margin-bottom: 10px;
	padding: 11px 1px;
}

.alert> button {
	top: 0;
	left: 0;
}

.horizontalCollapse {
	-webkit-transition: opacity 0.3s ease 0.2s, width 1s ease;
    -moz-transition: opacity 0.3s ease 0.2s, width 1s ease;
    -o-transition: opacity 0.3s ease 0.2s, width 1s ease;
	transition: opacity 0.3s ease 0.2s, width 1s ease;
    overflow-x: hidden;
	/*overflow-y: visible;*/
	padding: 0;
    width: 0;
	opacity: 0;
}
.horizontalCollapse.in {
	width: 99%;
	opacity: 1;
}

/*
	home
*/
.game {
	margin: 10px 0;
	border: 1px solid rgb(117,117,117);
	border-radius: 10px;
	padding: 0 10px;
	float: left;
	width: 100%;
}
.game .game-title, .game p {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.game .game-title {
	color: rgb(55,159,244);
	line-height: 27px;
	margin: 10px 0 15px 0;
	cursor: pointer;
}
.game .stop {
	text-transform: uppercase;
	font-weight: 500;
	font-size: 14px;
	color: rgb(55,159,244);
	cursor: pointer;
	position: relative;
	top: 10px;
	left: 2px;
}
.game .actions {
	float: right;
	padding: 5px 0;
}
.game .actions button {
	margin: 1px;
}
.game .actions button img {
	width: 75%;
	position: relative;
	top: -3px;
	left: 1px;
}
.game.stopped .game-title {
	color: rgb(117,117,117);
}
/*
	select style
*/
div.select {
	display: inline-block;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
	min-width: 80px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #fff;
    background: #fff url("http://www.scottgood.com/jsg/blog.nsf/images/arrowdown.gif") no-repeat 95% 50%;
}

div.select select {
    padding: 5px 8px;
	width: 100%;
    border: none;
    box-shadow: none;
    background-color: transparent;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}

.challenge-box {
	display: inline-block;
	margin: 15px;
	vertical-align: text-top;
}

.challenge-box .challenge-title {
	text-decoration: underline;
}

.challenge-box .challenge-field {
}

.challenge-box .challenge-field-value {
	font-weight: bold;
}

.detail-small, .challenge-box .challenge-date {
	font-size: 85%;
}

.challenge-box .challenge-status .label{
	margin-right: 2px;
}


.monitor-section-title {
	width: 100%;
}

.monitor-section-title  span {
	cursor: pointer;
	float: left;
	display: block;
	color: rgb(55,159,244);
	
}

.section-title {
	display: block;
	border: 1px;
	border-color: color: rgb(55,159,244);
	cursor: pointer;
}

ul.point-monitor, ul.point-monitor > li {
	list-style-type: none;
}

li.point-monitor {
	border-bottom: 1px solid rgb(55,159,244);
} 

.number-box {
	width: 5em;
}

.error {
	color: red;
	font-weight: bold;
}