/* hacks */

* {
  margin: 0px;
  padding: 0px;
  color: #bbb;
}

select, select option {
  color: black;
}

html {
  background: black;
}

body {
  background: black;
}

input {
  color: #333;
  margin-left: 10px;
}

p {
  padding: 6px;
}

a {
  color: #56d;
}

textarea {
  color: black;
}

.content table {
  border-collapse: collapse;
  border: 1px solid green;
}

.content th {
  padding: 4px;
  background: #222;
}

.content td {
  padding: 0 15px 0 0;
  border-top: 1px solid green;
  border-bottom: 1px solid green;
}

#html {
  font-size: 100.1%;
}

.error {
  border: 1px dotted crimson;
}

div.error {
  padding: 20px;
}
div.error ul {
  list-style: none;
}

div.error ul li {
  margin-left: 37px;
}

/****************************** actual css ******************************/

#battlefield {
  position: relative;
  background-image: url('/images/background.png');
  width: 640px;
  height: 640px;
  float: left;
  border-top: 1px solid #c4c633;
  border-left: 1px solid #c4c633;
}

.ship {
  position: absolute;
  width: 64px;
  height: 64px;
}

div.selected {
  border: 2px solid green;
  width: 60px;
  height: 60px;
}

.ship p {
  position: absolute;
  padding: 0 0 0 0;
  margin: 0 0 0 0;
  right: 3px;
}

.ship p.name {
  color: white;
  bottom: 1px;
  font-size: 12px; 
}

.ship p.speed {
  top: 1px;
  font-size: 14px; 
  color: #22dd22;
}

div#green_box {
  position: absolute;
  border: 2px solid #00ff00;
}

.pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  background: red;
}

div#ship_preview {
  float: left;
}

fieldset.ship_preview {
  width: 140px;
}

.ship img.hasnt_shot_indicator {
  position: absolute;
  right: 0;
  top: 16px;
}

span#after_turns {
  color: blue;
}

/***************** fleet ship ************************/

fieldset.fleet_ship {
  width: 240px;
  padding: 5px;
  margin: 5px;
}

fieldset.fleet_ship legend,
fieldset.fleet_ship legend a {
  color: green;
}

fieldset.fleet_ship ul {
  margin-left: 26px;
}

fieldset.fleet_ship ul li[title=beam] {
  color: red;
}

fieldset.fleet_ship ul li[title='tactical drive'] {
  color: blue;
}

fieldset.fleet_ship div {
  margin-left: 26px;
}
