/* =====================================
   GIOCOSCUOLA RUOTA QUIZ 2.0
===================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Verdana,Arial,sans-serif;
background:
linear-gradient(
180deg,
#eaf6ff 0%,
#ffffff 100%
);
color:#003366;
min-height:100vh;
padding-bottom:40px;

}

/* HEADER */

header{
text-align:center;
padding:15px;
}

#banner{
width:95%;
max-width:1200px;
border-radius:15px;
box-shadow:
0 5px 20px rgba(0,0,0,.2);

}

header h1{
margin-top:15px;
font-size:38px;
color:#005baa;
}

/* PANEL SETUP */

.panel{
max-width:900px;
margin:20px auto;
padding:20px;
background:white;
border-radius:15px;
box-shadow:
0 4px 12px rgba(0,0,0,.15);
text-align:center;
}

.panel h2{
margin-bottom:15px;

}

#panel2{
max-width:900px;
margin:20px auto;
padding:20px;
background:white;
border-radius:15px;
box-shadow:
0 4px 12px rgba(0,0,0,.15);
text-align:center;
}



input,
select{

padding:12px;

font-size:18px;

border:1px solid #ccc;

border-radius:8px;

margin:5px;

}

/* BOTTONI */

button{

background:#ffcc00;

border:none;

padding:14px 24px;

font-size:20px;

font-weight:bold;

border-radius:12px;

cursor:pointer;

margin:5px;

transition:.2s;

}

button:hover{

transform:scale(1.05);

background:#ffb400;

}

/* GIOCO */

.hidden{

display:none;

}

#barraTop{

display:flex;

justify-content:center;

gap:20px;

flex-wrap:wrap;

margin-top:20px;

}

#turnoBox,
#timerBox{

background:white;

padding:15px 25px;

border-radius:12px;

box-shadow:
0 4px 12px rgba(0,0,0,.12);

font-size:22px;

font-weight:bold;

}

/* SCORE */

#scoreboard{

display:flex;

justify-content:center;

gap:15px;

flex-wrap:wrap;

margin:20px;

}

.player{

background:white;

padding:15px;

border-radius:15px;

min-width:180px;

text-align:center;

box-shadow:
0 4px 12px rgba(0,0,0,.15);

}

.player.active{

border:4px solid #ffcc00;

}

/* DOMANDA */

#categoriaTitolo{

text-align:center;

font-size:32px;

font-weight:bold;

margin-top:20px;

color:#005baa;

}

#domanda{
    background:#fff8dc;
    border:2px solid #ffcc00;
    border-radius:10px;
    padding:15px;
    max-width:1000px;
    margin:20px auto;
}


/* TABELLONE */

#tabellone{

max-width:1200px;

margin:20px auto;

padding:20px;

display:flex;

flex-wrap:wrap;

justify-content:center;

gap:8px;

background:#003366;

border-radius:20px;

box-shadow:
0 5px 20px rgba(0,0,0,.2);

}

.casella{

width:55px;
height:65px;

background:white;

display:flex;

align-items:center;
justify-content:center;

font-size:34px;
font-weight:bold;

border-radius:8px;

color:#003366;

}

.casella.nascosta{

background:#005baa;

color:white;

}

.casella.spazio{

background:transparent;

box-shadow:none;

}

/* LETTERE */

#lettereUsateBox{

text-align:center;

margin-top:20px;

font-size:22px;

}

#lettereUsate{

margin-top:10px;

font-weight:bold;

color:#c0392b;

}

/* RUOTA */

#ruotaContainer{
position:relative;
width:520px;
margin:30px auto;
}

#canvasRuota{
   border:none;
    border-radius:50%;
    box-shadow: 0 0 15px rgba(0,0,0,.25);
}

#freccia{
position:absolute;
left:50%;
top:-25px;
transform:translateX(-50%);
width:0;
height:0;
border-left:25px solid transparent;
border-right:25px solid transparent;
border-top:50px solid red;
z-index:10;

}

/* COMANDI */

#comandi{

text-align:center;

margin-top:20px;

}

#lettera{

width:80px;

font-size:28px;

text-align:center;

}

/* RISULTATO */

#risultatoRuota{

text-align:center;

font-size:32px;

font-weight:bold;

margin:20px;

color:#005baa;

}

/* FINE PARTITA */

#finePartita{

text-align:center;

padding:40px;

}

#campione{

font-size:42px;

font-weight:bold;

margin:25px;

color:#005baa;

}

#classifica{

font-size:24px;

line-height:1.8;

}

/* RESPONSIVE */

@media(max-width:900px){

#canvasRuota{

width:350px;
height:350px;

}


#ruotaContainer{

width:360px;

}

.casella{

width:42px;
height:50px;

font-size:28px;

}

}

@media(max-width:600px){

header h1{

font-size:28px;

}

#categoriaTitolo{

font-size:24px;

}

#domanda{

font-size:20px;

}

