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, 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: 10px;
	vertical-align: baseline;
}

html, body{
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	color: #000;
	font-family: 'Raleway', sans-serif;
}

body.memory{
	background: #e7e6e6;
}

.ui-loader{
	display: none !important;
}

.clear{
	clear: both;
}

p{
	font-size: 1.4rem;
	margin-bottom: 1rem;
}

#menu-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: #FFF;
	box-shadow: 3px 5px 6px 0px rgba(0,0,0,.38);
}

#menu-top, .menu {
	position: relative;
	width: 100%;
	transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-webkit-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-moz-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-ms-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-o-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

#menu-spacer, #menu-top, .menu{
	position: relative;
	width: 100%;
	height: 10rem;
}

.menu-container {
	height: 100%;
	position: relative;
	display: table;
	width: calc(100% - 18%);
	margin-left: 16.3%;
	height: 100%;
}

.menu-container.bottom {
	height: 30%;
}

.menu-container.menu-small {
	height: 70%;
}

.menu-desktop {
	width: 100%;
	height: 100%;
	position: relative;
	display: table-cell !important;
	vertical-align: middle;
}

.menu-desktop ul {
	list-style: none;
	display: block;
	position: relative;
	width: 100%;
	-webkit-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-moz-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-ms-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-o-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.menu-desktop ul li {
	display: inline-block;
	margin-right: 4%;
}

.menu-desktop ul li.li-right {
	margin: 0;
	float: right;
}

.menu-desktop ul li a {
	color: #000;
	text-transform: uppercase;
	font-size: 1.4rem;
	text-decoration: none;
	padding: 0 .5rem .75rem .5rem;
	font-weight: 700;
	position: relative;
	display: inline-block;
}

.menu-container.bottom .menu-desktop ul li a {
	font-size: 1.2rem;
	padding-bottom: .5rem;
}

.menu-desktop ul li a:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 1px;
	background-color: #ea651f;
	opacity: 0;
	width: 0;
	left: 50%;
	-webkit-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-moz-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-ms-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-o-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.menu-desktop ul li a:not(.selected):hover:after {
	opacity: 1;
	width: 100%;
	left: 0;
}

.menu-desktop ul li a.selected {
	opacity: 0.5;
	cursor: default;
}

#container-img-bb7 {
	margin: 0;
	position: absolute;
	display: inline-block;
	left: 5rem;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	-webkit-transform-origin: center center;
	transform-origin: center center;
	width: 5%;
	-webkit-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-moz-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-ms-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-o-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

#container-img-bb7>img {
	max-width: 100%;
}

.form-group label{
	color: #006699;
	font-size: 1.4rem;
}

.form-group .form-control{
	border: 1px solid #ea651f;
	border-radius: 0;
}

.btn-bbsette{
	background: #006699;
	color: #FFF;
	border: 2px solid #006699;
	border-radius: 0;
}

.btn-bbsette-orange{
	background: #ea651f;
	color: #FFF;
	border: 2px solid #ea651f;
	border-radius: 0;
	font-weight: 700;
	text-transform: uppercase;
}

.btn-bbsette:hover, .btn-bbsette-orange:hover{
	border-color: #FFF;
	color: #FFF;
}

.container-admin{
	width: 100%;
	display: inline-block;
	position: relative;
	margin-top: 4rem;
	margin-bottom: 4rem;
}

.box {
	width: 100%;
	padding: 2.5rem;
	position: relative;
	display: inline-block;
	margin-bottom: 2.5rem;
	min-width: 5rem;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)!important;
}

.orange{
	color: #ea651f;
}

.bg-orange{
	background: #ea651f;
}

.blue{
	color: #006699;
}

.bg-blue{
	background: #006699;
}

.container-admin h4{
	font-size: 2rem;
	font-weight: 700;
}

.box h5, .livello{
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 2rem;
}

