﻿/* 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 */

.rules .appendix .paragraph{
    padding: 10px;
}
#rules .appendix.cards .images img { width: 32%; float: left; margin-right: 0.8em; border-radius: 1em; }
.card_description { float: right; height: auto; width: 59%; padding: 5px 3px; }
.card_description .cost { font-size: .9em;}

#actions_table{
    border-collapse:collapse;
    background-color: rgb(250, 250, 210);

    margin: 5px;
    border: 1px solid;
}
#actions_table th {
    padding: 10px;
}
#actions_table td {
    padding: 10px;
}
tr.border_bottom {
    border-bottom: 1px dashed black;
}
.rules .appendix {
    display: grid;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}
.rules p {
    margin-top: 15px;
}
.rules :not(.itemisation) > div {
    margin-top: 15px;
}
#scoringCards {
    display: flex;
}
#scoringCards {
    flex-wrap: wrap;
}
#scoringCards .card{
    width: 10em;
    margin: 0 .5em;
}

#scoringCards .card img {
    width: 60%;
    padding-left:15%;
}

img.example{
    float: right;
    margin: 5px;
    max-width: 13em;
}
.illustration {
    float: left;
    margin: 5px 15px 5px 5px;
    width: 6em;
}

.rules[showRules=summary] .illustration {
    width: 22%;
}
.rule .hasSummary {
    padding: 15px 0;
    overflow: hidden;
}
.rules[showRules=full] .rule:not(.hasSummary), .rules[showRules=both] .rule:not(.hasSummary) {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 1000;
    padding-right: 40%;
}
.rules .chapter .title {
    background-color: #47657e;
    color: #fcf7d1;
    text-align: center;
    padding: 13px 0px;
}

.rules .subchapter .title {
    color: #47657e;
    background-color: #fcf7d1;
    padding: 3px 0;
    font-size: 1.6em;
    font-weight: bold;
}
.rules .subchapter .title {
    border-top: 2px solid #47657e;
    border-bottom: 2px solid #47657e;
}
.section {
    position: relative;
}
.section, .subchapter, .chapter{
    clear: both;
}

@media (min-width: 30em) {
.description{
    column-count: 2;
}
}
.rules[showRules=both] .summary .example { display: none;  }
.red {
    color: #d40e00;
    font-weight: bold;
}
.yellow {
    color: #dec542;
    font-weight: bold;
}

.exampleText{
    width: 250px;
    float: left;
    font-style: italic;
    margin-bottom: 10px;
}
.tacticalVariant {
    width:100px;
}
.example{
    float: right;
    margin: 5px;
    max-width: 45%;
}
.exampleVert{
    float: right;
    margin: 5px;
    max-width: 30%;
}

.rule .hasSummary .img{
    margin-right: 40% ;
}
.rules a[href] {
    color: #4f4478;
    font-weight: bold;
}
#variant {
    width: 2.5em;
    margin-bottom: 10px;
}

#moveLava img {
    width: 8em;
}
.rules[showRules=full] .gameTitle, .rules[showRules=both] .gameTitle {
    display: none;
}
.cover img{
    width: 90%;
    margin: 30px 0;
}
