/* Mostra spazi margin e padding */
/** { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
* * * * * * { background-color: rgba(255,255,0,.2); }
* * * * * * * { background-color: rgba(255,0,0,.2); }
* * * * * * * * { background-color: rgba(0,255,0,.2); }
* * * * * * * * * { background-color: rgba(0,0,255,.2); }*/

/* General */
body {
	position: relative;
	font-family: 'Poppins', sans-serif;
	overflow-x: hidden;
	height: 100dvh;
	/* background:
	linear-gradient(135deg, #708090 21px, #d9ecff 22px, #d9ecff 24px, transparent 24px, transparent 67px, #d9ecff 67px, #d9ecff 69px, transparent 69px),
	linear-gradient(225deg, #708090 21px, #d9ecff 22px, #d9ecff 24px, transparent 24px, transparent 67px, #d9ecff 67px, #d9ecff 69px, transparent 69px)0 64px; */
	background-color:#212121;
	background-size: 64px 128px;
}

/* Customize the label (the container) */
.container-chk {
	display: block;
	position: relative;
	padding-left: 35px;
	margin-bottom: 5px;
	cursor: pointer;
	font-size: 22px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* Hide the browser's default checkbox */
.container-chk input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

/* Create a custom checkbox */
.container-chk .checkmark {
	position: absolute;
	top: 4px;
	left: 0;
	height: 25px;
	width: 25px;
	background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container-chk:hover input ~ .checkmark {
	background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container-chk input:checked ~ .checkmark {
	background-color: #46a534;
}

/* Create the checkmark/indicator (hidden when not checked) */
.container-chk .checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

/* Show the checkmark when checked */
.container-chk input:checked ~ .checkmark:after {
	display: block;
}

/* Style the checkmark/indicator */
.container-chk .checkmark:after {
    left: 9px;
    top: 4px;
    width: 8px;
    height: 13px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}

/* Customize the label (the container) */
.container-radio {
	display: block;
	position: relative;
	padding-left: 35px;
	margin-bottom: 5px;
	cursor: pointer;
	font-size: 22px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* Hide the browser's default radio button */
.container-radio input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

/* Create a custom radio button */
.container-radio .checkmark {
	position: absolute;
	top: 4px;
	left: 0;
	height: 25px;
	width: 25px;
	background-color: #eee;
	border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.container-radio:hover input ~ .checkmark {
	background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.container-radio input:checked ~ .checkmark {
	background-color: #46a534;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.container-radio .checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

/* Show the indicator (dot/circle) when checked */
.container-radio input:checked ~ .checkmark:after {
	display: block;
}

/* Style the indicator (dot/circle) */
.container-radio .checkmark:after {
	top: 8px;
	left: 8px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #fff;
}

.nowrap {
	white-space: nowrap;
}

.outer {
	display: table;
	position: absolute;
	height: 100%;
	width: 100%;
}
.middle {
	display: table-cell;
	vertical-align: middle;
}
.inner {
	margin-left: auto;
	margin-right: auto;
}

.spacer {
	height: 100px;
}

.pointer-events-none {
	pointer-events: none;
}

p {
	margin-bottom: 0;
}

a, a:hover, a:focus a:active {
	text-decoration: none;
}

#overlay-caricamento {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1032;
	background-color: #7db92d;
	transition: opacity .35s ease-in-out;
}
.loader {
	position: absolute;
	left: calc(50vw - 70px);
	top: calc(50vh - 80px);
	width: 140px;
	height: 140px;
	animation: spin 2.1s ease-in-out infinite;
}
.loader img {
	width: 100%;
	height: 100%;
}
@keyframes spin {
	0% { transform: rotateY(0deg); }
	100% { transform: rotateY(360deg); }
}
#overlay-caricamento.scompari {
	opacity: 0;
	pointer-events: none;
}

#viewport-size-alert {
	position: fixed;
	top: 0;
	left: 0;
}

.container-cst {
	max-width: 768px;
	min-height: 100dvh;
	border-radius: 15px;
	border: 2px solid #fff;
	background-color: rgba(0,0,0,.7);
	/*overflow: hidden;*/
	box-shadow: 0px 0px 15px 5px rgba(0,0,0,.7);
	background: linear-gradient(#46a534, #b4cd26);
}
body.bg-linear .container-cst {
	background: linear-gradient(#46a534, #b4cd26);
}
body.bg-radial .container-cst {
	background: radial-gradient(#46a534, #b4cd26);
}
body.bg-flat .container-cst {
	background: #7db92d;
	background-color: #7db92d;
}

.btn-green {
    color: #fff;
    background-color: #6ab947;
    border-color: #fff;
}
.btn-green:hover {
	color: #fff;
	opacity: .9;
}
.btn.focus, .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0);
}

/* Index */
.card-signin {
	border: 0;
	border-radius: 1rem;
	box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
}

.card-signin .card-title {
	margin-bottom: 2rem;
	font-weight: 300;
	font-size: 1.5rem;
}

.card-signin .card-body {
	padding: 2rem;
}

.form-signin {
	width: 100%;
}

#btn-gioca {
	font-size: 80%;
	border-radius: 5rem;
	letter-spacing: .1rem;
	font-weight: bold;
	padding: 1rem;
}

.form-label-group {
	position: relative;
	margin-bottom: 1rem;
}

.form-label-group input {
	height: auto;
	border-radius: 2rem;
}

.form-label-group>input,
.form-label-group>label {
	padding: .75rem 1.5rem;
	cursor: auto;
}

.form-label-group>label {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	margin-bottom: 0;
	/* Override default <label> margin */
	line-height: 1.5;
	color: #495057;
	border: 1px solid transparent;
	border-radius: .25rem;
	transition: all .1s ease-in-out;
	pointer-events: none;
}

.form-label-group input::-webkit-input-placeholder {
	color: transparent;
}

.form-label-group input:-ms-input-placeholder {
	color: transparent;
}

.form-label-group input::-ms-input-placeholder {
	color: transparent;
}

.form-label-group input::-moz-placeholder {
	color: transparent;
}

.form-label-group input::placeholder {
	color: transparent;
}

.form-label-group input:not(:placeholder-shown) {
	padding-top: calc(.75rem + .75rem * (2 / 3));
	padding-bottom: calc(.75rem / 3);
}

.form-label-group input:not(:placeholder-shown)~label {
	padding-top: calc(.75rem / 3);
	padding-bottom: calc(.75rem / 3);
	font-size: 12px;
	color: #777;
}

.disattivato {
	pointer-events: none;
}
.disattivato button {
	opacity: .7;
	filter: saturate(.2);
}

#btn-opzioni, #btn-credits, #btn-home-page, #btn-salva-preferenze, #btn-story, #btn-pvp {
	font-size: 80%;
    border-radius: 5rem;
    letter-spacing: .1rem;
    font-weight: bold;
    padding: 1rem;
}

/* Gioca */
#btn-inizia {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	font-size: 30px;
	padding-left: 35px;
	padding-right: 35px;
	border-radius: 5rem;
    letter-spacing: .1rem;
    font-weight: bold;
}

#risposta-1 {
	position: absolute;
	bottom: 20px;
	left: 20px;
	height: 60px;
	width: calc(50% - 40px);
	font-size: 30px;
	border-radius: 5rem;
    letter-spacing: .1rem;
    font-weight: bold;
}
#risposta-2 {
	position: absolute;
	bottom: 20px;
	left: calc(50% + 20px);
	height: 60px;
	width: calc(50% - 40px);
	font-size: 30px;
	border-radius: 5rem;
    letter-spacing: .1rem;
    font-weight: bold;
}
#risposta-1.btn-correct, #risposta-2.btn-correct {
	background-color: #59c1a7;
}
#risposta-1.btn-wrong, #risposta-2.btn-wrong {
	background-color: #db626c;
}
.cont-operazione {
	position: relative;
	display: block;
	width: 100%;
	height: calc(100dvh - 80px);
}
#operazione {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	text-align: center;
	transition: transform .1s linear;
	font-size: 40px;
	color: #fff;
}

