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;
}
/* 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;
}
/* end Reset */

body
{
	font-size: 14px;
	font-family: Verdana, Geneva, sans-serif;
	background-color: #EDEDED;
}

img
{
	max-width: 100%;
}

header
{
	background-color: #394259;
	overflow: auto;
	color: #FFFFFF;
	clear: both;

}

header>div, footer>div
{
	max-width: 1280px;
	margin: auto;
	padding: 10px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	overflow: auto;
}

#page-container {
  position: relative;
  min-height: 100vh;
  padding-bottom: 30px;
  -webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	text-align: center;
}

#container
{
	max-width: 1280px;
	margin: auto;
	padding: 50px;
	overflow: auto;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	text-align: center;
/*border: 1px solid orange;*/
}

footer
{
	
	background-color: #394259;
	overflow: auto;
	color: #FFFFFF;
	/* Per posicionar al final de la pàgina */
	position: absolute;
	bottom: 0;
	width: 100%;
}


#logo
{
	float: right;
	margin-bottom: 20px;
/*	clear: both;*/
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;

}

#logo img
{
	max-width: 150px;
	max-height: 150px;
}

#code
{
	width: 200px;
	height: 40px;
	outline: none;
	border: 1px solid #1E71B8;
	font-size: 16px;
	text-align:center;
}

.teclat
{
	max-width: 400px;
	margin: 20px auto;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.tecla
{
	margin: 5px;
	width: 80px;
	height: 80px;
	cursor: pointer;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

#form
{
	position: relative;
	overflow: auto;
/*border: 1px solid pink;*/
}

#contBotons
{
	position: absolute;
	bottom: 0;
	right: 0;
}

.btecla
{
	max-height: 90px;
	cursor: pointer;
}

p
{
	margin: 10px;
}

.button
{
	background-color: #394259;
	border: 1px; 
	color: #fff;
	padding: 15px;
	font-size: 14px;
	font-family: Verdana, Geneva, sans-serif;
	font-weight: bold;
	width: 50%;
	max-width: 200px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;

}

.button:hover
{
	cursor: pointer;
	background-color: #1E71B8;
}

#result
{
	padding: 20px;
	margin: 20px auto;
	max-width: 450px;
	line-height: 18px;
}

.error
{
	border: 2px solid #D10000;
}

.ok
{
	border: 2px solid #18C944;
}

.bold
{
	font-weight: bold;
}

.colLeft
{
	width: 75%;
	float: left;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
/*border: 1px solid red;*/
}

.left
{
	text-align: left;
}
.colRight
{
	width: 25%;
	float: right;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
/*border: 1px solid blue;*/
}

.right
{
	text-align: right;
}

/*
	POPUP
*/
.popup-overlay {
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 999;
    display:none;
    background-color: #777777;
    cursor: pointer;
    opacity: 0.7;
}

.popup {
    /*left: 0;*/
    position: absolute;
    /*top: 0;*/
    width: 100%; 
    z-index: 1001;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
 
.popup-content {
    margin:0px auto;
    border: 1px solid #1E71B8;
    position:relative;
    padding:10px;
    max-width: 600px;
    background-color:#FFFFFF;
    box-shadow: 0 2px 5px #666666;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;

}

.popup-close {
    position: absolute;
    right: 10px;
	cursor: pointer;
}

.popup-msg {
	margin-top: 40px;
	text-align: center;
	margin-bottom: 50px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

/******************************************************************************************************
 * Definir els media querys
 ******************************************************************************************************/

/* Mobil vertical */
@media only screen and (max-device-width : 480px)
{
	#container {
		padding: 5px;
	}
	
	.colLeft {
		width: 100%;
	}	
	.colRight {
		width: 100%;
	}
	
	#contBotons
	{
		position: relative;
		margin-bottom: 60px;
	}
}

/* Mobil horitzontal, tablet vertical, table horitzontal */
@media only screen and (min-device-width : 481px) and (max-device-width : 768px)
{
    .colLeft	{
		width: 60%;
	}	
   .colRight {
		width: 40%;
   }
   
}

/* Super mòbils   */
@media only screen and (min-width : 769px)
{
	
}