.card {
    border: 2mm solid;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    font-size: 8pt;
    overflow: hidden;
    flex-shrink: 0;
}

.card.rounded-corners {
    border-radius: 4px;
}

.card-content-container {
    padding:2mm;
    padding-top:1mm;
    border-radius: 2mm;
    margin-top:0px;
    background-color: white;
    border-color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    font-size: inherit;
    overflow: hidden;
}

.card-back {
/*     background-color: white; */
    border-radius: 4mm;
    border-color: inherit;
    margin: 3mm;
    flex: 1;
    display: flex;
}

.card-back-inner {
    margin: 3mm;
    border: 1mm solid;
    border-color: inherit;
    border-radius: 4mm;
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.card-back-icon {
    width: 1in;
    height: 1in;
    border-color: inherit;
    background-repeat: no-repeat;
    background-size: contain;
}

.card-back-icon-none {
    background-color: transparent;
}

.card-back-icon-square {
    border: 4mm solid;
}

.card-back-icon-rounded-square {
    border: 4mm solid;
    border-radius: 4mm;
}

.card-back-icon-circle {
    border: 4mm solid;
    border-radius: 50%;
}

.card-header {
    display: flex;
}
.card-header > * {
    flex-grow: 1;
}

.card-title-icon, .card-font-size-icon {
    width: 12mm;
    height: 12mm;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: inherit;
    border-color: inherit;
}
.card-title-icon-container, .card-font-size-icon-container  {
    border-radius: 1mm;
    background-color: inherit;
    border-color: inherit;
}

.card-title-inlineicon, .card-font-size-inlineicon {
    width: auto;
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: inherit;
    border-color: inherit;
    margin: -1mm 0 0mm 1mm;
}
.card-title-inlineicon-container {
    display: flex;
    justify-content: flex-end;
    background-color: inherit;
    border-color: inherit;
    padding: 1mm 0 1mm 1mm;
}

.card-type  {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-left: 0 !important;
    margin-left: -20mm; /* allow some overlapping */
}

.card-title {
    height: 8mm;
    padding-left: 2mm;
    font-family: Lora, 'Calisto MT', 'Bookman Old Style', Bookman, 'Goudy Old Style', Garamond, 'Hoefler Text', 'Bitstream Charter', Georgia, serif;
    font-variant: small-caps;
    font-weight: bold;
    background-color: inherit;
    color: white;
    white-space: nowrap;
}
.card-title-16 {
    font-size: 16pt;
    line-height: 6.5mm;
}
.card-title-15 {
    font-size: 15pt;
    line-height: 6.5mm;
}
.card-title-14 {
    font-size: 14pt;
    line-height: 6.5mm;
}
.card-title-13 {
    font-size: 13pt;
    line-height: 7mm;
}
.card-title-12 {
    font-size: 12pt;
    line-height: 7mm;
}
.card-title-11 {
    font-size: 11pt;
    line-height: 7.5mm;
}
.card-title-10 {
    font-size: 10pt;
    line-height: 7.5mm;
}
.card-font-size-12 {
    font-size: 12px;
    line-height: 1.3;
}
.card-font-size-11 {
    font-size: 11px;
    line-height: 1.3;
}
.card-font-size-10 {
    font-size: 10px;
    line-height: 1.3;
}
.card-font-size-9 {
    font-size: 9px;
    line-height: 1.3;
}
.card-font-size-8 {
    font-size: 8px;
    line-height: 1.3;
}
.card-font-size-smaller {
    font-size: smaller;
    line-height: 1.3;
}
.card-subtitle {
    margin-bottom: 0.0em;
    line-height: 18px;
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    font-size: 10pt;
    font-style: italic;
}
.card-picture {
    height: 80px;
    line-height: 18px;
    margin-bottom: 0.0em;
}
.card-inline-icon {
    background-size: auto 80%;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    border-radius: 2mm;
}

.card-inline-icon.align-left {
    align-self: flex-start;
}

.card-inline-icon.align-right {
    align-self: flex-end;
}

.card-inline-icon.align-center {
    align-self: center;
}

.card-property-line {
    text-indent: -1em;
    margin-left: 1em;
    color: black;
}

.card-property-name {
    display: inline;
    font-size: inherit;
    font-weight: bold;
}

.card-property-text {
    display: inline;
}

.card-section {
    border-bottom: 1px solid;
    font-size: 10pt;
    font-variant: small-caps;
    font-weight: normal;
    letter-spacing: 1px;
    margin: 0;
    border-color: inherit;
}

.card-section + .card-element {
    margin-top: 0.3em;
}

.card-p {

}

.card-fill {flex:1;}

.card-description-line {
    margin-top: 0.5em;
    margin-bottom: 0.0em;
    color: black;
}

.card-description-name {
    display: inline;
    font-size: inherit;
    font-style: italic;
    font-weight: bold;
}
/* .card-description-name::after {
    content: ".";
} */

.card-description-text {
    display: inline;
}

.card-ruler {
    width: 100%;
    height: 1.0mm;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    flex-shrink: 0;
}

.card-p2e-ruler {
    width: 100%;
    height: 1.0mm;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.card-box {
    display: inline;
    height: 10mm;
    width: 10mm;
    margin-right: 0.3em;
}

.card-stats {
    width: 100%
}
.card-stats-sw-derived {
    margin-top: 0;
    margin-bottom: 0;
}

.card-stats-header {
    text-align: center;
    padding: 0;
    width: 16.6%;
}

.card-stats-cell {
    text-align: center;
    padding: 0;
}

.card-bullet-line {
    color: black;
    padding-left: 16px;
    padding-bottom: 0;
    margin-bottom: 0;
    margin-top: 0;
}

.card-bullet {
    margin-bottom: 0;
    margin-top: 0;
    font-size: inherit;
}

.card-footer {
    width: 100%;
    padding: 0.2rem;
    padding-right: 3px;
    box-sizing: border-box;
    text-align: right;
    position: absolute;
    bottom: 0;
    left: 0;
}

.card-footer-text {
    color: white;
    margin: 0;
    font-size: 8px;
}

.footer-part {
    display: inline-block;
    margin: 0 2px;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 1px;
    font-weight: bold;
}


.card-p2e-trait-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.card-p2e-trait {
    border-style: double;
    border-width: 2px;
    color: white;
    font-style: normal;
    font-variant: small-caps;
    font-weight: bold;
    padding-right: 5px;
    padding-left: 5px;
    text-align: left;
    text-indent: 0em;
    display: inline-block;
    margin: 0;
}

.card-p2e-trait-common {
    border-color: #d8c483;
    background-color: #522e2c;
}

.card-p2e-trait-uncommon {
    background-color: #c45500;
    border-color: #d8c483;
}

.card-p2e-trait-rare {
    background-color: #022661;
    border-color: #d8c483;
}

.card-p2e-trait-alignment {
    background-color: #576294;
    border-color: #d8c483;
}

.card-p2e-trait-size {
    background-color: #3A7B58;
    border-color: #d8c483;
}

.card-p2e-attribute-line {
    color: black;
}

.card-p2e-attributes-text {
    margin: 0;
    font-size: 9.5px;
}

.card-pills {
    margin-bottom: 0.3em;
}

.card-pill {
    border-radius: 1em;
    line-height: 2;
}
