:root {
    --color-link: #900;
    --color-link-hover: #ffc;
    --color-link-troll: #00d;
    --color-link-troll-inactif: #008040;

    --color-nearly-dark: #666;
    --color-dark: #333;
    --color-dark-alternative: #800080;
    --color-light: #ffc;
}

.d3::after {
    content: ' D3';
}

.d6::after {
    content: ' D6';
}

.gg::after {
    content: " GG'";
}

.pc::after {
    content: ' %';
}

.pi::after {
    content: ' PI';
}

.point::after {
    content: ' points';
}

.pv::after {
    content: ' PV';
}

.vue_unit::after {
    content: ' cases';
}

td.gg,
td.pc {
    text-align: right;
}

.collapsible-wrap,
#footer1,
nav.mh_h,
table.default.large,
.mh_tdborder,
.mh_tdborder_fo,
#suivants {
    margin: 0;
    width: 100%;
}

a, button {
	cursor: pointer;
}

body a {
    color: var(--color-link);
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

a.monstre,
a.monstre:active,
a.monstre:link,
a.monstre:visited {
    color: var(--color-link);
    font-weight: bold;
    text-decoration: none;
}

a.troll,
a.troll:active,
a.troll:link,
a.troll:visited {
    color: var(--color-link-troll);
    font-weight: bold;
    text-decoration: none;
}

a.troll.inactif,
a.troll.inactif:active,
a.troll.inactif:link,
a.troll.inactif:visited {
    color: var(--color-link-troll-inactif);
    font-weight: normal;
}

.additionnal-info {
    background-color: inherit;
    color: var(--color-dark-alternative);
    white-space: nowrap;
}

.avertissement {
    background-color: #eee;
    color: red;
    font-style: italic;
    padding: 2px;
}

.avertissement em,
.avertissement i {
    font-style: normal;
}

.blason-small {
    height: 100px;
}

blockquote {
    font-style: italic;
    padding-left: 30px;
}

body .view h1 {
    box-sizing: border-box;
    font-size: 2em;
    font-weight: bold;
    line-height: 1.1em;
    margin: .5em auto;
    padding: .5em;
    text-align: center;
}

body .view h2,
body .view h3 {
    text-align: center;
}

a.bullet-green:link,
a.bullet-orange:link,
a.bullet-purple:link,
a.bullet-red:link,
span.bullet-green,
span.bullet-orange,
span.bullet-purple,
span.bullet-red {
    background-position: center center;
    height:14px; width: 14px;
    display: inline-block;
    color: transparent;
}

span.bullet-green,
a.bullet-green:link {
    background-image: url(/mountyhall/MH_Packs/packMH_parchemin/bullet/bullet_green.jpg);
}
.bullet-green {
    list-style-image: url(/mountyhall/MH_Packs/packMH_parchemin/bullet/bullet_green.jpg);
}

span.bullet-orange,
a.bullet-orange:link {
    background-image: url(/mountyhall/MH_Packs/packMH_parchemin/bullet/bullet_orange.jpg);
}
.bullet-orange {
    list-style-image: url(/mountyhall/MH_Packs/packMH_parchemin/bullet/bullet_orange.jpg);
}

span.bullet-purple,
a.bullet-purple:link {
    background-image: url(/mountyhall/MH_Packs/packMH_parchemin/bullet/bullet_purple.jpg);
}
.bullet-purple {
    list-style-image: url(/mountyhall/MH_Packs/packMH_parchemin/bullet/bullet_purple.jpg);
}

span.bullet-red,
a.bullet-red:link {
    background-image: url(/mountyhall/MH_Packs/packMH_parchemin/bullet/bullet_red.jpg);
}
.bullet-red {
    list-style-image: url(/mountyhall/MH_Packs/packMH_parchemin/bullet/bullet_red.jpg);
}

ul.bullet-green:has(li:only-child),
ul.bullet-orange:has(li:only-child),
ul.bullet-purple:has(li:only-child),
ul.bullet-red:has(li:only-child) {
    margin: 0
}

.collapsible-wrap {
    border-radius: 7px;
    margin: .2em auto;
}

.collapsible-wrap nav {
    float: right;
}

.collapsible-wrap .toggle {
    display: none;
}

.collapsible-wrap .toggle:checked + .lbl-toggle {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.collapsible-wrap .toggle:checked + .lbl-toggle::before {
    transform: rotate(90deg) translateX(-3px);
}

.collapsible-wrap .toggle:checked + .lbl-toggle + .collapsible-content {
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    max-height: max-content;
}

.collapsible-wrap .lbl-toggle {
    border-radius: 7px;
    cursor: pointer;
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    padding: .7rem;
    transition: all 0.25s ease-out;
}

.collapsible-wrap .lbl-toggle::before {
    content: " ";
    display: inline-block;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid currentColor;
    margin-left: .7rem;
    margin-right: .7rem;
    transform: translateY(-.2rem);
    transition: transform .2s ease-out;
}

.collapsible-wrap .lbl-toggle h3 {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.collapsible-wrap h3 {
    font-size: 1.3rem;
    font-weight: bold;
}

.collapsible-wrap .collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease-in-out;
}

.collapsible-wrap .collapsible-content .collapsible-content-inner {
    padding: .5em 1em;
}

@media screen and (width < 800px)
{
	.collapsible-wrap .collapsible-content .collapsible-content-inner {
		padding: 1px;
	}
}

hr.divider {
    border: none;
    clear: both;
    margin: 0;
}

.dp {
    background-color: #99CCFF;
    text-align: center;
}

.edito {
    border: 1px solid black;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    text-align: left;
    width: 90%;
}

.edito label {
    font-size: larger;
    font-weight: bold;
}

.edito a.submit {
    display: inline-block;
    float: right;
    width: auto;
}

.edito u {
    text-align: left;
    margin-left: 20%;
}

.edito .date {
    text-align: right;
    font-size: x-small
}

.edito-navigation {
    margin: 10px auto;
    width: 90%;
}

#equip-page h3 {
    margin-bottom: 0.3em;
}

#equip-page .cm {
    cursor: pointer;
}

