/* Page Layout */
#page-2 {

}

/* Boxes */
#page-combat-box {
    display: grid;
    grid-template-columns: [page-left] 60% [center] auto [page-right];
    grid-template-rows: [page-top] min-content max-content auto min-content [page-bottom];
}
#attacks-header, #armor-header {
    height: 24px;
}
#attacks-box {
    grid-column: page-left / page-right;
}
#armor-box {
    grid-column: page-left / center;
    margin-left: -4px;
    margin-right: -2px;
}
#hit-dice-box {
    grid-column: center / page-right;
    margin-left: -2px;
    margin-right: -4px;
}
#hp-box {
    grid-column: page-left / page-right;
}
#proficiencies-box {
    grid-column: page-left / page-right;
    text-align: center;
    font-family: Merienda, cursive;
    font-size: 10pt;
    margin-bottom: 10px;
}

/* Elements */
#attacks-box>table {
    margin: 4px;
    width: calc(100% - 2 * 4px);
}
#attacks-box th {
    font-family: Merienda, cursive;
    font-size: 10pt;
}
#attacks-box>table>tr>th:nth-child(1) {
    /* Star */
    width: auto;
}
#attacks-box>table>tr>th:nth-child(2) {
    /* Weapon */
    width: auto;
}
#attacks-box>table>tr>th:nth-child(3) {
    /* Attack */
    width: 17%;
}
#attacks-box>table>tr>th:nth-child(4) {
    /* Damage */
    width: 20%;
}
#attacks-box>table>tr>th:nth-child(5) {
    /* Range */
    width: 17%;
}
tr.attack-row {
    border-top: 1px solid lightgrey;
}
tr.attack-row td {
    padding-bottom: 4px;
}
td.attack-name,
td.attack-bonus,
td.attack-damage,
td.attack-range {
    font-family: Merienda, cursive;
    text-align: center;
}
span.attack-damage-type,
.attack-range .smaller,
.attack-name .smaller {
    font-size: 7pt;
    line-height: 7pt;
    display: block;
}
td.attack-properties {
    font-size: 9pt;
    font-family: Merienda, cursive;
    text-align: center;
}

tr.blank-attack-row {
    height: 0.5in;
}

#armor-box {
    grid-column: page-left / center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#hit-dice-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


#armor-class {
    font-family: Merienda, cursive;
    font-size: 14pt;
    text-align: center;
}
#armor-class-score {
    font-size: 18pt;
    line-height: 16pt;
}
.armor-row {
    display: flex;
    font-family: Merienda, cursive;
    justify-content: space-between;
    padding: 4px 10px 0;
}
.armor-name {
    font-size: 11pt;
}
.armor-points {
    font-size: 10pt;
    white-space: nowrap;
}
.armor-property {
    font-size: 7pt;
    font-family: Verdana, Arial, sans-serif;
    padding: 0 10px 0 20px;
}

#hit-dice-titles {
    text-align: center;
}
#hit-dice-title {
    font-family: Merienda, cursive;
    font-size: 14pt;
}
#hit-dice-subtitle {
    font-size: 10pt;
    font-family: Verdana, Arial, sans-serif;
}
#hit-dice-container {
    text-align: center;
    margin-bottom: 4px;
}

#second-wind-container {
    font-size: 10pt;
    font-family: Verdana, Arial, sans-serif;
    text-align: center;

    margin-bottom: 4px;
}

#hp-box {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}
#hp-title {
    font-size: 14pt;
    font-family: Merienda, cursive;
    text-align: center;
}
#hp-write-area {
    flex-grow: 1;
    background-color: white;
    margin: 0 10px;
    font-size: 16pt;
    font-family: Merienda, cursive;
    padding: 10px;
}

#damage-potential-modifiers {
    font-family: Merienda, cursive;
    font-size: 9pt;
    text-align: center;
}

#superiority-dice-container {
    text-align: center;
    line-height: 13px;
}
.superiority-dice-row .smaller {
    font-size: 7pt;
    line-height: 7pt;
    display: block;
}

#attacks-box .tr-hr hr {
    margin-left: -5px;
    margin-right: -5px;
}