html,body {
    height: 100%;
    margin: 0;
    font-size: 62.5%;
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ADD */
.admin h1 {
    font-size: 30px;
    font-size: 3.0rem;
}

.admin h2 {
    font-size: 22px;
    font-size: 2.2rem;
}

.admin h1 img {
    width: 48px;
    vertical-align: top;
    margin-top: 3px;
}

.admin a {
    font-size: 20px;
    font-size: 2.0rem;
}

.admin.add .edit_deck_block,
.admin.add .edit_card_block {
    display: none;
}

.admin.edit .edit_deck_block,
.admin.edit .edit_card_block {
    display: block;
}

.admin.edit .add_deck_block,
.admin.edit .add_card_block {
    display: none;
}
.admin.edit .list_deck_block,
.admin.edit .list_card_block {
    display: none;
}

table.admin td img {
    width: 48px;
    cursor: pointer;
}

table.admin {
    margin: 0 auto;
    border-spacing: 0;
    border-bottom: solid black 1px;
    border-top: solid black 1px;
}

table.admin tr {
    height: 65px;
}

table.admin tr td,
table.admin tr th {
    font-size: 12px;
    font-size: 1.2rem;
    border-bottom: solid black 1px;
    border-top: solid black 1px;
}

table.admin tr td.space {
    width: 96px;
}

table.admin tr.normal td.name {
    width: 85%;
}

table.admin tr.normal td.card_delete,
table.admin tr.copy td.card_delete {
    display: none;
}

table.admin tr.normal td.card_copy,
table.admin tr.delete td.card_copy {
    display: none;
}

table.admin tr.delete td.card_delete {
    display: table-cell;
}

table.admin tr.copy td.card_copy {
    display: table-cell;
}

table.admin tr.delete td.img,
table.admin tr.copy td.img {
    display: none;
}

table.admin tr.delete td.name,
table.admin tr.delete td.space,
table.admin tr.copy td.name,
table.admin tr.copy td.space {
    display: none;
}

table.admin tbody tr.super {
    background-color: red;
}

button, input {
    font-size: 18px;
    font-size: 1.8rem;
}

input, button.large {
    width: 80%;
    margin-bottom: 20px;
}

button {
    cursor: pointer;
}

.button-link {
    margin: 20px;
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    font-size: 1.8rem;
    color: black;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: solid black 1px;
    cursor: pointer;
}

.button-link.yes {
    background-color: Crimson;
}

.button-link.no {
    background-color: lightgrey;
}

.green {
    background-color: DarkSeaGreen;
}

.cards-list {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000000;
    border-radius: 10px; 
    margin: 2px 4px 2px 4px;
    --dynamic-font-size: 16px;
    --dynamic-padding: 10px;
    font-size: var(--dynamic-font-size);
    padding: var(--dynamic-padding);
}

.card:first-child {
    margin: 4px 4px 2px 4px;
}

.card:last-child {
    margin: 2px 4px 4px 4px;
}

.card.selectable {
    background: PowderBlue;
}

.card.selected {
    background: paleGreen;
}

.card.unselected {
    background: ivory;
    color: LightSlateGray;
}

.card.blind {
    background: lightgrey;
    color: LightSlateGray;
}

.card {
    position: relative;
}

.card img {
    position: absolute;
    cursor: pointer;
}

.card img.show_hide {
    right: 10px;
    top: 50%;
    width: 48px;
    transform: translateY(-50%);
}

.card img.select {
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    object-fit: cover;
}

.qr_code {
    flex: 1;
    display: flex;
    text-align: center;
}

.qr_code.master {
    background-color: paleGreen;
}

.qr_code div {
    margin: 0 auto;
    padding-top: 30px;
}

.qr_code img {
    display: block;
    margin: 0 auto;
}

@media (orientation: landscape) {
    .qr_code img {
    }
}

@media (orientation: portrait) {
    .qr_code img {
    }
}

.add_card {
    flex: 1;
    display: flex;
    text-align: center;
    width: 100%;
}

.add_card div {
    margin: 0 auto;
    padding-top: 30px;
}

.add_card div h1 {
    font-size: 30px;
    font-size: 3.0rem;
}

.info {
    height: 50px;
    background-color: #f1f1f1;
    text-align: center;
    position: relative;
    font-size: 20px;
    font-size: 2.0rem;

}

.info .nb_people {
    position: absolute;
    padding: 0 10px 0 18px;
    height: 100%;
    background-repeat: no-repeat;
    background-image: url("/img/people.png");
    background-position: center left;
    top: 0;
    right: 0;
    display: flex;
    align-items: center; /* Centre le contenu verticalement */
}

.menu {
    height: 50px;
    padding: 4px;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px; /* Espace entre les divs */
}

.menu div {
    box-sizing: border-box;
    height: 100%;
    width: 48px;
}

.menu div img {
    max-height: 100%;
    width: auto;
}

.hide {
    display: none !important;
}

