* {
    margin: 0;
    padding: 0;
    font-weight: 400;
}

@font-face {
    font-family: fukaiFont;
    src: url(BankGothic\ Bold.ttf);
}

/* couleur rouge du logo #c00319*/

main {
    display: flex;
    background-image: url(backgroundMain.png);
    background-size: cover;
    background-repeat: no-repeat;
}

#texteIntroAide {
    margin-bottom: 2%;
    margin-top: 2%;
}

#navigation {
    background-color: white;
    background-image: url(background.webp);
    background-position: bottom 0px left 0px;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    height: 100vh;
    width: 20vw;
    max-width: 400px;
}

.mainBlock {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: auto;
}

#logo {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 5%;
    image-rendering: crisp-edges;
}

#imageIntro {
    width: 80%;
    max-width: 800px;
    margin-bottom: 2%;
}

#intro {
    margin-left: 10%;
    margin-right: 10%;
    font-family: fukaiFont;
    text-align: center;
    font-size: 1em;
}

.navSeparator {
    width: 85%;
    background-color: #c00319;
    margin-top: 5%;
    margin-bottom: 5%;
    margin-left: auto;
    margin-right: auto;
}

#imageEnd {
    width: 100%;
}

#navBar {
    max-height: 60vh;
    overflow-y: auto
}

li {
    margin-bottom: 5%;
}

.menuLink {
    position: relative;
    text-decoration: none;
    font-size: large;
    font-family: fukaiFont;
    color: black;
}

.menuLink:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #c00319;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

ul {
    list-style-type: none;
}

.menuLink:hover:before {
    visibility: visible;
    transform: scaleX(1);
}

.menuLink:hover {
    color: #c00319;
}

.subMenuLink {
    width: 100%;
    position: relative;
    text-decoration: none;
    margin-bottom: 2px;
    font-size: larger;
    font-family: fukaiFont;
    color: rgb(255, 255, 255);
    background-color: #79735f;
}

.subMenuLink a {
    color: white;
    text-decoration: none;
}

.subMenuLink:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #c00319;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.subMenuLink:hover:before {
    visibility: visible;
    transform: scaleX(1);
}

.subMenuLink:hover {
    background-color: #c00319;
}

#logoIntro {
    max-width: 400px;
    width: 75%;
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 2%;
    margin-bottom: 2%;
}

#introMain {
    font-family: fukaiFont;
    font-size: large;
    margin-bottom: 2%;
}

h3 {
    width: 90%;
    font-family: fukaiFont;
    font-size: large;
    margin: 3%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-family: fukaiFont;
    font-size: xx-large;
    margin-top: 2%;
    text-decoration: underline 2px;
}

h4 {
    font-family: fukaiFont;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

p {
    width: 90%;
    font-family: Cambria;
    margin-top: 3%;
    margin-bottom: 3%;
    font-weight: normal;
    font-size: medium;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.linkSysteme {
    position: relative;
    font-family: fukaiFont;
    color: #c00319;
    left: 20%;
}

.linkSysteme:hover {
    color: #8f6e72;
}

.imageIntroduction {
    height: 300px;
    margin-top: 5%;
}

/* width */

::-webkit-scrollbar {
    width: 15px;
}

/* Track */

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */

::-webkit-scrollbar-thumb {
    background: rgb(146, 150, 128);
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
    background: rgb(94, 95, 78);
}

.subTitle {
    font-family: fukaiFont;
    font-size: larger;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

label {
    font-family: fukaiFont;
    font-size: larger;
}

select {
    font-family: fukaiFont;
    font-size: large;
}

.buttonGenerate {
    font-family: fukaiFont;
    padding: 10px;
    font-size: large;
    background-color: wheat;
    color: rgb(31, 31, 31);
    border: solid;
    border-color: rgb(180, 166, 140);
}

.buttonGenerate:hover {
    background-color: rgb(248, 243, 234);
    color: rgb(0, 0, 0);
    cursor: pointer;
}

#navBarSystemeButton {
    color: #79735f;
    margin-left: 3px;
    font-size: small;
    cursor: pointer;
}

#navBarSystemeButton:hover {
    color: #c00319;
}

.diceImage {
    max-width: 80px;
    max-height: 80px;
    min-width: 10px;
    min-height: 10px;
    margin-bottom: 5%;
    cursor: pointer;
}

.diceImageChoosen {
    max-width: 80px;
    max-height: 80px;
    min-width: 10px;
    min-height: 10px;
    margin-bottom: 5%;
    cursor: pointer;
}

.diceImageText {
    padding: 8px;
    width: fit-content;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    border-style: solid;
    border-color: #4c5243;
}

.diceImageText:hover {
    background-color: #4c5243;
    color: wheat;
    cursor: pointer;
}

#diceDiv {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.diceImageDiv {
    flex-basis: 12%;
}

#listOfDice {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#jetDice {
    margin-top: 2%;
    display: none;
}

