/* 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 */

@font-face {
  font-family: 'SourGummy';
  src: local('SourGummy'), 
       url('/netimages/css/fonts/sour-gummy-v3-latin-regular.woff2') format('woff2'); 
}

.rules .cover {
    text-align: center
}

.rules h1, .rules h2, .rules h3 {
    font-family: 'SourGummy',serif;
    color: #1F5F91;
    font-size: 1.5em;
}
#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 h4 {
    font-family: 'SourGummy',serif;
    color: #1F5F91;
}


.rules table, .rules td, .rules th {
    padding:0.5em;
    border: thin solid;
 }

.rules .numberofcards {
    float: right;
    width: 50%;
    margin-left: 1em;
    display: block;
    background-color: #1F5F9130;
    padding: 0.5em;
    border-radius: 8px;
}    
.rules .numberofcards img {
    float: right;
    height: 12em;
}   
.rules .colourofcards {
    width: 40%;
    display: block;
    background-color: #1F5F9130;
    padding: 0.5em;
    border-radius: 8px;
}    
.rules .numberofcards img {
    height: 12em;
}   

.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%;}


