html, body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #f0f0f0;
    font-size: 62.5%;
}

h1 {
    margin: 0;
    padding: 6px 0 0 0;
    font-size: 20px;
    font-size: 2.0rem;
}

h2 {
    margin: 20px 0 0 0;
    padding: 0;
    font-size: 18px;
    font-size: 1.8rem;
    text-align: center;
}

p {
    text-align: center;
    font-size: 14px;
    font-size: 1.4rem;
}

div, button {
    font-size: 20px;
    font-size: 2.0rem;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}

.zone-cercle {
    margin-top: 20px;
    position: relative;
    width: min(90vw, 90vh);
    height: min(90vw, 90vh);
}

.player {
    position: absolute;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.player.is_assigned {
    background: #1e7e47;
    cursor: pointer;
}

.player.dead {
    background: #999999;
    cursor: pointer;
}

.player.is_assigned.selected {
    background: #2ecc71;
}

.player.not_assigned {
    cursor: pointer;
}

.player_description {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    border-top: 1px solid black;
    margin: 20px 10px 0 10px;
}

.player_description h1 span {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.zone_controle {
    margin-top: 20px;
    text-align: center;
    font-size: 1.8rem;
    color: #333;
}

.menu-burger {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.burger-icon {
    font-size: 28px;
    cursor: pointer;
    padding: 0 10px 10px 10px;
    background: #333;
    color: white;
    border-radius: 6px;
}

.menu-content {
    position: absolute;
    top: 50px;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-content li {
    border-bottom: 1px solid #eee;
}

.menu-content li:last-child {
    border-bottom: none;
}

.menu-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.menu-content a:hover {
    background-color: #f2f2f2;
}

.menu-content a.selected {
    background-color: #3498db;
    color: white;
}

.hide {
    display: none;
}

button {
    background-color: #6200EE;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 20px;
    font-size: 2.0rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

button:hover {
    background-color: #3700B3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

button:active {
    background-color: #30009C;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    transform: scale(0.98);
}

button:disabled {
    background-color: #CCC;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

button.new_game,
button.new_role,
button.new_status {
    margin-top: 20px;
}

input {
    font-size: 20px;
    font-size: 2.0rem;
}

input.input_new_status, 
input.input_new_role {
    border: 1px solid black;
    padding: 15px;
    margin: 0 auto;
    text-align: center;
}

button.valid_new_status,
button.valid_new_role {
    display: block;
    margin: 20px auto 0 auto;
}

.list {
    margin-top: 30px;
}

.list > div {
    border: 1px solid black;
    padding: 5px 20px;
    margin: 5px 0 0 0;
    border-radius: 10px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list > div {
    padding: 16px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: move;
    touch-action: none;
}

.list.click > div {
    padding: 0px 15px;
    margin: 0;
    border-radius: 20px;
}

.list .round-button-container {
    float: right;
}

.left {
    float: left;
}

.list_2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
}

.list_2 div {
    padding: 4px 16px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
}

.list_2 div.over {
    background: grey;
}

.list_2 div.missing {
    border: 3px dashed black;
    background-color: #FFFFFF;
}

.buttons_mix_and_distribute {
    padding-top: 30px;
    text-align: center;
}

.list_for_distribute {
    padding: 10px;
}

.list_for_distribute div {
    margin: 2px 2px 0 2px;
    border-radius: 4px;
    padding: 4px;
}

.list_for_distribute div span.rowid {
    width: 30px;
    border-radius: 30px;
    display: inline-block;
    text-align: center;
    border: 1px solid black;
    font-size: 18px;
    font-size: 1.8rem;
}

.cols_2 {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.block_new_role,
.block_new_status {
    margin-top: 55px;
}

.block_edit_role,
.block_edit_status {
    text-align: center;
    margin-top: 35px;
}

.block_edit_role button,
.block_edit_status button {
    margin: 5px auto;
}

.stats {
    width: 100%;
    padding: 16px;
    background-color: #6200EE;
    color: white;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}

input.nb_cards {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}

input.nb_cards::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #6200EE;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
}

input.nb_cards::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #6200EE;
    cursor: pointer;
    border: none;
}

input.nb_cards::-webkit-slider-runnable-track {
    height: 10px;
    background: #bbb;
    border-radius: 3px;
}

input.nb_cards::-moz-range-track {
    height: 10px;
    background: #bbb;
    border-radius: 3px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: lightgrey;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
}

#name_card_for_print {
    font-size: 14vw;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.round-button-container {
    display: inline-flex;
    margin: 0 auto;
}

.round-button {
    width: 60px;
    height: 30px;
    border-radius: 30px;
    background-color: #ccc;
    position: relative;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.round-button::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    transition: left 0.3s;
}

.round-button.active {
    background-color: #1e7e47;
}

.round-button.active::before {
    left: 35px;
}

.bloc_button_choose_status_to_add {
    padding-top: 20px;
    text-align: center;
}

.choose_card,
.list_status,
.bloc_list_choose_status_to_add {
    padding-top: 20px;
    text-align: center;
}


.choose_card span,
.list_status > span,
.bloc_list_choose_status_to_add span {
    border: 1px solid black;
    padding: 3px 10px;
    margin: 2px 0;
    background: lightgreen;
    display: inline-flex;
}

.choose_card span,
.bloc_list_choose_status_to_add span {
    cursor: pointer;
}

.list_status > span > span {
    font-size: 10px;
    font-size: 1.0rem;
    margin: 6px 0px 0px 6px;
    cursor: pointer;
}

.game_list {
    margin-top: 50px;
}

.game_list div span {
    cursor: pointer;
}

.block_del_game {
    margin-top: 30px;
    text-align: center;
}

.block_del_game > div {
    margin-bottom: 20px;
}

.role_to_call {
    padding-top: 50px;
}

.called {
    background: lightgrey !important;
}

.calling {
    background: lightgreen !important;
}

.link {
    text-align: center;
    padding-top: 10px;
}

.link {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.link:hover {
    color: darkblue;
}

.role_link {
    padding: 16px 0;
}

.called, .calling, .uncalled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.role_link {
    flex: 1;
    padding: 16px 0;
    cursor: pointer;
}

.round-button-container {
    margin-left: 10px;
    flex-shrink: 0;
}

