#myFile {
	display: none;

}

#midiIn {

	background: #A0522D
}

.hidden {
	visibility: hidden;
	width: 0px;
	height: 0px;
	margin: 0px;
	padding: 0px;
	border-style: none;
	border-width: 0px;
	max-width: 0px;
	max-height: 0px;

}

html,
body {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;

	font-size: .75em;
	font-family: 'Open Sans', "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif;
	color: #fff;
	width: 100%;
	height: 100%;
	background-image: url(/images/wood2.png);
	margin: 0;
	overflow: hidden;
}

/* ==== STYLES FROM CONTAINER (scala40V1.css) ==== */

.main-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.sidebar {
	position: absolute;
	top: 0;
	height: 100%;
	/* background-color: green; Removed to usually respect wood theme */
	overflow-y: auto;
	box-sizing: border-box;
	display: none;
	flex-direction: column;
	align-items: center;
	z-index: 1;
	opacity: 1;
	pointer-events: auto;
	transition: opacity 0.3s ease;
}

#sidebar-left {
	left: 0;
}

#sidebar-right {
	right: 0;
}

.ad-banner {
	background-color: rgba(80, 20, 20, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ccc;
	text-align: center;
	box-sizing: border-box;
	flex-shrink: 0;
}

#campogioco {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1024px;
	height: 750px;
	transform-origin: center center;
	/* Background removed, now on body */
	z-index: 10;
}

#campoesamina {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 1000px;
	height: 750px;
	background-image: url(/images/wood2.png);
	margin: 0px auto 0px;
	z-index: 50000;
	display: none;

}



h1,
h2,
h3,
h4,
h5,
h6 {
	text-align: center
}




.campo {
	margin-top: auto;
	margin-bottom: auto;
	text-align: center;

	border-style: solid;
	border-color: #888888;
	border-width: 3px 6px;
	color: #888888;
	position: absolute;
}


.etichetta {
	position: absolute;
	color: #888888;

	font-size: 50px;
	font-family: Slackey, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif;
	text-shadow: green 4px 4px 2px
}


.card {
	border-radius: 9px;
	-ms-border-radius: 9px;
	-webkit-border-radius: 9px;
	-o-border-radius: 9px;
	-khtml-border-radius: 9px;
	-moz-border-radius: 9px;
	background-image: url(/images/conjollyplus.png);
	position: absolute;
	cursor: pointer;
}

.cardselected {
	background-image: url(/images/conjollyselplus.png);


}



.pulsante {
	font-size: 25px;
	font-family: Slackey, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif;
	color: black;
	text-align: center;
	border-radius: 9px;
	width: 40px;
	height: 40px;
	position: absolute;
	cursor: pointer;
	background-image: url(/images/tappetoverdechiaro.png);
}

.pulsante2 {
	border-style: solid;
	border-color: #888888;
	padding: 2px;
	font-size: 22px;
	font-family: Slackey, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif;
	color: #ffffff;
	text-align: center;
	border-radius: 9px;
	width: 126px;
	height: 36px;
	position: absolute;
	cursor: pointer;
	background-size: 130px 40px;
	background-image: url(/images/wbutton.png);

}

.pulsanteback {
	border-style: solid;
	border-color: #888888;
	padding: 2px;
	font-size: 22px;
	font-family: Slackey, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif;
	color: #8888;
	text-align: center;
	border-radius: 9px;
	width: 126px;
	height: 30px;
	position: absolute;
	cursor: pointer;
	background-size: 130px 40px;
	background-image: url(/images/home/manentibutton.png);

}

.spartito {
	border-style: solid;
	border-color: #888888;
	border-radius: 0px;
	position: absolute;
	cursor: pointer;
	background: #A0522D
}

.barra {
	border-style: solid;
	border-color: #888888;
	padding: 2px;
	font-size: 22px;
	font-family: Slackey, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif;
	text-align: center;
	border-radius: 9px;
	height: 36px;
	position: absolute;
	cursor: pointer;

}

.barretta {
	border-style: solid;
	border-color: #888888;
	border-radius: 0px;
	position: absolute;
	top: 100px;
	cursor: pointer;
	background: #500000;

}

.barrettina {
	position: absolute;
	cursor: pointer;

}


