body {
  font: 12pt times;
}

/* There should be no space between paragraphs. */
p {margin: 0;}

/* A paragraph immediately following another paragraph should be indented. */
.indented {text-indent: 0.2in;}

.center {text-align: center;}
.right {text-align: right;}
.left {text-align: left;}

/* Pop-up menus */
.menu {
  position: absolute;
  left: 0.1in;
  top: 0.1in;
  width: 6.5in;
  padding: 0.1in 0.15in;
  background: white;
  border: solid black 1px;
  box-shadow: 0.04in 0.06in 0.1in black;
  -moz-box-shadow: 0.04in 0.06in 0.1in black;
  -webkit-box-shadow: 0.04in 0.06in 0.1in black;
  z-index: 1;
}
.portraits img {
  max-height:1in;
}
.characterSheet .abilitySelectionMenu, .characterSheet .abilityDescriptionMenu {top: 3.15in;}
.minion .abilitySelectionMenu, .minion .abilityDescriptionMenu {top: 2.15in;}
.abilityDescriptionField {width: 5in;}

/* Stats */
.stat {
  position: absolute;
  text-align: right;
}
.statContainer {
  position: relative;
  padding-right: 0.45in;
}
.statValue {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.4in;
  text-align: center;
  border-bottom: 1px solid black;
}

/* Text Boxes */
.textBox {
  position: absolute;
  border: 1px solid black;
  text-align: center;
  overflow: hidden;
}
.textBox textarea {
  width: 100%;
  height: 0.65in;
}

/* Options that appear at the top of the character sheet. */
.options {
  position: relative;
  width: 7in;
  text-align: right;
  margin: 0.1in auto;
  border-bottom: 1px solid black;
}
.characterTab {left: 0.2in;}
.minionTab {left: 1.4in;}
.activeTab, .inactiveTab {
  position: absolute;
  bottom: -1px;
  width: 1in;
  padding: 0.2em 0;
  text-align: center;
  border-top-left-radius: 10px 10px;
  border-top-right-radius: 10px 10px;
  -moz-border-radius-topleft: 10px 10px;
  -moz-border-radius-topright: 10px 10px;
  cursor: default;
}
.activeTab {
  border-top: 1px solid black;;
  border-left: 1px solid black;;
  border-right: 1px solid black;;
  border-bottom: 1px solid white;
}
.inactiveTab {
  border-top: 1px solid gray;
  border-left: 1px solid gray;
  border-right: 1px solid gray;
  border-bottom: 1px solid black;
}
.printButton {
  margin-right: 0.5em;
  margin-left: 1em;
}

/* Character Sheet */
.characterSheet, .minion {
  width: 7in;
  margin: auto;
  position: relative;
}
.characterSheet {height: 9in;}
.minion {height: 4.7in;}

/* Title */
.characterSheet h1, .minion h1 {
  font-size: 16pt;
  font-weight: bold;
  margin: 0;
}
/* Title height controls the position of the ability table. */
.characterSheet h1 {height: 3.15in;}
.minion h1 {height: 2.15in;}

/* Name */
.nameLabel {
  position: absolute;
  left: 0;
}
.name input {
  width: 2in;
}
.name {
  position: absolute;
  left: 1.05in;
  border-bottom: 1px solid black;
}

/* Character Points (also see Stats) */
.cp {
  right: 3.1in;
}

/* Position name and CP relative to bottom because input fields are taller than normal text. */
.characterSheet .name, .characterSheet .nameLabel, .characterSheet .cp {bottom: 8.4in;}
.minion .name, .minion .nameLabel, .minion .cp {bottom: 4.1in;}

/* Portrait */
.portraitBox {
  position: absolute;
  right: 0;
  top: 0;
  width: 3in;
  height: 3in;
  border: 1px solid black;
  text-align: center;
}
.portrait {
  margin-top: 0.05in;
  margin-bottom: -0.05in;
  max-height: 2.7in;
  max-width: 2.9in;
  display: none;
}
.portraitContainer {
  position: relative;
  height: 2.7in;
}
.portraitContainer div {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
}
.minion .portraitBox {height: 2in;}
.minion .portrait {max-height: 1.7in;}
.minion .portraitContainer {height: 1.7in;}

/* Description */
.description {
  left: 0;
  top: 0.75in;
  width: 3.9in;
}
.characterSheet .description {height: 2.25in;}
.minion .description {height: 1.25in;}
.characterSheet .description textarea {height: 2.05in;}
.minion .description textarea {height: 1.05in;}

/* Ability Row */
.section {
  position: relative;
}
.section.ability {
  margin-top: 0.5em;
}

.abilityTable {padding-bottom: 0.15in;}

/* Header and data cells for ability table. */
.header, .cell {
  position: absolute;
  bottom: 0;
  text-align: center;
}

/* Underline each data cell in the ability table. */
.cell {border-bottom: 1px solid black;}

/* Footer */
.footer {
  position: relative;
  height: 0.9in;
}

.agility, .agilityInWater {top: 0;}
.intelligence, .initiativeBonus {top: 0.3in;}
.strength, .stamina {top: 0.6in;}
.agility, .intelligence, .strength {right: 5.8in;}
.agilityInWater, .initiativeBonus, .stamina {right: 4.1in;}

/* Initiative */
.initiative {
  top: 0;
  left: 3in;
  height: 0.85in;
  width: 0.9in;
}

/* Hit Points */
.hp {
  top: 0;
  left: 4in;
  height: 0.85in;
  width: 2in;
}

/* Checkboxes */
.checkBox {
  position: absolute;
  left: 6.1in;
}
.delayed {top: 0.05in;}
.panicked {top: 0.25in;}
.engage {top: 0.45in;}
.cover {top: 0.65in;}

/* when you only have one minion, leave the other minion character sheet blank */
.blank .cell, .blank .statValue {color: transparent;}
.blank .portraitContainer, .blank .abilityTable input, .blank .abilityTable select,
.blank .name input, .blank textarea {visibility: hidden;}

/* Hide border around these widgets to make them hidden or subtle. */
.name input, .textBox textarea, .abilityLevel select {border: none;}

/* Use italic sans-serif font for handwriting look */
.cell, .statValue, .name input, .textBox textarea, .abilityLevel select {
  font: 10pt arial;
  font-style: italic;
}

/* Column widths */
.abilityLevel {left: 0; width: 0.4in;}
.abilityBonus {left: 0.5in; width: 0.4in;}
.abilityTotal {left: 1in; width: 0.4in;}
.abilityName {left: 1.5in; width: 1.4in;}
.abilityDescription {left: 3in; width: 4in;}

.abilityDescription.cell {min-height: 1em; text-align: left;}

/* Clicking on an ability name removes it, so show a line through the text. */
.trashable:hover {text-decoration: line-through;}

/* Hide ability level and bonus by default, but show it in print media. */
.abilityLevel span, .abilityBonus span {display: none;}

/* Minion CP vs. command ability CP information. */
.minionInfo {
  width: 7in;
  margin: 0 auto 0.5em auto;
}
.underBudget {color: green;}
.overBudget {color: red;}

/* Hide interactive user interface elements when you print the character sheet. */
@media print {
  .abilityLevel select, .abilityBonus input, .noprint {display: none;}
  .abilityLevel span, .abilityBonus span {display: inline;}
}

/* Use 1 pixel wide borders for computer screens that may not show thinner borders clearly. */
@media screen {
  .hidden {display: none;}
  .blank {display: none;} 
}


