/* General appearance */
* {
	font-family: Arial, sans-serif;
	font-size: 10pt;
	padding: 0px;
	margin: 0px;
	color: white;
}

h1 {
	font-size: 16pt
}

h2 {
	font-size: 14pt
}

h3 {
	font-size: 12pt
}

h4 {
	font-size: 11pt
}

h5 {
	font-size: 11pt
}

h6 {
	font-size: 10pt
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Page layout */
body {
	background: black;
	background-image: url(../img/background.jpg);
	background-position: right bottom;
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-size: cover;
	min-width: 960px;
}

#hd-logo {
	float: left;
	position: relative;
	background: url(../img/rust.png) repeat;
	border-radius: 0 0 30px 0;
	box-shadow: inset -2px -2px 10px #bfbfbf, 2px 2px 30px black;
	margin: 0;
	padding: 0;
	z-index: 1;
}

#hd-logo>a {
	display: block;
	width: 260px;
	height: 96px;
	background: url(../img/logo.png) no-repeat;
	margin: 0;
	padding: 0;
}

#hd-logo>a>span {
	display: none;
}

#hd-summary {
	float: right;
	font-size: 10pt;
	text-align: right;
	padding: 3px 10px 0 0;
}

#hd-page {
	padding: 5px;
}

#hd-page h1 {
	padding: 0;
	margin: 0 0 5px 0;
	font-size: 18pt;
	font-variant: small-caps;
	text-shadow: 0 0 1px white, 2px 2px 4px black;
}

#hd-page ul {
	padding: 0;
	margin: 0;
}

#hd-page li {
	display: inline-block;
}

#hd-page li a {
	font-size: 12px;
	font-variant: small-caps;
	display: block;
	margin: 0 10px;
	padding: 4px 8px;
	background-color: rgba(127, 127, 127, 0.2);
	border-radius: 10px;
	border-style: solid;
	border-width: 1px;
	border-color: rgba(255, 255, 255, 0.3);
	color: #bfbfbf;
	text-shadow: 1px 1px 1px black;
}

#hd-page li.selected a {
	color: white;
	background-color: rgba(127, 127, 127, 0.8);
}

#hd-page li a:hover {
	text-decoration: none;
	border-color: rgba(255, 255, 255, 1);
	color: white;
}

#hd-bar {
	background: url(../img/rust.png) repeat;
	height: 76px;
	box-shadow: inset 0 -2px 10px #bfbfbf, 2px 2px 30px black;
	z-index: 0;
	padding: 0 0 0 260px;
	margin: 0 10px 0 0;
	border-radius: 0 0 20px 0;
}

#hd-text {
	color: white;
	height: 12px;
	font-size: 12px;
	text-align: right;
	font-weight: bold;
	font-style: italic;
	padding: 4px 20px 4px 0px;
}

/* Menu */
#menu-left {
	float: left;
	position: relative;
	width: 200px;
	background: url(../img/rust.png) repeat;
	background-position: 0 -96px;
	border-radius: 0 0 20px 0;
	margin: -20px 0 0 -20px;
	padding: 20px 0 0 20px;
	box-shadow: inset -2px -2px 5px #bfbfbf, 2px 2px 30px black;
	z-index: 0;
}

#menu-left div.button {
	margin: 10px 9px;
}

#menu-left div.button.sub-menu {
	margin: 5px 9px 5px 30px;
}

div.button a {
	display: block;
	color: #bfbfbf;
	text-decoration: none;
	font-weight: bold;
	font-size: 16px;
	text-align: center;
	padding: 5px;
	box-shadow: inset -2px -2px 5px #7f7f7f, 0px 0px 5px #3f3f3f;
	border-radius: 15px;
	border: 1px solid transparent;
	text-shadow: 2px 2px 2px black;
}

div.button.sub-menu a {
	font-size: 11px;
	font-weight: normal;
	text-align: right;
	padding: 3px 10px 3px 3px;
}

div.button.current a {
	border-color: white;
	color: white;
}

div.button a:focus,div.button a:hover {
	color: white;
	box-shadow: inset -2px -2px 5px white, 0px 0px 10px black;
}

/* Footer (DCD link) */
#footer {
	text-align: center;
	margin: 0 0 10px 0;
}

#footer,#footer a {
	font-size: 8pt;
}

/* Content frame */
#page-contents {
	margin: 0 20px 10px -40px;
	padding: 20px 40px 20px 260px;
	border-radius: 40px;
	background-color: rgba(0, 0, 0, 0.7);
	min-height: 400px;
}

.chat-page#page-contents {
	padding: 20px 40px 20px 60px;
}

#page-contents p {
	color: #CCCCCC;
}

#page-contents ul,#page-contents ol {
	margin: 0px 0px 0px 20px;
	padding: 0px 0px 0px 10px;
}

#page-contents li {
	margin: 0px 0px 0px 20px;
	padding: 0px 0px 0px 0px;
}

/* Text in the content frame */
#page-contents ul {
	list-style-type: square;
}

#page-contents li {
	font-size: 10pt;
}

