/* ===== BODY ===== */
/* =====================================================
   IMPOSTAZIONI GENERALI
   ===================================================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body{
    min-height:100vh;
    font-family:Arial, Helvetica, sans-serif;
    color:white;
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
}
/* =====================================================
   SFONDI
   ===================================================== */
body.tris{
    background-image:url("../img/tictactoe.png");
}
body.antitris{
    background-image:url("../img/antitris.png");
}
/* =====================================================
   TITOLO
   ===================================================== */
.title{
    text-align:center;
    padding-top:20px;
    font-size:52px;
    font-weight:bold;
    letter-spacing:4px;
    height: 100px;
}
body.tris .title{
    color:white;
    text-shadow:
        0 0 10px #00d9ff,
        0 0 20px #00d9ff;
}
body.antitris .title{
    color:#e8d4ff;
    text-shadow:
        0 0 10px #8a4dff,
        0 0 20px #8a4dff,
        0 0 30px #8a4dff;
}
/* =====================================================
   LAYOUT
   ===================================================== */
.game-container{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:60px;
    padding-top:30px;
}
/* =====================================================
   PANNELLO CONFIGURAZIONE
   ===================================================== */
.config-panel{
    width:330px;
    padding:25px;
    border-radius:15px;
    backdrop-filter:blur(4px);
}
.config-panel h2{
    text-align:center;
    margin-bottom:35px;
/*    color:#00d9ff;*/
    color:#b57cff;
    font-size:28px;
   	line-height:1.2;
}
body.tris .config-panel{
    background:rgba(0,0,0,0.70);
    box-shadow:
        0 0 15px rgba(0,217,255,0.4);
}
body.antitris .config-panel{
    background:rgba(5,5,15,0.82);
    border:2px solid #8a4dff;
    box-shadow:
        0 0 15px #8a4dff,
        0 0 30px rgba(138,77,255,.4);
}
/* =====================================================
   SEZIONI
   ===================================================== */
.section{
    margin-bottom:15px;
}
.section-title{
    display:block;
    margin-bottom:5px;
    font-size:18px;
    font-weight:bold;
    color:#b57cff;	
}
.radio-group{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.radio-group p{
    width: 140px;
    display: inline-block;
    color:#d6b7ff;
    padding-left: 10px;
}
.radio-group div.segno-mossa-o, div.segno-mossa-x{
	display: inline;
	font-size: 28px;
}
div.segno-mossa-o{
	color: #f93822
/* 	ff4444; */
}
div.segno-mossa-x{
	color: white;	
}
/* =====================================================
   BOTTONE
   ===================================================== */
.start-button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
    transition:.3s;
}
body.tris .start-button{
    background:#00d9ff;
    color:black;
}
body.tris .start-button:hover{
    transform:scale(1.04);
}
body.antitris .start-button{
    background:linear-gradient(
        #5d2ac8,
        #8a4dff
    );
    color:white;
    border:1px solid #c8a0ff;
    box-shadow:
        0 0 10px #8a4dff;
}
body.antitris .start-button:hover{
    box-shadow:
        0 0 20px #b57cff,
        0 0 40px #b57cff;
    transform:scale(1.05);
}
/* =====================================================
   CAMPO DI GIOCO
   ===================================================== */
.board-container{
    padding:20px;
    border-radius:15px;
}
body.tris .board-container{
    background:rgba(0,0,0,0.70);
}
body.antitris .board-container{
    background:rgba(5,5,15,0.82);
    border:2px solid #8a4dff;
    box-shadow:
        0 0 15px #8a4dff;
}
/* =====================================================
   TABELLA TRIS
   ===================================================== */
.game-board{
    border-collapse:collapse;
}
.game-board td{
    width:140px;
    height:140px;
    text-align:center;
    vertical-align:middle;
    font-size:70px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}
/* Tema TRIS */
body.tris .game-board td{
    border:3px solid white;
}
body.tris .game-board td:hover{
    background:rgba(255,255,255,.15);
}
/* Tema ANTI TRIS */
body.antitris .game-board td{
    border:4px solid #b57cff;
    color:white;
    box-shadow:
        inset 0 0 8px rgba(181,124,255,.35);
}
body.antitris .game-board td:hover{
    background:rgba(181,124,255,.15);
}
/* =====================================================
   MESSAGGI
   ===================================================== */
.message{
    text-align:center;
    margin-top:20px;
    font-size:20px;
    font-weight:bold;
}
select{
    width:100%;
    padding:10px;
    border-radius:8px;
    font-size:16px;
    margin-top:10px;
}
body.tris select{
    border:1px solid #00d9ff;
}
body.antitris select{
    border:1px solid #8a4dff;
    background:#111;
    color:white;
}
.page-header{
    position:relative;
    width:100%;
    height:80px;
    margin-top:15px;
    margin-bottom:25px;
}
.back-arrow{
    position:absolute;
    left:35px;
    top:50%;
    transform:translateY(-50%);
    display:inline-block;
    font-size:70px;
    font-weight:bold;
    line-height:1;
    color:#ffffff !important;
    text-decoration:none !important;
    text-shadow:
        0 0 10px #00d9ff,
        0 0 20px #00d9ff,
        0 0 30px #00d9ff;
    transition:all .30s ease;
}
.back-arrow:visited{
    color:#ffffff !important;
}
.back-arrow:link{
    color:#ffffff !important;
}
.back-arrow:hover{
    color:#00d9ff !important;
    transform:translateY(-50%) scale(1.20);
    text-decoration:none;
}
.esito-partita {
	margin-top: 14px;
	min-height: 36px;
	padding: 10px 14px;
	text-align: center;
	font-size: 28px;
	font-weight: bold;
	letter-spacing: 1px;
	color: #ffffff;
	background: rgba(0,0,0,0.55);
	border: 2px solid #00d8ff;
	border-radius: 8px;
	text-shadow: 0 0 6px rgba(0,0,0,0.9);
}
.game-board {
	border-collapse: separate;
	border-spacing: 0;
	background: rgba(0,10,20,0.55);
	border: 2px solid rgba(255,255,255,0.75);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 0 18px rgba(0,210,255,0.20);
}

.game-board td {
	width: 94px;
	height: 94px;
	text-align: center;
	vertical-align: middle;
	font-size: 58px;
	font-weight: bold;
	color: white;
	border-right: 1px solid rgba(255,255,255,0.75);
	border-bottom: 1px solid rgba(255,255,255,0.75);
	cursor: pointer;
	text-shadow: 0 0 8px rgba(255,255,255,0.25);
	transition: background .15s ease, box-shadow .15s ease;
}

.game-board td:nth-child(3) {
	border-right: 0;
}

.game-board tr:last-child td {
	border-bottom: 0;
}

.game-board td:not([data-disabled="true"]):hover {
	background: rgba(0,210,255,0.10);
	box-shadow: inset 0 0 18px rgba(0,210,255,0.12);
}
.radio-group .divradio .ui-button,
.radio-group .divradio .ui-button:active,
.radio-group .divradio .ui-button.ui-state-active,
.radio-group .divradio .ui-button.ui-state-active:hover {
	font-weight: 700;
}