#equip-page .data-title-equip::before {
    content: 'Actions d\'\00E9quipement :';
}

#equip-page .data-title-champi::before {
    content: 'Actions de champignon :';
}

#equip-page .data-title-mat::before {
    content: 'Actions de mat\00E9riau :';
}

#events .non-visible {
    color: var(--color-nearly-dark);
    font-size: smaller;
    font-style: italic;
}

#events .description p {
    margin: 0;
}

#favoris h3 {
    text-align: center;
}

.fleche,
a.fleche,
a.fleche:active,
a.fleche:hover,
a.fleche:link,
a.fleche:visited,
button[type=submit].fleche {
    border: none;
    cursor: pointer;
    display: inline-block;
    width: 37px;
    height: 37px;
}


#footable-filter-form-container {
    margin: 5px;
}


form .form-group {
    clear: both;
}

form fieldset {
    margin: 15px auto;
}

form input {
    accent-color: var(--color-link);
}

form select option:checked, form select option[selected] {
    background-color: var(--color-link);
    color: var(--color-link-hover);
}

form .long input[type=radio] {
    clear: left;
}

form .long input[type=radio],
form .long label {
    float: left;
    margin: .5em .2em;
}

form .long label {
    max-width: 90%;
}

form .afterlong {
    clear: left;
}

h3 {
    font-size: 1.3em;
}

.horizontal-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-link) rgba(153, 0, 0, 0.15);
}

.icon-checkbox-select-all {
    background-color: var(--color-link);
    color: transparent;
    display: inline-block;
    mask: url(/mountyhall/img/icon/checkbox-select-all.svg) no-repeat;
    width: 16px;
    height: 16px;
}

.icon-checkbox-select-all:hover {
    background-color: var(--color-link-hover);
    color: transparent;
}

.jquery-modal.blocker {
    z-index: 2; /* pour être au-dessus de la recherche de footable */
}

.jquery-modal .modal {
    border-radius: 13px;
    margin: auto;
    max-width: 85%;
}
.jquery-modal .modal a.close-modal {
    top: 1px;
    right: 1px;
}

.level3 dt {
    margin: 1em auto;
}

#login {
    text-align: center;
}

#login .mh_tdtitre,
#login .mh_tdpage {
    border: 1px solid black;
    margin: 10px auto 0;
    width: 75%;
}

