/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
@import url(http://fonts.googleapis.com/css?family=Bree+Serif);
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Default Styles 
--------------------------------------------------------------------*/


body {
	background: url(../images/perro.jpg);
	font-family: 'Bree Serif', serif;
	

}
.center {
 margin: 0 auto;
 text-align: center;
}
.clearfix {
	clear: both;
}

.wrap {
	width: 840px;
	margin: 4em auto;
}

nav {
	background: -webkit-gradient(linear, center top, center bottom, from(#fff), to(#ccc));
	background-image: linear-gradient(#fff, #ccc);
	border-radius: 6px;
	box-shadow: 0px 0px 4px 2px rgba(0,0,0,0.4);
	padding: 0 10px;
	position: relative;
}

.menu li {
	float: left;
	position: relative;
}

.menu li a {
	color: #444;
	display: block;
	font-size: 14px;
	line-height: 30px;
	padding: 8px 14px;
	margin: 10px 10px;
	vertical-align: middle;
	text-decoration: none;
}

.menu li a:hover {
	background: -webkit-gradient(linear, center top, center bottom, from(#ededed), to(#fff));
	background-image: linear-gradient(#ededed, #fff);
	border-radius: 20px;
	box-shadow: inset 0px 0px 1px 1px rgba(0,0,0,0.1);
	color: #222;
}

/* Dropdown styles */

.menu ul {
	position: absolute;
	left: -9999px;
	list-style: none;
	opacity: 0;
	transition: opacity 1s ease;
}

.menu ul li {
	float: none;
}

.menu ul a {
	white-space: nowrap;
}

/* Displays the dropdown on hover and moves back into position */
.menu li:hover ul {
	background: rgba(255,255,255,0.7);
	border-radius: 0 0 6px 6px;
	box-shadow: inset 0px 2px 4px rgba(0,0,0,0.4);
	left: 5px;
	opacity: 1;
}

/* Persistant Hover State */
.menu li:hover a {
	background: -webkit-gradient(linear, center top, center bottom, from(#ccc), to(#ededed));
	background-image: linear-gradient(#ccc, #ededed);
	border-radius: 12px;
	box-shadow: inset 0px 0px 1px 1px rgba(0,0,0,0.1);
	color: #222;
}

.menu li:hover ul a {
	background: none;
	border-radius: 0;
	box-shadow: none;
}

.menu li:hover ul li a:hover {
	background: -webkit-gradient(linear, center top, center bottom, from(#eee), to(#fff));
	background-image: linear-gradient(#ededed, #fff);
	border-radius: 12px;
	box-shadow: inset 0px 0px 4px 2px rgba(0,0,0,0.3);
}

.login-form .content .password, .login-form .content .pass-icon {
	margin-top: 25px;
}

.box {  
background:#FFFFFF;  
color:#000000; padding: 5px;  
height:240px;  
width: 540px;  
margin-top: 5px;  
margin-right: auto;  
margin-bottom: 5px;  
margin-left: auto;  
border: 2px solid black; 
}

.general  {
background-color:#FFFFFF;
font-family:Serif ;
font-size:20px;
font-weight: bold;
font-style: italic;
border: 1px solid gray;
height:60px;
width:220px;
box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.4); 
}
 
#lightbox div{
visibility:hidden;
position:absolute;
height:50%;
width:50%;
background-color:white;
border: 4px solid black; 
opacity: 1;
}

#lightbox :target {
visibility:visible;
position:absolute;
top:0;
bottom:0;
left:0;
right:0;
margin:auto;
height:330px;
width:420px;
box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.4);
-webkit-transition: all 0.2s ease-in;
-moz-transition: all 0.2s ease-in;
background-color:#f3f3f3;
border-radius: 12px;
border: 1px solid gray;
padding: 10px;
z-index:100;
opacity: 1;
}

.background22 {
position: absolute;
width:100px;
height:400px;
opacity:0.5;
background-color=black;
}

.fadeout  {
visibility:hidden;
top:0; 
width:500px;
height:800px;
bottom:0;
left:0;
right:0;
position:absolute;
margin:auto;
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
background-color:black;
opacity:0.1;
font-family:Serif ;
font-size:20px;
font-weight: bold;
font-style: italic;
}
#containerMessages,#containerUsers{
    height: 200px;
    overflow-y: scroll;
    border: 1px solid #eee;
    margin-bottom: 15px;
    background: #444;
}
 
.message{
    padding: 5px 2px;
    border: 1px solid #eee;
    border-radius: 6px;
}
 
.formModal{
    top: 15%;
}
 
#loginBtn{
    width: 100%;
}
 
#formLogin{
    margin-top: 15px;
}
 
.errorMsg{
    height: 50px;
    text-align: center;
    margin-top: 10px;
}
 
.info{
    height: 30px;
    font-size: 14px;
    padding: 3px 10px;
    color: #3a87ad;
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    border-radius: 6px;
}
 
.disconnect{
    height: 30px;
    font-size: 14px;
    padding: 3px 10px;
    color: #3a87ad;
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    border-radius: 6px;
}
#chatMsgs p,#containerUsers p{
    border-radius: 8px;
    padding: 4px;
#close {
position:absolute;
top:-10px;
right:-10px;
width:18px;
height:16px;
background-color:black;
text-decoration:none;
font-family:arial, tahoma, verdana, sans serif;
padding-left:1px;
padding-top:1px;
text-align:center;
font-size:12px;
color:white;
border:2px solid grey;
border-radius:25px;
opacity:1;
}

#latencia {
	position: absolute;
	top: 5px;
	left: 5px;
	color: #fff;
	font-size: 10px;

	span {
		font-style: italic;
	}
}

#login-contenedor {
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.9);
	position: absolute;
	top: 0;
	left: 0;

	#login {
		width: 200px;
		min-height: 100px;
		border: 1px solid #c0c0c0;
		border-radius: 7px;
		background-image: url('img/bg-azul.png');
		text-align: center;
		margin: auto;
		margin-top: 250px;

		input[type="text"] {
			border: 1px solid #000;
			outline: none;
			width: 170px;
			height: 20px;
			font-style: italic;
		}

		p.error {
			color: red;
			font-size: 12px;
			font-style: italic;
		}
	}
}

#contenedor {
	width: 900px;
	height: 100%;
	margin: auto;
	margin-top: 0px;

	.titulo {
		text-align: center;
	}
}