.casella{

width:36px;
height:45px;

font-size:22px;

}

.player{

min-width:140px;

}

}


#classificaFinale{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    color:white;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    z-index:9999;
    text-align:center;
}

#classificaFinale h1{
    font-size:3rem;
    margin-bottom:30px;
}

.podio{
    font-size:2rem;
    margin:10px;
}

.oro{
    color:gold;
}

.argento{
    color:silver;
}

.bronzo{
    color:#cd7f32;
}


/* ==============================
   PUNTEGGIO PROVVISORIO GIOCATORI
   ============================== */

#punteggiGiocatori {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 15px auto;
}


#punteggiGiocatori .player {
    width: 160px;
    padding: 8px 12px;
    text-align: center;
    border-radius: 10px;
    font-size: 18px;
    background: #ffffff;
    color: #005baa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

#punteggiGiocatori .player.active {
    border: 3px solid #ffcc00;
    transform: scale(1.05);
}

/* ==============================
   PULSANTE SCHERMO INTERO LIM
   ============================== */

#btnFullscreen {

    background: #005baa;
    color: white;
    font-weight: bold;

}


#btnFullscreen:hover {

    transform: scale(1.05);
    cursor:pointer;

}
/* =====================================
   MODIFICHE GRAFICA QUIZ 2.0 PIU 
   SIMILE A GIOCOSCUOLA RUOTA 
===================================== */

body{
    margin:0;
    padding:0;
    background:#dfefff;
    font-family:Verdana,Arial,sans-serif;
}

#contenitore{
	width:100%;
	margin:10px auto;
	border-radius:8px;
	box-shadow:0 0 10px rgba(0,0,0,.15);
	padding:15px;
	background-color: white;
	background-image: url(../../imgs/sfondo.png);
}

h1,h2,h3{
    color:#005baa;
    text-align:center;
}

button{
    background:#ff9900;
    color:white;
    border:none;
    padding:10px 20px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

button:hover{
    background:#e68400;
}

/* =====================================
   HEADER GIOCOSCUOLA
===================================== */

.header{
	display:flex;
	flex-wrap:wrap;
	align-items:flex-start;
	justify-content:space-between;
	width:100%;

	padding-bottom:10px;
	margin-bottom:15px;
	
}




/* LOGO */

.header > a:first-child{
    flex:0 0 auto;
}

.header > a:first-child img{
	width:300px;
	max-width:100%;
	height:auto;
	display:block;
	margin-right: 200px;
}

/* MENU */

#menuGiocoscuola{
	flex:1;
	text-align:right;
	background:none;
	border:none;
	padding-top:20px;
	margin-right: 20px;
	word-spacing: 33px;
	font-size: 24px;
	
}

#menuGiocoscuola a{
    display:inline-block;
    padding:8px 12px;
    margin-left:5px;
    color:#005baa;
    text-decoration:none;
    font-weight:bold;
    font-size:20px;
	font-family: "Comic Sans MS";
}

#menuGiocoscuola a:hover{
	background:#005baa;
	color:#000099;
	border-radius:5px;
	font-family: "Comic Sans MS";
}

/* BANNER */

#headerGiocoscuola{
    width:100%;
    margin-top:10px;
    clear:both;
}

#headerGiocoscuola img{
    width:100%;
    max-width:100%;
    height:auto;
    display:block;
    border-radius:8px;
}


/*RUOTA*/
#contenitore .header #gioco {
	text-align: center;
}

#areaGioco{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

#colonnaRuota{
    flex:1;
    min-width:500px;
}

#colonnaQuiz{
    flex:1;
    min-width:400px;
}

/*logo*/
.header img:first-child{
    max-width:380px;
    height:auto;
    display:block;
    margin:0 auto 15px auto;
}

#contenitoregioco {
	text-align: center;
	position: relative;
	height: auto;
	width: 85%;
	left: 5%;
	right: 5%;
	margin-left: 5%;
	margin-right: 5%;
	background-color: #FFFFFF;
}
/*footer*/
#footer {
	text-align: center;
	background-color: #87F773;
	font-size: 14px;
	margin: 1px;
	padding: 1px;
	height: auto;
	width: 100%;
}

#areaGioco{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:40px;
    width:100%;
}

/*AREA GIOCO*/

#zonaTabellone{
    flex:1;
    text-align:center;
}


#zonaRuota{
    flex:0 0 auto;
}


#ruotaContainer{
    position:relative;
    width:520px;
    margin:0;
}

@media(max-width:900px){

    #areaGioco{
        flex-direction:column;
    }

}
.no-js .header #contenitoregioco #setup .panel a {
		text-decoration: none;
}

.no-js .header #contenitoregioco #setup #panel2 a {
	color: #FFFFFF;
	text-decoration: none;
	font-size: 14px;

}
.no-js .header #contenitoregioco #setup #panel2 p {
	
	text-decoration: none;
	font-size: 14px;

}