#login .mh_tdpage {
    border-top: none;
    min-height: 210px;
    padding: 5px;
    margin-top: 0;
}

#login .mh_tdpage#loginform {
    min-height: auto;
}

#login #home_small {
    float: left;
    padding: 5px;
}

#login #loginform {
    border: 1px solid black;
    margin: 10px auto;
    padding: 5px 10px 10px;
    width: 500px;
}

#login #loginform legend {
    color: black;
    font-size: large;
    font-variant: small-caps;
    font-weight: bold;
}

#login #loginform label {
    float: left;
    font-weight: bold;
    padding: 5px;
    text-align: left;
    width: 200px;
}

#login .ui-input-text {
    padding: .4em;
    font-size: 16px;
}

body table.mailbox tr,
body table.mailbox tr a,
body table.mailbox tr.read,
body table.mailbox tr.read a {
    font-weight: normal;
}

body table.mailbox tr.read a {
    color: var(--color-dark);
    text-decoration: underline;
}

body table.mailbox tr.new {
    background-image: none;
}

body table.mailbox tr.new,
body table.mailbox tr.new a {
    font-weight: bold;
}

body table.mailbox tr.deleted,
body table.mailbox tr.deleted a {
    text-decoration: line-through;
}


.message {
    position: relative;
    display: inline-block;
}
.message .badge {
    position: absolute;
    background: var(--color-light);
    color: var(--color-link);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--color-link);
}


.mh_dropdown3 {
    background-color: #CBC5AD;
    color: var(--color-dark);
}

.page,
.entete,
.mh_tdborder,
table.default th,
table.default td,
table.mh_tdborder th,
table.mh_tdborder td {
    border: 1px solid var(--color-dark);
    padding: 5px;
}

.page,
.entete {
    margin: 5px auto;
}
.compact .page {
    margin: 0 auto;
}
.compact .page + .page {
    border-top: none;
}
.compact .page:first-child {
    margin-top: 5px;
}
.compact .page:last-child {
    margin-bottom: 5px;
}

.mh_tdborder.large,
.mh_tdborder table {
    width: 100%;
}

.mh_tdborder table.jet {
    width: auto;
    margin: 0;
}

table.default,
table.mh_tdborder {
    border: none;
    border-collapse: collapse;
}

table.mh_tdborder tbody th {
    text-align: left;
    vertical-align: top;
}

table.mh_tdborder table th,
table.mh_tdborder table td {
    border: none;
}

table.mh_tdborder caption {
    border-color: var(--color-dark);
    border-style: solid;
    border-width: 1px 1px 0;
    font-size: larger;
    font-weight: bold;
    padding: 5px;
    text-align: center;
}

.monstre-entete {
    border: none;

    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: space-between;
}

.monstre-entete h3 {
    display: inline;
    margin-bottom: 0;
}

.tripot table {
    width: auto
}

.tripot input {
    text-align: center;
}

.play {
    padding-right: 10px;
}

.play h1,
.play h2,
.play .retry {
    text-align: center;
}

.play h4 {
    font-size: 1.2em;
}

.position {
    white-space: nowrap;
}

.profil table {
    width: 100%;
}

.profil th,
.profil td {
    padding: 3px 5px;
    vertical-align: top;
    border-bottom: 1px dotted gray;
}

.radio-toolbar {
    display: grid;
    /* grid-template-columns à définir à l'usage */
    text-align: right;
}

.radio-toolbar div {
    align-self: center;
}

.radio-toolbar label.mh_tdpage {
    border: 1px solid var(--color-dark);
    border-radius: 4px;
    color: var(--color-nearly-dark);
    display: inline-block;
    padding: 2px 6px;
    text-align: right;
    width: 90%;
    height: 100%;
}

.radio-toolbar .n {
    height: 36px;
}

.radio-toolbar label.mh_tdpage:has(.suffix) {
    line-height: .9em;
}

.radio-toolbar label.mh_tdpage .suffix {
    font-size: xx-small;
}

.radio-toolbar input[type="radio"]:checked + label {
    border-width: 2px;
    color: var(--color-dark);
    font-weight: bold;
    padding: 1px 5px;
}

.radio-toolbar input[type="radio"] {
    position: absolute;
    margin: 5px 0 0 3px;
}

