﻿:root {
    --pa: #2e3192;
    --pb: #e73e24;
    --pc: #fcb040;
    --pd: #00a651;
    --pe: #00aeef;
    --pf: #ec008c;
    --pblind: gray;
}



body {
    font-family: Arial;
    font-size: 12px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.noselect {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}



.max-h-50px {
    max-height:50px !important;
}
.max-h-60px {
    max-height: 60px !important;
}

.fs-10 {
    font-size: 10px !important;
}

.fs-11 {
    font-size: 11px !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-13 {
    font-size: 13px !important;
}

.fs-14 {
    font-size: 14px !important;
}

.fs-16 {
    font-size: 16px !important;
}

.fs-18 {
    font-size: 18px !important;
}

.fs-20 {
    font-size: 20px !important;
}

.fs-22 {
    font-size: 22px !important;
}

.fs-24 {
    font-size: 24px !important;
}

.fs-26 {
    font-size: 26px !important;
}

.fs-28 {
    font-size: 28px !important;
}

.fs-18 {
    font-size: 18px !important;
}

.fs-30 {
    font-size: 30px !important;
}

.fs-32 {
    font-size: 32px !important;
}

.fs-34 {
    font-size: 34px !important;
}

.fs-40 {
    font-size: 40px !important;
}

.fs-50 {
    font-size: 50px !important;
}

.fs-60 {
    font-size: 60px !important;
}


.fs-100p {
    font-size: 100% !important;
}

.d-content {
    display: contents;
}

.pointer {
    cursor: pointer !important;
}

img.wpaper {
    position: absolute;
    opacity: 0.03;
    height: calc(90vh);
}

#logged_user em {
    background-color: red;
    color: #fff;
    padding: 1px 4px;
    font-weight: bold;
    font-size: 12px;
}


.row {
    margin-bottom: 10px;
}

.hidden {
    display: none;
}


a {
    color: blue;
    cursor: pointer;
}

.ligthgray {
    color: lightgray !important;
}

.red {
    color: red;
}

.gray {
    color: gray;
}

.green {
    color: green;
}




.form-group {
    display: inline-block;
}

    .form-group > label:first-child {
        font-weight: 600;
        margin-bottom: 1px;
    }



.form-control.error {
    border: solid 1px red;
}

.register-container {
    width: 400px;
    margin: auto;
    margin-top: 50px;
    box-shadow: 0px 0px 16px 0px rgba(0,0,0, 0.6);
    padding: 20px 10px;
    border-radius: 5px;
    background-color: #fff;
}

.form-control.number {
    text-align: right;
    width: 150px;
}

    .form-control.number.integer {
        text-align: right;
        width: 100px;
    }

a.logo {
    float: left;
    color: #fff;
    font-size: 26px;
    margin-left: 14px;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: bold;
}

    a.logo:hover {
        text-decoration: none;
    }

ul.simple li {
    list-style-type: none;
    display: block;
}

ul.inline li {
    list-style-type: none;
    display: inline-block;
}

ul.account-menu {
    float: right;
    font-size: 16px;
    margin-right: 10px;
    margin-top: 8px;
}

    ul.account-menu li {
        display: inline-block;
        color: #fff;
        padding: 2px 24px;
        border-radius: 3px;
        text-align: center;
    }

        ul.account-menu li:hover {
            background-color: orange;
        }

        ul.account-menu li.logout:hover {
            background-color: #f00 !important;
        }

ul.top-menu {
    font-size: 16px;
    margin-right: 10px;
    margin-top: 7px;
    text-align: center;
    display: inline-block;
    margin-left: 50px;
}


    ul.top-menu li {
        display: inline-block;
        color: #fff;
        padding: 2px 24px;
        border-radius: 3px;
        text-align: center;
        margin-left: 5px;
        margin-right: 5px;
    }

        ul.top-menu li:hover {
            background-color: #fff;
            color: #000;
        }


.cards-list li {
    display: inline-block;
    border: solid 2px #000;
    padding: 6px 3px;
    width: 41px;
    text-align: center;
    cursor: pointer;
}

    .cards-list li:hover {
        background-color: blue;
        color: #fff;
    }

    .cards-list li.selected {
        background-color: orange;
        color: #fff;
    }


    .cards-list li i {
        font-size: 26px;
    }





div.games-list {
    float: left;
    border: solid 1px #ccc;
    padding: 10px;
    height: calc(100vh);
    width: 150px;
}

div.game-container {
    margin: auto;
    /*border: solid 1px #000;*/
}

div.armies-map {
}


.armies-map {
    position: absolute;
    top: 300px;
    left: 20px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    max-width: 620px;
}

    .armies-map .title {
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 10px;
    }

    .armies-map .wrap {
        display: flex;
        gap: 16px;
        align-items: center;
        flex-wrap: wrap;
    }

    .armies-map .viz {
        flex: 0 0 auto;
    }

    .armies-map svg {
        display: block;
        width: 400px;
        height: 400px;
    }

    .armies-map .legend {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
        min-width: 200px;
    }

    .armies-map .legend-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .armies-map .swatch {
        width: 12px;
        height: 12px;
        border-radius: 3px;
        box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset;
    }

    .armies-map .muted {
        color: #666;
    }

    .armies-map .slice-label {
        font-size: 11px;
        font-weight: 700;
        fill: #111;
        paint-order: stroke;
        stroke: #fff;
        stroke-width: 3px;
        letter-spacing: .2px;
    }

    .armies-map .controls {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-bottom: 10px;
        font-size: 13px;
    }

        .armies-map .controls input[type="number"] {
            width: 100px;
            padding: 6px 8px;
            border-radius: 10px;
            border: 1px solid rgba(0,0,0,.2);
        }

    .armies-map .hr {
        height: 1px;
        background: rgba(0,0,0,.08);
        margin: 12px 0;
        border-radius: 1px;
    }







div.commands-bar {
    text-align: center;
    padding: 5px 0px;
    position: absolute;
    bottom: 1px;
    left: 430px;
    /*border: solid 1px #000;*/
    width: 560px;
    z-index: 10;
}


.exchange-button {
    background-color: green;
    padding: 10px 15px;
    border: solid 2px #000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    right: 4px;
    top: 4px;
    display: none;
}

    .exchange-button:hover {
        text-decoration: none;
        color: #fff;
    }

a.end-turn {
    color: #fff !important;
    background-color: darkorange;
    font-weight: bold;
}

.ul-buttons > li {
    display: inline-block;
    border: solid 1px #ccc;
    width: 120px;
    margin-left: 4px;
    margin-right: 4px;
    padding: 5px;
    cursor: pointer;
}

    .ul-buttons > li.selected {
        background-color: green;
        color: #fff;
        font-weight: bold;
    }



div.move-bar {
    text-align: center;
    /* margin: auto; */
    /* margin-bottom: 10px; */
    padding: 5px 5px;
    position: absolute;
    bottom: 2px;
    background-color: #fff;
    left: 421px;
    width: 378px;
    z-index: 10;
}

.ul-movebar > li {
    display: inline-block;
    border: solid 1px #ccc;
    margin-left: 4px;
    margin-right: 4px;
    padding: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 10px;
}

a.end_move {
    padding: 5px 10px;
    background-color: red;
    display: block;
    margin-top: 10px;
    color: #fff;
    font-weight: bold;
}


.ul-movebar > li.label {
    border: none;
    font-weight: bold;
    font-size: 10px;
    padding: 0px;
    width: 60px;
    overflow: hidden;
    display: inline-block;
    height: 11px;
    margin-left: 0px;
    margin-right: 0px;
    text-align: center;
}


div.time-board {
    position: absolute;
    left: 0px;
    top: 0px;
    padding: 5px 20px;
    background-color: #fff;
    font-size: 28px;
    border: solid 1px #000;
    z-index: 10;
    border: none;
}




div.message-board {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 1000px;
    padding: 5px;
    overflow: auto;
    text-align: right;
    font-size: 18px;
}

/*div.players-board {
	position: absolute;
	left: 1px;
	bottom: 1px;
	padding: 3px;
	background-color: #fff;
	font-size: 14px;
	border: solid 1px #000;
	width: 347px;
	height: 190px;*/
/*z-index:10;*/
/*}
table.players-table {
	width: 100%;
    text-align:left;
}

td.player-current,th.player-current {
    width:10px;
}

td.player-current i {
	font-size: 16px;
}*/


.player-name.pa {
    color: var(--pa);
}

.player-name.pb {
    color: var(--pb);
}

.player-name.pc {
    color: var(--pc);
}


.player-name.pd {
    color: var(--pd);
}


.player-name.pe {
    color: var(--pe);
}


.player-name.pf {
    color: var(--pf);
}

.player-name.pblind {
    color: var(--pblind);
}



.world-map-wwm.pa {
    border: solid 10px var(--pa);
}

.world-map-wwm.pb {
    border: solid 10px var(--pb);
}

.world-map-wwm.pc {
    border: solid 10px var(--pc);
}

.world-map-wwm.pd {
    border: solid 10px var(--pd);
}

.world-map-wwm.pe {
    border: solid 10px var(--pe);
}

.world-map-wwm.pf {
    border: solid 10px var(--pf);
}

.world-map-wwm.pblind {
    border: solid 10px var(--pblind);
}


div.time-board.pa {
    background-color: var(--pa);
    color: #fff;
}

div.time-board.pb {
    background-color: var(--pb);
    color: #fff;
}

div.time-board.pc {
    background-color: var(--pc);
    color: #fff;
}

div.time-board.pd {
    background-color: var(--pd);
    color: #fff;
}

div.time-board.pe {
    background-color: var(--pe);
    color: #fff;
}

div.time-board.pf {
    background-color: var(--pf);
    color: #fff;
}

div.time-board.pblind {
    background-color: var(--pblind);
    color: #fff;
}



td.player-score, th.player-score {
    text-align: right;
}

td.player-scoreearn, th.player-scoreearn {
    text-align: right;
    font-size: 11px;
}






div.cards-board {
    position: absolute;
    left: 430px;
    bottom: 1px;
    padding: 3px;
    font-size: 10px;
    width: 560px;
    height: 50px;
    z-index: 10;
}

div.mode-bar {
    position: absolute;
    right: 640px;
    bottom: 2px;
    padding: 3px;
    background-color: #fff;
    font-size: 14px;
    /* border: solid 1px #000; */
    width: 100px;
    height: 160px;
    display: none;
}





.map-options li {
    display: inline-block;
    border: solid 1px #efefef;
    padding: 0px 10px 5px 15px;
    text-align: center;
    margin-right: 10px;
    cursor: pointer;
    min-width: 130px;
}

    .map-options li.selected {
        background-color: #88cc00;
    }


    .map-options li label {
        display: block;
        text-align: center;
        color: #000;
        font-weight: 600;
    }

    .map-options li.selected label {
        color: #fff;
    }


    .map-options li i {
        font-size: 28px;
        color: #888;
    }

    .map-options li.selected i {
        color: #fff;
    }


.world-pointers > div {
    /* background-color: #fff; */
    /* border-radius: 50%; */
    /*cursor: pointer;*/
    font-size: 14px;
    border: 0px;
    /* border: solid 1px #000; */
    text-align: center;
    vertical-align: baseline;
}

    .world-pointers > div > span {
        display: inline;
        vertical-align: middle;
        width: auto;
        background-color: #fff;
        padding: 1px 3px;
        background-color: #000;
        color: #fff;
        font-weight: bold;
        font-size: 18px;
        /*	font-size:20px;
	width:20px;
	height:20px;
	border-radius:50%;*/
    }

        .world-pointers > div > span:empty {
            display: none;
        }

    .world-pointers > div.is_source span {
        background-color: red !important;
        padding: 3px 8px;
        font-size: 14px;
    }

    .world-pointers > div.is_target span {
        background-color: yellow !important;
        color: #000;
        padding: 3px 8px;
        font-size: 14px;
    }

    .world-pointers > div.is_moving span {
        background-color: yellow !important;
        color: #000;
        padding: 3px 8px;
        font-size: 14px;
    }









.world-map-wwm.blink-border {
    border-color: lime !important;
}

    .world-map-wwm.blink-border.blinking {
        border-color: orange !important;
    }








ul {
    padding: 0px;
    margin: 0px;
}

    ul.games {
        margin-top: 10px;
    }

    ul li {
        list-style-type: none;
    }






.side-panel {
    border: solid 1px #000;
    height: calc(100vh - 64px);
    overflow: auto;
    width: 280px;
    padding: 5px 10px;
    border-radius: 3px;
}



div.map-waiting {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    background-color: #fff;
    height: 100%;
    z-index: 15;
    opacity: 0.6;
    cursor: wait;
}


div.map-overlay {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    background-color: #fff;
    height: 100%;
    z-index: 20;
    opacity: 0.8;
    cursor: wait;
}

    div.map-overlay span.overlay-main-message {
        width: 100%;
        z-index: 20;
        display: block;
        position: absolute;
        top: 0px;
        left: 0px;
        color: #666 !important;
        text-align: center;
        margin-top: 25%;
        cursor: wait;
    }

    div.map-overlay span.overlay-socket-message {
        width: 100%;
        z-index: 20;
        display: block;
        position: absolute;
        top: 5px;
        right: 10px;
        color: blue !important;
        text-align: right;
    }


.outer-container {
    width: 100%;
    max-width: 1000px !important;
    display: inline-block;
    overflow: hidden; /* evita scrollbar orizzontale */
}




/* Layout */
.auth-shell {
    max-width: 600px;
    display: grid;
    place-items: center;
    margin: auto;
}

.auth-card {
    width: 100%;
    max-width: 880px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(140%) blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: linear-gradient(90deg, rgba(59,130,246,0.12), rgba(16,185,129,0.12));
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #0f172a;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.brand-text {
    font-size: 1rem;
    letter-spacing: .3px;
}

/* Segmented control */
.segmented {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    overflow: hidden;
}

.seg-btn {
    position: relative;
    padding: 10px 16px;
    font-weight: 600;
    color: #334155;
    background: transparent;
    border: none;
    z-index: 2;
}

    .seg-btn.active {
        color: #111827;
    }

.seg-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(59,130,246,0.18), rgba(16,185,129,0.18));
    transition: transform .25s ease;
}

