.offwhite {
    background-color: #F5DFFF;
}

.hell {
    background-color: #C5DF00;
}

.dunkel {
    background-color: #223300;
}

.nosel {
 /*   -webkit-touch-callout:none;
    -webkit-user-select:none;
    -khtml-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;*/
    -webkit-tap-highlight-color:rgba(0,0,0,0);
}

body {
    cursor: default;
    background-color: #F0F8FF;
    font-family: Verdana, Helvetica, Arial;
    font-size: 10pt;
    padding-right: .8em;
    vertical-align: middle;

    position: relative;
}

.StopDiv {
    clear: both;
}

.ArmyBox {
    padding: .4em;
    text-align: left;
    vertical-align: middle;

    color: #FFF;
 /*   background-color: #223355;*/

    width: 100%;
}

.ArmyBox #name {

    width: 18.0em;
    margin-bottom: 1.0em;
}

.ArmyBox .ArmyTable {
    margin: 0;
    width: 100%;
    vertical-align: text-top;
}

.ArmyBox .CategoryBox {

    margin: 0em;
    padding: 0em;
    margin-bottom: .4em;
}

.ArmyBox .CategoryTitle {

    color: black;
 /*   background-color: #C5DFFA; */
    margin: 0em .2em;
    padding: .2em .4em;
    font-weight: bold;
    text-align: left;
}

.ArmyBox .CategoryTitle:hover {

    color: white;
    background-color: black;
}

.ArmyBox .FormationCell {

    vertical-align: text-top;
}

#ArmyBox .Formation {

    margin-top: .1em;
    padding: .2em .4em;
    font-weight: normal;
    color: black;
    background-color: white;

}

.ArmyBox .unit {
    padding-left: .4em;
    font-size: smaller;
    text-decoration: none;
}

.ArmyBox  .unit .fixed {
	font-style: italic;
}

.ArmyBox  .unit .default {
	text-decoration: none;
}

#ArmyBox .Header:hover {

    color: #FFF;
    background-color: #222;

}

#ArmyBox .Title:hover {

    color: #FFF;
    background-color: #222;
}

#ArmyBox .default:hover {

    color: #FFF;
    background-color: #222;
}

#ArmyBox .points {

    width: 5em;
    float: right;
    text-align: right;
    display: inline-block;

}

.ArmyBox form .points {

	margin-top: .4em;
    margin-right: .4em;

    float: right;

    text-align: right;
    vertical-align: middle;
    font-weight: bold;

    display: inline-block;
}

.ArmyBox .save {

	margin-left: .5em;
	padding: .2em .4em;
	border: .1em solid black;
	background-color: white;
	color: black;
	text-align: center;
	vertical-align: top;
	font-weight: bold;
	text-decoration: none;
}


.MenuBoxTable {

    border: thin solid black;
    border-collapse: collapse;

    box-shadow: .3em .3em #000000;
    position: absolute;
    padding: .4em;
    width: 25.0em;
    color: #000;
    background-color: #FFF;

    font-family: Verdana, Helvetica, Arial;
    font-size: 10pt;
    font-weight: normal;
}

.MenuBoxTable .item {
    padding: .2em;
    vertical-align: top;
}

.MenuBoxTable .enabled:hover {

    color: #FFF;
    background-color: #000;
}

.MenuBoxTable .enabled:active {

    color: #FFF;
    background-color: #000;
}

.MenuBoxTable .disabled {

    color: #888;
}

.MenuBoxTable .menuicon {
    width: 1.3em;
    height: 1.3em;
}


.ProfileBox {

    margin-top: .0em;
    padding: .4em;
    text-align: left;
    color: #FFF;
  /*  background-color: #223355; */
    width: 100%;

}

.ProfileBox table {
    border: none;
    border-collapse:collapse;
    text-align: center;
  /*  background-color: inherit;*/
    width: 100%;
}

.ProfileBox th {
/*    background-color: #C5DFFA;*/
    color: black;

    padding-top: .5em;
    padding-bottom: .5em;
    font-weight: bold;
}

.ProfileBox td {
    padding-top: .2em;
    padding-bottom: .2em;
    vertical-align: text-top;
}

.ProfileBox .left {
    padding-left: .4em;
    text-align: left;
}

.ProfileBox .center {
    text-align: center;
}

.ProfileBox .notes {
 /*   border-top: .1em solid #000000;*/
    padding-left: .8em;
    text-align: left;
}

.ProfileBox .odd {
    background-color: white;
    color: black;
}

.ProfileBox .even {
 /*   background-color: #F0F8FF; */
    color: black;
}

.ProfileBox .nodd {
    background-color: white;
    font-size: smaller;
    color: black;
}

.ProfileBox .neven {
  /*  background-color: #F0F8FF; */
    font-size: smaller;
    color: black;
}

.ProfileBox table table {
    margin-left: .4em;
    border: thin solid #223355;
    float: right;
    width: 75%;
    text-align: left;
    background-color: transparent;
}