.radio-toolbar .n input[type="radio"] {
    margin: 10px 0 0 3px;
}

select {
    background-color: var(--color-light);
    color: var(--color-dark);
}

select option {
    padding: 1px;
}

.spanaide {
    position: relative;
}

.spanaide .spanpopup {
    visibility: hidden;
    width: 300px;
    padding: 5px 0;
    border: solid 1px;
    position: absolute;
    z-index: 1;
    color: var(--color-dark);
    background-color: var(--color-light);
}

.spanaide:hover .spanpopup {
    visibility: visible;
}

html body td a.suivant:link {
    font-weight: normal;
}

#suivants {
    border: 1px solid var(--color-dark);
}
#suivants .mh_tdborder {
    margin: .1em auto;
    width: 99%;
}
#suivants .mh_tdtitre_fo {
    border: none;
}

.mh_tdtitre_fo h3 {
    text-align: center;
}

.talent-baroufle {
    margin: auto;
    width: max-content;
}

.talent-baroufle div {
    overflow: hidden;
    width: 100%
}

.talent-baroufle div label {
    display: inline-block;
    float: left;
}

.talent-baroufle div select {
    display: inline-block;
    float: right;
}

textarea {
    width: 100%;
}

.has-tooltip {
    border-bottom: 1px dashed var(--color-dark);
    cursor: help;
    position: relative;
}
.has-tooltip .the-tooltip {
    color: var(--color-link-hover);
    background-color: var(--color-dark);
    padding: 15px;
    text-align: center;
    /* white-space: nowrap; à analyser ? */

    display: inline-block;
    position: absolute;
    top: calc(100% + 1em);
    right: 0;
    z-index: 100;

    scale: 0;
    opacity: 0;
    transition: all .3s ease-in-out;
}
.has-tooltip .the-tooltip:after {
    /* triangle decoration */
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid transparent;
    border-bottom: 10px solid var(--color-dark);
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    bottom: auto;
    margin-left: -10px;
    width: 0;
    height: 0;
}
.has-tooltip .the-tooltip.bottom {
    top: auto;
    bottom: calc(100% + 1em);
}
.has-tooltip .the-tooltip.bottom:after {
    border-top: 10px solid var(--color-dark);
    border-bottom: 10px solid transparent;
    top: auto;
    bottom: -20px;
}
.has-tooltip:hover .the-tooltip {
    scale: 1;
    opacity: 1;
}

.trollcante-error {
    position: fixed;
    top: 200px;
    left: 100px;
    cursor: pointer;
    /*border: 5px solid red;*/
    background-color: red;
    color: white;
    font-size: xx-large;
    padding: 5px;
}
.trollcante-error div {
    text-align: right;
    width: 100%;
}
.trollcante-menu {
    margin: 0 auto;
    text-align: center;
}
.trollcante-menu > div {
    border: 0 dashed var(--color-dark);
    display: inline-block;
    padding: .5rem;
    width: auto;
}
.trollcante-menu > div:first-child {
    border-right-width: 1px;
}
.trollcante-menu > div:last-child {
    border-left-width: 1px;
}
.trollcante-menu nav.mh_h {
    border: none;
}
.trollcante-menu nav.mh_h li a {
    padding: .5em;
    width: auto;
}
.trollcante-menu h3 {
    margin: 0 auto .5em;
}

fieldset.trolligion {
border: 1px solid var(--color-dark);
float: right;
min-width: 100px;
padding: 10px;
text-align: center;
}

fieldset.trolligion img {
max-height: 100px;
max-width: 100px;
}

.trolligion-troll {
border: 1px solid #666;
float: left;
text-align: center;
margin: 2px;
padding: 10px;
width: 180px;
}

.trolligion-info {
padding-top: 4px;
min-height: 60px;
text-align: left;
}

td .trolligion-troll {
border: none;
}

.trolligion-dieu,
.trolligion-rang {
clear: both;
margin: 15px;
}

#tp,
#vl {
display: flex;
flex-wrap: nowrap;
}

#tp div,
#vl div {
flex-grow: 1;
}

#turnstart .jac {
float: right
}

#turnstart .now {
font-weight: bold;
text-align: center;
}