/* Headings */
.title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.subtitle {
    color: #475569;
    margin: .25rem 0 0;
}

/* Inputs with icons */
.input-wrap {
    position: relative;
}

.in-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.input-wrap .form-control {
    padding-left: 40px;
    transition: box-shadow .2s ease, transform .06s ease;
}

    .input-wrap .form-control:focus {
        box-shadow: 0 0 0 4px rgba(59,130,246,.15);
        transform: translateY(-1px);
    }

.in-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    border: 0;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 8px;
    font-weight: 600;
}

    .in-btn:hover {
        filter: brightness(0.97);
    }

/* Number stepper */
.in-stepper {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}

    .in-stepper button {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        border: 0;
        background: #f1f5f9;
        font-weight: 700;
        line-height: 1;
    }

/* Password meter */
.pwd-meter {
    display: flex;
    gap: 6px;
}

    .pwd-meter .bar {
        flex: 1;
        height: 8px;
        border-radius: 6px;
        background: #e5e7eb;
    }

        .pwd-meter .bar.on:nth-child(1) {
            background: #fca5a5;
        }

        .pwd-meter .bar.on:nth-child(2) {
            background: #fdba74;
        }

        .pwd-meter .bar.on:nth-child(3) {
            background: #93c5fd;
        }

        .pwd-meter .bar.on:nth-child(4) {
            background: #34d399;
        }

