@CHARSET "ISO-8859-1";


/** COMUNES **/
html, body {
	height: 100%;
	position: relative;
	width: 100%;
}

body {
	font-family: "Helvetica Neue";
}

p.error { color: #b94a48 }
p.center, .text-center { text-align: center }

.botones {
	text-align: center;
	margin-top: 20px;
}

.botones .btn {
	padding: 10px;
	margin-right: 20px;
	min-width: 100px;
}

.text-center { 
	text-align: center;
}
.margin-top-20 { margin-top: 20px; }

/** HEADER **/
.header {
	background: #f5f5f5;
	border-bottom: 1px solid rgba(0,0,0,0.05);
	width: 100%;
	height: 10%;
}

.header h1 {
	padding: 15px;
	color: #333;
	font-weight: 100
}

.header img {
	height: 40px;
}

.header.navbar {
	background: #f5f5f5;
	height: fit-content;
}

li {
  list-style: none;
}

/** FOOTER **/
.footer {
	clear: both;
	padding-left: 10px;
	color: rgb(163,10,22);
	height: 10%;
	position: absolute;
	bottom: 5px;
}

/** FORMS **/
form input[type=text], form input[type=email], form input[type=password],
.form input[type=text], .form input[type=email], .form input[type=password] {
	height: 30px; 
}
form input.error,
.form input.error {
	color: #B94A48;
	border-color: #B94A48;
}

form span.error,
.form span.error {
	color: #B94A48;
	display: block;
	margin: 5px 0px;
}

/** CONTAINER **/
#container {
	width: 100%;
	margin: 2px 0px 5px;
	position: relative;
}

/** ALERTA **/
#alert {
	display: none;
	left: 50%;
    margin-left: -200px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 400px;
    z-index: 1;
}
 
/**** LOGIN ****/
#login, #recuperarClave {
	width: 310px;
	left: 50%;
	margin-left: -150px;
	position: absolute;
	margin-top: 70px;
}

#login h3, #recuperarClave h3 {
	display: block;
	width: 100%;
	padding: 0;
	margin-bottom: 27px;
	font-size: 19.5px;
	font-weight: 300;
	line-height: 36px;
	color: #333;
	border: 0;
	border-bottom: 1px solid #e5e5e5;
}

#login input[type=text], #login input[type=password],
#recuperarClave input[type=email]{
	width: 100%;
}

#login .captcha {
	margin-bottom: 15px;
}

#login .captcha input[type=text] {
	width: 120px;
	margin-top: 10px;
}

#login_alert, #recuperarClave_alert {
	width: 600px;
	left: 50%;
	margin-left: -300px;
	position: absolute;
	text-align: center;
}


/**** VOTAR ****/
#overlay {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background: black;
	opacity: 0.8;
	display: none;
	z-index: 2000;
}

#votar h2 {
	text-align: center;
	margin-bottom: 20px;
}

#votar h4 {
	text-align: center;
}


#listas {
	width: 100%;
	margin: auto;
	float: left;
	position: absolute;
	left:50%;
	margin-left: -50%;
}

#listas li {
	display: block;
	margin-bottom: 20px;
	float: left;
}

#listas li.unoPorFila {
	position: relative;
	transform: translate(-50%);
	left: 50%;
}

#listas li.dosPorFila {
	width: 300px;
}

#listas li.dosPorFila:nth-child(2n+1) {
	margin-right: 150px;
}

#listas li.tresPorFila {
	width: 200px;
}

#listas li.tresPorFila:nth-child(n+1) {
	margin-right: 50px;
}

#listas li.tresPorFila:nth-child(3n+3) {
	margin-right: 0px;
}

#listas li a {
	text-decoration: none;
}

#listas li img {
	margin: auto;
	display: block;
	border: 1px solid #CCC;
}

#listas li span.nombre {
	display: block;
	font-size: 1.3em;
	text-align: center;
	margin-bottom: 5px;
}

#lista_seleccionada {
	display: none;
	width: 600px;
	position: absolute;
	top: -20px;
	left: 50%;
	margin-left: -300px;
	padding: 20px;
	background: white;
	z-index: 3000;
}

#lista_seleccionada img {
	display: block;
	margin: auto;
}

.voto-en-blanco {
	display: block;
	text-align: center;
	font-size: 1.2em;
	width: 100% !important;
}
#recuentoDeVotos{
	width: 40%;
}
#recuentoDeVotos td{
	text-align: center;
}
.tabla-recuento {
	background: #ddd
}


#msjFinSesion {
	padding-top: 100px;
}

#msjFinSesion a {
	padding: 20px;
}
.button-container {
	display:flex;
	justify-content: right;
}

#container {
	height: 70vh;
}

#btn_confirmar_no {
	margin-right: 0%;
}

@media only screen and (max-width: 768px) {

	body {
		width: 100vw;
		height: 100%:
	}

	#container {
		width:100%;
	}

	/** HEADER **/
	.navbar .container {
		width: 100%;
	}

	.container {
		height: 100%;
		margin: 0;
		width:100%;
    	}


	#img-logo {
		display:block;
		margin:0;
	}

	.navbar .btn {
		display: inline-block;
    		padding: 4px 5px 4px;
    		margin: 5px 5px 6px;
    		line-height: 18px;
	}
	
	.header h1 {
		font-size: 140%;
	}

	/** LOGIN **/
	#login, #recuperarClave {
		width: 98%;
		margin-left: 0;
		margin-right: 0;
		left: 0;
		padding: 2%;
		margin-top: 5vw;
	}

	#login h3, #recuperarClave h3 {
		font-size: 23px;
	}

	#login input[type=text], #login input[type=password],
	#recuperarClave input[type=email], #recuperarClave input[type=text]{
		width: 97%;
	}

	#login .captcha {
		margin-bottom: 15px;
	}

	#login .captcha input[type=text] {
		width: 97%;
		margin-top: 10px;
	}


	#login input[type=submit], 
	#recuperarClave input[type=submit] {
		width: 97%;
	}

	#volverInicio {
		width: 97%;
        	padding-right: 0;
       		margin-top: 1%;
        	padding-left: 0;
	}

	#login a {
		font-size: 15px; /* esto es para lo del texto que dice olvidó su contraseña */
	}

	/** LISTAS **/
	#listas {
		width: 100%;
		margin: auto;
		position: absolute;
		margin-left: 0;
	        left: 50%;
        	transform: translateX(-50%);
	}

	#listas li.dosPorFila:nth-child(2n+1) {
    		margin-left: 5%;
		margin-right: 5%;
	}

	#listas li.tresPorFila:nth-child(n+1) {
		/* Tengo que anular lo que está en la parte de arriba porque sino lo deja todo re raro */
		margin-right:5%;
	}

	#listas li.dosPorFila, #listas li.tresPorFila {
		width: 40%;
		max-height: 50%;
		margin-left: 5%;
	}

	#listas li.tresPorFila:nth-child(3n+3) {
		margin-left: 30%;
	}

	#lista_seleccionada {
		width: 96%;
    		left: 0;
    		margin-left: 2%;
    		padding: 0;
	}

	#lista_seleccionada img {
		height: 100%;
	}

	#btn_confirmar_si, #btn_confirmar_no {
		margin-bottom: 3%;
	}

	#login_alert, #recuperarClave_alert {
		width: 87%;
    		left: 0;
    		margin-left: 0;
		position: relative;
	}
	#recuentoDeVotos{
		width: 70%;
	}


}

@media print {
        @page {
		size: landscape; 
	}

	.no-print {
		display: none; 
	}

}