#page-contents li:first-letter {
	font-size: 11pt;
	font-weight: bold;
}

#page-contents p {
	margin: 5px 10px 5px 30px;
	text-align: justify;
	text-indent: 10px;
	font-size: 10pt;
}

#page-contents p:first-letter {
	font-size: 11pt;
	font-weight: bold;
}

/* Forms */
.form-container {
	width: -moz-calc( 100% - 128px );
	width: -webkit-calc( 100% - 128px );
	width: -o-calc( 100% - 128px );
	width: calc( 100% - 128px );
	margin: 0 64px;
}

.form-container table {
	width: 100%;
	table-layout: fixed;
}

.form-field th,.form-submit th {
	text-align: right;
	vertical-align: middle;
	height: 16px;
	min-width: 200px;
	width: 25%;
	padding: 4px;
	font-weight: normal;
}

.form-field td {
	padding: 1px 2px 1px 0px;
}

.form-submit td {
	padding: 10px 0px 30px 0px;
}

.form-part th {
	padding: 30px 0 0 0;
}

.form-submit .input {
	padding: 5px 20px;
}

.form-submit .input:hover , .form-submit .input:focus {
	padding: 5px 20px;
	border-color: #dfdfdf;
	background-color: rgba(127,127,127,0.6);
}

.form-extra td {
	padding: 4px 0px 0px 100px;
	text-align: justify;
}

.form-field .input {
	width: 100%;
	height: 20px;
}

.form-error td {
	font-size: 11pt;
	color: white;
	background-color: rgba(255,0,0,0.4);
	font-weight: bold;
	margin: 2px 0px;
	padding: 5px 10px;
	border-radius: 10px;
}

.input {
	border-style: solid;
	border-width: 1px;
	border-color: #afafaf;
	background-color: rgba(63,63,63,0.6);
	color: white;
	font-size: 10pt;
	margin: 1px 0px;
	border-radius: 8px;
	padding: 0 4px;
}

/* Data display */
.data-table {
	width: 100%;
	margin: 0 0 10px 0;
}

.data-table th {
	text-align: right;
	padding: 2px 10px 2px 0px;
	font-weight: normal;
	color: #cccccc;
	width: 50%;
}

.data-table th.title {
	text-align: center;
	padding: 0px 0px 5px 0px;
	font-weight: bold;
	font-size: 12pt;
	color: white;
}

.data-table td.status {
	text-align: center;
	color: #cccccc;
}

/* List display */
.list-view {
	width: -moz-calc( 100% - 64px );
	width: -webkit-calc( 100% - 64px );
	width: -o-calc( 100% - 64px );
	width: calc( 100% - 64px );
	margin: 0 32px 20px 32px;
	border-collapse: collapse;
}

.list-view th,.list-view td {
	padding: 0;
	margin: 0;
	vertical-align: top;
}

.list-view .headers th {
	border-style: solid;
	border-color: white;
	border-width: 0 0 1px 0;
}

.list-view td {
	color: #cccccc;
}

/* Column layout */
.column {
	width: 50%
}

.left-column {
	float: left
}

.right-column {
	padding: 0 0 0 50%;
}

/* Misc */
div.auto-hide {
	padding: 2px 0px 5px 20px;
}

/* Map */
table.map {
	border: 1px solid white;
	border-collapse: collapse
}

.map td {
	border: 1px solid white;
	vertical-align: top
}

.map img {
	display: block;
	float: left;
	border: 0;
	padding: 0;
	margin: 0;
	border: 0
}

.map a {
	display: block;
	text-decoration: none
}

.map a.own-planet {
	color: #afffaf;
}

.map a.allied-planet {
	color: #afafff;
}

.map a.other-planet {
	color: #ffffaf;
}

.map a.enemy-planet {
	color: #ffafaf;
}

.map-empty div {
	text-align: center;
	font-style: italic
}

div.map-invert {
	cursor: pointer;
}

.map div.map-invert a,.map div.map-invert a.own-planet,.map div.map-invert a.allied-planet,.map div.map-invert a.other-planet
	{
	color: black
}

div.map-bg-none {
	background-color: #cccccc
}

div.map-bg-allied {
	background-color: #afafff
}

div.map-bg-own {
	background-color: #afffaf
}

div.map-bg-other {
	background-color: #ffffaf
}

div.map-bg-enemy {
	background-color: #ffafaf
}

/* Map - 3x3 */
.map-0 {
	width: 540px;
	height: 540px;
	margin: 0 49px 0 48px;
}

.map-0 * {
	font-size: 9pt
}

.map-0 tr {
	height: 180px
}

.map-0 td {
	width: 180px
}

.map-0 div.map-planet {
	height: 36px;
	width: 100%
}

.map-0 img {
	height: 36px;
	width: 36px
}

.map-0 a {
	padding: 10px 0 0 41px
}

.map-0 .map-empty div {
	padding: 82px 0 0 0;
}

/* Map - 5x5 */
.map-1 {
	width: 600px;
	height: 600px;
	margin: 0 19px 0 18px;
}