/* Buttons */
.fancy-btn {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(59,130,246,0.25);
}

    .fancy-btn:disabled {
        box-shadow: none;
    }

/* Alerts */
.alert.soft {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Utilities */
.p-6 {
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 520px) {
    .auth-card {
        max-width: 100%;
    }

    .p-6 {
        padding: 1.25rem;
    }
}

</style >




.map_toolbar {
}

.map_toolbar li {
}

.map_toolbar a {
    border: solid 1px #494242;
    display: block;
    width: 215px !important;
    text-align: center;
    font-size: 18px;
    padding: 10px;
    color: #000;
}

    .map_toolbar a i {
        font-size: 20px;
        margin-right: 3px;
        color: #000;
    }

.map_toolbar li.disabled, .map_toolbar li.disabled a, .map_toolbar li.disabled i {
    color: lightgray !important;
    border-color: lightgray !important;
    cursor: not-allowed;
    background-color: #dfdfdf;
    color: #888 !important;
}




.beta-banner {
    position: fixed; /* sempre visibile */
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffc107; /* giallo avviso (puoi cambiarlo) */
    color: #000;
    padding: 0.5rem;
    font-size: 1.2rem;
    border-top: 2px solid #e0a800;
    z-index: 1;
}

    .beta-banner a {
        font-weight: bold;
        color: #000;
        text-decoration: underline;
    }


.card-header h5 {
    font-weight: 600;
}

.form-text {
    font-size: 12px;
}

hr {
    opacity: .15;
}
/* Keep switches aligned to the top like other fields */
/*.form-check.form-switch {
	margin-top: 20px !important;
}*/

.form-check.form-switch .form-check-input {
    margin-top: .25rem;
}




/*HELP SECTION*/
:root {
    --brand: 59 130 246; /* blue-500 */
    --accent: 168 85 247; /* purple-500 */
    --ink: 17 24 39;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, rgb(var(--brand) / .08), rgb(var(--accent) / .08));
    border: 1px solid rgba(0,0,0,.06);
}

