body {
    background: #1c242d;
    color: white;
    font-size: 1.5em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.page {
    flex:1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin:0 20px;
  }
  
.page.horizontal {
    justify-content: flex-start; /* Aligner le contenu en haut */
    height: 100%;
  }

/* .page table {
    margin-left: 20px;
  }
 */
.centre {
    align-items: center;
}

.footer {
    padding: 10px;
    text-align: center;
    font-size: 70%;
}

input, textarea {
    box-sizing: border-box;
}

.login-menu {
    height: 80px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.login-container {
    margin: 10% auto;
    max-width: 100%;
    /* width: 600px; */
}

@media only screen and (max-width: 997px) {
    /* .login-container {
        padding:0 20px;
    } */
}

@media only screen and (max-width: 800px) {
.table-container2 {
width: 100%;
}
}

.box {
    border: 1px solid #c4c4c4;
    padding: 20px 20px;
    background: black;
    margin: 20px;
    width: 360px;
    color: white;
    box-sizing: border-box;
}

.box2 {
    padding: 0px 0px 0px 0px;
}

h1.box-logo {
    padding: 15px 25px;
    text-align:center;
    margin: -27px 0px 26px;
}

h1.box-title-1 {
    color: #2b37a8;
    background: #f8f8f8;
}

h1.box-title-2 {
    color: #000000;
    background: #a7a7a7;
}

.box-button {
    border-radius: 30px;
    background: #1b67d8;
    text-align: center;
    cursor: pointer;
    width: 100%;
    padding: 10px;
    color: #fff;
    border: 1px;
    outline: 0;
    font-size: inherit;
    margin: auto;
    justify-content: center;
}

.box-register {
    text-align:center;
    margin-bottom:0px;
    font-size: 0.75em;
}

.box-register a {
    text-decoration:none;
    color:#f00000;
}

.box-input {
    background: #fff;
    border: 1px solid #f00000;
    margin-bottom: 25px;
    padding:0px 0px;
    border-radius: 5px;
    width: 100%;
    height: 2em;
    font-size: 1em;
    box-sizing: border-box;
    text-indent: 5px;
}

.box-input:focus {
    outline: none;
    border-color:#5c7186;
}

.success {
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.success a {
    text-decoration: none;
    color: #58aef7;
    font-size: 0.75em;
}

a.votes {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
}

.index {
    border-bottom: 1px solid #aaa;
    text-align: center;
    color: white;
}

.result {
    text-align: center;
    color: white;
}

.result a {
    text-decoration: none;
    color: #b6f548;
}

.result h3 {
    color: #fa5f5f;
}

p.errorMessage {
    text-align: center;
    background-color: #bd0707;
    border: #bd0707 1px solid;
    padding: 5px 5px;
    color: #FFFFFF;
    border-radius: 3px;
}

.blank_row {
    height: 10px;
    background-color: #FFFFFF;
}

div {
    text-align: center;
}

.left {
    align-self: flex-start;
}

.overflow {
    overflow-x: auto;
}

.table-container {
    overflow-x: auto;
    width: 100%;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
 }
 
 .table-container2 {
    overflow-x: auto;
    display: flex;
    gap: 20px;
}

.table-container table {
    margin: auto;
}

.table-container2 table {
    margin: auto;
}
  
div.resulats {
    background-color: #FFFFFF;
}

table {
    background-color: #c98888;
    align-content: center;
    /* margin: auto; */
}

table.t1 {
    border-spacing: 0px;
    border-collapse: collapse;
    border: 0.5px solid #c98888;
}
/* table.left {
    margin-left:5px;
    margin:initial;
} */
    
table.votes {
    border-width: 0pt;
}

table.sticky td:first-child, th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
}

table.sticky td:nth-child(2), th:nth-child(2) {
    position: sticky;
    left: 30px;
    z-index: 2;
}

table.sticky td:nth-child(n+3), th:nth-child(n+3) {
    position: sticky;
    left: 70px;
    z-index: 1;
}

/* Appliquer une largeur minimale de 100px à toutes les colonnes des tableaux avec la classe "table-special" */
/* table.classement th, table.classement td {
  min-width: 20px;
} */

.minwidth69 {
    min-width: 69px;
}

.minwidth35 {
    min-width: 35px;
}

.minwidth50 {
    min-width: 50px;
}

tr {
    background:#313131;
    padding:0cm 0cm 0cm 0cm;
}

td {
    border: 0.5pt solid black;
    color: white;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

td.nom {
    border:none;
    background-color: #252631;
    color: white;
}

td.nom2 {
    background-color: #252631;
    color: white;
    max-width: 7ch;
}

td.bonus {
    background-color: #f32828;
    color: white ;
}

td.res {
    background-color: #e8e4f1;
    color: black;
    border: none;
}

td.score2 {
    background-color: #9999ff;
    color: white;
}

td.impair {
    border:none;
    background-color: #eedea0;
    color: black;
}

td.scores.impair1 {
    background-color: #eedea0;
    color: black;
}

td.pair {
    border:none;
    background-color: #9999ff;
    color: black;
}

td.equipe {
    max-width: 11ch;
    min-width: 11ch;
    overflow:hidden;
    text-align: left;
}

select {
    font-size: 0.75em;
}

select.submit {
    font-size: 0.75em;
}

input.bonus {
    font-size: 0.75em;
}

input.bonus_bon {
    background-color: #599f59;
}

input.submit {
    font-size: 0.75em;
}

input.inherit{
    font:inherit;
    font-size: inherit;
}

input.chiffre {
    width: 6em;
  }

.text-center {
    text-align: center !important;
}

.container {
    flex-grow: 1;
    margin: 20px;
}

.fitcontent {
    width: fit-content;
}

.display {
    display: contents;
}

span.boxgreen {
    background: green;
    color: white;
}

span.boxred {
    background: red;
    color: white;
}

span.contour {
    background-color: #DF3F3F;
    text-align: center;
    padding: 2px;
    border-radius: 5px;
    font-weight: bold;
}

span.green {
    color: #599f59;
}

span.red {
    color: #db6b6b;
}

span.white {
    color: #ffffff;
}

span.space {
    padding-right: 10px;
}

iframe {
    border: 1px solid black;
    width: 110%;
    height: 95%;
    position: absolute;
}

.noborder {
    border: none;
    border-collapse: collapse;
    background-color: #1c242d;
}

.paragraphe{
    text-align: left;
    font-size: 0.8em;
}

.blanc{
    background-color: white;
}

/* ----------------------------------- scores ------------------------------------ */
table.scores {
    background-color: #FFFFFF;
    border-width: 0pt;
}

td.scores {
    color: black;
    white-space: nowrap;
}

td.scores.border {
    border-style: none;
}
  
td.scores.impair {
    background-color: #eedea0;
}
  
td.scores.pair {
    background-color: #9999ff;
}

td.scores.exact {
    background-color: #0a790a;
    color: white;
}

td.scores.bon {
    background-color: #41e04f;
    color: white;
}

td.scores.mauvais {
    background-color: #ff2626;
    color: white;
}

td.scores.pair.equipe, td.scores.impair.equipe {
    max-width: 13ch;
    min-width: 13ch;
    overflow:hidden;
}

td.scores.nom {
    background-color: #252631;
    color: white;
    max-width: 6ch;
    min-width: 6ch;
    overflow: hidden;
}

.limit1 {
    max-width: 6ch;
    min-width: 6ch;
    overflow: hidden;
}

td.scores.equipevide {
    background-color: #ffffff;
}

td.scores.score {
    background-color: #2b90ca;
    color: white;
}

td.scores.bonus {
    background-color: #4a98db;
    color: white ;
}

td.chute, span.chute {
    background-color: #ff0000;
    color: white;
}
td.stagnation, span.stagnation {
    background-color: #eedea0;
    color: black;
}
td.progression, span.progression {
    background-color: #17ff0f;
    color: black;
}

td.nbmatchsjoues {
    background-color: #a0e599;
    color: black;
}

td.nbbonsres {
    background-color: #41e04f;
    color: black;
}

td.nbscoresexacts {
    background-color: #0a790a;
    color: white;
}

td.nbmauvaisscores {
    background-color: #ff2626;
    color: white;
}

td.pointsenjouant {
    background-color: #9999ff;
    color: white;
}

td.pointssansjouer {
    background-color: #eedea0;
    color: black;
}

td.moyennepoints {
    background-color: #9348d1;
    color: white;
}

td.nbbonus {
    background-color: #f5971d;
    color: black;
}

td.totalbonus {
    background-color: #eedea0;
    color: black;
}

td.nomclassement,
td.nomclassementj {
    color: white;
}

th.nomclassement,
td.nomclassement {
    background-color:black;
    
}

th.nomclassement  {
    font-size: 0.75em;
    font-family: monospace;
}

th.nomclassement a {
    color: inherit;
    text-decoration: none;
}

td.nomclassementj {
    background-color: #1b67d8;
}

.border1 {
    border: 0.5px solid #c98888;
}

.font1 {
    font-family: monospace;
}

.font2 {
    font-size: 0.75em;
}

.formulaire {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

input.text {
    width: 100%;
}

textarea.text {
    width: 100%;
}

.titre {
    font-weight: bold;
    margin: 0;
    text-align: center;
  }

.texte {
    text-align: left;
    font-size: 80%;
}

.texte.normal {
    font-size: 100%;
}

.vert {
    color: #b6f548;
}

.cadre-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cadre {
    padding: 20px;
    border: 2px solid #fff;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    line-height: 1.5;
    margin: 0px 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Ajoute une barre de défilement si le contenu dépasse la hauteur maximale */

}

.lien-sans-style {
    color: inherit;
    text-decoration: none;
  }

@media screen and (orientation: portrait) {

    .table-container2 {
        width: 100%;
    }
    /* body {
        font-size: 3em;
    } */
    
    /* .box {
        width: 90%;
    } */

    table.table2 {
        font-size: 1.25em;
    }

/*     table.scores2 {
        width: 60%;
    } */

    .ligne_mob1 {
        background-color: #4f999f;
        color:white;
    }

    .ligne_mob2 {
        background-color:#b69b68;
        color: white;
    }

    td.equipe {
        width: fit-content;
        font-size: 0.8em;
    }

    td.equipe1 {
        text-align: right;
    }

    td.equipe2 {
        text-align: left;
    }

    td.score {
        width: 1em;
    }

    input.submit {
        text-align:center;
    }

    .index {
        border-bottom: 3px solid #aaa;
    }

    td.scores.nom {
        max-width: 5ch;
        min-width: 5ch;
    }

    td.scores.pair.equipe, td.scores.impair.equipe {
        max-width: 11ch;
        min-width: 11ch;
        overflow:hidden;
    }

    .box {
        width: 100%;
    }
}