#refreshDice {
    display: none;
}

#refreshDice:hover {
    color: white;
    background-color: #77464c;
}

#bonusDice {
    margin-right: 2%;
    display: none;
}

#malusDice {
    margin-left: 2%;
    display: none;
}

#details {
    display: none;
}

#showDiceDiv {
    margin-top: 3%;
}

#diceList {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#choosenDice {
    margin-top: 2%;
    margin-bottom: 2%;
}

#vosDes {
    margin-top: 2%;
    margin-bottom: 2%;
}

#lastLinkSysteme {
    padding-bottom: 5%;
}

.divPresentationGauche {
    width: 500px;
    background-color: rgb(236, 214, 184);
    border-radius: 20px;
    padding-bottom: 3%;
    padding-top: 1%;
    margin-bottom: 2%;
    margin-left: auto;
    margin-right: auto;
}

.divPresentation {
    width: 90%;
    background-color: rgb(236, 214, 184);
    border-radius: 20px;
    padding-bottom: 3%;
    padding-top: 1%;
    margin-bottom: 2%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.divPresentation h3 {
    margin: 0;
}

.divPresentation p {
    margin: 1%;
}

.divPresentation table {
    width: 90%;
}

.titreDivPresentation {
    font-size: large;
    text-decoration: underline;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    font-family: fukaiFont;
}

table tr th, table tr td {
    border-right: 2px solid;
    border-bottom: 2px solid;
    padding: 5px;
    border-color: black;
}

table tr th:first-child, table tr th:last-child {
    border-top: solid 2px;
    border-color: black;
    ;
}

table tr th:first-child, table tr td:first-child {
    border-left: 2px solid;
    border-color: black;
}

table tr th:first-child, table tr td:first-child {
    border-left: 2px solid;
    border-color: black;
}

table tr th {
    border-top: solid;
    background: rgb(145, 135, 118);
    color: white;
    font-size: 120%;
    border-top-color: black;
}

tr {
    background-color: rgb(253, 250, 231);
}

table.Info tr th, table.Info tr:first-child td {
    border-top: 2px solid;
    border-color: black;
    ;
}

/* top-left border-radius */

table tr:first-child th:first-child, table.Info tr:first-child td:first-child {
    border-top-left-radius: 6px;
}

/* top-right border-radius */

table tr:first-child th:last-child, table.Info tr:first-child td:last-child {
    border-top-right-radius: 6px;
}

/* bottom-left border-radius */

table tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}

/* bottom-right border-radius */

table tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}

.tableHead{
    font-size:medium;
}

.flexTable {
    display: flex;
    flex-wrap: wrap;
}

.flexTableChara {
    display: flex;
    flex-wrap: wrap;
}

.flexTableChara p {
    font-size: medium;
}

.talentDiv .tablesDiv {
    flex-basis: 50%;
}

.talentDiv p {
    flex-basis: 75%;
}

.talentDiv {
    background-color: rgb(253, 246, 232);
    border-radius: 20px;
    width: 90%;
    flex-basis: 25%;
    padding-left: 2%;
    padding-right: 2%;
    padding-bottom: 2%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1%;
}

.classePersonnage {
    font-family: fukaiFont;
    background-color: rgb(236, 214, 184);
    border-style: solid;
    border-color: rgb(150, 136, 117);
    width: fit-content;
    flex-basis: 12%;
    padding-top: 1%;
    padding-bottom: 1%;
    border-right-width: 0;
}

.classePersonnage:hover {
    background-color: rgb(150, 136, 117);
    color: white;
    cursor: pointer;
}

#explorateurDiv {
    display: none;
}

#fermierDiv {
    display: none;
}

#marchandDiv {
    display: none;
}

#nobleDiv {
    display: none;
}

#piloteDiv {
    display: none;
}

#savantDiv {
    display: none;
}

#soldatDiv {
    display: none;
}

#servicesDiv {
    display: none;
}

#armementsDiv {
    display: none;
}

#vetementsDiv {
    display: none;
}

#materiauxDiv {
    display: none;
}

#animauxPlantesDiv {
    display: none;
}

#transportsDiv {
    display: none;
}

#diversDiv {
    display: none;
}

#indexDiv {
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#index1 {
    flex-basis: 45%;
}

#index2 {
    flex-basis: 10%;
    margin-top: auto;
    margin-bottom: auto;
}

#index3 {
    flex-basis: 45%;
}

#testDiv {
    display: none;
}

#oppositionDiv {
    display: none;
}

#precisionDiv {
    display: none;
}

#concentrationDiv {
    display: none;
}

#conditionDiv {
    display: none;
}

#voyageDiv {
    display: none;
}

#divPlayerGeneratorForm {
    max-width: 1000px;
    width: 90%;
    background-color: wheat;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2%;
    padding-bottom: 2%;
}

#formPlayerGenerator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