#play-back {
	position: fixed;
	top: 20px;
	left: calc(50% - 360px);
	cursor: pointer;
	width: 30px;
	height: 30px;
	z-index: 1030;
}
#score {
	position: fixed;
	top: 20px;
	right: calc(50% - 360px);
	color: #fff;
	font-size: 20px;
	pointer-events: none;
}

#game-over-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255,255,255,.75);
	opacity: 0;
	pointer-events: none;
	z-index: 1031;
	transition: all .35s ease-in-out;
}
#game-over-modal.open {
	opacity: 1;
	pointer-events: all;
}
#game-over-modal-box {
	position: absolute;
	top: 150px;
	left: calc(50% - 170px);
	width: 340px;
	height: 305px;
	background-color: #7db92d;
	border: 2px solid #fff;
	border-radius: 10px;
	transform: translateY(-100%);
	transition: transform .35s ease-in-out;
}
#game-over-modal.open #game-over-modal-box {
	transform: translateY(0);
}

#game-over-modal-box h3 {
	color: #fff;
}

#game-over-modal-box button {
	border-radius: 5rem;
	letter-spacing: .1rem;
	font-weight: bold;
	padding: .5rem 3rem;
}

/* Opzioni */
#btn-salva-preferenze {
	transition: all .35s ease-in-out;
}
#btn-salva-preferenze.disabilitato {
	opacity: .7;
	filter: saturate(.2);
	pointer-events: none;
}
#btn-salva-preferenze.btn-salvato {
	background-color: #59c1a7;
	pointer-events: none;
}

.edge-only {
	display: none;
}

/* Edge only */
@supports (-ms-ime-align:auto) {
	.edge-only {
		display: block;
	}
	.form-label-group label {
		display: none;
	}
}

/* Responsive */
@media screen and (max-width: 1199px) {
	
}

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

}

@media screen and (max-width: 767px) {
	/* #viewport-size-alert {
		display: none;
	} */
	.container-cst {
		border-radius: 0;
		border: 0;
	}
	#play-back {
		left: 20px;	
	}
	#score {
		right: 20px;
	}
}

@media screen and (max-width: 575px) {
	
}

@media screen and (max-width: 360px) {
	.form-label-group>label {
		font-size: 12px;
		padding: 15px 1.5rem;
	}
	#play-back {
		left: 10px;
	}
	#score {
		right: 10px;
		font-size: 14px;
	}
	#risposta-1 {
		width: calc(50% - 30px);
	}
	#risposta-2 {
		left: calc(50% + 10px);
		width: calc(50% - 30px);
	}
	#game-over-modal-box {
		left: calc(50% - 150px);
		width: 300px;
	}
}