/* 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 */
   
.rules .cover {
    text-align: center
}

.rules h1, .rules h2, .rules h3, .rules h4, .rules h5 {
    font-family: 'garamond',serif;
    font-variant: small-caps;
    color: #460307;
    font-size: 1.5em;
}
#panelRules h3, #panelRules h4, #panelRules h5 {
    font-size: 1.2em;
}

.rules h1 {
    background-color: #C6A17F;
    font-size: 2.5em;
}
#panelRules h1 {
    font-size: 2em;
}

.rules h2 {
    font-size: 2em;
}
#panelRules h2 {
    font-size: 1.5em;
}

.rules h3 {
    background-color: #652112;
    color: white;
}


.rules .flexgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
.rules .flexbox {
    display: flex;
    flex: 1 0 calc(50% - 1em);
    box-sizing: border-box;
    gap: 1em;
    padding: 0.5em;

    border-radius: 8px;
    background: #D7B49050;
}
#panelRules .flexbox {
    flex: 0 0 95%;
}

.rules .flexbox .fleximage {
    flex: 0 0 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.rules .flexbox .fleximage img {
    width: 100%;
    height: auto;
}

.rules .flexbox.playerturn .fleximage {flex: 0 0 10%;}
#panelRules .flexbox.playerturn .fleximage {flex: 0 0 25%;}
.rules .flexgrid.tiles .flexbox .fleximage img {
    width: auto;
    height: 7em;
}
.rules .flexbox.tiles .fleximage img {
    width: auto;
    height: 7em;
}

.rules .flexbox .flextext {
    flex: 1;
}

.rules .gameboard {     float: left;     margin-right: 2em;    width: 45%; }
.rules .regioscoring {     float: right;     margin-left: 1em;    width: 6em; }
.rules .bigbonus {     float: left;     margin-right: 1em;    width: 4em; }
.rules .smallbonus {     float: left;     margin-right: 1em;    width: 3em; margin-left: 1em;}