#minicontenedor {
	width: 620px;
	margin: auto;
	height: 400px;

	#tablero {
		float: left;
		width: 396px;
		height: 396px;
		border: 2px solid #000;

		.fila {
			width: 396px;
			height: 132px;

			.columna {
				width: 130px;
				height: 130px;
				font-size: 30px;
				float: left;
				border: 1px solid #c0c0c0;
				background-color: lighten(@colorPrincipal, 10%);
				cursor: pointer;
				font-size: 120px;
				text-align: center;
				vertical-align: middle;

				&:hover {
					background-color: lighten(@colorPrincipal, 15%);
					border: 1px solid darken(#c0c0c0, 10%);
				};
			}
		}
	}

	#jugadores {
		width: 198px;
		height: 120px;
		float: left;
		margin-left: 20px;
		border: 1px solid #000;

		.estado {
			width: 198px;
			height: 39px;
			border-bottom: 1px solid #000;
			.gradiante( #c0c0c0, lighten(#c0c0c0, 15%));

			.figura {
				float: left;
				width: 44px;
				height: 31px;
				text-align: center;
				padding: 5px 0px 3px 0px;
				background-color: #c0c0c0;
				border-right: 1px solid #000;
				font-size: 28px;
				font-weight: bold;

				//Cuando se conecta un jugador
				&.bg-verde {
					background-color: #7FB321;
				}
			}

			.nombre {
				float: left;
				width: 146px;
				height: 29px;
				padding: 5px 2px 5px 5px;
				font-size: 13px;

				//Cuando es el turno del jugador
				&.turno-verde {
					.gradiante( #7FB321, #fff);
				}

			}
		}

		#unirse {
			width: 100%;
			height: 30px;
			font-size: 20px;
			padding: 10px 0px 0px 0px;
			border: none;
			text-align: center;
			.gradiante( #c0c0c0, #fff);

			&:hover {
				.gradiante( #fff, #c0c0c0);
				font-weight: bold;
			}

			&.completo:hover {
				.gradiante( orange, #fff);
			}
		}
	}


}

#chat {

	width: 748px;
	height: 200px;
	border: 1px solid #000;
	margin: auto;
	margin-top: 30px;

	#sala {
		float: left;
		width: 600px;
		height: 100%;
		margin: 0;
		padding: 0;
		background-color: #fff;

		.texto {
			margin: 0;
			width: 600px;
			height: 170px;
			border: none;
			background-color: darken(#fff, 6%);
			overflow-y: auto;
			overflow-x: hidden;

			.frase {
				@borde: 1px dashed #c0c0c0;
				display: block;
				width: 590px;
				padding: 3px 5px 2px 5px;
				border-bottom: @borde;
				font-size: 15px;

				.sistema( @color ) {
					color: @color;
					font-size: 13px;
					font-style: italic;
				}

				&.rojo {
					.sistema(red);
				}

				&.verde {
					.sistema(green);
				}

				&.naranja {
					.sistema(orange);
				}

				&.azul {
					.sistema(blue);
				}

			}
		}

		textarea {
			margin: 0;
			height: 25px;
			width: 100%;
			border: none;
			border-top: 1px solid #000;
			resize: none;
			outline: none;
			font-style: italic;
		}

	}

	#usuarios {
		float: left;
		width: 147px;
		height: 100%;
		background-color: lighten(#c0c0c0, 5%);
		border-left: 1px solid #000;
		overflow-x: hidden;
		overflow-y: auto;

		.usuario {
			display: block;
			width: 137px;
			font-size: 12px;
			border-bottom: 1px dashed #fff;
			text-align: left;
			padding: 4px 2px 3px 8px;

		}

	}

}