.box h6{
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.form-checkbox{
	padding-left: 0;
}

.form-checkbox.checkbox-inline + .form-checkbox.checkbox-inline{
	margin-left: 2rem;
	margin-top: 1rem;
}

.form-checkbox label {
	color: #006699;
	font-weight: bold;
	font-size: 1.4rem;
	padding-left: 28px;
	line-height: 30px;
}

.checkbox-div {
	width: 22px;
	height: 22px;
	position: absolute;
	margin-left: -27px;
	margin-top: 5;
	background: #FFF;
	border-radius: 50%;
	border: 1px solid #ea651f;
}

.checkbox-div>span {
	position: absolute;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: #ea651f;
	-webkit-transition: 0.4s ease-in-out;
	transition: 0.4s ease-in-out;
}

.center {
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	-webkit-transform: translate(-50%,-50%);
	-moz-transform: translate(-50%,-50%);
	-ms-transform: translate(-50%,-50%);
	-o-transform: translate(-50%,-50%);
}

.checkbox-div.no-radius>span {
	border-radius: 0;
	background: #ea651f;
}

.checkbox-div.no-radius {
	width: 22px;
	height: 22px;
	background: transparent;
	border: 1px solid #ea651f;
	margin-left: -27px;
	border-radius: 0;
}

.checkbox input[type=checkbox]:checked ~ .checkbox-div>span, .checkbox input[type=checkbox]:checked ~ .checkbox-div>span, .checkbox input[type=radio]:checked ~ .checkbox-div>span, .checkbox input[type=radio]:checked ~ .checkbox-div>span{
	width: 13px;
	height: 13px;
}

.label-radio{
	font-size: 1.6rem;
	font-weight: bold;
	margin-bottom: 0;
}

.spacer{
	width: 100%;
	height: 1.5rem;
	position: relative;
}

.container-canvas{
	width: 100%;
	display: inline-block;
	position: relative;
}

div.ui-datepicker, .ui-datepicker td{
	font-size:1.6rem;
}

.ui-datepicker-month, .ui-datepicker-year{
	color: #000;
}

.ui-datepicker .ui-datepicker-title select{
	font-size:1.6rem;
}

#container-livelli{
	width: 100%;
	display: inline-block;
	position: relative;
}

.livello-num, .carta-num {
	position: absolute;
	height: 2rem;
	border-radius: 2rem;
	background: #006699;
	color: #FFF;
	top: -1rem;
	left: 1.5rem;
	text-align: center;
	line-height: 2rem;
	font-size: 1.2rem;
	border: 1px solid #000;
	display: inline-block;
	padding: 0 2rem;
}

.livello-num.span-bottom, .carta-num.span-bottom {
	top: inherit;
	left: inherit;
	bottom: -1rem;
	right: 1.5rem;
}

#anteprima-logo[src='']{
	display: none;
}

#anteprima-logo{
	max-width: 100%;
}

.table tr th {
	font-size: 1.4rem;
	color: #666666;
}

.table tr td {
	font-size: 1.2rem;
}

a, a:hover, a:active, a:visited {
	color: inherit;
	font-size: 1em;
	text-decoration: none;
}

.table tr td a {
	font-weight: 700;
}

#snackbar {
	visibility: hidden; /* Hidden by default. Visible on click */
	min-width: 250px; /* Set a default minimum width */
	margin-left: -125px; /* Divide value of min-width by 2 */
	background-color: #ea651f; /* Black background color */
	color: #fff; /* White text color */
	text-align: center; /* Centered text */
	border-radius: 2px; /* Rounded borders */
	padding: 16px; /* Padding */
	position: fixed; /* Sit on top of the screen */
	z-index: 1; /* Add a z-index if needed */
	left: 50%; /* Center the snackbar */
	bottom: 30px; /* 30px from the bottom */
	font-size: 1.6rem;
}

.error-bg{
	background: rgb(221,44,0) !important;
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
	visibility: visible; /* Show the snackbar */

	/* Add animation: Take 0.5 seconds to fade in and out the snackbar. 
	However, delay the fade out process for 2.5 seconds */
	-webkit-animation: fadein 0.5s, fadeout 0.5s 3.5s;
	animation: fadein 0.5s, fadeout 0.5s 3.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
	from {bottom: 0; opacity: 0;} 
	to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
	from {bottom: 0; opacity: 0;}
	to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
	from {bottom: 30px; opacity: 1;} 
	to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
	from {bottom: 30px; opacity: 1;}
	to {bottom: 0; opacity: 0;}
}

.span-remove, .span-remove-coppia{
	position: absolute;
	height: 3rem;
	width: 3rem;
	border-radius: 2rem;
	background: #ea651f;
	color: #FFF;
	top: 1.5rem;
	right: 1.5rem;
	text-align: center;
	line-height: 2.3rem;
	font-size: 3.5rem;
	border: 1px solid #000;
	display: inline-block;
	cursor: pointer;
}

.span-remove-coppia{
	top: 0rem;
	right: 0rem;
}

textarea, img{
	max-width: 100%;
}

textarea#testo_introduttivo{
	min-height: 15rem;
}

.panel{
	margin-top: 5rem;
}

.container-all{
	width: 100%;
	position: relative;
	display: inline-block;
	padding: 2.5rem;
}

#container-gioco{
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

#container-head-gioco{
	width: 100%;
	height: 15%;
	position: relative;
}

#container-memory{
	width: 100%;
	height: 85%;
	position: relative;
	display: table;
}

#container-timer{
	float: right;
	height: 80%;
	display: inline-block;
	background: #ec7622;
	position: relative;
	padding: 0 1.5rem;
	min-width: 10rem;
	text-align: center;

	top: 55%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

