/* Basic styles */
html {
	background-image: url('/images/stars.png') !important;
}

/* Angular css tries to overwrite some of these and is currently included later.*/
body {
	width:90%;
	margin: 10px auto !important;
	padding:0px !important;
	font-family: arial;
	font-size:15px;
	color:#112162 !important;
	background-color: #CFD6DC !important; /* Fallback for non-alpha supporting browsers. Taken by screenshotting the transparent section. */
	background-color: rgba(255, 255, 255, 0.8) !important;
}

h1, h2 {
	clear: both;
}

a {
	color:#112162;
}

a:hover {
	color:#ec870e;
}

image {
	border: none;
}

label {
	width: 110px;
	display: block;
	float: left;
	text-align: right;
}

label.unformattedLabel {
	width: auto;
	display: inline;
	float: none;
	text-align: inherit;
}

/* Header and Navigation links */
#menu {
	width: 100%;
	background-color: #000000;
	float: left;
}

#logo{
	height:75px;
	width: 300px;
	float:left;
	background-image:url('/images/logo.gif');
	background-repeat:no-repeat;
}

#menu {
	color:#FFFF99;
	text-align:left;
	line-height: 70px;
}

#menu a {
	font-size: 20px;
	color: #FFFF99;
	text-decoration: none;
}

#nav {
	float:left;
	list-style-type:none;
	padding:0px;
	margin:0px;
}

#nav li{
    float:left;
	margin: 0px 10px;
    position:relative;
	z-index: 100;
}
#nav a{
    display:block;
    text-decoration:none;
}

/*--- DROPDOWN ---*/
#nav ul{
    background:#000;
    list-style:none;
    position:absolute;
    left:-9999px; /* Hide off-screen when not needed */
	line-height: 50px;
	padding:0px;
	margin:0px;
}

#nav ul li{
    float:none;
}

#nav ul a{
	font-size: 17px;
    white-space:nowrap;
}

#nav li:hover ul{
    left:0; /* Bring back on-screen when needed */
}

#menu a:hover {
	color:#ec870e;
}

#login {
	text-align: right;
	line-height: 20px;
}

#mainContent, #footer {
	padding: 15px;
}

#footer {
	clear: both;
	overflow: hidden;
}

#footer .links {
	float: left;
}

#footer .stamps {
	float: right;
}
/* Success and Error messages */
.success, .warning, .error {
	text-align: center;
	margin: 5px auto;
	padding: 8px;
}
.success {
	background-color: #AFA;
	border: solid #0F0 thin;
}
.warning {
	background-color: #FFA;
	border: solid #F00 thin;
}
.error {
	background-color: #FAA;
	border: solid #F00 thin;
}

/* Parts of a page */
.review {
	border: solid black 1px;
	width: 400px;
	margin: auto;
	padding: 10px;
	text-align: center;
}

.thumbnail {
	float: left;
	padding: 10px;
	width: 179px;
}

.gameSummary {
	float: left; /* Hack to ensure the height is correct regardless of thumbnail */
	clear: both;
	width: 95%;
	margin: 20px 0;
	border: 1px solid gray;
}

.gameSummary.ok {
	background-color: rgba(0, 255, 0, 0.5);
}

.gameSummary.attention {
	background-color: rgba(255, 127, 0, 0.5);
}

.gameSummary.urgent {
	background-color: rgba(255, 0, 0, 0.5);
}

.gameLists {
	display: table-cell;
}

.recentMessages {
	background-color: rgba(255, 255, 204, 0.5);
	display: table-cell;
	padding: 2px;
	width: 25%;
}

.recentMessage {
	background-color: rgba(255, 255, 255, 0.5);
	padding: 3px;
	margin: 2px;
}

#commentary {
	border:40px double #5E3008;
	border-image: url("/images/borders/scrollborder.png") 250 round;
	width: calc(100% - 80px);
}

#commentaryInner {
	color: #5E3008;
	background-color: #EBE7C1;
}

#commentaryInner p:first-of-type {
	margin-top: 0;
}

#commentaryInner div:last-child p:last-of-type {
	margin-bottom: 0;
}

#commentary hr {
	color: #5E3008;
}

#commentary h2 {
	margin: 0;
}

.playersTable {
	text-align: center;
}

.playerInfo {
	max-width: 60%;
}

.gameInfo, .playerInfo, .playerHeader, .playerTab, .turnInfo  {
	float: left;
	margin: 10px;
}

.gameInfo {
	padding-left: 10px;
}

