/* 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 */


/* Symbiose additions. Keep all theme variables local to the rules container. */
.rules.smRules {
    --primary: #4b8f74;
    --primary-dark: #2f5d4d;
    color: #2f2f2f;
}
.rules.smRules img { max-width: 100%; height: auto; }
.rules.smRules .chapter { margin: 1em 0; }
.rules.smRules h2 { color: var(--primary-dark); border-bottom: 2px solid #dbe6df; padding-bottom: .3em; }
.rules.smRules h3 { color: var(--primary); }
.rules.smRules .column { min-width: 0; }
.rules.smRules .anatomy { width: auto; height: 9em; border-radius: .3em; }
.rules.smRules .mode-illustration { width: 20em; }
.rules.smRules .note { padding: .75em; background: #eef8f2; border-left: 4px solid var(--primary); }
#panelRules .smRules .noSidebar { display: none; }
#panelRules .smRules .chapter { padding: 0; }