.pulsanteazz {

	border-style: solid;
	border-color: #888888;
	padding: 2px;
	font-size: 14px;
	font-family: Slackey, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif;
	color: #ffffff;
	text-align: center;
	border-radius: 9px;
	width: 100px;
	height: 20px;
	position: absolute;
	cursor: pointer;
	background-size: 130px 40px;
	background-image: url(/images/wbutton.png);
}


.pulsante3 {

	font-size: 10px;
	font-family: Slackey, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif;
	color: black;
	text-align: center;
	border-radius: 9px;
	width: 40px;
	height: 40px;
	position: absolute;
	cursor: pointer;
	background-image: url(/images/tappetoverdechiaro.png);
}




.digit {

	position: absolute;
	cursor: pointer;
	width: 40px;
	height: 45px;
	background-size: 40px 450px;
	background-image: url(/images/numeridorovr.png);
}

.digit1 {

	position: absolute;
	cursor: pointer;
	width: 27px;
	height: 40px;
	background-size: 27px 400px;
	background-image: url(/images/numeridorovr.png);
}

.digitx {

	position: absolute;
	cursor: pointer;
	background-image: url(/images/numeridorovr.png);
}


.digit2 {

	position: absolute;
	cursor: pointer;
	width: 14px;
	height: 22px;
	background-size: 14px 220px;
	background-image: url(/images/numeridorovr.png);
}

.contatore {

	position: absolute;
	cursor: pointer;
}


.totalizzatore {

	position: absolute;
	cursor: pointer;
	top: 100px;
	left: 880px;

	width: 130px;
	height: 300px;

	background-size: 130px 300px;
	background-image: url(/images/mtotalizzatore.png);

}


#schermo {
	position: absolute;
	top: 0px;
	left: auto;
	width: 1024px;
	height: 750px;
	background-image: url(/images/nero.png);
	z-index: 30000;
	margin: 0px auto 0px;
	opacity: 0.6;
	display: none;

}


#opzioni {
	font-size: 15px;
	font-family: Slackey, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif;
	color: white;
	border-style: solid;
	border-radius: 9px;
	border-color: #888888;


	position: absolute;
	width: 240px;
	height: 600px;
	left: -250px;
	top: 0px;

}

#metronomo {
	font-size: 15px;
	font-family: Slackey, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif;
	color: white;
	border-style: solid;
	border-radius: 9px;
	border-color: #888888;


	position: absolute;
	width: 1024px;
	height: 744px;
	left: 0px;
	top: 0px;

}


#dati {
	font-size: 15px;
	font-family: Slackey, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif;
	color: white;
	border-style: solid;
	border-radius: 9px;
	border-color: #888888;


	position: absolute;
	width: 396px;
	height: 400px;
	left: 304px;
	top: 200px;

}

#canvasdati {



	position: absolute;
	left: 0px;
	top: 0px;
}


#canvasimposta {


	position: absolute;
	left: 400px;
	top: 0px;

}

#wc {


	position: absolute;
	left: 0px;
	top: 0px;


}


#canvasmetronomo {



	position: absolute;
	left: 0px;
	top: 0px;

}

.form {


	position: absolute;
	width: 500px;
	height: 280px;
	left: 250px;
	top: 200px;
	background-size: 500px 280px;
	display: none;
}


.formistruzioni {


	line-height: 140%;
	border-style: solid;

	border-radius: 9px;
	font-size: 12px;

	position: absolute;
	width: 700px;
	left: 150px;
	top: 50px;
	padding: 25px;
	background-size: 500px 280px;
	background-color: green;
	display: none;
}

#testoallerta {

	font-family: "Comic Sans MS", cursive, sans-serif;
	line-height: 140%;
	border-style: solid;

	border-radius: 9px;
	font-size: 24px;
	color: orange;

	position: absolute;
	width: 200px;
	left: 210px;
	top: 20px;
	padding: 25px;

}


.formistruzioni button {

	border-radius: 10px;
	-moz-border-radius: 10px;
	-ms-border-radius: 10px;
	border: solid;
	position: relative;
	left: 300px;
	width: 100px;
	height: 36px;



}