.ProfileBox table table td {
    border: thin solid #223355;
    padding: .4em;
}

.ProfileBox .inset {
    margin: .4em 4em;
}

.ProfileTable td {
    white-space: nowrap;
}

.ProfileTable td:last-child {
    white-space: normal;
    text-align: left;
}

.ErrorBox {
    margin-top: 1em;
    border: .4em solid black;
    background-color: red;
    width: 100%;
}

.Error {
    padding: .2em .4em;
    color: white;
}

.OuterBox {
    vertical-align: top;
    position: relative;
    text-align:  center;
    float: left;
    left: 50%;
    width: 50%;
}


.SystemBox {
    vertical-align: top;
    position: relative;
    float: left;
    left: -100%;
    width: 200%;
}

.System {
    vertical-align: top;
	background-color: #223355;
	padding: .4em;
	min-width: 28em;
	margin-right: .4em;
    margin-bottom: .4em;
    display: inline-block;
    border-collapse: collapse;
}

.Systemname {
    color: white;
    font-weight: bold;
    margin-bottom: .2em;
}

.System .AllOfList {
    font-weight: normal;
    color: black;
    background-color: #C5DFFA;
    border: 1px solid #222;
}

.System .NewList {
	text-align: center;
	padding: .2em .5em;
}

.System .NewList:hover {
	background-color: #222;
    color: white;
}

.System .Files  {
    background-color: white;
    color: black;
    width: 100%;
    padding: .2em .5em;
    border-top: 2px solid #222;

    border-collapse: collapse;
}

.System .File td {
    padding: .2em .5em;
    border-top: 1px solid #222;
}

.System .File:hover {
	background-color: #222;
    color: white;
}

.System .Kill {
    padding: 1px;
    width: 1.4em;
    height: 1.4em;
}

.System .Kill:active {
    padding: 2px 0 0 2px;
}

.DoIt {

    border: .4em solid #223355;
    background-color: #223355;
    color: yellow;
    width: 100%;

}

.DoIt p {
    font-size: larger;
    font-weight: bold;
    margin: 0 .4em;
    padding: .4em;
}

.ArmyText {
    text-align: left;
    margin-top: .0em;
    color: black;
    border: .4em solid #223355;
    background-color: white;
    width: 100%;
}

.ArmyText p {

    color: black;
    margin: .0em .4em;
    padding: .2em;

}

.ArmyText a {
    font-weight: bold;
    color: #000000;
}

.ArmyText a:visited {
    color: #000000;
}

.ArmyText a:active{
    color: #000000;
}

.ArmyText .title {
    font-weight: bold;
}

.ArmyText textarea {
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
}

.TopLeft {
    font-weight: bold;
    font-size: larger;
    width: 100%;
    margin-bottom: 2em;
}

.TopBaer {
    vertical-align: text-bottom;
    width: 32px;
    height: 32px;
}

.TopLeft a:visited {
    color: #000000;
}

.TopLeft a:active{
    color: #000000;
}

.spells {
    table-layout: fixed;
    vertical-align: top;
    color: black;
    border-collapse: collapse;
}

.spells td {
    vertical-align: top;
    border: thin solid black;
    padding: .4em;
    width: 1%;
}
.spells .title {
    text-align: center;
    font-weight: bold;
}

@media (max-width: 600px) {
    body {
        font-size: 8pt;
        -webkit-text-size-adjust: none;
    }
    .MenuBox {
        font-size: 8pt;
    }
}

.saveRestore {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}

.saveRestore td {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

.saveRestore textarea {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.saveRestore form {
    margin-top: .0em;
    border: .4em solid #223355;
    background-color: white;
    width: 100%;
}

.centeredTable th {
    text-align: center;
}
.centeredTable td {
    text-align: center;
}

form .icon {
    vertical-align: text-top;
    padding: 0px 4px 1px 0px;
    width: 1.4em;
    height: 1.4em;
}

form .icon:active {
    padding: 2px 0 0 2px;
}

#popup {
    visibility: hidden;

    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    text-align:center;
    z-index: 1000;
}

#popup div {
    margin: 10px auto;
    background-color: #88F;
    border:1px solid #000;

    padding:5px;
    text-align:left;
    display: inline-block;
}

#popuptext {
     font-family: monospace;
     margin: auto auto;
     background-color: #fff;
     padding:15px;
     text-align:left;
     display: inline-block;
 }

#PointsBox .ArmyTable {
    margin: 0;
    width: 100%;
    vertical-align: text-top;
    border: none;
    border-collapse:collapse;
    text-align: left;
    /*  background-color: inherit;*/
}

#PointsBox input {
    margin-left: 1em;
}

#PointsBox form {
    white-space: nowrap;
    margin-right: 2em;
}

#PointsBox .FormationCell {
    width: 100%;
    vertical-align: text-top;
}

#PointsBox td {
    padding-top: .2em;
    padding-bottom: .2em;
    vertical-align: middle;
    color: #000000;
}