.hero .h2 {
    font-weight: 700;
}

.lead {
    font-size: 1.05rem;
    color: rgb(var(--ink) / .8);
}

/* CARDS & SECTIONS */
.card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
}

.card .card-body {
    padding: 1.25rem;
}

.card .card-body .h4 {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    margin-bottom: .75rem;
}

.card .card-body .h4::before {
    content: "";
    width: .6rem;
    height: .6rem;
    border-radius: 999px;
    background: rgb(var(--brand));
    box-shadow: 0 0 0 6px rgb(var(--brand) / .15);
}

/* ALERTS, LISTS */
.alert {
    border: 0;
    border-radius: 12px;
}

.alert-primary {
    background: linear-gradient(180deg, rgb(var(--brand) / .10), rgb(var(--brand) / .05));
    color: rgb(var(--ink));
}

.alert-info {
    background: linear-gradient(180deg, rgba(14,165,233,.12), rgba(14,165,233,.06));
    color: rgb(var(--ink));
}

.alert-warning {
    background: linear-gradient(180deg, rgba(245,158,11,.18), rgba(245,158,11,.08));
    color: rgb(var(--ink));
}

.list-group-item {
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: .65rem .75rem;
}

    .list-group-item:last-child {
        border-bottom: 0;
    }

/* Cards section helpers */
#cards .bg-light {
    border: 1px dashed rgba(0,0,0,.08);
}





.chat-box {
    height: 400px; /* regolabile */
    border: 1px solid #ddd;
    background-color: #fff;
}

    .chat-box .chat-header {
        font-weight: bold;
    }

    .chat-box .message .rounded {
        max-width: 85%;
        word-wrap: break-word;
        white-space: pre-line; /* 🔥 rispetta i \n */
    }

    /* nickname sopra i messaggi */
    .chat-box .nickname {
        margin-bottom: 2px;
    }

    /* messaggi ricevuti */
    .chat-box .message.received .nickname {
        text-align: left;
    }

    /* messaggi inviati */
    .chat-box .message.sent .nickname {
        text-align: right;
    }

    .chat-box .msg-date {
        color: #999;
    }