#container-timer #timer{
	color: #FFF;
	font-size: 8rem;
	font-weight: 700;
}

#clock{
	width: 3rem;
	height: 3rem;
	position: absolute;
	right: -1.5rem;
	top: -1.5rem;
	background: #FFF;
	text-align: center;
}

#clock span{
	color: #ec7622;
	position: relative;
	font-size: 2rem;

	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

#container-punteggio{
	float: left;
	height: 80%;
	display: inline-block;
	background: #107aa9;
	position: relative;
	padding: 0 1.5rem;
	min-width: 20rem;
	text-align: center;

	top: 55%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

#container-punteggio #punteggio{
	color: #FFF;
	font-size: 8rem;
	font-weight: 700;
}

#star{
	width: 3rem;
	height: 3rem;
	position: absolute;
	left: -1.5rem;
	top: -1.5rem;
	background: #FFF;
	text-align: center;
}

#star span{
	color: #107aa9;	
	position: relative;
	font-size: 2rem;

	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

#memory-table{
	width: 100%;
	height: 100%;
	position: relative;
	display: table-cell !important;
	vertical-align: middle;
	text-align: center;
}

#container-end{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	display: none;
	overflow-y: auto;
}

#bg-end{
	background: rgba(0,0,0,0.5);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

#end, #end-lose{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
}

.info{
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);

	background: #FFF;
	border: 1px solid #FFF;
	display: table;
	padding: 2.5rem;
}

.head-end{
	width: 100%;
	position: relative;
	text-align: center;
	padding: 1.5rem;
	padding-top: 0;
}

.head-end:after, #classifica-container h1:after, #container-introduzione h1:after{
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	border-bottom: 1px solid #000;
}

.head-end h1{
	font-size: 4rem;
	color: #000;
	font-weight: 700;
	line-height: 1.2em;
}

.head-end h2{
	font-size: 3rem;
	color: #000;
	font-weight: 700;
	line-height: 1.2em;
}

#body-end{
	position: relative;
	display: inline-block;
	padding: 2.5rem 0;
	width: 100%;
}

.riga{
	display: inline-block;
	position: relative;
	width: 100%;
	padding: 0 1.5rem;
}

.riga>p{
	float: left;
	display: inline-block;
	font-size: 2.6rem;
	color: #000;
	line-height: 3rem;
	position: relative;
}

#punteggio-end, #tempo-end, #totale-end{
	float: right;
	text-align: right;
	font-weight: 700;
	font-size: 3rem;
	line-height: 3rem;
}

#footer-end{
	position: relative;
	display: inline-block;
	width: 100%;
	padding-top: 1.5rem;
	border-top: 1px solid #000;
}

#footer-end>.riga>p{
	font-size: 3.2rem;
	line-height: 4rem;
}

#totale-end{
	font-size: 4rem;
	line-height: 4rem;
}

.button-end-bottom{
	position: absolute;
	bottom: 0;
	-webkit-transform: translateY(125%);
	transform: translateY(125%);
	width: 100%;
	/*padding: 0 1.5rem;*/
	left: 0;
}

.button-end-top{
	position: absolute;
	top: 0;
	-webkit-transform: translateY(-125%);
	transform: translateY(-125%);
	width: 100%;
	/*padding: 0 1.5rem;*/
	left: 0;
}

.button-container .btn{
	padding: 1rem 2rem;
	background: #FFF;
	color: #000;
	border: 1px solid;
	font-size: 1.6rem;
	font-weight: 600;
}

.button-container .btn span{
	font-size: 1em;
}

.button-container:not(.text-center) .btn:first-child{
	float: left;
}

.button-container:not(.text-center) .btn:last-child{
	float: right;
}

/*#classifica-end span{
margin-right: .5rem;
}

#rigioca, #next-level, #ricomincia{
float: right;
margin-left: 1rem;
}

#rigioca span, #next-level span, #ricomincia span{
margin-left: .5rem;
}*/

#classifica-container, #container-introduzione{
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: 50%;
	min-width: 33.3%;
	padding: 2.5rem;
	background: #FFF;
	-webkit-transform: translate(-50%, -50%) scale(0);
	transform: translate(-50%, -50%) scale(0);

	transition: all .6s cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-webkit-transition: all .6s cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-moz-transition: all .6s cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-ms-transition: all .6s cubic-bezier(0.455, 0.03, 0.515, 0.955);
	-o-transition: all .6s cubic-bezier(0.455, 0.03, 0.515, 0.955);

	border: 1px solid;
}

#container-introduzione{
	max-width: 75%;
	min-width: inherit;
	display: inline-table;
}

#classifica-container.shown, #container-introduzione.shown{
	-webkit-transform: translate(-50%, -50%) scale(1);
	transform: translate(-50%, -50%) scale(1);
}