#PointsBox .header {
    font-weight: bold;
    padding-bottom: .5em;
}
#PointsBox .footer {
    font-weight: bold;
    padding-top: .5em;
}

#PointsBox .Formation {

    margin-top: .1em;
    padding: .2em .4em;
    font-weight: normal;
    color: black;
}

#PointsBox .points {

    width: 10em;
    float: right;
    text-align: right;
    display: inline-block;

}

.white {
    background-color: white;
}

.bold {
    font-weight: bold;
}

.smallBold {
    font-weight: bold;
    font-size: 93%;
}
.small {
    font-weight: normal;
    font-size: 93%;
}


.UnitListBox .CategoryTitle {

    color: white;
 /*   background-color: #C5DFFA; */
    margin: 0em 0em;
    padding: .2em 0em;
    font-size: larger;
    font-weight: bold;
    text-align: left;
}

.UnitListBox .Title {

    color: white;
 /*   background-color: #C5DFFA; */
    margin: 0em 0em;
    padding: .6em 0em 0em 0em;
    font-weight: bold;
    text-align: left;
}

.UnitListBox .unit {

    color: white;
 /*   background-color: #C5DFFA; */
    margin: 0em 0em;
    padding: .6em 0em ;
    text-align: left;
}

.card {
  width: 56mm;
  font-size: 4pt;
  margin-bottom: 10pt;
}

.Tactic {
  border-style: solid;
  display: inline-block;
  width: 250px;
}

.TacticHeader {
  padding: 3px;
  color: white;
  background: black;
  height: 4mm;
}

.TacticFooter {
  padding: 3px;
  color: white;
  background: black;
  text-align: right;
  height: 4mm;
}

.KTTactics {
  color: black;
  background-color: white;

  float: left;
  position: relative;
  border-style: solid;
  border-color: black;

  display: inline-block;
  width: 63mm;
  margin: 1mm;
  page-break-inside: avoid;
}

.KTTactics .TacticHeader {
  padding: 2mm;
  margin: 0px;
}

.KTTactics .TacticFooter {
  padding: 2mm;
  width: 59mm;
  margin: 0px;
}

.KTTactics .TacticText {
  padding: 2mm;
  margin: 0px;
  min-height: 90mm;

}

.Page {
  clear: both;

  position: relative;
  float: none;
  display: block;
  page-break-after: always;
}

.KTCard {
  color: black;
  background-color: white;

  float: left;
  position: relative;
  border-style: solid;
  border-color: black;
  display: inline-block;

  width: 110mm;
  min-height: 76mm;
  margin: 2px;
  page-break-inside: avoid;
  padding-bottom: 1mm;
}

.KTSpecialCard {

  width: 100%;
}

.KTCard .unit {
  padding: 1mm;
  padding-bottom: 0px;
}

.KTCard .unitTitle {
  padding: 1mm;
  padding-bottom: 0px;
  margin-top: 1mm;
  font-weight: bold;
  font-size: smaller;

}

.unBold {
  font-weight: normal;
}

.KTCard .Title {
  color: white;
  background: black;
  padding: 2mm;
  margin: 0px;
}

.KTCard .points {

    width: 4em;
    float: right;
    text-align: right;
    display: inline-block;

}

.KTCard .NotesTable {
  width: 100%;
  border-collapse: collapse;
  vertical-align: top;

  margin-top: 2mm;
}

.KTCard .NotesTable td {
  margin: 0px;
  padding: 1mm;
  padding-bottom: 0mm;
  vertical-align: top;
}

.KTCard .ProfileTable {
  width: 100%;
  border-collapse: collapse;

  font-size: smaller;
  margin-top: 2mm;
}

.KTCard .ProfileTable tr:first-of-type {
  background-color: #C0C0C0;
  width: 100%;
}

.KTCard .ProfileTable td {
  margin: 0px;
  padding: 1mm;
  padding-bottom: 0mm;
  vertical-align: top;
}

.KTCard .center {
    text-align: center;
}
.KTCard .ProfileTable th {
  margin: 0px;
  padding: 1mm;
}

.KTCard .notes {
}

.KTScout {
  width: 120mm;
}

.KTScout .TacticText {
  min-height: 70mm;
}

.KTScout .TacticFooter {
  width: 116mm;
}

.flag  {
  position: relative;
  top: 6px;
  width: 30px;
  height: 20px;
  border-width: 2px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0);
}

#modal {
    visibility: hidden;

    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 1000;
    text-align: left;
}

#modal div {
    margin: 10px auto;
    background-color: #88F;
    border:1px solid #000;

    padding:5px;
    text-align:left;
    display: inline-block;
}

#modaltext {
     font-family: monospace;
     margin: auto auto;
     background-color: #fff;
     padding:15px;
     font-size: 20px;
     text-align:left;
     display: inline-block;
 }

 .ApocCard {

   width: 105mm;
   min-height: 148mm;
 }
