/* 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 {
    font-family: 'garamond',serif;
    font-variant: small-caps;
    color: #48331C;
    font-size: 1.5em;
}
#panelRules h3 {
    font-size: 1.2em;
}

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

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

.rules .setup {
    float: left;
    margin-right: 1em;
    width: 50%;
 }

.rules .variant {
    background-color:white; 
    padding:15px;
    border-radius:8px;
 }


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

    border-radius: 8px;
    background: #634E3720;
}
#panelRules .flexbox {
    flex: 0 0 95%;
}
.rules .flexbox.column {
    flex-direction: column;
}

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

.rules .flexbox.playerturn .fleximage {flex: 0 0 10%;}

.rules .flexbox .flextext {
    flex: 1;
    align-items: center;
    display: flex;
}
.rules .flexbox .flextext.header {
    flex: 0 0 15%;
    justify-content: center;
    font-weight: bold;
}
#panelRules .flexbox .flextext.header {flex: 0 0 20%;}


