/* add all special styles used for displaying the rules */
/* .rules: used for all elements loading rules (rules at main site, rules ingame, popup with rules extract
   #rules: div with complete rules used at main site
   #rulesPage: ingame rules page display
   #panelRules: ingame rules sidepanel display
   #popup.rules: popup with rules extract only */


/* add special fonts if wanted */

/* add styles for headers h1-h5 if needed*/

/* cover picture only in main rules */
#rules .cover {    width: 60%;    margin-left: 20%;}
#panelRules .cover {    display: none;}

.rules .content ul {list-style-type: none;}

/* flex style for responsive display */
.rules .flex { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5em; }
@media (max-width: 768px) {
    .rules .flex.mobile { flex-direction: column; /* columns below each other */  }
}
#panelRules .flex.mobile { flex-direction: column; }
.rules .flex .column {    flex: 1; }
.rules .flex .column.wide {    flex: 2; }


/* example variable flex structure putting flexboxes half their wide on wide screen full rules
.rules  .flex.appendix .flexbox { flex: 2 2 23%;  padding:0.5em; padding-right: 1em;}
.rules  .flex.appendix .flexbox img { height:5em; float: left; margin-right: 1em; }
@media (max-width: 1024px) {
    .rules .flex.appendix .flexbox { flex: 2 2 48%; }
}
#panelRules .flex.appendix .flexbox { flex: 2 2 48%; }
*/


/* Examples */
.rules .example { font-style: italic; } /* put your example style here */
#panelRules .example { display: none; } /* examples should not be shown in sidebar */

.rules h1
{
    font-family: "Sour Gummy", sans-serif;
    text-align: center;
    background-color: darkred;
    border: none;
    color: white; /* Farbe*/
    font-size: 2.1em;
    padding: 0px 0px 10px 10px;
    text-shadow: none;
}

.redText {
    color: #FF0000;
}

.redBG {
    background-color: peachpuff;
}

.infoBox {
    border: 2px solid red;
    padding: 4px;
    width: 95%;
    margin: 10px auto !important;
    display: inline-block;
}

.rules .imgLeft {
    float: left;
    width: 8%;
    margin-right: 5px;
}
.rules .imgLeft50 {
    float: left;
    width: 50%;
    margin-right: 5px;
}
.rules .imgLeft20 {
    float: left;
    width: 20%;
    margin-right: 5px;
}
.rules .imgLeft10 {
    float: left;
    width: 10%;
    margin-right: 5px;
}
.rules .imgLeft5 {
    float: left;
    width: 5%;
    margin-right: 5px;
}

.rules .imgRight {
    float: right;
    width: 22.4%;
    margin-left: 5px;
}
.rules .imgRight10 {
    float: right;
    width: 10%;
    margin-left: 5px;
}
.rules .imgRight5 {
    float: right;
    width: 5%;
    margin-left: 5px;
}
.rules .imgRight3 {
    float: right;
    width: 3%;
    margin-left: 5px;
}
.rules.tribesRules img.imgTitle { max-width: 100%; height: auto; }
.rules.tribesRules img.boardSetup { max-width: 80%; height: auto; display: block; margin: 0 auto; }

.rules .arrow {
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform: rotate(-90deg);
    float: left;
    width: 4%;
    margin-right: 5px;
}

.example {
    background-color: #FFFFFF;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 1px;
    display: inline-block;
    margin-top: 2px;
    width: 100%;
    box-sizing: border-box;
}

.whitesqr {
    background-color: #FFFFFF;
    font-weight: bold;
    border: 1px solid black;
    padding-left: 2px;
    padding-right: 2px;
    margin-right: 1px;
    margin-bottom: 2px;
    display: inline-block;
}

.numberedList {
    list-style-type: decimal;
}

.ruleBlock {
    display: inline-block;
    margin-bottom: 10px;
}

.appendixTitle {
    font-size: 1.6em;
    text-align: center;
}

.appendixName {
    margin-top: 5px;
    text-align: center;
    font-weight: bold;
}

.eventBlock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

.eventItem {
    display: flex;
    flex-direction: column;
    align-items: center;  /* horizontal zentrieren */
    text-align: center;
}

.eventDesc {
    text-align: left;
}

/* Keep this plugin's rule layout independent of other games and panel widths. */
.rules.tribesRules { container-type: inline-size; box-sizing: border-box; padding: 14px; background: #faf1de; color: #30261c; font: 15px/1.55 Arial, sans-serif; text-align: left; overflow-wrap: anywhere; }
.rules.tribesRules *, .rules.tribesRules *::before, .rules.tribesRules *::after { box-sizing: border-box; }
.rules.tribesRules h1 { color: #fff6e3; background: #68472f; font: bold 1.35em/1.35 Arial, sans-serif; padding: 10px 12px; margin: 22px 0 12px; border-radius: 6px; text-align: left; }
.rules.tribesRules h1 a:not([href]) { color: inherit; text-decoration: none; }
.rules.tribesRules h2, .rules.tribesRules h3, .rules.tribesRules h4 { color: #523621; line-height: 1.4; margin: 16px 0 7px; }
.rules.tribesRules p { margin: 8px 0 12px; line-height: 1.55; }
.rules.tribesRules ol, .rules.tribesRules ul { padding-left: 22px; margin: 8px 0 14px; line-height: 1.55; }
.rules.tribesRules li + li { margin-top: 5px; }
.rules.tribesRules a[href] { color: #694015; text-decoration: underline; text-underline-offset: 2px; }
.rules.tribesRules a[href]:hover { color: #3e240e; }
.rules.tribesRules a:focus-visible { outline: 2px solid #85551f; outline-offset: 3px; border-radius: 2px; }
.rules.tribesRules .chapter { margin: 18px 0; }
.rules.tribesRules .infoBox, .rules.tribesRules .example { color: #30261c; background: #efe0bb; border: 1px solid #ad8f5d; border-radius: 6px; padding: 10px 12px; line-height: 1.55; }
.rules.tribesRules .example { background: #fffaf0; margin: 8px 0; }
.rules.tribesRules .infoBox { display: block; width: 100%; }
.rules.tribesRules .redText { color: #9b281b; }
.rules.tribesRules .redBG { color: #30261c; background: #f1d9bd; }
.rules.tribesRules img { max-width: 30%; height: auto; }
.rules.tribesRules .eventBlock { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.rules.tribesRules .eventItem { min-width: 0; padding: 10px; background: #fffaf0; border: 1px solid #c5ab7c; border-radius: 6px; }
.rules.tribesRules .eventDesc { line-height: 1.55; margin-top: 8px; }
.rules.tribesRules .hints4Handling { color: #30261c; background: #fffaf0; border: 1px solid #ad8f5d; border-radius: 6px; padding: 10px; }
.rules.tribesRules .hints4Handling div { color: #30261c; background: #efe0bb; margin: 6px 0; padding: 9px; }
.rules.tribesRules .appendix { width: 100%; max-width: 100%; padding: 10px; border-color: #ad8f5d; background: #fffaf0; }
@container (max-width: 560px) {
    .rules.tribesRules .appendix .paragraph { float: none; width: 100%; margin: 8px 0; padding: 8px; }
}

/* Keep the table of contents usable when the rules container is narrow. */
.rules.tribesRules .content .column { min-width: 0; }
.rules.tribesRules .content ul ul { list-style-type: disc; }
@container (max-width: 560px) {
    .rules.tribesRules .content .flex.mobile { flex-direction: column; }
}