.formInput {
    border-style: solid;
    border-color: rgb(184, 159, 112);
    height: 25px;
    border-radius: 5px;
    font-family: fukaiFont;
    font-size: 20px;
    flex-basis: 49%;
    margin-bottom: 2%;
}

.formInput:focus {
    outline: none;
    border-color: rgb(83, 69, 44);
}

.formLabel {
    text-align: left;
    flex-basis: 49%;
}

.playerCharaSelect {
    border-width: 2px;
    border-radius: 5px;
    border-color: rgb(184, 159, 112);
    flex-basis: 49%;
    margin-bottom: 2%;
    height: 25px;
}

.playerCharaSelect:focus {
    outline: none;
    border-color: rgb(83, 69, 44);
}

#playerAttributeRadioLabel {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 2%;
    margin-top: 2%;
}

input[type="radio"] {
    top: 5px;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    border-style: solid;
    border-color: #444;
    cursor: pointer;
    display: inline-block;
    height: 20px;
    margin-right: 15px;
    position: relative;
    width: 20px;
    -webkit-appearance: none;
}

input[type="radio"]:after {
    background-color: rgb(143, 143, 143);
    border-radius: 25px;
    content: '';
    display: block;
    height: 8px;
    left: 4px;
    position: relative;
    top: 4px;
    width: 8px;
}

input[type="radio"]:checked:after {
    background-color: #c00319;
}

#playerNameLabelDiv {
    background-color: rgb(114, 99, 72);
    color: white;
    border-style: solid;
    border-color: black;
    width: 300px;
    display: none;
    position: fixed;
    font-size: medium;
}

.pdfLink {
    font-family: fukaiFont;
    color: #c00319;
    position: relative;
    text-decoration: none;
}

.pdfLink:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #c00319;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.pdfLink:hover:before {
    visibility: visible;
    transform: scaleX(1);
}

.blockQuestion {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    text-align: left;
}

.question {
    background-color: rgb(236, 214, 184);
    border-style: solid;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.blockQuestion p {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    max-width: none;
}

.answer {
    border-style: solid;
    border-top-style: none;
    background-color: rgb(253, 250, 231);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltiptext {
    font-family: fukaiFont;
    font-size: small;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #555 transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.returnMap {
    font-size: xx-large;
    color: black;
    font-weight: 900;
    background-color: wheat;
    border-style: solid;
    border-color: rgb(73, 66, 52);
}

#navigationMobile {
    display: none;
}

#checkListMJ{
    display: flex;
    flex-wrap: wrap;
    justify-content:space-around;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-style: solid;
    border-radius: 10px;
    border-width:1px;
    background-color: #ece9d6;
    font-size: 12px;
}
.checkboxMJ {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 10px;
    flex-basis: 25%;
}
#helpDisplay{
    display: flex;
    flex-wrap: wrap;
    justify-content:space-around;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-style: solid;
    border-radius: 10px;
    border-width:1px;
    background-color: #c5bfac;
    margin-top: 25px;
    padding: 25px 0;
}
.helpDiv{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    background-color: #ece9d6;
    border-style: solid;
    border-radius: 10px;
    border-width:1px;
    padding: 10px;
    text-align: start;
}
.helpDiv p{
    font-size: medium;
}
@media only screen and (max-width: 1000px) {
    main {
        flex-wrap: wrap;
    }
    #navigation {
        display: none;
    }
    #navigationMobile {
        display: block;
        flex-basis: 100%;
    }
    #logoMobile {
        height: 75%;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .mainBlock {
        flex-basis: 100%;
    }
    /* Style the navigation menu */
    .topnav {
        background-color: #ece9d6;
        position: relative;
        height: 75px;
    }
    /* Hide the links inside the navigation menu (except for logo/home) */
    .topnav #myLinks {
        display: none;
    }
    /* Style navigation menu links */
    .topnav a {
        color: black;
        background-color: #ece9d6;
        text-decoration: none;
        font-size: 20px;
        font-family: fukaiFont;
        display: block;
    }
    .topnav .linkMobile {
        background-color: #ffffff;
    }
    .topnav .linkMobile:hover {
        background-color: #aaa890;
    }
    /* Style the hamburger menu */
    .topnav a.icon {
        background: #ece9d6;
        color: #333;
        display: block;
        position: absolute;
        font-size: 35px;
        right: 0;
        top: 0;
        padding: 18px;
    }
    .active {
        height: 75px;
    }
    .linkMobile {
        padding: 15px 15px;
        text-align: center;
        border-bottom-style: solid;
        border-bottom-color: rgb(114, 99, 72);
    }
    .linkMobile:first-child {
        border-top-style: solid;
        border-top-color: rgb(114, 99, 72);
    }
    #indexDiv{
        flex-direction: column;
        margin-left: 50px;
        margin-right: 50px;
    }
    #index2{
        margin-bottom: 30px;
    }
    #logoIntro{
        margin-left: 0;
        margin-right: 0;
    }
}

#dorkDiv, #verDiv, #frontalierDiv{display:none}