body {
  padding: 0px;
  margin: 0px;
  background : #0a0906;
}

form, table {
  margin: 0px;
  padding: 0px;
  border: none;
}

img {
  border: 0px;
}

#game_box {
  position: relative;
  width: 960px;
  height: 600px;
  margin: 40px auto 40px;
  background: #222;
  border: 4px solid #000;
  border-radius: 4px;
  box-shadow: 0px 3px 8px #000;
}

#game_end {
  display: none;
  position: absolute;
  left: 328px;
  top: 158px;
  width: 300px;
  height: 140px;
  background: url(../img/panel.png);
  font-family: "overlock", Arial, sans-serif;
  cursor: default;
  border-radius: 4px;
  border: 1px solid #666;
  box-shadow: 0px 2px 5px #000;
}

#paused {
  display: none;
  position: absolute;
  left: 0px;
  top: 0px;
  width: 960px;
  height: 460px;
  background: rgba(0, 0, 0, 0.5);
  font-family: "overlock", Arial, sans-serif;
  font-size: 14px;
  color: #ccc;
  text-align: center;
  line-height: 460px;
}

#game_end_text {
  width: 300px;
  height: 90px;
  line-height: 90px;
  font-size: 32px;
  color: #ccc;
  text-align: center;
}

#game_end_ok {
  width: 100px;
  height: 30px;
  padding: 0px 100px 20px;
}

#loading {
  position: absolute;
  left: 0px;
  top: 460px;
  width: 206px;
  height: 40px;
  background: url(../img/panel.png);
  font-family: "overlock", Arial, sans-serif;
  cursor: default;
  padding: 45px 377px 55px;
}

#loading_percentage {
  width: 206px;
  height: 24px;
  line-height: 20px;
  color: #ccc;
  font-size: 14px;
  text-align: center;
}

#loading_bar {
  width: 200px;
  height: 10px;
  border: 1px solid #ccc;
  padding: 2px;
}

#loading_bar div {
  width: 0px;
  height: 10px;
  background: #ccc;
}

#choose_difficulty { 
  display: none;
  position: absolute;
  left: 0px;
  top: 460px;
  width: 360px;
  height: 70px;
  background: url(../img/panel.png);
  font-family: "overlock", Arial, sans-serif;
  cursor: default;
  padding: 30px 300px 40px;
}

#choose_difficulty_text {
  width: 360px;
  height: 40px;
  line-height: 20px;
  color: #ccc;
  font-size: 16px;
  text-align: center;
}

.choose_difficulty_button {
  width: 100px;
  height: 30px;
  float: left;
  padding: 0px 10px;
}

.choose_difficulty_button a,
#game_end_ok a {
  display: block;
  width: 98px;
  height: 28px;
  line-height: 28px;
  font-size: 16px;
  color: #bbb;
  border: 1px solid #bbb;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  border-radius: 2px;
}

.choose_difficulty_button a:hover,
#game_end_ok a:hover {
  color: #fff !important;
  border: 1px solid #fff !important;
}

#panel {
  display: none;
  position: absolute;
  left: 0px;
  top: 460px;
  width: 960px;
  height: 140px;
  background: url(../img/panel.png);
  font-family: "overlock", Arial, sans-serif;
  cursor: default;
}

#panel a {
  cursor: default !important;
}

#info_box {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 240px;
  height: 60px;
  border: 1px solid #666;
  border-radius: 3px;
  box-shadow: 0px 1px 2px #000 inset;
  color: #ccc;
  padding: 4px;
}

#info_box_content {
  display: none;
}

#info_box_title {
  height: 14px;
  overflow: hidden;
  line-height: 14px;
  font-size: 14px;
  white-space: nowrap;
  padding-bottom: 6px;
}

#info_box_inventory {
  height: 14px;
  overflow: hidden;
  line-height: 14px;
  font-size: 12px;
  white-space: nowrap;
  padding-bottom: 6px;
}

#info_box_inventory img {
  vertical-align: 1px;
}

#info_box_assign {
  height: 14px;
  overflow: hidden;
  padding-bottom: 6px;
}

#info_box_assign_info {
  float: left;
  width: 138px;
  height: 14px;
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap;
}

#info_box_assign_plus,
#info_box_assign_minus {
  display: block;
  float: left;
  width: 14px;
  height: 14px;
  text-decoration: none;
  color: #bbb;
}

#info_box_assign_plus:hover,
#info_box_assign_minus:hover {
  color: #fff;
}

#info_box_assign_minus { background : url(../img/plus_minus.png) 0px 0px;*/ }
#info_box_assign_plus { background : url(../img/plus_minus.png) -14px 0px; }

#info_box_assign_minus:hover { background : url(../img/plus_minus.png) 0px -14px !important; }
#info_box_assign_plus:hover { background : url(../img/plus_minus.png) -14px -14px !important; }

#info_box_assign_minus.off { background : url(../img/plus_minus.png) 0px -28px !important; }
#info_box_assign_plus.off { background : url(../img/plus_minus.png) -14px -28px !important; }

#info_box_assign_minus.off:hover { background : url(../img/plus_minus.png) 0px -28px !important; }
#info_box_assign_plus.off:hover { background : url(../img/plus_minus.png) -14px -28px !important; }

#info_box_assign_spacer {
  float: left;
  width: 7px;
  height: 14px;
}

#info_box_buttons {
  position: relative;
  height: 20px;
  overflow: hidden;
}

