:root
{
  --stroke-thin: 0.1mm;
  --stroke-thick: 0.2mm;
  --stroke-super: 0.5mm;

}

#footer
{
  position: absolute;
  right: 1mm;
  bottom: 0.5mm;
  color: #000;
  text-align: right;
  z-index: 60;
  font-size: 1.5mm;
}

#footer span:first-child
{
  float: right;
}

#footer span:nth-child(2)
{
  margin-right: 10mm;
}

#factionIcon
{
    position: absolute;
    top: 27mm;
    right: 0.25mm;
    height: 8mm;
    width: 8mm;
    z-index: 51;
    text-align: center;
}
#factionIcon i
{
  display: none;
  font-size: 7mm;
  line-height: 8mm;
}
#factionIcon i[enabled='true']
{
  display: block;
}

#initiative
{
  position: absolute;
  top: 27mm;
  left: 1mm;
  background-color: #000;
  color: var(--orange);
  width: 6mm;
  height: 9.75mm;
  line-height: 9.75mm;
  text-align: center;
  z-index: 30;
}
#initiative h1 
{
  font-family: 'Kimberley';
}

#bg
{
  position: absolute;
  top: 0mm;
  left: 0mm;
  height: 28mm;
  width: 62mm;
  background-size: cover;
  z-index: 1;
}

#pilotInfo
{
  position: absolute;
  top: 28mm;
  right: 0mm;
  color: #FFF;
  width: 62mm;
  text-align: center;
}
:root[data-colorenabled='false'] #pilotInfo
{
  color: #000;
}
#pilotInfo *
{
  color: inherit;
}
#pilotInfo h1
{
  font-size: var(--titleFontSize);
  font-family: 'BankGothic';
  font-weight: normal;
}
#pilotInfo h1 i
{
  font-size: calc(var(--titleFontSize) * 0.75);
  margin-left: 1mm;
  margin-right: 1mm;
}
#pilotInfo h2
{
  font-family: 'Eurostile';
  letter-spacing: 0.2mm;
  font-size: calc(var(--titleFontSize) * 0.7);
  line-height: calc(var(--titleFontSize) * 2.25);
  font-weight: normal;
  font-style: italic;
}
#cardText
{
  font-family: 'Eurostile';
  font-size: calc(var(--titleFontSize) * 0.85);
  position: absolute;
  top: 38mm;
  left: 0mm;
  width: 50mm;
  height: 30mm;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
#cardText *
{
  white-space: pre-wrap;
  text-align: center;
  font-family: inherit;
  border: 0;
}
#cardText p
{
  box-shadow: none;
  margin: 0.25mm;
}
#cardText h1
{
  text-transform: uppercase;
  padding-top: 0.025in;
  border-bottom: 1.5px solid #000;
  margin-left: 0.1in;
  margin-right: 0.1in;
  margin-bottom: 0.025in;
}
#cardText h4
{
  font-weight: normal;
  padding-top: 0.025in;
  padding-bottom: 0.025in;
}

#actionIcons
{
  position: absolute;
  top: 38mm;
  right: 1mm;
  width: 9mm;
  height: 39mm;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #FFF;
}

:root[data-colorenabled='false'] #actionIcons
{
  color: #000;
}

#actionIcons p
{
  display: flex;
  position: relative;
  flex: 1;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 3mm;
  box-shadow: none;
  width: 9mm;
  max-height: auto;
  border-bottom: 0.1mm solid var(--thisFactionColor);
}

#actionIcons p *
{
  margin-top: -1mm;
}

#actionIcons p span
{
  position: absolute;
  top: 0.5mm;
  right: 0mm;
  color: #FFF;
  font-size: 2mm;
}

:root[data-colorenabled='false'] #actionIcons p span
{
  color: #000;
}

:root[data-colorenabled='true'] #actionIcons p span
{
  display: none;
}

#actionIcons p:last-child
{
  border-bottom: none;
}

#shipIcon
{
  position: absolute;
  bottom: 0mm;
  left: 1mm;
  font-size: 7mm;
  background-color: #000;
  color: #FFF;
  width: 6mm;
  height: 9mm;
  line-height: 9mm;
  text-align: center;
  z-index: 30;
}

#shipName
{
  position: absolute;
  top: 81mm;
  right: 0mm;
  color: #FFF;
  width: 62mm;
  text-align: center;
}

:root[data-colorenabled='false'] #shipName
{
  color: #000;
}

#shipName p 
{
  font-family: 'BankGothic';
  font-size: calc(var(--titleFontSize) * 0.7);
  box-shadow: none;
}

#svg
{
  position: absolute;
  top: 0mm;
  left: 0mm;
  width: 62mm;
  height: 88mm;
  z-index: 3;
}

#svg #outerBG
{
  stroke: none;
  fill: #FFF;
}

#svg #outer
{
  stroke: #000;
  stroke-width: var(--stroke-thin);
  fill: transparent;
}

#svg #pilotNameBG
{
  stroke: #444;
  stroke-width: var(--stroke-thick);
  fill: #000;
}

:root[data-colorenabled='false'] #svg #pilotNameBG,
:root[data-colorenabled='false'] #svg #bottomHalfBG
{
  fill: #FFF;
}

#svg #bottomHalfBG
{
  stroke: none;
  fill: #000;
}

#svg #cardTextBG
{
  stroke: none;
  fill: #FFF;
}

#svg #cardTextBG-Outline
{
  stroke: var(--thisFactionColor);
  stroke-width: 0.05mm;
  fill: #000;
}

#svg #pilotInfoAccentPiece
{
  stroke: var(--thisFactionColor);
  stroke-width: 0.05mm;
  fill: transparent;
}

#svg #footerBG
{
  stroke: #444;
  stroke-width: var(--stroke-thick);
  fill: transparent;
}

#svg #footerBG-BG
{
  stroke: none;
  fill: #FFF;
}

#svg #footerAccentPiece
{
  stroke: var(--thisFactionColor);
  stroke-width: 0.05mm;
  fill: transparent;
}

#svg #actionIconsContainer
{
  stroke: var(--thisFactionColor);
  stroke-width: 0.05mm;
  fill: transparent;
}

#svg .cardText-ActionIcons-Accent
{
  stroke: var(--thisFactionColor);
  stroke-width: 0.1mm;
}