/* 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 and ingame display 
   #rulesContainer #rules: ingame rules display only 
   #sidebarPanel #rules: ingame rules display on right side only 
   #sidebarBottom #rules: ingame rules display at bottom only 
   .ui-popup .rules: popup with rules extract only */

@font-face {
  font-family: 'SourGummy';
  src: local('SourGummy'),
       url('images/fonts/sour-gummy-v3-latin-regular.woff2') format('woff2');
}

/* cover picture only in main rules */
#rules .cover {    width: 50%;    margin-left: 25%;}
#rulesPage .cover {    width: 30%;    margin-left: 35%;}
#panelRules .cover {    display: none;}


.rules h1, .rules h2, .rules h3 {
    color: #1F5F91;
    font-size: 1.5em;
    font-family: var(--heading-font);
}
#panelRules h3 {
    font-size: 1.2em;
}

.rules h1 {
    background-color: #1F5F91;
    font-size: 2.5em;
    color: white;
}
#panelRules h1 {
    font-size: 2em;
}

.rules h2 {
    font-size: 2em;
}
#panelRules h2 {
    font-size: 1.5em;
}

.rules h3 {
    font-weight: normal;
}


.rules p {line-height: 1.2em;}

/* sidebar or not sidebar */
#panelRules .nosidebar {    display: none;}
.ui-popup .rules .nopopup {    display: none;}
.rules .sidebaronly {    display: none;}
#panelRules .sidebaronly {    display: inherit;}


/* Examples */
.rules .example {
   font-style: italic;
   background: #634E3720;
}
#panelRules .example {
    display: none;
}


.rules .flexgrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5em;
    margin-bottom: 1em;
}
@media (max-width: 768px) {
    .rules .flexgrid.mobile { flex-direction: column; /* columns below each other */  }
}

.rules .flexbox {
    flex: 0 0 calc(50% - 1em);
    box-sizing: border-box;
    gap: 1em;
    padding: 0.5em;
    border-radius: 8px;
}
#panelRules .flexbox {
    flex: 0 0 95%;
}
@media (max-width: 768px) {
    .flexbox {    flex: 0 0 95%;}
}

.rules .components .flexbox { display: flex; flex: 1;     background: #634E3720;     align-items: center;}
.rules .components .flexbox.wide {    flex: 2; }

.rules .components .flexbox img {float: right; height: 6em;} 