#info_box_buttons .button {
  position: absolute;
  display: block;
  top: 0px;
  height: 18px;
  font-size: 12px;
  color: #bbb;
  border: 1px solid #bbb;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  line-height: 18px;
  border-radius: 2px;
}

#info_box_buttons .button img {
  vertical-align: 1px;
}

#info_box_buttons .button:hover {
  color: #fff !important;
  border: 1px solid #fff !important;
}

#info_box_buttons .button.off {
  color: #444 !important;
  border: 1px solid #444 !important;
}

#info_box_buttons .button.off img {
	opacity: 0.3;
}

#info_box_buttons .button.off:hover {
  color: #444 !important;
  border: 1px solid #444 !important;
}

#info_box_create_laborer { left: 0px; width: 120px; }
#info_box_train_soldier { left: 0px; width: 74px; }
#info_box_train_knight { left: 80px; width: 74px; }
#info_box_destroy { left: 188px; width: 50px; }
#info_box_cancel_construction { left: 118px; width: 120px; }
#info_box_cancel { left: 188px; width: 50px; }
#info_box_deselect { left: 178px; width: 60px; }

#population_box {
  position: absolute;
  left: 270px;
  top: 10px;
  width: 82px;
  height: 70px;
}

#population_current {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 52px;
  height: 28px;
  background: url(../img/population.png) 0px 0px no-repeat;
  border: 1px solid #666;
  border-radius: 3px;
  box-shadow: 0px 1px 2px #000 inset;
  color: #ccc;
  padding-left: 28px;
  line-height: 29px;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
}

#population_laborers {
  position: absolute;
  left: 0px;
  top: 40px;
  width: 52px;
  height: 28px;
  background: url(../img/population.png) 0px -28px no-repeat;
  border: 1px solid #666;
  border-radius: 3px;
  box-shadow: 0px 1px 2px #000 inset;
  color: #ccc;
  padding-left: 28px;
  line-height: 29px;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
}

#log_box {
  position: absolute;
  left: 10px;
  top: 90px;
  width: 332px;
  height: 36px;
  border: 1px solid #666;
  border-radius: 3px;
  box-shadow: 0px 1px 2px #000 inset;
  padding: 1px 4px;
  overflow: hidden;
}

#log_box .line {
  line-height: 12px;
  font-size: 12px;
  color: #666;
  height: 12px;
  white-space: nowrap;
}

#log_box .current {
  color: #ccc !important;
}

#construction_box {
  position: absolute;
  left: 362px;
  top: 10px;
  width: 592px;
  height: 122px;
}

#construction_box .item {
  float: left;
  width: 70px;
  height: 122px;
  padding-right: 4px;
}

.build_link {
  display: block;
  width: 66px;
  height: 100px;
  border: 1px solid #999;
  border-radius: 3px;
  color: #ccc !important;
  text-decoration: none !important;
  padding: 18px 1px 1px 1px;
  background: #0f0d09;
  box-shadow: 0px 1px 2px #000;
}

.build_link:hover {
  border: 1px solid #fff !important;
  color: #fff !important;
}

.build_link:active {
  margin-top: 1px;
  box-shadow: 0px 0px 2px #000 !important;
}

.build_link.inactive {
  border: 1px solid #444 !important;
  color: #444 !important;
}

.build_link.inactive:hover {
  border: 1px solid #444 !important;
  color: #444 !important;
}

.build_link.inactive:active {
  margin-top: 0px !important;
}

.build_link.inactive .picture {
  opacity: 0.2;
}

.build_link.inactive .cost img {
  opacity: 0.3;
}

.build_link.build_building {
  border: 2px solid #fff !important;
  color: #fff !important;
  background: #241e15 !important;
  padding: 17px 0px 0px 0px !important;
}

.build_link .picture {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0px auto;
}

#build_farm .picture {
  width: 50px;
}

#build_house .picture { background: url(../img/house.png) -80px 0px; }
#build_farm .picture { background: url(../img/farm.png) -100px 0px; }
#build_lumberjack_hut .picture { background: url(../img/lumberjackhut.png) -80px 0px; }
#build_quarry .picture { background: url(../img/quarry.png) -80px 0px; }
#build_iron_mine .picture { background: url(../img/ironmine.png) -80px 0px; }
#build_blacksmith .picture { background: url(../img/blacksmith.png) -80px 0px; }
#build_barracks .picture { background: url(../img/barracks.png) -80px 0px; }
#build_guard_tower .picture { background: url(../img/guardtower.png) -80px 0px; }

.build_link .name {
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  height: 32px;
  padding-top: 4px;
}

.build_link .cost {
  height: 20px;
  display: block;
  font-size: 10px;
  text-align: center;
  line-height: 20px;
}

.build_link .cost img {
  vertical-align: 1px;
}

#fps {
  background: #fff;
  color: #000;
}

#hints_title {
  width: 960px;
  margin: 0px auto;
  padding: 10px 0px;
  font-family: "overlock", Arial, sans-serif;
  color: #444;
  font-size: 20px;
  line-height: 20px;
}

#hints_list {
  width: 960px;
  margin: 0px auto 20px;
}

#hints_list ul {
  margin: 0px 0px 0px 20px;
  padding: 0px;
}

#hints_list ul li {
  font-family: "overlock", Arial, sans-serif;
  color: #444;
  font-size: 14px;
  line-height: 20px;
  margin: 0px;
  padding: 0px 0px 0px 5px;
}

#created_by {
  width: 960px;
  margin: 0px auto;
  padding: 0px 0px 20px;
  font-family: "overlock", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5em;
  color: #444;
  text-align: center;
}

#created_by a {
  color: #444;
}