#classifica-container h1, #container-introduzione h1{
	color: #000;
	font-weight: 700;
	font-size: 4rem;
	text-align: center;
	padding: 0 1rem 1.5rem;
	position: relative;
	display: inline-block;
	left: 50%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
}

#container-introduzione p{
	margin-bottom: .5rem;
	font-size: 2rem;
}

#container-punteggi>div{
	position: relative;
	display: table;
	width: 100%;
	margin: 1.5rem 0;
}

#container-punteggi>div>p{
	display: table-cell;
	font-size: 2rem;
	text-align: center;
	font-weight: 700;
}

#container-punteggi>div>p.left{
	display: table-cell;
	padding-right: 1rem;
	font-size: 2rem;
	font-weight: 500;
	width: 50%;
	text-align: left;
}

#container-punteggi>div>p.right{
	display: table-cell;
	text-align: right;
	padding-left: 1rem;
	font-size: 2rem;
	font-weight: 700;
	width: 50%;
}

#me{
	font-size: 2.4rem;
	font-weight: 700;
}

#chiudi-classifica{
	cursor: pointer;
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	font-size: 1.6rem;
}

#container-home{
	position: absolute;
	left: 50%;
	top: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

#container-home span{
	font-size: 3rem;
	cursor: pointer;
}

#container-home img{
	height: 80%;
}

#container-punteggi input{
	width: 80%;
	display: inline-block;
}

#tabella-classifica>tbody>.tr:first-child>td{
	font-size: 3rem;
}

#tabella-classifica>tbody>.tr:nth-child(2)>td{
	font-size: 2.5rem;
}

#tabella-classifica>tbody>.tr:nth-child(3)>td{
	font-size: 2rem;
}

#tabella-classifica tr td{
	font-size: 1.4rem;
}

#tabella-classifica tr th{
	font-size: 1.6rem;
}

.trophy-1{
	color: #f1af08;
}

.trophy-2{
	color: #c0c0c0;
}

.trophy-3{
	color: #cd7f32;
}

#titolo-classifica{
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 2.5rem;
}

#bg-loader{
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 100;
}

.loader {
	border: .6rem solid #f3f3f3; /* Light grey */
	border-top: .6rem solid #3498db; /* Blue */
	border-radius: 50%;
	width: 10rem;
	height: 10rem;
	-webkit-animation: spin 2s linear infinite;
	animation: spin 2s linear infinite;
}

#bg-loader>div{
	display: inline-block;
	position: absolute;
	top: 50%;
	left: 50%;

	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

@-webkit-keyframes spin {
	0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin {
	0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

h1.sezione{
	font-size: 3rem;
	font-weight: 700;
	color: #000;
}

#totale-device{
	text-align: right;
	font-size: 2rem;
	margin: 0;
}

.map{
	width: 100%;
	height: 100%;
}

.nav-tabs{
	margin-bottom: 1.5rem;
}

.nav-tabs>li{
	font-size: 1.4rem;
}

#classifica-box{
	max-height: 50rem;
	overflow-y: auto;
}

.modal-bbsette{}

.modal-bbsette .modal-title{
	text-align: center;
	font-size: 2.2rem;
}

.modal-bbsette .close{
	opacity: 0.5;
	color: #000;
}

.close:focus, .close:hover {
	filter: alpha(opacity=100);
	opacity: 1;
}

.modal-bbsette .close span{
	font-size: 3rem;
}

#esci{
	position: relative;
	float: right;
	padding: 1.2rem 2.5rem;
	font-size: 1.3rem;
	background: #c0c0c0;
	color: #FFF;
	text-transform: uppercase;
	line-height: 1em;
}

#logo-home{
	display: inline-block;
	position: relative;
	text-align: center;
	width: 100%;
	margin-bottom: 5rem;
}

#logo-home img{
	height: 15rem;
}

#gioca-home, #classifica-home{
	padding: 0;
	border-radius: 0;
	position: relative;
	font-size: 3.4rem;
	color: #FFF;
	background: #ec7622;
	line-height: 8rem;
	text-transform: uppercase;
	font-weight: 700;
	height: 8rem;
	width: 25rem;
	margin-bottom: 2rem;
}

#classifica-home{
	font-size: 2.3rem;
	background: #83abd7;
}

#container-bottoni{
	position: relative;
	margin: auto;
	display: inline-block;
	padding: 1.5rem 0;
}

#container-bottoni.center-resize{
	top: 50%;

	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
}

#set-height:after{
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 1;
	background: #c0c0c0;
}

#container-testo-home{
	width: 100%;
	display: inline-block;
	padding: 5rem 2.5rem;
}

#container-testo-home p{
	color: #6e6f6f;
	font-size: 2rem;
	line-height: 1.2em;
	margin-bottom: 2.5rem;
}