body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}
h1, h2 {
    color: #333;
}
#video {
    max-width: 800px;
    max-height: 600px;
    width: 100%;
    border: 2px solid #333;
    border-radius: 5px;
}
#canvas {
    display: none;
}
#photo {
    max-width: 800px;
    max-height: 600px;
    width: 100%;
    margin-top: 20px;
    border: 2px solid #333;
    border-radius: 5px;
    display: none;
}
#message, #faqMessage, #syncMessage {
    color: red;
    margin-top: 10px;
}
button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}
button:hover {
    background-color: #0056b3;
	color:	white;
}
#faqList {
    list-style-type: none;
    padding: 0;
    width: 100%;
    max-width: 800px;
}
#faqList li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    box-sizing: border-box;
    min-width: 0;
    background-color: white;
    margin: 10px 0;
    border: 1px dotted #ccc;
    border-radius: 5px;
}
#faqList input[type="text"] {
    width: 22rem;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-size: 16px;
}
#faqList input[type="number"] {
    width: 9rem;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-size: 16px;
}
#faqList input[type="radio"] { width: auto; height: auto; }
#faqList button { flex: none; align-self: flex-start; }
#faqList .answer-thumbnail {
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    flex: none;
}
#faqList .answer-thumbnail[hidden] { display: none; }
#faqList li strong {
    display: block;
    margin-bottom: 5px;
}

.photoDiv {
  border: 5px outset green;
  background-color: #EBE3E1;
  text-align: center;
  display: none;
}
.contenitoreCerchio {
  grid-column: 1;
/*	display: flex;
	float: left;
	padding-right: 1px;*/
}


.cerchio {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    #background-color: #4CAF50;
	background-color: #5c564e;
    color: white;
    font-size: 18px;
    display: flex; /* Abilita Flexbox */
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra orizzontalmente */
    text-align: center; /* Assicura che il testo sia centrato nel suo spazio */
}

.contenitoreDomanda {
  	grid-column: 2;
}

.domanda {
	margin-left: 5px;
}

.contenitorePulsante{
	grid-column: 3;
  	margin-top: -10px;
}

.inviaRisposta {
   	margin: 5px;
   	padding: 10px 10px;
   	font-size: 14px;
   	cursor: pointer;
	background-color: #e7e7e7; 
	color: black;
   	border: none;
   	border-radius: 15px;
}
.rispostaFornita {
   	margin: 5px;
   	padding: 10px 10px;
   	font-size: 14px;
   	cursor: pointer;
	background-color: green; 
	color: white;
   	border: none;
   	border-radius: 15px;
}
.answer-status { display: inline-block; margin: .4rem .6rem; font-size: .9rem; }

.rispostaLocale { margin:5px; padding:10px; font-size:14px; cursor:pointer; background-color:#ffbf47; color:#222; border:none; border-radius:15px; }

.answer-thumbnail {display:block;width:120px;height:120px;object-fit:contain;margin:.5rem;}
.photo-choices {display:flex;flex-wrap:wrap;gap:1rem;}
.photo-choices label {display:flex;flex-direction:column;align-items:center;}

.answer-thumbnail { cursor: zoom-in; }
.photo-dialog { max-width:94vw; max-height:94vh; padding:12px; border:0; border-radius:8px; }
.photo-dialog::backdrop { background:rgba(0,0,0,.75); }
.photo-dialog img { display:block; width:auto; height:auto; max-width:85vw; max-height:75vh; object-fit:contain; }

.network-indicator { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; margin:4px 12px 12px; border-radius:20px; font-size:14px; font-weight:bold; }
.network-dot { width:12px; height:12px; flex:none; border-radius:50%; background:currentColor; }
.network-online { color:#176b35; background:#e5f5e9; }
.network-offline { color:#a51d25; background:#fde8e8; }
.network-checking { color:#845100; background:#fff1ce; }

.game-maps, .question-links { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.game-maps { max-width:800px; margin:12px; }
.map-link { display:inline-block; padding:8px 12px; border-radius:6px; background:#e7efff; color:#164a87; text-decoration:none; }
.map-link:hover { text-decoration:underline; }

.question-badges { display:flex; flex-wrap:wrap; gap:8px; font-size:14px; }
.special-badge, .score-badge { padding:4px 9px; border-radius:12px; font-weight:bold; }
.special-badge { color:#794600; background:#fff0bd; }
.score-badge { color:#20517b; background:#e8f2fa; }

.login-card {width:calc(100% - 32px);max-width:32rem;box-sizing:border-box;margin:2rem auto;padding:24px;text-align:left;background:#fff;border-radius:18px;box-shadow:0 8px 30px #17354d15;}
.login-card input:not([type="hidden"]), .login-card select {box-sizing:border-box;padding:11px 12px;border:1px solid #bac8d6;border-radius:8px;font-size:16px;}
.captcha-field {display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:20px 0;}
.captcha-field input {width:13rem;max-width:100%;}
.login-card .login-submit {width:100%;margin:0;padding:14px;border-radius:10px;font-weight:bold;}
.login-actions {display:flex;flex-wrap:wrap;gap:12px;margin-top:20px;}
.login-action {display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;padding:12px 16px;text-decoration:none;font-weight:bold;}
.login-action:hover {filter:brightness(.95);}
.register-action {flex:1;background:#e4f4ea;color:#176b35;}
.ranking-action {flex:1;background:#e8efff;color:#214d96;}
.login-admin {margin-top:20px;text-align:right;}
.admin-action {background:#f0f2f5;color:#52606d;font-size:13px;padding:7px 11px;border:1px solid #d5dde5;}

.login-brand {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px;}
.login-brand .masi-logo {display:block;width:140px;height:auto;max-width:100%;object-fit:contain;}
.login-brand .orienteering-logo {display:block;width:56px;height:56px;object-fit:contain;flex:none;}

.game-maps select {max-width:100%;padding:10px;border:1px solid #bac8d6;border-radius:8px;font-size:16px;}
.game-maps #open-map[hidden] {display:none;}

.captcha-field .refresh-captcha {margin:0;padding:8px 12px;background:#e8efff;color:#214d96;border-radius:8px;font-size:14px;}
.captcha-field .refresh-captcha:disabled {opacity:.6;cursor:wait;}
#captcha-status {font-size:13px;color:#52606d;}