.map-1 * {
	font-size: 6pt
}

.map-1 tr {
	height: 120px
}

.map-1 td {
	width: 120px
}

.map-1 div.map-planet {
	height: 24px;
	width: 100%
}

.map-1 img {
	height: 24px;
	width: 24px
}

.map-1 a {
	padding: 7px 0 0 27px
}

.map-1 .map-empty div {
	padding: 54px 0 0 0;
}

/* Map - 7x7 */
.map-2 {
	width: 595px;
	height: 595px;
	margin: 0 22px 0 22px;
}

.map-2 * {
	font-size: 4pt
}

.map-2 tr {
	height: 85px
}

.map-2 td {
	width: 85px
}

.map-2 div.map-planet {
	height: 17px;
	width: 100%
}

.map-2 img {
	height: 17px;
	width: 17px
}

.map-2 a {
	padding: 5px 0 0 19px
}

.map-2 .map-empty div {
	padding: 37px 0 0 0;
}

/* Fleets */
table.fleets-planet,table.fleets-moving {
	border: 1px solid white;
	border-collapse: collapse;
	margin: 0 0 20px 5px;
	width: -moz-calc( 100% - 20px );
	width: -webkit-calc( 100% - 20px );
	width: -o-calc( 100% - 20px );
	width: calc( 100% - 20px );
}

table.selected-fleets {
	border: 1px solid white;
	border-collapse: collapse;
	margin: 10px 0 20px 15px;
	width: -moz-calc( 100% - 30px );
	width: -webkit-calc( 100% - 30px );
	width: -o-calc( 100% - 30px );
	width: calc( 100% - 30px );
}

table.fleets-planet td {
	border: 1px solid white;
}

table.fleets-planet td.pic {
	width: 32px;
	height: 32px;
}

table.fleets-planet td.planet-data {
	width: 150px;
	text-align: center;
}

table.fleets-planet th.planet-name {
	text-align: left;
	font-weight: normal;
	padding: 0 0 0 5px;
}

table.fleets-planet p {
	padding: 8px 0px;
	margin: 0;
	text-align: center;
}

table.fleets-list {
	width: 100%;
	padding: 0;
	margin: 0;
	border-style: none;
	border-collapse: collapse;
}

table.fleets-list td,table.selected-fleets td {
	border-style: none;
	vertical-align: top;
	padding: 2px 0px;
}

table.fleets-moving th.mv-header {
	border-style: solid;
	border-width: 0px 0px 1px 0px;
	border-color: white;
	height: 32px;
}

table.fleets-list th,table.selected-fleets th {
	font-weight: bold;
	border-style: solid;
	border-width: 0px 0px 1px 0px;
	border-color: white;
}

table.fleets-list table.data-table th {
	text-align: right;
	padding: 2px 10px 2px 0px;
	font-weight: normal;
	color: #cccccc;
	width: 40%;
	border-style: none;
}

table.fleets-list .selector,table.selected-fleets .selector {
	width: 20px;
	text-align: center;
}

table.fleets-list .name,table.selected-fleets .name {
	text-align: left;
}

table.fleets-list .owner {
	text-align: left;
	width: 120px;
}

table.fleets-list .mode {
	text-align: center;
	width: 20px;
}

table.fleets-list .power,table.selected-fleets .power {
	text-align: right;
	width: 80px;
}

table.fleets-list .fltime,table.selected-fleets .fltime {
	text-align: right;
	width: 80px;
}

table.fleets-list .status {
	text-align: center;
	width: 80px;
}

table.fleets-moving .timeleft {
	text-align: right;
	width: 160px;
}

table.fleets-moving .destination {
	text-align: right;
	width: 160px;
}

table.selected-fleets .status {
	text-align: center;
	width: 60px;
}

table.selected-fleets .cloc {
	text-align: left;
	width: 190px;
}

.list-view .own-fleet,.list-view .own-fleet *,.own-fleet,.own-fleet * {
	color: #afffaf;
}

.list-view .allied-fleet,.list-view .allied-fleet *,.allied-fleet,.allied-fleet *
	{
	color: #afafff;
}

.list-view .enemy-fleet,.list-view .enemy-fleet *,.enemy-fleet,.enemy-fleet *
	{
	color: #ffafaf;
}

.fleet-ships table {
	margin: 0 0 5px 28px;
	width: 300px;
	border-collapse: collapse;
}

.fleet-ships table.data-table {
	margin: 0 0 5px 0;
	width: 280px;
}

.fleet-ships .ships-type {
	text-align: left;
}

.fleet-ships .ships-amount {
	text-align: center;
	width: 60px;
}

.fleet-ships .ships-power {
	text-align: right;
	width: 120px;
}

#fleet-actions {
	text-align: center;
}

/* Messages */
tr.unread-msg * {
	font-weight: bold;
}

tr.int-msg * {
	color: #ffffaf;
}

tr.admin-msg * {
	color: #ffafaf;
}

tr.alliance-msg * {
	color: #afafff;
}

tr.empire-msg * {
	color: #afafaf;
}