.playerTab {
	width: 100%;
}

#playerTabs {
	clear: both;
}

/*.turnInfo.orders {
	max-width: 325px;
}*/

.scrollable {
	height: 700px;
	width: 100%;
	overflow-y: scroll;
}

.prevTurn {
	float: left;
}

.nextTurn {
	float: right;
}

#playerMessages h4 {
	padding-bottom: 0;
	margin-bottom: 0;
}

#playerMessages .unread {
	font-weight: bold;
}

#playerMessages .read {
	font-weight: lighter;
}

table.popfile {
	border-collapse:collapse;
	width: 100%;
}

.popfile th, .popfile td { border: solid 1px black; }

#commentary span[class*='player'] {
	font-weight: bold;
}

#commentary span[class='player0'] {
	font-weight: normal;
}

.player0 {
	color: #000000;
}
.player1 {
	color: #999999;
}
.player2 {
	color: #0099F2;
}
.player3 {
	color: #00FF00;
}
.player4 {
	color: #FF9933;
}
.player5 {
	color: #C932C9;
}
.player6 {
	color: #5C00B8;
}
.player7 {
	color: #2A52CC;
}
.player8 {
	color: #522900;
}
.player9 {
	color: #004900;
}
.player10 {
	color: #FF1414;
}

ul.tree, ul.tree ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

ul.tree ul {
	margin-left: 10px;
	background: url(/images/vline.png) repeat-y;
}

ul.tree ul li {
	margin: 0;
	padding: 0 12px;
	line-height: 20px;
	background: url(/images/node.png) no-repeat;
}

ul.tree ul li:last-child {
	background: #CFD6DC url(/images/lastnode.png) no-repeat;
}

.gameMap {
	max-width: 800px;
}

.playerReport, .provinceReport, .fightReport, .playerScores {
	margin: 15px 0;
	border-collapse: collapse;
}

.playerReport tr, .playerReport th, .playerReport td,
.provinceReport tr, .provinceReport th, .provinceReport td {
	padding: 3px;
	border: solid 1px;
}

.provinceReport thead {
	border-bottom: double;
}

 .provinceReport tfoot {
	border-top: double;
}

.playerScores, .playerScores th, .playerScores td {
    border: none;
    padding: 1px 5px;
    text-align: right;
}


.fightReport, .fightReport th, .fightReport td {
    border: none;
    padding: 1px 5px;
    text-align: left;
}

.playerScores thead tr:last-child,
.fightReport thead tr:last-child {
    border-bottom: 1px solid;
    border-top: none;
}
.playerScores th, .playerScores td,
.fightReport th, .fightReport td {
    border-left: 1px solid;
    border-right: 1px solid;
}
.playerScores th:first-child, .playerScores td:first-child,
.fightReport th:first-child, .fightReport td:first-child {
    border-left: none;
}
.playerScores th:last-child, .playerScores td:last-child,
.fightReport th:last-child, .fightReport td:last-child {
    border-right: none;
}

.fightReport .win {
	color: #1e30fe;
}

.fightReport .loss {
	color: #d70101;
}
/* Forms */
#login>label {
	display:inline;
	float:none;
}

/* Manuals */
.manual table, .manual th, .manual td  {
	border-collapse:collapse;
	border: solid 1px black;
	padding: 3px;
}

.manual thead {
	color: #FFFF99;
	background-color: #000080;
}

.manual tbody.general {
	background-color: #0080FF;
}

.manual tbody.note {
	background-color: #CC0066;
}

.manual tbody.potions {
	background-color: #00CC99;
}

.manual tbody.diamonds {
	background-color: #FFFF99;
}

.manual tbody.stock {
	background-color: #3399FF;
}

.manual tbody.redSpells {
	background-color: #FF9999;
}

.manual tbody.whiteSpells {
	background-color: #FFFFCC;
}

.manual tbody.blackSpells {
	background-color: #CCCCCC;
}

.manual .unimplemented, .manual .unimplemented td {
	background-color: #AAAAAA;
	border: solid 1px #DD0000;
	padding: 0 2px;
}

/* Help pages */
.help form {
	display: table;
}

.help .line {
	display: table-row;
}

.help label, .help input, .help textarea {
	display: table-cell;
	width: auto;
	float: none;
	vertical-align: top;
	margin: 3px;
}

.help label:after {
	content: ": ";
}

/* Generally Useful */
.clear {
	clear: both;
}

.wrapper {
	float: left;
}

.twitter-follow-button {
	position: relative !important;
	top: 4px;
}