.form button {

	border-radius: 10px;
	-moz-border-radius: 10px;
	-ms-border-radius: 10px;
	border: solid;
	position: absolute;
	width: 100px;
	height: 36px;
	top: 240px;



}

#accessi {
	position: absolute;
	top: 700px;
	left: 12px;
	display: none;
}

.pulsantehelp {
	border-style: solid;
	border-color: #888888;
	padding: 2px;
	border-radius: 9px;
	width: 110px;
	height: 31px;
	position: absolute;
	cursor: pointer;
	background-size: 115px 36px;
	background-image: url(/images/help.png);
}

.pulsanteaiuto {
	border-style: solid;
	border-color: #888888;
	padding: 2px;
	border-radius: 9px;
	width: 110px;
	height: 31px;
	position: absolute;
	cursor: pointer;
	background-size: 115px 36px;
	background-image: url(/images/aiuto.png);
}

/* Volume Slider Styles */
.volume-container {
	position: absolute;
	top: 250px;
	left: 930px;
	width: 30px;
	height: 200px;
	z-index: 2000;
	display: flex;
	justify-content: center;
	align-items: center;
}

#volume-control {
	-webkit-appearance: none;
	appearance: none;
	/* Lint fix */
	width: 300px;
	height: 10px;
	background: #d3d3d3;
	outline: none;
	opacity: 0.7;
	-webkit-transition: .2s;
	transition: opacity .2s;
	border-radius: 5px;
	transform: rotate(-90deg);
	/* Rotate to make vertical */
}

/* Volume Label Style */
.volume-label {
	position: absolute;
	bottom: -25px;
	/* Position below the slider container */
	color: white;
	font-family: sans-serif;
	font-size: 14px;
	pointer-events: none;
	/* Avoid interfering with slider interaction */
}

#volume-control:hover {
	opacity: 1;
}

#volume-control::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 25px;
	height: 25px;
	background: #FF8C00;
	/* Orange consistent with theme */
	cursor: pointer;
	border-radius: 50%;
}

#volume-control::-moz-range-thumb {
	width: 25px;
	height: 25px;
	background: #FF8C00;
	cursor: pointer;
	border-radius: 50%;
}

/* === BOTTOM NAV === */
#bottom-nav {
    position: absolute; bottom: 8px; left: 0; width: 1024px;
    display: flex; flex-direction: row; align-items: center;
    justify-content: space-between; padding: 0 20px; box-sizing: border-box;
}
.btn-nav-group { display: flex; gap: 10px; align-items: center; }
.btn-nav {
    display: inline-block; width: 118px; height: 28px;
    border: 1px solid rgba(255,255,255,0.35); border-radius: 6px;
    color: white; font-size: 12px; font-family: sans-serif;
    text-align: center; line-height: 28px; text-decoration: none;
    cursor: pointer; transition: transform 0.12s, opacity 0.12s;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.btn-nav:hover { transform: scale(1.07); }
.btn-nav-music   { background-color: #1a5468; }
.btn-nav-help    { background-color: #1e6b3a; }
/* "TUTTI I GIOCHI": è l'uscita verso il resto del sito, quindi va distinto
   dagli altri pulsanti della barra — cornice dorata e fondo caldo. La width
   resta quella di .btn-nav (118px, tutti i pulsanti sono allineati): il testo
   ci sta a font ridotto, e il nowrap impedisce che vada a capo sforando i
   28px di altezza. */
.btn-nav-home {
    background: linear-gradient(135deg, #c9720f, #8a4a08);
    border-color: #ffd700;
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}
.btn-nav-home:hover { box-shadow: 0 0 14px rgba(255, 215, 0, 0.65); }
.btn-nav-contact { background-color: #7a3a10; }
.nav-links-small a { color: rgba(255,255,255,0.45); font-size: 11px; text-decoration: none; margin: 0 12px; font-family: sans-serif; }
.nav-links-small a:hover { color: white; }

/* === LANG SWITCH + AUDIO === */
.lang-switch-game {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10001;
	display: flex;
	align-items: center;
	gap: 6px;
}

.lang-switch-game a {
	display: inline-block;
	padding: 4px 10px;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	font-size: 12px;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-switch-game a.active {
	background: #ffd700;
	color: #2c3e50;
	border-color: #ffd700;
}

