body {
    overflow: hidden;
}

#loginViewHolder, #registerViewHolder, #demoViewHolder {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #FFFFFF;

    /*background-image: url(../gfx/bg.jpg);
    background-repeat: no-repeat;
    background-position: center top;*/
}

#gamesViewHolder {
    display: none;
    position: fixed;
    z-index: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #EEEEEE;
    background-image: url(../gfx/bg3.jpg);
    background-repeat: no-repeat;
    background-position: center top;
}

.login {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid black;
    width: 80%;
}

#registerViewHolder input[type=text], #registerViewHolder input[type=password],
#loginViewHolder input[type=text], #loginViewHolder input[type=password] {
    font-size: 24px;
    width:365px;
}

.fieldDescription {
    padding:8px 4px 3px;
}

button.bigRed {
    border: 2px solid #b4b193;
    border-radius: 15px;
    font-size: 27px;
    color: #fbfbe1;
    height:50px;
    width:379px;
    background-color: black;
    background-image: url("../gfx/buttons/bg54-red.png");
    background-repeat: repeat-x;
    background-position: center center;
}

div.logo {
    margin:auto;
    width:1000px;
    /*height:389px;*/
    height:137px;
    color: #fbfbe1;
    background-color: #404040;
    background-image: url(../gfx/top2.png);
    /*border: 2px solid #c1bea0;*/
    border: 2px solid black;
    margin-top:20px;
    text-align: center;
    vertical-align: middle;
    font-size:120px;
}

div.game {
    width:475px;
    border: 2px solid #c1bea0;
    margin:5px;
    float:left;
    background-color: #3a3a3a;
    background-image: url("../gfx/game-bg.png");
    background-repeat: repeat-x;
    background-position: top;
    position:relative;
}

#joinGamePopupHolder div.game {
    width:586px;
}

div.game img.mapMin {
    border-right: 2px solid #c1bea0;
    padding:0px;
    margin:0px;
    float:left;
}

div.game button {
    position: absolute;
    bottom: 9px;
    right: 10px;
}

div.game div.description {
    padding:6px 10px;
    float:left;
    font-size:16px;
    font-weight: bold;
}

#joinGamePopupHolder div.game div.description {
    width:400px;
    padding:10px 10px;
}

div.game div.description td {
    font-size:16px;
}

div.game div.description div.name {

}

div.game div.description div.story {
    font-weight:normal;
    padding-top:4px;
}

#gamesViewHolder div.noGames {
    padding: 60px;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

#joinGamePopupHolder div.loading {
    padding: 40px;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}


div.progressBar {
    background-color: black;
    height: 5px;
    margin-bottom:14px;
    margin-top:4px;
}

div.progressBar div.innerProgressBar {
    background-color: green;
    height: 5px;
    float:left;
}

div.progressBar.negative div.innerProgressBar {
    background-color: #aa0000;
    height: 5px;
    float:left;
}

span.important, div.important, td.important, li.important {
    color: #97ef7b;
}

span.important2, div.important2, td.important2 {
    color: #7ba9ef;
}

.lineThrough {
    text-decoration: line-through;
}

span.disabled, div.disabled {
    color: #dfae9f;
}

.suspended {
    color: #aaa9ae;
}

button.suspended {
    cursor: default;
}

button.lineThrough {
    text-decoration: line-through;
}

.positive {
    color: #97ef7b;
}

.negative {
    color: #dfae9f;
}

.bigText {
    font-size: 125%;
}

.smallText {
    font-size: 75%;
}

.boldText {
    font-weight: bold;
}

.resourcesSmall {
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
}

.resourcesSmall img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
    width: 20px;
    height: 20px;
}

.resourcesMedium {
    font-size: 16px;
    font-weight: bold;
    line-height: 18px;
}

.resourcesMedium img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

.resourcesBig {
    font-size: 16px;
    font-weight: bold;
    line-height: 18px;
}

.resourcesBig img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}
/* joinGameOptionsPopupHolder *****************************************************************************************/

#joinGameOptionsPopupHolder div.map {
    width: 450px;
    height: 450px;
    background-color: #0b97c4;
    /*float:left;*/
    border: 2px solid #c1bea0;
}

#joinGameOptionsPopupHolder div.leftColumn {
    width: 455px;
    float:left;
}

#joinGameOptionsPopupHolder div.rightColumn {
    width: 455px;
    float:left;
    margin-left:10px;
}

#joinGameOptionsPopupHolder div.bonus {
    width: 430px;
    height: 106px;
    border: 2px solid #c1bea0;
    margin-top:10px;
    padding:10px;
    background-color: #3a3a3a;
    background-image: url("../gfx/game-bg.png");
    background-repeat: repeat-x;
    background-position: top;
}

#joinGameOptionsPopupHolder div.civilization {
    width: 436px;
    height: 570px;
    border: 2px solid #c1bea0;
    padding:10px;
    background-color: #3a3a3a;
    background-image: url("../gfx/game-bg.png");
    background-repeat: repeat-x;
    background-position: top;
    position: relative;
}

#joinGameOptionsPopupHolder div.civilization button {
    position: absolute;
    bottom: 9px;
    right: 10px;
}

#joinGameOptionsPopupHolder div.civilizationDescription {
    margin-top:10px;
    /*background-color: red;*/
    height: 485px;
    overflow: auto;
}

/* Starting location **************************************************************************************************/

#startingLocationViewHolder .mapPanelHolder {
    position:absolute;
    top: 0px;
    left:0px;
    right:0px;
    bottom: 0px;
    background-color: black;
}

/* GameView ***********************************************************************************************************/

#gameViewHolder .mapPanelHolder {
    position:absolute;
    top: 42px;
    left:0px;
    right:0px;
    bottom: 0px;
    background-color: black;
}

div.topMenu div.cultureHolder {
    font-size:14px;
    font-weight:bold;
    float:right;
    line-height:38px;
    vertical-align:middle;
}

div.topMenu div.cultureHolder img {
    vertical-align: middle;
    width: 26px;
    height: 26px;
}

div.topMenu div.freezeHolder {
    font-size:14px;
    font-weight:bold;
    float:right;
    line-height:38px;
    vertical-align:middle;
}

div.topMenu div.freezeHolder img {
    vertical-align: middle;
}

div.topMenu div.yearAndEraPanel {
    font-size:14px;
    font-weight:bold;
    float:right;
    line-height:38px;
    vertical-align:middle;
}

div.topMenu div.yearAndEraPanel img {
    vertical-align: middle;
    padding-left: 3px;
    width: 26px;
    height: 26px;
}

div.topMenu .resourceOuterBar {
    background-color: black;
    width: 4px;
    height: 26px;
    float: left;
    margin-left: 3px;
    margin-top: 7px;
    position: relative;
}

div.topMenu .resourceInnerBar {
    background-color: #a87f22;
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
}

div.topMenu .spyOuterBar {
    background-color: black;
    width: 4px;
    height: 26px;
    float: left;
    margin-left: 4px;
    margin-top: 7px;
    position: relative;
}

div.topMenu div.buttonsPanel {
    float:right;
}

div.topMenu div.buttonsPanel button {
    vertical-align: top;
}

div.topMenu div.buttonsPanel button.smallButton {
    padding: 0px;
    width: 42px;
    margin-right: 1px;
}

div.topMenu div.globalResource {
    margin-left:12px;
    float:left;
    line-height:38px;
}

div.topMenu div.globalResource.onlyValue {
    margin-left:1px;
}

div.topMenu .globalResource span.incomeField {
    font-size:14px;
    font-weight:bold;
    padding-left: 1px;
    vertical-align: middle;
    position: relative;
    top: 0px;
}

div.topMenu .globalResource span.storageField {
    font-size:16px;
    font-weight:bold;
    padding-left: 2px;
    vertical-align: middle;
}

div.topMenu .globalResource img {
    vertical-align: middle;
    /* padding-left: 3px; */
}

/* CityTemporaryBonusesPanel ******************************************************************************************/

.CityTemporaryBonusesPanelHolder .content {
    padding: 8px;
    font-weight: bold;
}

.CityTemporaryBonusesPanelHolder .content .temporaryBonus {
    padding-top: 4px;
}

.CityTemporaryBonusesPanelHolder .content .temporaryBonus .progressBar {
    margin-bottom: 6px;
}

.CityTemporaryBonusesPanelHolder .content .temporaryBonus img {
    width: 20px;
    height: 20px;
}

/* SpyMissionsPopup ***************************************************************************************************/

#SpyMissionsPopupHolder .infiltrationHolder {
    padding-top: 8px;
}

/*#SpyMissionsPopupHolder .infiltrationLimitField {
    font-size: 18px;
}

#SpyMissionsPopupHolder .infiltrationIncomeField {
    font-size: 18px;
}

#SpyMissionsPopupHolder .infiltrationField {
    font-size: 24px;
}*/

#SpyMissionsPopupHolder .spyMissionButtons button {
    width: 100%;
    margin-bottom: 5px;
}

#SpyMissionsPopupHolder .spyMissionButtons button img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

/* Project table ******************************************************************************************************/

table.projectTable {
    border-spacing: 0px;
    border-collapse: separate;
}

table.projectTable.fullWidth {
    width: 100%
}

table.projectTable tr {
    height: 50px;
}

table.projectTable tr.remarksRow {
    height: inherit;
}

table.projectTable tr.remarksRow ul {
    padding-left: 50px;
    margin-top: 0px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #aaa9ae;
}

table.projectTable tr.odd {
    background-color: rgba(0,0,0,0.25);
}

table.projectTable tr.selected {
    background-color: rgba(255,255,255,0.25);
}

table.projectTable tr.odd.selected {
    background-color: rgba(255,255,255,0.25);
}

table.projectTable th {
    text-align: center;
    vertical-align:middle;
    font-size: 16px;
    color:black;
    background-color: rgba(255,255,255,0.5);
    border: 1px solid rgba(40,40,40,1);
}

table.projectTable tr.disabledRow td {
    color: #aaa9ae;
}

table.projectTable td {
    font-size:16px;
    font-weight:bold;
    position: relative;
    padding: 2px 4px;
}

table.projectTable td img.mainIcon {
    position:absolute;
    top: 6px;
    left: 4px;
}

table.projectTable td img.removedIcon {
    position:absolute;
    top: 10px;
    left: 7px;
}

table.projectTable td.projectName {
    width: 200px;
}

table.projectTable td.projectName>div {
    padding-left: 50px;
}

table.projectTable td .level {
    font-size:14px;
}

table.projectTable td.projectCost {
    width:240px;
    text-align:left;
}

table.projectTable td.projectPopulation {
    width:75px;
    text-align: right;
}

table.projectTable td.projectBuildingSpace {
    width:60px;
    text-align: right;
}

table.projectTable td.projectTime {
    width:100px;
    text-align: right;
}

table.projectTable td.actionButtons {
    width: auto;
}

table.projectTable td.actionButtons button {
    width: 220px;
    font-size:18px;
    margin-top: 3px;
    float:right;
    padding-left: 5px;
    padding-right: 5px;
}

table.projectTable td.projectLevel {
    width:25px;
    padding-right: 20px;
    font-size:18px;
    text-align: right;
}

table.projectTable td.projectIncome {
    width:auto;
}

table.projectTable td.projectIncome ul {
    margin: 2px 0px;
}

table.projectTable td.projectSupportGold {
    width:75px;
    text-align: right;
}

table.projectTable td.projectGold {
    width:120px;
    text-align: right;
}

table.projectTable td.projectScore {
    width:100px;
    text-align: right;
}

table.projectTable td.projectSpecialist {
    width:150px;
    text-align: right;
    font-size:18px;
}

/* Help ***************************************************************************************************************/

#HelpPanelHolder {
    background-color: rgba(40,40,40,1);
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    z-index: 200;
    overflow: auto;
}

#HelpPanelHolder div.categoriesHolder {
    position:absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    height: 48px;
}

#HelpPanelHolder div.categoriesHolder .categoryButtons {
    padding-left: 10px;
    padding-top: 8px;
}

#HelpPanelHolder div.articleList {
    position:absolute;
    left: 0px;
    top: 50px;
    bottom: 0px;
    width: 298px;
}

#HelpPanelHolder div.articleList div.categorySelect {
    padding: 8px;
}

#HelpPanelHolder div.articleList div.categoryArticleList {
    overflow-y: auto;
    position:absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    right: 0px;
}

#HelpPanelHolder div.articleContentHolder {
    overflow-y: auto;
    position:absolute;
    left: 300px;
    right: 0px;
    top: 50px;
    bottom: 0px;
}

#HelpPanelHolder div.articleContent img.articleIcon {
    position: absolute;
    left:8px;
    top: 8px;
}

#HelpPanelHolder div.articleContent div.header {
    font-weight: bold;
    font-size: 14px;
    padding: 8px 8px 8px 54px;
    min-height: 38px;
}

#HelpPanelHolder div.articleContent .title {
    font-weight: bold;
    font-size: 18px;
}

#HelpPanelHolder div.articleContent div.section {
    font-weight: bold;
    font-size: 14px;
    padding-top: 16px;
    padding-left: 8px;
    padding-right: 8px;
}

#HelpPanelHolder div.articleContent div.bottomGap {
    padding-bottom: 12px;
}

#HelpPanelHolder div.articleContent div.section div.title {
    color: #97ef7b;
    font-weight: bold;
    font-size: 18px;
    padding-bottom: 6px;
    padding-top: 4px;
}

/*#HelpPanelHolder div.closeX {*/
.panel div.closeX {
    position: absolute;
    right: 5px;
    top:5px;
    cursor: pointer;
    cursor: hand;
}

#HelpPanelHolder table.settlementStatsTable  td:nth-child(1) {
    text-align: right;
}

#HelpPanelHolder table.settlementStatsTable td img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

#HelpPanelHolder .traditionName {
    font-size: 16px;
}

#HelpPanelHolder .traditionDescription {
    font-size: 14px;
    color: #aaa9ae;
}

#HelpPanelHolder table.traditionTable td {
    padding: 3px;
}

#HelpPanelHolder table.traditionTable td:nth-child(1) {
    width:38px;
}

#HelpPanelHolder table.traditionTable td:nth-child(2) img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
    width: 20px;
    height: 20px;
}

/* Declare war ********************************************************************************************************/

.declareWarMessageHolder ul {
    margin-bottom: 4px;
}

.declareWarMessageHolder .allies {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Emperor description ************************************************************************************************/

.emperorDescription {
    font-weight: bold;
}

.emperorDescription .listTitle {
    font-size: 16px;
}

.emperorDescription li img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

/* Other **************************************************************************************************************/

#TradePopupHolder .contentHolder {
    position: absolute;
    top: 60px;
    left: 12px;
    right: 12px;
    bottom: 60px;
    overflow-y: auto;
}

#TradePopupHolder .wareTypeDescription {
    padding-top: 18px;
    padding-bottom: 3px;
}


#TradePopupHolder table.wareTable {
    width: 100%;
    border-spacing: 0px;
    border-collapse: separate;
}

#TradePopupHolder table.wareTable tr:nth-of-type(odd) {
    background-color: rgb(30,30,30);
}

#TradePopupHolder table.wareTable tr:nth-of-type(even) {
    background-color: rgb(35,35,35);
}

#TradePopupHolder table.wareTable td {
    padding: 4px 2px;
}

#TradePopupHolder table.wareTable td:nth-child(1) {
    text-align: right;
    width: 100px;
}

#TradePopupHolder table.wareTable td:nth-child(2) {
    text-align: center;
    width: 30px;
}

#TradePopupHolder table.wareTable td:nth-child(3) {
    text-align: left;
    width: 100px;
}

#TradePopupHolder table.wareTable td:nth-child(4) {
    text-align: right;
    width: auto;
    padding-right: 10px;
}

#TradePopupHolder table.wareTable td:nth-child(5) {
    text-align: right;
    width: 170px;
}

#TradePopupHolder table.wareTable td:nth-child(5) button {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 18px;
    height: 36px;
}

#TradePopupHolder table.wareTable td:nth-child(5) button img {
    vertical-align: middle;
    padding-left: 3px;
}

#TradePopupHolder .noWares {
    margin: 30px 10px 10px;
    text-align: center;
    color: #aaa9ae;
}

#TradePopupHolder .tradeOfferLimit {
    font-size: 16px;
}

#TradePopupHolder button[name="cancelButton"] {
    position: absolute;
    right: 12px;
    bottom: 12px;
}

#TradePopupHolder .comment {
    font-size: 14px;
    color: #aaa9ae;;
}

#TradePopupHolder table.tradeOfferTable {
    width: 100%;
    border-spacing: 0px;
    border-collapse: separate;
}

#TradePopupHolder table.tradeOfferTable tr:nth-of-type(odd) {
    background-color: rgb(30,30,30);
}

#TradePopupHolder table.tradeOfferTable tr:nth-of-type(even) {
    background-color: rgb(35,35,35);
}

#TradePopupHolder table.tradeOfferTable td {
    padding: 4px 2px;
}

#TradePopupHolder table.tradeOfferTable td:nth-child(1) {
    padding-left: 8px;
}

#TradePopupHolder table.tradeOfferTable td:nth-child(2) {
    width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#TradePopupHolder table.tradeOfferTable td:nth-child(3) {
    text-align: right;
    width: 170px;
}

#TradePopupHolder table.tradeOfferTable td:nth-child(3) button {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 18px;
    height: 36px;
}

/* Civilization panel *************************************************************************************************/

#StartingLocationCivilizationPanelHolder {
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    width: 360px;
}

#StartingLocationCivilizationPanelHolder .civilizationHolder {
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 8px;
    overflow:auto;
}

#StartingLocationCivilizationPanelHolder .civilizationHolder select {
    width: 100%;
    font-size: 18px;
    font-weight: bold;
}

#StartingLocationCivilizationPanelHolder .civilizationHolder .title {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 20px;
    padding-top: 4px;
}

#StartingLocationCivilizationPanelHolder .civilizationHolder .fieldLabel {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
}

#StartingLocationCivilizationPanelHolder .civilizationHolder .descriptionHolder {
    padding-top: 8px;
    font-weight: bold;
}

#StartingLocationCivilizationPanelHolder .civilizationHolder .descriptionHolder .section {
    padding-top: 8px;
    font-size: 14px;
}

#StartingLocationCivilizationPanelHolder .civilizationHolder .descriptionHolder .subTitle {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 16px;
    color: #97ef7b;
}

#StartingLocationCivilizationPanelHolder .reservedTimeHolder {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 32px;
    font-size: 16px;
    font-weight: bold;
    padding-left: 8px;
    padding-right: 8px;
}

/* Intro panel ********************************************************************************************************/

/*#IntroPanelHolder .endIntroButton {
    position: absolute;
    bottom: 50px;
    left: 50%;
    margin-left: -150px;
    width: 300px;
}*/

#IntroPanelHolder {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    top: 0px;
    z-index: 1000;
    background: black;
    /*font-size: 16px;
    font-weight: bold;
    padding-left: 8px;
    padding-right: 8px;*/
}

#IntroPanelHolder .introTextHolder {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
}

#IntroPanelHolder .introImage {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Tooltip2 ************************************************************************************************************/

div.tooltipContent2 {
    font-size: 14px;
    font-weight: bold;
    max-width: 400px;
}

div.tooltipContent2 .title {
    font-size: 16px;
    margin-bottom: 8px;
}

div.tooltipContent2 img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

div.tooltipContent2 .description {
    margin-bottom: 6px;
}

div.tooltipContent2 li {
    line-height: 18px;
}

/* Tooltip ************************************************************************************************************/

div.tooltipContent .smallTitle {
    font-size: 14px;
    font-weight: bold;
    margin-top: 4px;
    margin-bottom: 2px;
}

div.tooltipContent .title {
    font-size: 16px;
    font-weight: bold;
    margin-top: 4px;
    margin-bottom: 2px;
}

div.tooltipContent .description {
    font-size: 14px;
    font-weight: bold;
    margin-top: 8px;
}

div.tooltipContent li {
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
}

div.tooltipContent img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

div.tooltipContent div.happinessFactor {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
}

div.tooltipContent div.happinessFactor div.value {
    width: 35px;
    float: left;
    text-align: right;
}

div.tooltipContent div.happinessFactor div.icon {
    width: 30px;
    float: left;
    text-align: left;
}

div.tooltipContent div.happinessFactor div.icon img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

div.tooltipContent div.happinessFactor div.info {
    width: 255px;
    float: left;
    text-align: left;
}

/* Quest **************************************************************************************************************/

#QuestPanelHolder {
    position:absolute;
    top:48px;
    left:0px;
    z-index:10;
}

#QuestPanelHolder .questCountHolder {
    font-weight: bold;
    font-size: 16px;
    padding: 6px 16px;
}

#QuestPanelHolder .questCountHolder img {
    vertical-align: middle;
    height: 10px;
}

#QuestPanelHolder .questList {
    padding: 0px 8px 8px 8px;
    width: 500px;
    overflow-y: auto;
    max-height: 420px;
}

#QuestPanelHolder .questList .conditionDescription {
    font-weight: bold;
}

#QuestPanelHolder .questList .rewardDescription {
    font-weight: bold;
    height: 27px;
}

#QuestPanelHolder .questList td img {
    vertical-align: middle;
}

#QuestPanelHolder .questList .questRow {
    position: relative;
    margin-top: 15px;
}

#QuestPanelHolder .questList .questRow button.rewardButton {
    font-size: 16px;
    padding:4px 16px;
    border-radius: 8px;
    font-weight: bold;
    width: 100%;
    margin-bottom: 5px;
    text-align: left;
}

#QuestPanelHolder .questList .questRow button.rewardButton img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

#QuestPanelHolder .questList table {
    width: 100%;
}

#QuestPanelHolder .questList table td:nth-child(1) {
    width:17px;
}

/* Boost panel ********************************************************************************************************/

#TimeBoostPanelHolder {
    position:absolute;
    left: 10px;
    z-index: 10;
    bottom: -73px;
}
#TimeBoostPanelHolder .boostButton {
    width: 56px;
    height: 56px;
    position: relative;
}

#TimeBoostPanelHolder .boostButton .leftPart {
    width: 28px;
    height: 56px;
    position: absolute;
    left: 0px;
    background-image: url("../gfx/icons/game/boost-full.png");
    background-position: left;
    z-index: 12;
}

#TimeBoostPanelHolder .boostButton .rightPart {
    width: 28px;
    height: 56px;
    position: absolute;
    right: 0px;
    background-image: url("../gfx/icons/game/boost-empty.png");
    background-position: right;
    z-index: 12;
}

#TimeBoostPanelHolder .boostButton .halfPart {
    width: 56px;
    height: 56px;
    position: absolute;
    background-image: url("../gfx/icons/game/boost-half.png");
    z-index: 11;
}

#TimeBoostPanelHolder .boostButton .overlay {
    width: 56px;
    height: 56px;
    position: absolute;
    background-image: url("../gfx/icons/game/boost-overlay.png");
    z-index: 13;
}

#TimeBoostPanelHolder .boostButton .countField {
    position: absolute;
    left: 0px;
    right: 0px;
    text-align: center;
    top: 14px;
    z-index: 14;
    font-size: 24px;
    font-weight: bold;
    color: #fbfbe1;
}

#TimeBoostPanelHolder .boostButton .button {
    width: 56px;
    height: 56px;
    position: absolute;
    z-index: 15;
}

/* Game Rankings ******************************************************************************************************/

table.gameRankingsTable {
    border-spacing: 0px;
    width: 100%;
}

table.gameRankingsTable tr:nth-of-type(even) {
    background-color: rgba(0,0,0,0.25);
}

table.gameRankingsTable tr:not(:nth-child(1)):hover {
    background-color: rgba(255,255,255,0.1);
}

table.gameRankingsTable td {
    border-top: 2px solid #c1bea0;
    height: 45px;
}

table.gameRankingsTable .own {
    font-size: 18px;
    color: #97ef7b;
}

table.gameRankingsTable td img {
    vertical-align: middle;
    padding-bottom: 3px;
}

table.gameRankingsTable th {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 5px;
}

table.gameRankingsTable th:nth-child(2),
table.gameRankingsTable th:nth-child(3),
table.gameRankingsTable th:nth-child(4),
table.gameRankingsTable th:nth-child(5),
table.gameRankingsTable th:nth-child(6) {
    width: 120px;
}

table.gameRankingsTable td:nth-child(1) {
    text-align: right;
    font-size: 18px;
    font-weight: bold;
}

table.gameRankingsTable td:nth-child(2),
table.gameRankingsTable td:nth-child(3),
table.gameRankingsTable td:nth-child(4),
table.gameRankingsTable td:nth-child(5),
table.gameRankingsTable td:nth-child(6) {
    text-align: center;
    color: #CCCCCC;
    font-size: 16px;
}

table.gameRankingsTable td.legendaryBuildingsCell {
    text-align: left;
    padding-left: 8px;
}

table.gameRankingsTable td.legendaryBuildingsCell img {
    width: 30px;
    height: 30px;
    margin-left: 3px;
}

/* KingdomRelationsTable **********************************************************************************************/

table.kingdomRelationsTable {
    width:100%;
    border-spacing: 0px;
    border-collapse: separate;
}

table.kingdomRelationsTable.distinctRows tr:nth-of-type(even) {
    background-color: #333333;
}

table.kingdomRelationsTable.distinctRows tr:hover {
    background-color: #555555;
}

table.kingdomRelationsTable td {
    font-weight: bold;
    padding: 2px;
}

table.kingdomRelationsTable td.lastCell img {
    vertical-align: middle;
}

table.kingdomRelationsTable td.lastCell {
    text-align: right;
    width: auto;
}

table.kingdomRelationsTable td.lastCell img {
    padding-right: 3px;
}

table.kingdomRelationsTable td.nameCell {
    padding-left: 4px;
    padding-right: 4px;
    width: 150px;
}

table.kingdomRelationsTable td.nameCell img {
    vertical-align: middle;
    padding-left: 6px;
    padding-bottom: 3px;
}

table.kingdomRelationsTable td.pointsCell {
    width: 60px;
    text-align: right;
}

table.kingdomRelationsTable td.flagCell {
    width: 30px;
    height: 29px;
    background: url("../gfx/icons/flags/background.png") no-repeat center center;
    text-align: center;
    vertical-align: middle;
}

/* negotiation ********************************************************************************************************/

table.negotiationTable {
    width: 100%;
    border-spacing: 0px;
    border-collapse: separate;
    border-bottom: 2px solid #c1bea0;
}

table.negotiationTable tr:nth-child(1) {
    background-color: #555555;
    font-size: 18px;
}

table.negotiationTable tr:nth-child(2) {
    height: 450px;
    vertical-align: top;
}

table.negotiationTable tr:nth-child(3) td {
    border-top-width: 0px;
}

table.negotiationTable tr:nth-child(3) td button {
    width: 100%;
}

table.negotiationTable td {
    width:50%;
    border-top: 2px solid #c1bea0;
    padding: 10px 6px;
}

table.negotiationTable td:nth-child(1) {
    border-left: 2px solid #c1bea0;
    border-right: 1px solid #c1bea0;
}

table.negotiationTable td:nth-child(2) {
    border-right: 2px solid #c1bea0;
    border-left: 1px solid #c1bea0;
}

/* Ranking and stats **************************************************************************************************/

#RankingAndStatsPanelHolder {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    z-index: 2;
    overflow: auto;
    font-weight: bold;
    background-color: rgba(40,40,40,1);
}

#RankingAndStatsPanelHolder .marginHolder {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 20px;
    bottom: 20px;
}

#RankingAndStatsPanelHolder .rankingTitleHolder {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    height: 85px;
}

#RankingAndStatsPanelHolder .rankingTitleHolder .rankingTitle {
    padding-left: 10px;
    padding-top: 8px;
    font-size: 24px;
}

#RankingAndStatsPanelHolder .rankingTitleHolder .gameTimeHolder {
    padding-left: 6px;
    padding-right: 6px;
}

#RankingAndStatsPanelHolder .rankingTitleHolder .gameTime {
    padding: 6px;
    font-size: 16px;
}

#RankingAndStatsPanelHolder .rankingTitleHolder div.outerBar {
    background-color: #000000;
    height:8px;
    margin-bottom: 4px;
}

#RankingAndStatsPanelHolder .rankingTitleHolder div.innerBar {
    background-color: #008000;
    height:8px;
    width: 20%;
}

#RankingAndStatsPanelHolder .kingdomListHolder {
    position: absolute;
    left: 0px;
    top: 397px;
    bottom: 0px;
    width: 400px;
}

#RankingAndStatsPanelHolder .challengeHolder {
    position: absolute;
    left: 0px;
    top: 97px;
    height: 280px;
    width: 400px;
}

#RankingAndStatsPanelHolder .scorePlotHolder {
    position: absolute;
    left: 412px;
    top: 97px;
    bottom: 0px;
    right: 0px;
}

#RankingAndStatsPanelHolder .scoreButtonsHolder {
    padding: 6px 0px 6px 6px;
}

#RankingAndStatsPanelHolder .scoreButtonsHolder button {
    width: 95px;
    margin-right: 2px;
    padding-left: 0px;
    padding-right: 0px;
}

#RankingAndStatsPanelHolder .scorePlotHolder .plotHolder {
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 30px;
    right: 10px;
}

#RankingAndStatsPanelHolder .scorePlotHolder .xLabel {
    position: absolute;
    left: 10px;
    height: 20px;
    bottom: 10px;
    right: 10px;
    font-size: 16px;
    text-align: center;
}

#RankingAndStatsPanelHolder .scoreDetailsHolder {
    padding-left: 8px;
    padding-top: 6px;
    font-size: 16px;
}

#RankingAndStatsPanelHolder .scoreDetailsHolder .scoreDetailsTitle {
    font-size: 18px;
    padding-bottom: 8px;
}

#RankingAndStatsPanelHolder .scoreDetailsHolder .scoreTable td:nth-child(1) {
    text-align: right;
    width:70px;
}

#RankingAndStatsPanelHolder .scoreDetailsHolder .scoreTable td:nth-child(2) {
    color: #aaa9ae;
}

#RankingAndStatsPanelHolder .scoreDetailsHolder .multipliersLabel {
    padding-top: 16px;
    padding-bottom: 6px;
}

/* Frozen kingdoms panel **********************************************************************************************/


#FrozenUnitsPanelHolder {
    position: absolute;
    bottom: 60px;
    left: 5px;
    color: #fbfbe1;
}

div.__mode__TechnologyMode #FrozenUnitsPanelHolder {
    left: 372px;
}

div.__mode__ForeignCityMode #FrozenUnitsPanelHolder {
    left: 350px;
}

#FrozenUnitsPanelHolder .frozenKingdomIconHolder {
    position: relative;
    width: 42px;
    height: 42px;
    /* background-size: cover; */
    /* background-image: url("../gfx/icons/game/grey-circle.png"); */
    float: left;
    margin-left: 5px;
    border-radius: 50%;
    border: 2px solid #ede7c8;
    background-color: #424242;
}

#FrozenUnitsPanelHolder .frozenKingdomIconHolder.black {
    background-color: #000000;
}

#FrozenUnitsPanelHolder .frozenKingdomIconHolder .secondsLeftField {
    font-weight: bold;
    font-size: 20px;
    padding-top: 10px;
    text-align: center;
}

#FrozenUnitsPanelHolder .frozenKingdomIconHolder img.flagIcon  {
    left: 11px;
    top: 34px;
    position: absolute;
    width: 22px;
    height: 22px;
}

/* Challenges *********************************************************************************************************/

table.challengeTable {
    width: 100%;
}

table.challengeTable td {
    width: auto;
}

table.challengeTable img.challengeIcon {
    width: 75px;
    height: 79px;
}

table.challengeTable img.star {
    width: 17px;
    height: 18px;
}

table.challengeProgressTable {
    margin: auto;
}

table.challengeProgressTable td {
    text-align: center;
}

/* Mini chat **********************************************************************************************************/

#MiniChatPanelHolder {
    position:absolute;
    right:0px;
    top:42px;
    /* width: 412px; */
    width: 428px;
    height: 33px;
    z-index:10;
}

.__mode__IncidentMode #MiniChatPanelHolder {
    right:262px;
}

#MiniChatPanelHolder .chatDescription {
    padding-left: 12px;
    padding-top: 8px;
    font-size: 16px;
    font-weight: bold;
}

/* Chat ***************************************************************************************************************/

#ChatPanelHolder {
    position:absolute;
    right:0px;
    top:42px;
    width: 428px;
    height: 22px;
    z-index:10;
    height: 300px;
}

.__mode__IncidentMode #ChatPanelHolder {
    right:262px;
}

.expandChatButton {
    background-color: black;
    width: 35px;
    height: 33px;
    position: absolute;
    z-index:10;
    top: 0px;
    left: -39px;
    text-align: center;
    vertical-align: middle;
}

.expandChatButton img {
    vertical-align: middle;
    height: 10px;
    padding-top: 10px;
}

#ChatPanelHolder .newMessageHolder {
    position:absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

#ChatPanelHolder .messagesHolder {
    position:absolute;
    top: 36px;
    /*top: 0px;*/
    left: 0px;
    right: 0px;
    bottom: 60px;
    overflow-y: auto;
    font-weight: bold;
}

#ChatPanelHolder .chatListHolder {
    position:absolute;
    top: 36px;
    left: 0px;
    right: 0px;
    bottom: 60px;
    overflow-y: auto;
    font-weight: bold;
    background-color: black;
    padding: 4px 8px;
    z-index: 2;
}

#ChatPanelHolder .selectedChatHolder {
    position:absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 25px;
    font-weight: bold;
    background-color: black;
    padding: 4px 8px;
}

#ChatPanelHolder .selectedChatHolder .downArrow {
    position: absolute;
    right: 12px;
    top: 13px;
}

#ChatPanelHolder .selectedChatHolder .iconsField {
    position: absolute;
    right: 38px;
    top: 4px;
}

#ChatPanelHolder .selectedChatHolder .downArrow img {
    height: 10px;
}

#ChatPanelHolder .messagesHolder .message {
    padding: 4px 6px;
}

#ChatPanelHolder .messagesHolder .message img {
    vertical-align: middle;
    padding-bottom: 3px;
}

#ChatPanelHolder .messagesHolder .message img.chatOptions {
    height: 20px;
    margin-left: 4px;
    visibility: hidden;
}

#ChatPanelHolder .messagesHolder .message:hover img.chatOptions {
    height: 20px;
    margin-left: 3px;
    visibility: visible;
}

#ChatPanelHolder img.diplomacyLinkIcon {
    height: 24px;
    position: fixed;
    margin-left: 316px;
    margin-top: 3px;
    z-index: 1;
    visibility: hidden;
}

#ChatPanelHolder:hover img.diplomacyLinkIcon {
    visibility: visible;
}

#ChatPanelHolder .messagesHolder .message .header {
    color: #97ef7b;
}

#ChatPanelHolder .messagesHolder .message .header img {
    width: 20px;
}

#ChatPanelHolder .newMessageHolder textarea {
    resize: none;
    width: 416px;
    height: 50px;
    border-radius: 0px;
    border-width: 0px;
}

#ChatPanelHolder .loadingOverlay {
    z-index: 11;
    opacity: 0.8;
    background-color: #707070;
    position:absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
}

#ChatPanelHolder .loadingOverlay img {
    position:absolute;
    left: 50%;
    top: 50%;
    margin-left: -33px;
    margin-top: -33px;
}

#ChatPanelHolder table.kingdomTable {
    width:100%;
    border-spacing: 0px;
    border-collapse: separate;
}

#ChatPanelHolder table.kingdomTable tr:hover {
    background-color: #555555;
}

#ChatPanelHolder table.kingdomTable td {
    font-weight: bold;
    padding: 2px;
}

#ChatPanelHolder table.kingdomTable td:nth-child(1) {
    width: 28px;
    height: 26px;
    /*background: url("../gfx/icons/flags/background.png") no-repeat center center;*/
    text-align: center;
    vertical-align: middle;
}

#ChatPanelHolder table.kingdomTable td:nth-child(2) {
    padding-right: 4px;
    font-size: 16px;
}

#ChatPanelHolder table.kingdomTable td:nth-child(3) {
    width: 100px;
    padding-right: 4px;
    text-align: right;
}

.chatPanelBase div.newMessages {
    background: url(../gfx/icons/game/new-messages.png) no-repeat center center;
    width: 24px;
    height: 20px;
    position: absolute;
    left: -73px;
    top: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding-right: 5px;
    padding-top: 4px;
}

.chatPanelBase div.newMessages.inverted {
    background: url(../gfx/icons/game/new-messages2.png) no-repeat center center;
    color: #04041e;
}

/* SettingsPanel ******************************************************************************************************/

#SettingsPanelHolder {
    position:absolute;
    bottom: 38px;
    right: 0;
    width: 250px;
}

#SettingsPanelHolder .settingsPanelContent {
    padding: 8px; 
    font-weight: bold; 
    font-size: 16px;
}

#SettingsPanelHolder .settingsPanelContent>div:not(:first-child) {
    padding-top: 3px;
}

/* SettingsButtonPanel ************************************************************************************************/

#TrainUnitPopupHolder .contentRow {
    font-size: 16px;
    padding-bottom: 6px;
}

#TrainUnitPopupHolder .contentRow img {
    vertical-align: middle;
    width: 20px;
    height: 20px;
    padding-left: 3px;
    padding-bottom: 3px;
};

#TrainUnitPopupHolder .valueField {
    font-size: 20px;
}

#TrainUnitPopupHolder .citySelect {
    width:100%; 
    font-size: 16px;
}

#TrainUnitPopupHolder .trainButton img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

/* SettingsButtonPanel ************************************************************************************************/

#SettingsButtonPanelHolder {
    position:absolute;
    right:7px;
    bottom:7px;
    z-index:10;
}

#SettingsButtonPanelHolder img.settingsButton {
    width: 34px; 
    height: 35px;
}

body.mobileUIMode .__mode__UnitMode #SettingsButtonPanelHolder {
    bottom:309px;
}

body.pcUIMode .__mode__UnitMode #SettingsButtonPanelHolder {
    bottom:267px;
}

/* Trade resources ****************************************************************************************************/

#TradeResourcesPopupHolder .buySellHolder {
    padding-top: 5px;
    padding-bottom: 20px;
}

#TradeResourcesPopupHolder .buySellHolder table {
    border-spacing: 0px;
    border-collapse: separate;
}

#TradeResourcesPopupHolder .buySellHolder button {
    width: 320px;
    font-size: 18px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 0px;
    padding-right: 0px;
    margin: 0px;
}

#TradeResourcesPopupHolder .buySellHolder button img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

#TradeResourcesPopupHolder .amountHolder {
    font-size: 16px;
}

#TradeResourcesPopupHolder .amountHolder button {
    width: 75px;
    font-size: 18px;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* PoliciesPopup ******************************************************************************************************/

.policiesPopup div.mainGroup {
    padding-top:8px;
    height: 42px;
}

.policiesPopup div.even {
    background-color: #333333;
}

.policiesPopup div.odd {
    background-color: #222222;
}

.policiesPopup div.mainGroup div.left {
    width: 48%;
    float: left;
    position: relative;
}

.policiesPopup div.mainGroup div.right {
    width: 48%;
    float: right;
    position: relative;
}

.policiesPopup div.left div.policyName {
    font-weight: bold;
    font-size: 18px;
    width:180px;
    left: 0px;
    top: 8px;
    text-align: right;
    position: absolute;
}

.policiesPopup div.right div.policyName {
    font-weight: bold;
    font-size: 18px;
    width:180px;
    right: 0px;
    top: 8px;
    text-align: left;
    position: absolute;
}

.policiesPopup div.line {
    width: 30px;
    height: 3px;
    margin-top: 17px;
    margin-left: 4px;
    margin-right: 4px;
    background: #c1bea0;
    opacity: 0.4;
}

.policiesPopup div.lineActive {
    width: 30px;
    height: 3px;
    margin-top: 17px;
    margin-left: 4px;
    margin-right: 4px;
    background: #c1bea0;
}

.policiesPopup div.unknown {
    width: 28px;
    height: 28px;
    margin: 4px;
    background: url(../gfx/icons/game/policy-locked.png) no-repeat;
    opacity: 0.33;
}

.policiesPopup div.locked {
    width: 28px;
    height: 28px;
    margin: 4px;
    background: url(../gfx/icons/game/policy-locked.png) no-repeat;
}

.policiesPopup div.active {
    width: 32px;
    height: 32px;
    margin: 2px;
    background: url(../gfx/icons/game/policy-active.png?) no-repeat;
}


.policiesPopup div.removeActive {
    width: 32px;
    height: 32px;
    margin: 2px;
    background: url(../gfx/icons/game/policy-active.png?) no-repeat;
    cursor: pointer;
    cursor: hand;
}

.policiesPopup div.removeActive:hover {
    background: url(../gfx/icons/game/policy-remove-active.png?) no-repeat;
}

.policiesPopup div.available {
    width: 36px;
    height: 36px;
    background: url(../gfx/icons/game/policy-available.png) no-repeat;
    cursor: pointer;
    cursor: hand;
}

.policiesPopup div.mainGroup div.left div {
    float:right;
}

.policiesPopup div.mainGroup div.right div {
    float:left;
}

.policiesPopup .costField {
    font-weight: bold;
    font-size:16px;
    margin: 4px 4px 10px 4px;
}

.policiesPopup .costField img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

.policiesPopup .otherPolicies {
    padding-left:0;
    padding-top:5px;
    min-height: 120px;
}

.policiesPopup .emptyTraditions {
    padding-top: 40px;
    text-align: center;
    color: #aaa9ae;
    font-size: 16px;
}

div.otherPolicyBox {
    width: 120px;
    height: 120px;
    border: 2px solid #c1bea0;
    border-radius: 5px;
    margin-right: 8px;
    float: left;
    font-weight: bold;
    background: #266828 url("../gfx/backgrounds/policies/other.png") repeat-x top;
    text-align: center;
    color: #ffdeac;
    font-size: 14px;
    word-wrap: break-word;
    position: relative;
    text-align: center;
    /*cursor: pointer;
    cursor: hand;*/
}

div.otherPolicyBox div.content {
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 120px;
}

.policiesPopup div.otherPolicyBox.freePolicyBox {
    color: #eeeeee;
    background: #474747 url("../gfx/backgrounds/policies/locked.png") repeat-x top;
    font-size: 14px;
    cursor: pointer;
    cursor: hand;
}

.policiesPopup div.otherPolicyBox.freePolicyBox.highlighted {
    background: #1e4a70 url("../gfx/backgrounds/policies/labor.png") repeat-x top;
}

.policiesPopup div.announcementHolder {
    padding-bottom: 8px;
}

.policiesPopup div.announcementHolder img.announcementIcon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    padding-right: 6px;
    padding-bottom: 6px;
}

.policiesPopup div.announcementHolder .announcementField {
    color: #97ef7b;
    font-size: 18px;
}

.policiesPopup div.civilizationHolder {
    font-size: 14px;
    padding-bottom: 8px;
}

.policiesPopup div.civilizationHolder .civilizationField {
    font-size: 18px;
}

.policiesPopup div.decreesTitle {
    font-weight: bold;
    font-size: 18px;
    padding: 16px 0 4px;
}

.policiesPopup .emptyAdvisor {
    background-color: #000000;
    width: 128px;
    height: 80px;
    padding-top: 48px;
    border: 2px solid #c1bea0;
    text-align: center;
}

#KingdomPoliciesPopupHolder .costField .happinessInfluenceHolder {
    font-size: 14px;
    padding-top: 5px;
    color: #aaa9ae;
}

/* SelectAdvisorPopup *************************************************************************************************/

#SelectAdvisorPopupHolder .noAdvisorsFound {
    font-size: 18px;
    padding-top: 24px;
    padding-bottom: 12px;
    text-align: center;
}

/* AdvisorsPopupHolder ************************************************************************************************/

#AdvisorsPopupHolder .noAdvisors {
    font-size: 18px;
    padding-bottom: 40px;
    padding-top: 40px;
    text-align: center;
}

/* NewAdvisorsPopupHolder *********************************************************************************************/

#NewAdvisorsPopupHolder .noAdvisors {
    font-size: 18px;
    padding-bottom: 60px;
    padding-top: 40px;
    text-align: center;
}

/* NewAdvisorsPopup ***************************************************************************************************/

.advisorButtonHolder {
    padding-bottom: 16px;
    padding-top: 8px;
}

.advisorButtonHolder button {
    width: 100%;
    text-align: left;
}

/* govenorPanel *******************************************************************************************************/

.govenorPanelHolder {
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 8px;
}

.govenorPanelHolder table {
    width: 100%;
}

.govenorPanelHolder table td:nth-child(1) {
    width: 60px;
}

.govenorPanelHolder table td:nth-child(1) img {
    width: 50px;
    height: 50px;
    border: 2px solid #c1bea0;
    border-radius: 6px;
}

.govenorPanelHolder table td:nth-child(1) div.emptyAdvisor {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background-color: black;
    border: 2px solid #c1bea0;
}

/* advisorPanel *******************************************************************************************************/

.advisorPanel table {
    width: 100%;
}

.advisorPanel table td:nth-child(1) {
    width: 128px;
}

.advisorPanel table td:nth-child(1) img {
    border: 2px solid #c1bea0;
    width: 128px;
    height: 128px;
}

.advisorPanel table td:nth-child(2) {
    vertical-align: top; 
    padding-left: 12px;
    font-size: 16px;
}

.advisorPanel table td:nth-child(3) {
    vertical-align: top; 
    font-size: 16px;
    width: 100px;
}

.advisorPanel table td:nth-child(2) h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.advisorPanel table td:nth-child(2) ul {
    margin-top: 12px;
    margin-bottom: 0px;
}

.advisorPanel .assignment {
    padding-top: 4px;
}

.advisorPanel .assignment img {
    padding-left: 0px;
}

/* NewProjectPopup ****************************************************************************************************/

#NewProjectPopupHolder div.title button {
    width: 200px;
}

#NewProjectPopupHolder div.contentHolder {
    overflow-y: auto;
    position: absolute;
    top: 55px;
    bottom: 50px;
    left: 10px;
    right: 10px;
}

#NewProjectPopupHolder .purchaseButton {
    position: absolute;
    bottom: 8px;
    right: 10px;
    width: 300px;
}

#NewProjectPopupHolder .label {
    padding-top: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

#NewProjectPopupHolder .purchaseModeButtons {
    position: absolute;
    bottom: 8px;
    right: 10px;
    left: 10px;
    text-align: right;
}

#NewProjectPopupHolder .purchaseModeButtons button {
    width: 125px;
    height: 35px;
    padding: 3px;
}

/* Next action ********************************************************************************************************/
/* Next action ********************************************************************************************************/

#ZoomButtonsHolder {
    position: absolute;
    bottom: 52px;
    left: 10px;
}

#ZoomButtonsHolder .zoomInButton {
    margin-bottom: 4px;
}

#ZoomButtonsHolder.noNextActions {
    bottom: 10px;
}

div.__mode__TechnologyMode #ZoomButtonsHolder {
    left: 372px;
}

div.__mode__CityMode #ZoomButtonsHolder {
    left: 313px;
    bottom: 10px;
}

div.__mode__ForeignCityMode #ZoomButtonsHolder {
    left: 350px;
}

#ZoomButtonsHolder button {
    width: 45px;
    height: 35px;
    padding: 0px;
    font-size: 24px;
    font-weight: bold;
}

/* Next action ********************************************************************************************************/

#NextActionButtonsHolder {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

div.__mode__TechnologyMode #NextActionButtonsHolder {
    left: 372px;
}

div.__mode__ForeignCityMode #NextActionButtonsHolder {
    left: 350px;
}

#NextActionButtonsHolder button.nextActionButton {
    width: 360px;
}

#NextActionButtonsHolder button.nextActionButton img {
    vertical-align: bottom;
    max-height: 22px;
}

#NextActionButtonsHolder button.laterButton {
    width: 100px;
}

/* DuchyCityPanel *****************************************************************************************************/

.DuchyCityPanelHolder div.leverageOuterBar {
    height: 5px;
    background-color: #000000;
    margin-bottom: 5px;
}

.DuchyCityPanelHolder div.leverageInnerBar {
    height: 5px;
    background-color: green;
    width:66%;
}

.DuchyCityPanelHolder div.otherLeverageInnerBar {
    height: 5px;
    background-color: #5555BB;
    width:66%;
}

.DuchyCityPanelHolder div.leverageDescription {
    margin-bottom: 4px;
    margin-top: 4px;
    font-weight:bold;
}

.DuchyCityPanelHolder .duchyButtons button {
    width:100%;
    margin-bottom: 4px;
}

.DuchyCityPanelHolder .likedPolicyBranchesHolder {
    font-weight:bold;
    /* margin-bottom: 4px; */
}

.DuchyCityPanelHolder .duchyBonusHolder {
    font-weight: bold;
    font-size: 16px;
}

.DuchyCityPanelHolder .duchyBonusesHolder {
    font-weight: bold; 
    padding-top: 8px;
}

.DuchyCityPanelHolder .duchyBonusesHolder ul {
    margin-top: 2px;
}

.DuchyCityPanelHolder .duchyLabel {
    margin-bottom:6px;
    position:relative;
    padding-top: 5px;
    padding-bottom: 5px;
}

.DuchyCityPanelHolder .duchyLabel .duchyIconsHolder {
    position:absolute;
    right: 8px;
    top: 0px;
    bottom: 0px;
}

.DuchyCityPanelHolder .duchyLabel .duchyIconsHolder img {
    padding-right: 3px;
}

.DuchyCityPanelHolder div.annexationDescription {
    margin-bottom: 4px;
    margin-top: 4px;
    font-weight:bold;
    font-size: 16px;
}

.DuchyCityPanelHolder div.annexationOuterBar {
    height: 5px;
    background-color: #000000;
    margin-bottom: 5px;
}

.DuchyCityPanelHolder div.annexationInnerBar {
    height: 5px;
    background-color: green;
    width:66%;
}

/* KingdomButtonsHolder ***********************************************************************************************/

#KingdomButtonsHolder {
    position:absolute;
    right:0px;
    top:80px;
    z-index:10;
}

#KingdomButtonsHolder .layer1,
#KingdomButtonsHolder .layer2,
#KingdomButtonsHolder .layer3,
#KingdomButtonsHolder .topLayer {
    width: 50px;
    height: 50px;
    background-size: 50px 50px; 
}

.chatExpanded #KingdomButtonsHolder {
    top:348px;
}

.__mode__IncidentMode #KingdomButtonsHolder {
    right:262px;
}

#KingdomButtonsHolder div.buttonHolder {
    margin-right: 4px;
    float:right;
}

#KingdomButtonsHolder img.layer1 {
    z-index:11;
    position:absolute;
}

#KingdomButtonsHolder div.layer2 {
    z-index:12;
    position:absolute;
    background-position-y: bottom;
}

#KingdomButtonsHolder div.policyChangesField {
    z-index:13;
    position:absolute;
    color: #704f1c;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding-top: 31px;
}

#KingdomButtonsHolder div.diplomacyProposalsField {
    z-index:13;
    position:absolute;
    color: #fffdaf;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding-top: 31px;
}

#KingdomButtonsHolder div.newIncidentsField {
    z-index:13;
    position:absolute;
    color: #000000;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding-top: 14px;
    text-shadow: 1px 1px #FFFFFF, -1px -1px #FFFFFF, 1px -1px #FFFFFF, -1px 1px #FFFFFF;
}

#KingdomButtonsHolder img.topLayer {
    z-index:14;
    position:relative;
    cursor: pointer;
    cursor: hand;
}

/* Unit panels ********************************************************************************************************/

#UnitSnapshotPanelHolder {
    position:absolute;
    right:0px;
    bottom:0px;
    width:412px;
    height: 260px;
    z-index:10;
}

div.__mode__IncidentMode #UnitSnapshotPanelHolder {
    right:262px;
}

#UnitPanelHolder {
    position:absolute;
    right:0px;
    bottom:0px;
    width:412px;
    height: 260px;
    z-index:10;
}

.unitPanelBase div.unitMobileButtons {
    position: absolute; 
    left: -2px;
    right: 0px;
    top: -42px;
}

.unitPanelBase div.unitMobileButtons button {
    background-color: black;
    border: 1px solid #000000;
    border-radius: 0px;
    font-size: 20px;
    height: 40px;
    margin: 0px 0px;
    background-color: #0e1722;
    background-image: url(../gfx/buttons/bg45.png);
    background-repeat: repeat-x;
    background-position: center center;
    font-weight: bold;
}

.unitPanelBase div.unitMobileButtons .leftButton {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 50%;
}

.unitPanelBase div.unitMobileButtons .rightButton {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 50%;
}

.unitPanelBase div.unitMobileButtons .bigButton {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
}

.unitPanelBase div.unitAdvisorPanelHolder {
    position: absolute; 
    right: 8px;
    top: 8px;
    width: fit-content;
}

.unitPanelBase div.unitAdvisorPanelHolder .advisorPortrait {
    width: 50px;
    height: 50px;
    border: 2px solid #c1bea0;
    border-radius: 6px;
}

.unitPanelBase div.unitAdvisorPanelHolder .emptyAdvisor {
    background-color: #000000;
    width: 50px;
    height: 50px;
    border: 2px solid #c1bea0;
    border-radius: 6px;
}

#UnitPanelHolder div.orderQueue {
    position: absolute; 
    margin-left: -53px; 
    max-width: 47px;
}

#UnitPanelHolder div.orderQueue button {
    margin-bottom: 4px;
}

#UnitPanelHolder img.closeButton,
#UnitSnapshotPanelHolder img.closeButton {
    position:absolute;
    right: 6px;
    top: 60px;
}

#UnitPanelHolder div.unitHeader,
#UnitSnapshotPanelHolder div.unitHeader,
#UnitBattlePredictionPanelHolder div.unitHeader {
    vertical-align: middle;
    font-size:18px;
    font-weight: bold;
    position: relative;
}

#UnitSnapshotPanelHolder {
    color: #b9b9a0
}

#UnitPanelHolder div.unitHeader button {
    font-weight: bold;
    padding-left: 8px;
    padding-right: 8px;
    height: 39px;
    border-radius: 4px;
}

#UnitPanelHolder div.unitHeader button.prevUnitButton {
    float:left;
    margin-right: 6px;
    border-bottom-left-radius: 9px;
    border-top-left-radius: 9px;
}

#UnitPanelHolder div.unitHeader button.nextUnitButton {
    position: absolute;
    right: 0px;
    border-bottom-right-radius: 9px;
    border-top-right-radius: 9px;
}

#UnitPanelHolder div.unitHeader div.unitFlagHolder,
#UnitSnapshotPanelHolder div.unitHeader div.unitFlagHolder,
#UnitBattlePredictionPanelHolder div.unitHeader div.unitFlagHolder {
    position: absolute;
    top: 20px;
    left:20px;
}

#UnitPanelHolder div.unitHeader div.unitFlagHolder img,
#UnitSnapshotPanelHolder div.unitHeader div.unitFlagHolder img,
#UnitBattlePredictionPanelHolder div.unitHeader div.unitFlagHolder img {
    width: 20px;
    height: 20px;
}

#UnitPanelHolder div.label,
#UnitSnapshotPanelHolder div.label,
#UnitBattlePredictionPanelHolder div.label {
    padding-top: 6px;
    padding-bottom: 6px;
}

.unitPanelBase div.unitIconHolder {
    float: left;
    margin-right: 10px;
    width: 38px;
    height: 38px;
    position: relative;
}

.unitPanelBase div.unitIconHolder img {
    vertical-align: middle;
}

.unitPanelBase div.unitIconHolder img.unitFrozenIcon {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 38px;
    height: 38px;
}

#UnitPanelHolder div.unitHeader div.unitName {
    float: left;
    width:245px;
}

#UnitSnapshotPanelHolder div.unitHeader div.unitName {
    float: left;
    width:285px;
}

#UnitBattlePredictionPanelHolder div.unitHeader div.unitName {
    float: left;
}

.unitPanelBase div.unitHeader div.level {
    font-size: 14px;
    padding-top:2px;
    position: relative;
}

.unitPanelBase div.unitHeader div.level img {
    margin-right: 2px;
};

div.unitHeader div.level div.bonuses {
    position: absolute;
    right:0px;
    top:0px;
}

div.unitHeader div.level div.bonuses img {
    padding-left:5px;
}

.unitPanelBase div.outerXpBar {
    background-color: #000000;
    height:16px;
    margin-bottom: 4px;
}

#UnitBattlePredictionPanelHolder .unitPanelBase div.outerXpBar {
    height: 4px;
}

.unitPanelBase div.innerXpBar {
    background-color: #008000;
    min-height:4px;
    width: 20%;
}

.unitPanelBase .experienceField {
    padding-left: 8px;
    padding-top: 1px;
    padding-bottom: 1px;
    font-size: 12px;
    font-weight: bold;
}

.unitPanelBase .unitParams {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 71px;
    bottom: 56px;
    overflow-y: auto;
}

#UnitPanelHolder div.unitParam,
#UnitSnapshotPanelHolder div.unitParam,
#UnitBattlePredictionPanelHolder div.unitParam {
    padding: 6px 8px 0px 8px;
    font-size: 16px;
    font-weight: bold;
}

#UnitPanelHolder div.unitParam img,
#UnitSnapshotPanelHolder div.unitParam img,
#UnitBattlePredictionPanelHolder div.unitParam img {
    vertical-align: middle;
}

#UnitBattlePredictionPanelHolder div.unitParamDetails {
    padding: 0px 8px 2px 38px;
    color: #c0c0a4;
    font-size: 14px;
    line-height: 120%;
    font-weight: bold;
}

#UnitBattlePredictionPanelHolder .damageField,
#UnitBattlePredictionPanelHolder .cityDamageField {
    font-size: 120%;
}

.red {
    color: #ff9966;
}

#UnitBattlePredictionPanelHolder .hpOuterBar {
    position: absolute;
    top: 62px;
    right: 5px;
    width: 5px;
    height: 185px;
    background-color: #000000;
    z-index: 20;
}

#UnitBattlePredictionPanelHolder .hpInnerBar {
    width: 5px;
    background-color: #A00000;
    position: absolute;
    bottom: 0px;
    z-index: 21;
}

#UnitBattlePredictionPanelHolder .hpLeftInnerBar {
    width: 5px;
    background-color: #008000;
    position: absolute;
    bottom: 0px;
    z-index: 22;
}

#UnitBattlePredictionPanelHolder .cityHpOuterBar {
    position: absolute;
    top: 62px;
    right: 13px;
    width: 5px;
    height: 185px;
    background-color: #000000;
    z-index: 20;
}

#UnitBattlePredictionPanelHolder .cityHpInnerBar {
    width: 5px;
    background-color: #A00000;
    position: absolute;
    bottom: 0px;
    z-index: 21;
}

#UnitBattlePredictionPanelHolder .cityHpLeftInnerBar {
    width: 5px;
    background-color: #008000;
    position: absolute;
    bottom: 0px;
    z-index: 22;
}

.unitPanelBase div.actions {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 50px;
    text-align: right;
    padding-right: 4px;
    padding-top: 4px;
    background-color: rgba(50, 50, 50, 1);
    border-top: black 2px solid;
}

.unitPanelBase .unitHeaderHolder {
    height: 43px;
}

.unitPanelBase .unitNameHolder {
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unitPanelBase div.actions div {
    float:right;
    margin-left: 4px;
}

#UnitPanelHolder div.from {
    position: absolute;
    top: 10px;
    right:8px;
}

#UnitBattlePredictionPanelHolder {
    position:absolute;
    right:0px;
    bottom:0px;
    width:0px;
    height: 0px;
    z-index:10;
}

div.__mode__IncidentMode #UnitBattlePredictionPanelHolder {
    right:262px;
}

#UnitBattlePredictionPanelHolder .defeated {
    background-color: rgba(75,0,0,0.7);
}

#UnitBattlePredictionPanelHolder .unitBattlePrediction {
    position:absolute;
    width: 250px;
    height: 255px;
    bottom: 0px;
    z-index:11;
}

#UnitBattlePredictionPanelHolder .unitBattlePrediction .resultDescription {
    z-index:12;
    position: absolute;
    left: 0px;
    right:0px;
    bottom: 0px;
    height: 24px;
    text-align: center;
    font-weight: bold;
    font-size:16px;
    color: #ffccaa;
}

#UnitBattlePredictionPanelHolder .enemyUnit {
    right: 0px;
}

#UnitBattlePredictionPanelHolder .attackerUnit {
    right: 260px;
}

button.order {
    padding: 0px;
    margin: 0px;
    width: 47px;
    height: 47px;
    border-radius: 4px;
    background: url("../gfx/buttons/bg45.png") repeat-x center center;
    vertical-align: center;
}

button.order.pressed {
    background-image: url("../gfx/buttons/bg45-pressed.png");
    color:#1b2d41;
}

button.order.pressed img.main {
    display: none;
}

button.order img.pressed {
    display: none;
}

button.order img.special {
    display: none;
}

button.order.pressed img.pressed {
    display: inherit;
}

button.order.disabled,
button.order:disabled,
button.order[disabled] {
    color: #999999;
    cursor: default;
}

button.order.disabled img.main,
button.order:disabled img.main,
button.order[disabled] img.main {
    display: none;
}

button.order.disabled img.pressed,
button.order:disabled img.pressed,
button.order[disabled] img.pressed {
    display: none;
}

button.order.disabled img.disabled,
button.order:disabled img.disabled,
button.order[disabled] img.disabled {
    display: inherit;
}

button.order img.disabled {
    display: none;
}

button.order img.unavailable {
    display: none;
}

button.order img {
    vertical-align: top;
}

/* Other **************************************************************************************************************/

div.building {
    font-size:18px;
    font-weight:bold;
    margin-bottom: 10px;
    clear: both;
    position: relative;
}

div.building img.building {
    vertical-align:middle;
    margin-right: 10px;
    float:left;
}

div.building img {
    vertical-align: middle;
}

div.building div.description {
    float:left;
    width:150px;
}

div.building:hover button.sellButton {
    visibility: visible;
}

div.building button.sellButton {
    padding: 2px 2px;
    position: absolute;
    right: 0px;
    top: 0px;
    visibility: hidden;
}

div.building button.sellButton.workers {
    right: 86px;
}

div.building div.workers {
    width:84px;
    position: absolute;
    right: 0px;
    top: 0px;
}

div.building div.workers button {
    padding: 2px 2px;
    font-size: 16px;
    font-weight: bold;
    width:84px;
}

div.building div.firstLevel {
    line-height:38px;
}

div.building .level {
    font-size:14px;
}

div.building div.resource {
    float:left;
    width:90px;
    line-height:38px;
    vertical-align:middle;
}

div.building div.resourceCost {
    float:left;
    width:150px;
    line-height:38px;
    vertical-align:middle;
}

div.building div.resources {
    float:left;
    line-height:38px;
    vertical-align:middle;
}

div.building div.time {
    float:left;
    width:90px;
    line-height:38px;
    font-size:16px;
    vertical-align:middle;
}

div.building div.actions {
    float:right;
    line-height:38px;
    vertical-align:middle;
}

div.building div.actions button {
    width: 220px;
    font-size:18px;
    margin-top: 3px;
}

div.building button {
    float:right;
    padding-left: 5px;
    padding-right: 5px;
}

div.building br {
    clear:both;
}

#mainMapViewButton {
    position:absolute;
    left:50%;
    bottom:25px;
    width:200px;
    margin-left:-100px;
    z-index:10;
}

#CityButtonsPanelHolder {
    position:absolute;
    left:50%;
    bottom:25px;
    width:300px;
    margin-left:-100px;
    z-index:10;
    text-align: center;
}

#CityButtonsPanelHolder button.prevCityButton, #CityButtonsPanelHolder button.nextCityButton {
    font-weight: bold;
    padding-left: 10px;
    padding-right: 10px;
}

#CityButtonsPanelHolder button.abandonCityButton {
    position: absolute;
    top: -40px;
    left: 50px;
    width: 200px;
}

#CityButtonsPanelHolder button.razeCityButton {
    position: absolute;
    top: -40px;
    left: 50px;
    width: 200px;
}

#CityButtonsPanelHolder button.cancelRazeCityButton {
    position: absolute;
    top: -40px;
    left: 50px;
    width: 200px;
}

#CityButtonsPanelHolder button.annexCityButton {
    position: absolute;
    top: -80px;
    left: 50px;
    width: 200px;
}

#foreignCityPanelHolder .spyMissionsHolder ul {
    padding-left: 33px;
    margin-top: 8px;
    margin-bottom: -2px;
    font-weight: bold;
}

#foreignCityPanelHolder .tradeProposalsHolder {
    padding-top: 10px;
}

#foreignCityPanelHolder .cityNameField {
    font-size: 18px;
    font-weight: bold;
    padding: 8px;
}

#foreignCityPanelHolder img.closeButton {
    position: absolute;
    top: 6px;
    right: 6px;
}

#foreignCityPanelHolder {
    position:absolute;
    left:0px;
    top:42px;
    bottom:0px;
    width:340px;
    z-index:10;
    overflow: auto;
}

#foreignCityPanelHolder button.spyButton {
    width: 100%;
}

#foreignCityPanelHolder .SuzerainDuchyCityPanelHolder .incomesField {
    padding-top: 4px; padding-bottom: 0px;
}

#foreignCityPanelHolder .SuzerainDuchyCityPanelHolder .incomesField>div {
    float: left;
    width: 52px;
    text-align: right;
    margin-bottom: 4px;
}

#foreignCityPanelHolder .SuzerainDuchyCityPanelHolder .incomesField br {
    clear: both;
}

#cityBuildingsPanelHolder {
    position:absolute;
    left:0px;
    top:42px;
    bottom:0px;
    width:300px;
    z-index:10;
}

#cityBuildingsPanelHolder table.buttonTable {
    width: 100%;
}

#cityBuildingsPanelHolder table.buttonTable button {
    width:139px;
    padding-left:0px;
    padding-right: 0px;
}

#cityBuildingsPanelHolder .freeCitizensHolder {
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 8px;
    font-size:16px;
    font-weight:bold;
    vertical-align:middle;
}

#cityBuildingsPanelHolder .freeCitizensHolder img {
    vertical-align: middle;
}

#foreignCityPanelHolder .buildingListHolder {
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 8px;
    overflow:auto;
}

#cityBuildingsPanelHolder .buildingListHolder {
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 8px;
    overflow:auto;
    position: absolute;
    top: 26px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    margin-bottom: 240px;
}

#cityBuildingsPanelHolder .projectListHolder {
    position: absolute;
    overflow:auto;
    height: 240px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

#cityBuildingsPanelHolder .newCityProjectHolder,
#cityBuildingsPanelHolder .newCityUnitProjectHolder {
    padding: 8px 8px;
}

#cityBuildingsPanelHolder .description {
    padding-bottom: 4px;
    font-size:16px;
    font-weight:bold;
}

#cityBuildingsPanelHolder .newProjectButtons button {
    font-size: 16px;
    padding:2px 0px;
    border-radius: 8px;
}

#cityBuildingsPanelHolder .cityProjectsHolder {
    padding-top: 8px;
}

#cityBuildingsPanelHolder .cityProjectsHolder div.building {
    margin-bottom:0px;
}

#cityBuildingsPanelHolder .cityProjectsHolder div.projectSeparator {
    height: 10px;
}

#cityBuildingsPanelHolder .cityProjectsHolder div.projectButton {
    border: 1px solid black;
    padding: 5px;
    /* background-color: #555555; */
    background-image: linear-gradient(#555555 10%, #404040 30%, #555555);
    border-radius: 5px;
    cursor: pointer;
    cursor: hand;
}

#cityBuildingsPanelHolder .newCityUnitProjectHolder button.newUnitProjectButton {
    width: 139px;
}

#CityProductionPanelHolder {
    position:absolute;
    left:302px;
    right:300px;
    top:42px;
    z-index:10;
    padding-left: 10px;
    line-height: 38px;
    vertical-align: middle;
    font-size: 16px;
    font-weight: bold;
}

#CityProductionPanelHolder button.sellButton {
    font-size: 16px;
    font-weight: bold;
    padding:4px 10px;
    border-radius: 8px;
}

#CityProductionPanelHolder button.interveneButton {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 16px;
    font-weight: bold;
    padding:4px 10px;
    border-radius: 8px;
}

#CityProductionPanelHolder .incomeField {
    font-size: 14px;
    font-weight: bold;
    padding-left: 3px;
}

#CityProductionPanelHolder .resourceHolder img {
    vertical-align: middle;
    padding-left: 3px;
}

#CityRazedPanelHolder {
    top: 115px;
    position:absolute;
    left: 50%;
    margin-left: -250px;
    width: 480px;
    background-color: rgba(120, 0, 0, 0.5);
    border: 2px solid #c13535;
    color: #fbfbe1;
    font-weight: bold;
    padding: 10px;
    font-size: 18px;
    text-align: center;
}

#CityStatusPanelHolder {
    position:absolute;
    right:0px;
    top:42px;
    bottom:0px;
    width:300px;
    z-index:10;
    padding-top:3px;
    overflow: auto;
}

#CityStatusPanelHolder td.icon img {
    width: 26px;
    height: 26px;
}

#CityStatusPanelHolder button.cityNameField {
    width:100%;
}

#foreignCityPanelHolder div.income,
#CityStatusPanelHolder div.income {
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 2px;
    padding-bottom: 2px;
}

#foreignCityPanelHolder div.incomeSeparator,
#CityStatusPanelHolder div.incomeSeparator {
    background-color: #c1bea0;
    background-color: rgba(193, 190, 160, 0.25);
    height: 2px;
    margin-top: 0px;
    margin-bottom:0px;
    margin-left: 5px;
    margin-right: 5px;
}

#CityStatusPanelHolder div.resource {
    line-height:36px;
    vertical-align:middle;
    font-size:14px;
    font-weight:bold;
}

#CityStatusPanelHolder div.resource img {
    vertical-align: middle;
}

#CityStatusPanelHolder .citySpiesButton {
    width: 100%;
    margin-bottom: 8px;
}


#foreignCityPanelHolder div.line,
#CityStatusPanelHolder div.line {
    margin-top: 5px;
    margin-left: 9px;
    font-size:16px;
    font-weight:bold;
    line-height:28px;
    vertical-align:middle;
}

#foreignCityPanelHolder div.line img,
#CityStatusPanelHolder div.line img {
    vertical-align: middle;
}

#foreignCityPanelHolder .tradeProposalsDiv ul {
    padding-left: 33px;
    margin-top: 8px;
    margin-bottom: -2px;
    font-weight: bold;
}

#foreignCityPanelHolder .tradeProposalsDiv ul img {
    vertical-align: middle;
    padding-bottom: 3px;
    padding-left: 3px;
}

#foreignCityPanelHolder .cityRazedHolder {
    margin: 6px;
    margin-bottom: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
    text-align: center;
    background-color: rgba(120, 0, 0, 0.5);
    border: 2px solid #c13535;
    color: #fbfbe1;
    font-weight: bold;
    font-size: 16px;
    line-height: 150%;
}

.specialUnitsHolder .label {
    margin-bottom: 8px;
}

.specialUnitsHolder .specialUnitTimeLeftField {
    padding-bottom: 3px;
}

.specialUnitsHolder .specialUnitTimeProgressBar {
    background-color: black; padding: 1px;
}

.specialUnitsHolder .specialUnitTimeProgressBar > div {
    background-color: green;
    height: 4px;
}

div.CityLoyaltyPanelHolder {
    margin-top:10px;
}

div.CityLoyaltyPanelHolder div.assimilationTime {
    margin-left: 9px;
    margin-top: 2px;
    font-size:14px;
    font-weight:bold;
}

div.CityLoyaltyPanelHolder div.flag {
    float:left;
    margin-right:4px;
    width: 30px;
    height: 29px;
    background-image: url(../gfx/icons/flags/background.png)
}

div.CityLoyaltyPanelHolder div.flag img {
    margin-top:2px;
    margin-left:2px;
}

div.CityLoyaltyPanelHolder div.loyalKingdom {
    float:left;
}

div.CityWallsPanelHolder {
    margin-top:10px;
}

div.CityWallsPanelHolder div.label {
    margin-bottom: 8px;
}

div.CityWallsPanelHolder ul.remarks {
    padding-left: 33px;
    margin-top: 8px;
    margin-bottom: 8px;
}

div.cityReligionPanelHolder {
    margin-top: 10px;
}

div.cityReligionPanelHolder div.cityReligionHolder {
    margin-top: 5px;
    margin-left: 9px;
    font-size:16px;
    font-weight:bold;
    line-height:28px;
    vertical-align:middle;
}

div.cityReligionPanelHolder div.cityReligionHolder img {
    vertical-align: middle;
}

div.cityReligionPanelHolder div.cityReligionConversionHolder {
    margin-top: 8px;
    margin-left: 9px;
}

div.cityReligionPanelHolder div.cityReligionConversionHolder div.conversionProgress {
    float: left;
    width: 246px;
    height: 21px;
    border: 2px solid #111111;
    background-color: #222222;
    margin-right: 5px;
    margin-top: 2px;
}

div.cityReligionPanelHolder div.cityReligionConversionHolder div.innerConversionProgress {
    height: 21px;
    width: 0%;
    background-color: #006000;
}

div.cityReligionPanelHolder div.cityReligionConversionHolder div.conversionProgressLabel {
    width: 246px;
    padding: 2px;
    position: absolute;
    text-align: center;
    font-weight: bold;
    color: rgba(255,255,255,0.8);
}

#ChooseSettlementLocationPanelHolder {
    position:absolute;
    left:302px;
    right:302px;
    top:80px;
    z-index:10;
    padding:8px 8px 0px 8px;
}

#ChooseSettlementLocationPanelHolder div.building {
    margin-bottom:7px;
}

#ChooseSettlementLocationPanelHolder div.building div.description {
    width:350px;
}

#ChooseSettlementLocationPanelHolder div.cancelHolder {
    float:right;
    margin-top:3px;
}


table.resourceTable {
    width:100%;
    font-size:14px;
    font-weight:bold;
    border-spacing: 0px;
    border-collapse: separate;
}

table.resourceTable td {
    padding: 0px;
}

table.resourceTable tr td.icon {
    padding-right:6px;
    width:28px;
    vertical-align:middle;
    text-align:center;
}

table.resourceTable tr td.description {
}

table.resourceTable tr td.value {
     text-align:right;
     font-size:16px;
}

table.statsTable td {
    font-size: 16px;
    padding: 2px;
    font-weight: bold;
}

table.statsTable img {
    vertical-align:middle;
}

table.statsTable td.first {
    text-align: right;
    padding-right: 6px;
}

div.resourceCount {
    float:left;
}

div.resourceCount div.count {
    float:left;
    line-height: 28px;
    font-size:16px;
    font-weight: bold;
    padding-right: 3px;
}

div.resourceCount div.icon {
    float:left;
    line-height: 28px;
    padding-right: 12px;
}

div.resourceCount div.icon img {
    vertical-align:middle;
}

#TechnologyResearchPopupHolder .researchedHolder div.building {
    margin-bottom:0px;
}

#TechnologyResearchPopupHolder .researchedHolder div.projectSeparator {
    height: 10px;
}

div.policyHolder {
    padding-left:10px;
    padding-top:5px;
}

div.policy {
    width: 160px;
    height: 160px;
    border: 2px solid #c1bea0;
    border-radius: 5px;
    margin-bottom: 8px;
    margin-right: 8px;
    float: left;
    color: #fff8be;
}

div.governmentPolicy {
    background: #70201e url("../gfx/backgrounds/policies/government.png") repeat-x top;
    cursor: pointer;
    cursor: hand;
}

div.religionPolicy {
    background: #5e285e url("../gfx/backgrounds/policies/religion.png") repeat-x top;
    cursor: pointer;
    cursor: hand;
}

div.laborPolicy {
    background: #1e4a70 url("../gfx/backgrounds/policies/labor.png") repeat-x top;
    cursor: pointer;
    cursor: hand;
}

div.otherPolicy {
    background: #266828 url("../gfx/backgrounds/policies/other.png") repeat-x top;
    cursor: pointer;
    cursor: hand;
}

div.lockedPolicy {
    background: #474747 url("../gfx/backgrounds/policies/locked.png") repeat-x top;
}

div.noPolicy {
    background-color: #222222;
    text-align: center;
    padding-top: 55px;
    padding-left: 5px;
    padding-right: 5px;
    height: 105px;
    width: 150px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    cursor: hand;
}

div.lockedPolicySlot {
    background: #333333 url(../gfx/icons/game/lock.png) no-repeat center center;
}

div.policy div.name {
    padding: 4px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

div.policy div.description {
    padding: 4px;
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
}

div.policy div.description img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

div.policySpacing {
    float: left;
    width: 8px;
}

#KingdomPoliciesPopup div.nextPolicyInfo {
    font-weight: bold;
    padding:5px 10px;
}

#KingdomPoliciesPopup .policiesTableHolder {
    padding-top: 5px;
    padding-left: 10px;
}

#ChoosePolicyPopupHolder .availablePoliciesHolder {
    padding: 4px;
}

#ChoosePolicyPopupHolder .costField {
    font-weight: bold;
    font-size:16px;
    margin: 4px 4px 10px 4px;
}


#ChoosePolicyPopupHolder .costField img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

#ReligionsPopupHolder .religions {
    vertical-align: top;
    width: 200px;
    border-right: 2px solid #c1bea0;
    padding-right: 10px;
}

#ReligionsPopupHolder .religions img {
    vertical-align: middle;
}

#ReligionsPopupHolder .religions div {
    font-size: 18px;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 15px;
    margin-bottom: 4px;
    cursor: pointer;
    cursor: hand;
}

#ReligionsPopupHolder .religions div.selected {
    background-color: #555555;
}

#ReligionsPopupHolder .religionDescription {
    vertical-align: top;
    width: 600px;
    padding: 5px 5px 5px 10px;
}

.religionDescription > div {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.religionDescription .comment {
    font-weight: bold;
    font-size: 14px;
    color: #c0c0a4;
    padding-left:10px;
}

.religionDescription .comment img {
    vertical-align: middle;
    padding-left: 2px;
}

.religionDescription .specialBullet {
    width: 40px;
    height: 26px;
    text-align: center;
    float: left;
    background: url(../gfx/icons/game/special-bonus.png) no-repeat top center;
}

.religionDescription .disabledBullet {
    width: 40px;
    height: 26px;
    text-align: center;
    float: left;
    background: url(../gfx/icons/game/bad-bonus.png) no-repeat top center;
}

.religionDescription .bullet {
    width: 40px;
    height: 26px;
    text-align: center;
    float: left;
    background: url(../gfx/icons/game/bonus.png) no-repeat top center;
}

.religionDescription .bonus {
    width: 550px;
    float: left;
    padding-top: 2px;
}

.religionBonuses {
    overflow-y: auto;
    position: absolute;
    top: 55px;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.religionBonuses .bonusName {
    font-weight: bold;
    font-size: 16px;
    color: #97ef7b;
    padding-bottom: 3px;
}

.religionBonuses .comment {
    font-weight: bold;
    font-size: 14px;
    color: #c0c0a4;
    padding-bottom: 6px;
}

.religionBonuses .comment img {
    vertical-align: middle;
    padding-left: 2px;
}

.faithDescription .faithTitle {
    padding-top: 10px;
    padding-bottom: 15px;
    font-size: 24px;
}

.faithDescription ul {
    font-size: 14px;
}

.faithComment {
    font-size: 14px;
    padding-bottom: 10px;
}

div.faithDescription table.faithTable {
    width: 100%;
}

div.faithDescription table.faithTable img {
    vertical-align: middle;
}

div.faithDescription table.faithTable tr.faithTitleRow.ownKingdom td:nth-child(1) {
    color: #97ef7b;
    font-size: 20px;
}

div.faithDescription table.faithTable tr.faithTitleRow.ownKingdom td:nth-child(2) {
    color: #97ef7b;
    font-size: 20px;
}

div.faithDescription table.faithTable tr.faithTitleRow td:nth-child(1) {
    vertical-align: bottom;
}

div.faithDescription table.faithTable tr.faithTitleRow td:nth-child(2) {
    vertical-align: bottom;
    text-align: right;
    color: #c0c0a4;
    width:250px;
}

div.faithDescription table.faithTable tr.faithTitleRow td:nth-child(3) {
    width: 170px;
    padding-left: 5px;
}

div.faithDescription table.faithTable tr.faithTitleRow td:nth-child(3) button {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
}

div.faithDescription table.faithTable tr.faithBarRow td {
    padding-bottom: 8px;
}

div.faithDescription table.faithTable tr.faithBarRow.ownKingdom .faithInnerBar {
    background-color: white;
}



div.faithDescription table.followerKingdomTable {
    width: 100%;
    border-spacing: 0px;
    border-collapse: separate;
}

div.faithDescription table.followerKingdomTable td {
    padding: 4px 2px;
}

div.faithDescription table.followerKingdomTable img {
    vertical-align: middle;
}

div.faithDescription table.followerKingdomTable tr.ownKingdom td:nth-child(1) {
    color: #97ef7b;
    font-size: 20px;
}

/*

div.faithDescription table.followerKingdomTable tr.ownKingdom td:nth-child(2) {
    color: #97ef7b;
    font-size: 20px;
}
*/

div.faithDescription table.followerKingdomTable td:nth-child(1) {
    width: 400px;
    padding-left: 4px;
}

div.faithDescription table.followerKingdomTable td:nth-child(2) {
    /*color: #c0c0a4;*/
}

div.faithDescription table.followerKingdomTable td:nth-child(3) {
    /*color: #c0c0a4;*/
    width: 180px;
    padding-right: 4px;
}

div.faithDescription table.followerKingdomTable td:nth-child(3) button {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 18px;
    height: 36px;
}

div.faithDescription table.followerKingdomTable tr:nth-of-type(odd) {
    background-color: rgb(30,30,30);
}

div.faithDescription table.followerKingdomTable tr:nth-of-type(even) {
    background-color: rgb(35,35,35);
}



div.faithDescription .faithOuterBar {
    background-color: black;
    border: 1px solid black;
    height: 8px;
    position: relative;
}

div.faithDescription .faithInnerBar {
    background-color: #888888;
    float: left;
    height: 8px;
}

div.faithDescription .faithHalfBar {
    background-color: red;
    left: 0px;
    top: 0px;
    bottom: 0px;
    right: 50%;
    position: absolute;
    opacity: 0.2;
}

#IncidentsPanelHolder {
    position:absolute;
    right:0px;
    top:42px;
    bottom:0px;
    width:260px;
    z-index:10;
    padding-top:3px;
}

#IncidentsPanelHolder .newIncident {
    color: #97ef7b;
}

#IncidentsPanelHolder .incidentList {
    position: absolute;
    /* top: 30px; */
    top: 75px;
    bottom: 40px;
    left: 0px;
    right: 0px;
    overflow: auto;
}

#IncidentsPanelHolder .filterHolder {
    padding-top: 5px;
    padding-left: 8px;
    padding-right: 8px;
}

#IncidentsPanelHolder .filterHolder select {
    width: 100%
}

#IncidentsPanelHolder .navigationButtonsHolder {
    padding-top: 5px;
    text-align: center;
}

#IncidentsPanelHolder .navigationButtonsHolder button {
    border: 1px solid #000000;
    border-radius: 0px;
    font-size: 20px;
    color: #fbfbe1;
    height: 34px;
    margin: 0px 0px;
    background-color: #0e1722;
    background-image: url(../gfx/buttons/bg45.png);
    background-repeat: repeat-x;
    background-position: center center;
    width: 81px;
}

#IncidentsPanelHolder .navigationButtonsHolder button.suspended {
    color: #666666;
}

#IncidentsPanelHolder .buttonsHolder {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 40px;
    text-align: center;
}

#IncidentsPanelHolder .buttonsHolder button {
    width: 100%;
}

#IncidentsPanelHolder .incident {
    padding-top: 6px;
    padding-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    height: 38px;
}

#IncidentsPanelHolder .incident:hover {
    background-color: #333333;
}

#IncidentsPanelHolder .incident.selected {
    background-color: #000000;
}

#IncidentsPanelHolder .incident .incidentIcon {
    position: absolute;
    left: 8px;
}

#IncidentsPanelHolder .incident .incidentIcon img {
    width: 38px;
    height: 38px;
}

#IncidentsPanelHolder .incident .incidentFlag {
    position: absolute;
    left: 28px;
    top: 26px;
}

#IncidentsPanelHolder .incident .incidentFlag.left {
    left: 6px;
}

#IncidentsPanelHolder .incident .incidentFlag img {
    width: 20px;
    height: 20px;
}

#IncidentsPanelHolder .incident .incidentDescription {
    position: absolute;
    left: 52px;
    top: 3px;
}

#IncidentsPanelHolder .incident .incidentTime {
    position: absolute;
    left: 52px;
    top: 20px;
    color: #aaa9ae;
}

#IncidentsPanelHolder .incidentDescriptionHolder {
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 4px;
    background-color: black;
    font-size: 14px;
    font-weight: bold;
}

#WaresPopupHolder .header {
    padding-left: 345px;
    font-size: 14px;
    font-weight: bold;
}

#WaresPopupHolder .wareTypeDescription {
    padding-top: 28px;
}

#WaresPopupHolder .waresHeader {
    font-size: 18px;
    font-weight: bold;
    color: #97ef7b;
}

#WaresPopupHolder .waresList {
    margin-top: 2px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

#WaresPopupHolder .resourceIcon {
    float: left;
    font-size: 16px;
    font-weight: bold;
    width: 40px;
    line-height: 30px;
}

#WaresPopupHolder .storage {
    float: left;
    font-size: 16px;
    font-weight: bold;
    width: 180px;
    line-height: 30px;
}

#WaresPopupHolder .prediction {
    float: left;
    font-size: 16px;
    font-weight: bold;
    width: 250px;
    line-height: 30px;
}

#WaresPopupHolder .locked {
    float: left;
    font-size: 16px;
    font-weight: bold;
    width: 125px;
    line-height: 30px;
}

#WaresPopupHolder .falling {
    color: #ef8d85;
}

#WaresPopupHolder .raising {
    color: #97ef7b;
}

#WaresPopupHolder .info {
    font-size: 16px;
    font-weight: bold;
    margin-top: 12px;
}

#WaresPopupHolder .value {
    color: #97ef7b;
    font-size: 18px;
}

#AvailableTechnologiesPanelHolder {
    position:absolute;
    left:0px;
    top:42px;
    bottom:0px;
    width:360px;
    z-index:10;
}

#AvailableTechnologiesPanelHolder div.topButtons {
    position: absolute;
    top: 10px;
    left: 10px;
    height: 50px;
    width:340px;
    z-index:11;
    text-align: left;
}

#AvailableTechnologiesPanelHolder div.topButtons button {
    width:340px;
}

#AvailableTechnologiesPanelHolder div.bottomButtons {
    position: absolute;
    bottom: 0px;
    left: 10px;
    height: 50px;
    width:340px;
    z-index:11;
    text-align: left;
}

#AvailableTechnologiesPanelHolder div.bottomButtons button {
    width:340px;
}

#AvailableTechnologiesPanelHolder div.technologiesList {
    position: absolute;
    bottom: 270px;
    top: 50px;
    left: 0px;
    padding-right: 10px;
    padding-left: 10px;
    width:340px;
    z-index:11;
    text-align: left;
    overflow: auto;
}

#AvailableTechnologiesPanelHolder div.researchedTechnologyList {
    position: absolute;
    bottom: 60px;
    left: 0px;
    height: 190px;
    width:340px;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    z-index:11;
    text-align: left;
    overflow: auto;
}

div.technology {
    padding: 4px;
    border-radius: 18px;
    margin-bottom: 8px;
    position:relative;
}

div.technology.inProgress {
    padding: 0px;
}

div.technology.locked {
    background-image: linear-gradient(#70201e 10%, #3d1110 30%, #70201e);
    border: 1px solid #191a1a;
}

div.technology.researching {
    background-color: #266828;
    border: 1px solid #191a1a;
    animation-name: researchingAnimation;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

@keyframes researchingAnimation {
    /*from {background-color: #304d68;}
    to {background-color: #266828;}*/
    0% {
        background-image: linear-gradient(#6e5e28 10%, #34341e 30%, #6e5e28);
        /*background-image: linear-gradient(#304d68 10%, #1f2630 30%, #304d68);*/
        /*background-color: #304d68;*/
    }
    50% {
        background-image: linear-gradient(#685926 10%, #30301c 30%, #685926);
        /*background-image: linear-gradient(#266828 10%, #1c301e 30%, #266828);*/
        /*background-color: #266828;*/
    }
    100% {
        background-image: linear-gradient(#6e5e28 10%, #34341e 30%, #6e5e28);
        /*background-image: linear-gradient(#304d68 10%, #1f2630 30%, #304d68);*/
        /*background-color: #304d68;*/
    }
}

div.technology.unlocked {
    background-image: linear-gradient(#304d68 10%, #1f2630 30%, #304d68);
    border: 1px solid #001100;
    cursor: pointer;
    cursor: hand;
}

div.technology.researched {
    background-image: linear-gradient(#266828 10%, #1c301e 30%, #266828);
    border: 1px solid #000611;
}

div.technology.tooExpensive {
    background-image: linear-gradient(#6f6d6d 10%, #3d3c3d 30%, #6f6d6d);
    border: 1px solid #330000;
    cursor: pointer;
    cursor: hand;
}

div.technology img.technologyIcon {
    vertical-align:middle;
    margin-right: 10px;
    float:left;
}

div.technology div.description {
    float:left;
    width: 260px;
}

div.technology div.description div.name {
    font-size:18px;
    font-weight:bold;
    clear: both;
}

div.technology div.description div.bonuses {
    margin-top:0px;
}

div.technology div.description div.bonuses img {
    width: 28px;
    height: 28px;
    margin-right:3px;
}

div.technology div.description div.bonuses div.fullDescription {
    padding-top:3px;
}

div.technology div.description div.bonuses div.fullDescription img {
    width: 20px;
    height: 20px;
}

div.technology div.description div.bonuses .iconHolder {
    float:left;
    position: relative;
}

div.technology div.description div.bonuses .iconHolder img.removed {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 24px;
    height: 24px;
}

div.technology br {
    clear:both;
}

div.technology button.cancel {
    right: 0px;
    top: 2px;
    position: absolute;
    padding-left: 5px;
    padding-right: 5px;
}

div.technology img.spyIcon {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 20px;
    height: 20px;
}

#TechnologyTreePanelHolder {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    z-index: 2;
    overflow: auto;
}

#TechnologyTreePanelHolder .bottomMenu {
    position: absolute;
    bottom: 50px;
    left: 50%;
    margin-left: -100px;
    z-index: 10;
}

#TechnologyTreePanelHolder .closeButton {
    position: fixed;
    width: 200px;
}

#TechnologyTreePanelHolder div.techTree {
    position: absolute;
    left: 0px;
}

#TechnologyTreePanelHolder div.eraTechnologiesHolder {
    border-bottom: 2px dashed #c1bea0;
    height: 225px;
    position: relative;
}

#TechnologyTreePanelHolder div.eraTechnologiesHolder.locked {
    background-color: rgba(255,0,0,0.1);
}

#TechnologyTreePanelHolder div.eraTechnologiesHolder.lockedBorder {
    border-bottom-color: #c14e30;
}

#TechnologyTreePanelHolder div.eraTechnologiesHolder div.eraName {
    transform: rotate(90deg);
    transform-origin: left top 0;
    font-size: 24px;
    font-weight: bold;
    position:absolute;
    left: 36px;
    height: 34px;
    line-height: 30px;
    text-align: center;
    width: 225px;
    background-color: rgba(50,50,50,1);
    border-top: 2px solid #c1bea0;
    border-right: 2px solid #c1bea0;
}

#TechnologyTreePanelHolder div.eraTechnologiesHolder div.eraName.locked {
    color: #fbbba1;
}

#TechnologyTreePanelHolder div.technology {
    position: absolute;
    width: 270px;
    height: 74px;
    z-index: 4;
}

#TechnologyTreePanelHolder div.technology div.description {
    float:left;
    width: 220px;
}

#TechnologyTreePanelHolder div.technology div.description div.name {
    font-size:16px;
}

#TechnologyTreePanelHolder div.technology div.description div.resourcesMedium {
    font-size:14px;
}

#TechnologyTreePanelHolder div.vArrow {
    position: absolute;
    background-color: #c1bea0;
    z-index: 1;
}

#TechnologyTreePanelHolder div.vArrowBg {
    position: absolute;
    background-color: black; 
    /* background-color: rgba(0,0,0,0.5); */
    z-index: 2;
}

#TechnologyTreePanelHolder div.vArrowHigh {
    position: absolute;
    background-color: #dad6b3;
    z-index: 3;
}

#TechnologyTreePanelHolder div.hArrow {
    position: absolute;
    background-color: #c1bea0;
    z-index: 1;
}

#TechnologyTreePanelHolder div.hArrowBg {
    position: absolute;
    background-color: black;
    /* background-color: rgba(0,0,0,0.5); */
    z-index: 2;
}

#TechnologyTreePanelHolder div.hArrowHigh {
    position: absolute;
    /* background-color: #c1bea0; */
    background-color: #dad6b3;
    z-index: 3;
}

#SendCaravanPopupHolder .kingdomListHolder {
    overflow-y: auto;
    position: absolute;
    top: 175px;
    bottom: 50px;
    left: 10px;
    right: 10px;
}

#SendCaravanPopupHolder .bottomButtons {
    position: absolute;
    bottom: 8px;
    right: 10px;
    left: 10px;
    text-align: right;
}

#ConfirmCostPopupHolder .contentHolder {
    font-weight: bold;
    font-size: 16px;
}

#ConfirmCostPopupHolder .remark {
    font-size: 20px;
    text-align: center;
    padding-top: 20px;
}

#ChooseOtherPolicyPopupHolder table.availablePoliciesTable {
    width: 100%;
}

#ChooseOtherPolicyPopupHolder table.availablePoliciesTable td.policyName {
    width: 100px;
    padding-bottom: 8px;
}

#ChooseOtherPolicyPopupHolder table.availablePoliciesTable td.policyDescription {
    vertical-align: top;
    font-weight: bold;
    padding-top: 10px;
}

#ChooseOtherPolicyPopupHolder table.availablePoliciesTable td.policyDescription img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

#FieldInfoPopupHolder td.icon {
    width: 43px;
    text-align: left;
}

#FieldInfoPopupHolder td.name {
    font-weight: bold;
    font-size: 18px;
    vertical-align: bottom;
}

#FieldInfoPopupHolder td.income {
    vertical-align: top;
    font-weight: bold;
    font-size: 14px;
}

#FieldInfoPopupHolder td.income img {
    vertical-align: middle;
}

#FieldInfoPopupHolder td.valueLabel {
    font-weight: bold;
    font-size: 14px;
    line-height: 20px;
    text-align: right;
    /*color: #aaa9ae;*/
}

#FieldInfoPopupHolder td.value {
    font-weight: bold;
    font-size: 14px;
    line-height: 20px;
}

#FieldInfoPopupHolder td.value img {
    vertical-align: middle;
    padding-left: 3px;
}

#FieldInfoPopupHolder .selectButtons button {
    width: 100%;
    margin-top: 5px;
}

.chatExpanded #DiplomacyPanelHolder {
    top:403px;
}

#DiplomacyPanelHolder {
    top:135px;
    position:absolute;
    right:0px;
    width:475px;
    z-index:20;
    max-height: 420px;
    overflow-y: auto;
}

.__mode__IncidentMode #DiplomacyPanelHolder {
    right:262px;
}

#DiplomacyPanelHolder .scrollDiv {
    overflow-y: auto;
}

#DiplomacyPanelHolder .kingdomTableHolder {
    padding: 5px;
}

#DiplomacyPanelHolder table.selectableRows tr:hover {
    background-color: #555555;
}

#DiplomacyPanelHolder table.diplomacyOptionsTable {
    padding: 5px;
    font-weight: bold;
    width: 100%;
    border-spacing: 0px;
    border-collapse: separate;
}

#DiplomacyPanelHolder table.diplomacyOptionsTable tr.optionRow td:nth-child(1) {
    width: 32px;
    text-align: center;
}

#DiplomacyPanelHolder table.diplomacyOptionsTable td {
    height: 30px;
    padding: 2px;
}

#DiplomacyPanelHolder table.diplomacyOptionsTable td:nth-child(2) img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

#DiplomacyPanelHolder table.diplomacyOptionsTable tr.subOptionRow td {
    height: 20px;
}

#DiplomacyPanelHolder table.diplomacyOptionsTable tr:hover {
    background-color: #555555;
}

#DiplomacyPanelHolder table.diplomacyOptionsTable tr.staticOptionRow {
    background-color: rgba(0,0,0,0.3);
}

#DiplomacyPanelHolder .diplomacyAgreementsHolder {
    padding: 10px;
    font-weight: bold;
}

#DiplomacyPanelHolder table.diplomacyAgreementsTable {
    width: 100%;
}

#DiplomacyPanelHolder table.diplomacyAgreementsTable td:nth-child(1) {
    text-align: center;
    vertical-align: middle;
    width: 25px;
}

#DiplomacyPanelHolder table.diplomacyAgreementsTable td:nth-child(1) img {
    vertical-align: middle;
}

#DiplomacyPanelHolder table.diplomacyAgreementsTable td:nth-child(2) {
    width: 165px;
}

#DiplomacyPanelHolder table.diplomacyAgreementsTable td:nth-child(3) {
    text-align: right;
}

#WaresPopupHolder table.wareTable {
    width: 100%;
}

#WaresPopupHolder table.wareTable td:nth-child(1) {
    text-align: right;
    width: 100px;
}

#WaresPopupHolder table.wareTable td:nth-child(2) {
    text-align: center;
    width: 30px;
}

#WaresPopupHolder table.wareTable td:nth-child(3) {
    text-align: left;
    width: 100px;
}

#WaresPopupHolder table.wareTable td:nth-child(4) {
    text-align: right;
    width: auto;
}

#WaresPopupHolder .noWares {
    margin: 30px 10px 10px;
    text-align: center;
    color: #aaa9ae;
}

#WaresPopupHolder .tradeOfferLimit {
    font-size: 16px;
}

#WaresPopupHolder table.tradeOfferTable {
    border-spacing: 0px;
    border-collapse: separate;
    width: 100%;
    margin-top: 15px;
}

#WaresPopupHolder table.tradeOfferTable td {
    padding: 3px;
}

#WaresPopupHolder .cancelButton {
    padding-left: 5px;
    padding-right: 5px;
}

#WaresPopupHolder table.tradeOfferTable tr.offer td {
    border-bottom: 2px solid #c1bea0;
    padding-bottom: 4px;
    padding-top: 4px;
}

#WaresPopupHolder table.tradeOfferTable tr.offer:hover {
    background-color: #555555;
}

#WaresPopupHolder table.tradeOfferTable td:nth-child(1) {
    text-align: right;
    width: 40px;
}

#WaresPopupHolder table.tradeOfferTable td:nth-child(2) {
    padding-right: 14px;
    width: 30px;
}

#WaresPopupHolder table.tradeOfferTable td:nth-child(3) {
    text-align: right;
    border-left: 2px solid #c1bea0;
    padding-left: 10px;
    width: 40px;
}

#WaresPopupHolder table.tradeOfferTable td:nth-child(4) {
    padding-right: 14px;
    width: 30px;
}

#WaresPopupHolder table.tradeOfferTable td:nth-child(5) {
    border-left: 2px solid #c1bea0;
    padding-left: 10px;
    width: 30px;
    text-align: center;
}

#WaresPopupHolder table.tradeOfferTable td:nth-child(6) {
    text-align: right;
}

#WaresPopupHolder table.tradeOfferTable th {
    padding: 3px;
    border-bottom: 2px solid #c1bea0;
    font-size: 16px;
    text-align: left;
}

#WaresPopupHolder table.tradeOfferTable th.weOffer {
    padding-left: 3px;
}

#WaresPopupHolder table.tradeOfferTable th.price {
    border-left: 2px solid #c1bea0;
    padding-left: 10px;
}

#WaresPopupHolder table.tradeOfferTable th.times {
    border-left: 2px solid #c1bea0;
    padding-left: 10px;
}

#WaresPopupHolder input.weOfferCountFiled {
    width: 40px;
}

#WaresPopupHolder input.priceCountFiled {
    width: 40px;
}

#WaresPopupHolder input.timesFiled {
    width: 30px;
}

#WaresPopupHolder .cancelButton button {
    padding: 5px;
}

#WaresPopupHolder .cancelButton img {
    padding: 0px;
}

#WaresPopupHolder tr.tradeProposalRow .cancelButton {
    visibility: hidden;
}

#WaresPopupHolder tr.tradeProposalRow:hover .cancelButton {
    visibility: visible;
}

#WaresPopupHolder .contentHolder {
    position: absolute;
    top: 60px;
    left: 12px;
    right: 12px;
    bottom: 60px;
    overflow-y: auto;
}

#WaresPopupHolder button[name="cancelButton"] {
    position: absolute;
    right: 12px;
    bottom: 12px;
}

table.tradeProposalTable {
    width: 100%;
    margin-top: 15px;
    border-spacing: 0px;
}

table.tradeProposalTable th {
    padding: 4px;
    border-bottom: 2px solid #c1bea0;
    font-size: 16px;
    text-align: left;
}

table.tradeProposalTable th:nth-child(3) {
    border-left: 2px solid #c1bea0;
}

table.tradeProposalTable th:nth-child(4) {
    border-left: 2px solid #c1bea0;
}

table.tradeProposalTable th:nth-child(5) {
    border-left: 2px solid #c1bea0;
}

table.tradeProposalTable td {
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
}

table.tradeProposalTable td>img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

table.tradeProposalTable td:nth-child(1) {
    width: 35px;
    text-align: left;
}

table.tradeProposalTable td:nth-child(2) {
    width: 55px;
    text-align: right;
    padding-right:75px;
}

table.tradeProposalTable td:nth-child(3) {
    width: 55px;
    text-align: right;
    padding-right:75px;
    border-left: 2px solid #c1bea0;
}

table.tradeProposalTable td:nth-child(4) {
    border-left: 2px solid #c1bea0;
    padding-left: 8px;
    width: 75px;
}

table.tradeProposalTable td:nth-child(5) {
    border-left: 2px solid #c1bea0;
    padding-left: 8px;
    width: 75px;
}

table.tradeProposalTable td:nth-child(6) {
    text-align: right;
}

table.tradeProposalTable tr.tradeProposalRow:hover {
    background-color: #555555;
}

table.tradeProposalTable tr.tradeProposalRow.tooFarAway:hover {
    background-color: #664444;
}

table.tradeProposalTable tr.tradeProposalRow .acceptButton {
    visibility: hidden;
}

table.tradeProposalTable tr.tradeProposalRow:hover .acceptButton {
    visibility: visible;
}

table.tradeProposalTable tr.tooFarAway td {
    color: #aaa9ae;
}

table.tradeProposalTable tr.tooFarAway td:nth-child(2) img {
    opacity: 0.5;
}

table.tradeProposalTable tr.tooFarAway td:nth-child(3) img {
    opacity: 0.5;
}

#AcceptTradeOfferPopupHolder .contentHolder {
    position: absolute;
    top: 60px;
    left: 12px;
    right: 12px;
    bottom: 60px;
    overflow-y: auto;
}

#AcceptTradeOfferPopupHolder button[name="cancelButton"] {
    position: absolute;
    right: 12px;
    bottom: 12px;
}

div.__mode__IncidentMode #IncidentDescriptionPanelHolder {
    right:262px;
}

#IncidentDescriptionPanelHolder {
    position:absolute;
    right:0px;
    bottom:0px;
    z-index:10;
    padding: 10px;
    font-weight: bold;
}

#IncidentDescriptionPanelHolder .title {
    padding-bottom: 10px;
    font-size: 16px;
}

#WorkerActionPopupHolder table.actionTable {
    width: 100%;
    border-spacing: 5px;
}

#WorkerActionPopupHolder table.actionTable td:nth-child(1) {
    width: 42px;
    text-align: left;
}

#WorkerActionPopupHolder table.actionTable td:nth-child(2) {
    font-size: 16px;
}

#WorkerActionPopupHolder table.actionTable td:nth-child(2) img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

#WorkerActionPopupHolder table.actionTable td:nth-child(3) {
    text-align: right;
}

#WorkerActionPopupHolder table.actionTable td:nth-child(3) img {
    vertical-align: middle;
}

#WorkerActionPopupHolder table.actionTable td:nth-child(3) button {
    vertical-align: middle;
    font-size: 18px;
    padding-top: 2px;
    padding-bottom: 2px;
    width: 150px;
}

#WorkerActionPopupHolder table.actionTable td:nth-child(3) button img {
    padding-left: 3px;
    padding-bottom: 3px;
}

#BudgetPopupHolder table.rateTable {
    border-spacing: 5px;
}

#BudgetPopupHolder table.rateTable td:nth-child(1) {
    text-align: right;
    font-size: 18px;
}

#BudgetPopupHolder table.rateTable td:nth-child(2) select {
    font-size: 16px;
    width: 100px;
}

#BudgetPopupHolder table.rateTable td:nth-child(3) {
    color: #aaa9ae;
}

#FocusPopupHolder .focusButtonsTable {
    width: 100%;
}

#FocusPopupHolder .focusButtonsTable td:nth-child(1) {
    width: 190px;
}

#FocusPopupHolder .focusButtonsTable td:nth-child(1) button {
    width: 180px;
}

#FocusPopupHolder .focusButtonsTable img {
    vertical-align: middle;
    padding-left: 3px;
    padding-bottom: 3px;
}

.cityReligionsPanelHolder {
    padding-top: 10px;
}

.cityReligionsPanelHolder .religionsDiv {
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 8px;
    font-size: 16px;
    font-weight: bold;
}

.cityReligionsPanelHolder .religionsDiv img {
    vertical-align: middle;
    width: 26px;
    height: 26px;
}

.cityReligionsPanelHolder .religionsDiv .religionHolder {
    margin-bottom: 10px;
}

.cityReligionsPanelHolder .religionsDiv .outerBar {
    margin-top: 4px;
    background-color: black;
    height: 5px;
}

.cityReligionsPanelHolder .religionsDiv .innerBar {
    background-color: #5555BB;
    height: 5px;
}

.cityReligionsPanelHolder .religionsDiv .innerBar.stateReligion {
    background-color: green;
}

.cityReligionsPanelHolder .convertHolder {
    padding: 0px 6px 0px;
}

.cityReligionsPanelHolder .convertHolder button {
    width: 100%;
}

.cityOrderRestoredPanelHolder {
    padding-top: 10px;
}

.cityOrderRestoredPanelHolder .cityOrderRestoredField {
    font-weight:bold;
    padding-left: 8px;
    padding-top: 8px;
}

.cityOccupiedPanelHolder {
    padding-top: 10px;
}

.cityOccupiedPanelHolder .cityOccupiedInfoField {
    font-weight:bold;
    padding-left: 8px;
    padding-top: 8px;
}

table.kingdomRankingTable {
    width: 100%;
    border-spacing: 0px;
    border-collapse: separate;
    font-weight:bold;
}

table.kingdomRankingTable tr:hover {
    background-color: #555555;
}

table.kingdomRankingTable tr:nth-of-type(even):hover {
    background-color: #555555;
}

table.kingdomRankingTable tr:nth-of-type(even) {
    background-color: rgba(255,255,255,0.1)
}

table.kingdomRankingTable tr.thisKingdom {
    color: #97ef7b;
    font-size: 18px;
}

table.kingdomRankingTable td {
    padding: 5px;
}

table.kingdomRankingTable td:nth-child(1) {
    width: 25px;
}

table.kingdomRankingTable td:nth-child(2) img {
    vertical-align: middle;
    padding-right: 4px;
}

table.kingdomRankingTable td:nth-child(3) {
    width: 110px;
    text-align: right;
    padding-left:0px;
    padding-right: 0px;
}

table.kingdomRankingTable td:nth-child(3) img {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    float: right;
}

table.kingdomRankingTable td:nth-child(4) {
    width: 70px;
    text-align: right;
}

table.kingdomRankingTable div.victoryProgressBar {
    width: 4px;
    height: 20px;
    background-color: black;
    float: right;
    margin-left: 3px;
    position: relative;
}

table.kingdomRankingTable div.victoryProgressBar div.innerBar {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: #a87f22;
    height: 33%;
}

#RankingPopupHolder .kingdomRankingTableHolder {
    overflow: auto;
    position: absolute;
    left: 10px;
    right: 10px;
    top: 105px;
    bottom: 51px;
}

#RankingPopupHolder .buttonsHolder {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

#RankingPopupHolder .gameTime {
    padding: 6px;
    font-size: 16px;
}

#RankingPopupHolder div.outerBar {
    background-color: #000000;
    height:8px;
    margin-bottom: 4px;
}

#RankingPopupHolder div.outerBar div.innerBar {
    background-color: #008000;
    height:8px;
    width: 20%;
}

#NewAnnouncementPopupHolder .announcementHolder {
    position: relative;
    padding-top: 4px;
    padding-bottom: 8px;
}

#NewAnnouncementPopupHolder .announcementHolder .name {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 3px;
}

#NewAnnouncementPopupHolder .announcementHolder .description {
    font-size: 14px;
    font-weight: bold;
    padding-right: 140px;
    color: #aaa9ae;
}

#NewAnnouncementPopupHolder .announcementHolder .announceButton {
    right: 0px;
    top: 2px;
    position: absolute;
}

#UnitListPopupHolder div.unitLabel {
    width: 36px;
    height: 35px;
    background-image: url(../gfx/rendered-ui/unit-cloud/bg.png);
    /*opacity: 0.6;*/
    position: relative;
}

#UnitListPopupHolder div.unitLabel>div {
    position: absolute;
    /*left: 0;
    right: 0;
    top: 0;
    bottom: 0;*/
}

#UnitListPopupHolder div.unitLabel div.movement {
    background: url(../gfx/rendered-ui/unit-cloud/movement.png) no-repeat bottom right;
    right: 1px;
    left: 0;
    bottom: 1px;
}

#UnitListPopupHolder div.unitLabel div.hpHigh {
    background: url(../gfx/rendered-ui/unit-cloud/hp-high.png) no-repeat bottom left;
    left: 1px;
    right: 0;
    bottom: 1px;
    z-index: 1;
}

#UnitListPopupHolder div.unitLabel div.hpMed {
    background: url(../gfx/rendered-ui/unit-cloud/hp-med.png) no-repeat bottom left;
    left: 1px;
    right: 0;
    bottom: 1px;
    z-index: 2;
}

#UnitListPopupHolder div.unitLabel div.hpLow {
    background: url(../gfx/rendered-ui/unit-cloud/hp-low.png) no-repeat bottom left;
    left: 1px;
    right: 0;
    bottom: 1px;
    z-index: 3;
}

#UnitListPopupHolder div.unitLabel div.hpCivil {
    background: url(../gfx/rendered-ui/unit-cloud/hp-civil.png) no-repeat bottom left;
    left: 1px;
    right: 0;
    bottom: 1px;
    z-index: 3;
}

#UnitListPopupHolder div.unitLabel div.flag {
    left: 5px;
    top: 5px;
}

#UnitListPopupHolder table.unitTable {
    width: 100%;
    border-spacing: 0px;
    border-collapse: separate;
}

#UnitListPopupHolder table.unitTable tr:hover {
    background-color: #555555;
}

#UnitListPopupHolder table.unitTable tr.foreign {
    color: #b9b9a0
}

#UnitListPopupHolder table.unitTable td {
    padding-top: 4px;
    padding-bottom: 4px;
}

#UnitListPopupHolder table.unitTable td:nth-child(1) {
    padding-left: 4px;
    width: 50px;
}

#UnitListPopupHolder table.unitTable td:nth-child(2) {
    width: 44px;
}

#UnitListPopupHolder .unitName {
    font-size: 16px;
}

#UnitListPopupHolder .unitLevel {
    padding-top: 2px;
    font-size: 14px;
}

div.topChromeWarning {
    background-color: red;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    font-weight: bold;
    font-size: 14px;
    z-index: 1000;
    color: white;
    padding: 8px;
}

#PackWaresPopupHolder .contentHolder {
    position: absolute;
    top: 60px;
    left: 12px;
    right: 12px;
    bottom: 60px;
    overflow-y: auto;
}

#PackWaresPopupHolder .pickTable {
    width: 100%;
    border-spacing: 0px;
    border-collapse: separate;
}

#PackWaresPopupHolder .pickTable td {
    padding: 4px 2px;
}

#PackWaresPopupHolder .pickTable td:nth-child(2) {
    text-align: right;
    width: 150px;
}

#PackWaresPopupHolder .pickTable tr:nth-of-type(odd) {
    background-color: rgb(30,30,30);
}

#PackWaresPopupHolder .pickTable tr:nth-of-type(even) {
    background-color: rgb(35,35,35);
}

#PackWaresPopupHolder button[name="cancelButton"] {
    position: absolute;
    right: 12px;
    bottom: 12px;
}

#FarLandPopupHolder .tradeOfferTable {
    width: 100%;
    padding-top: 10px;
    border-spacing: 0px;
    border-collapse: separate;
}

#FarLandPopupHolder .tradeOfferTable td {
    padding: 4px 2px;
}

#FarLandPopupHolder .tradeOfferTable td:nth-child(1) {
    text-align: right;
    width: 40px;
    padding-right: 0px;
}

#FarLandPopupHolder .tradeOfferTable tr:nth-of-type(odd) {
    background-color: rgb(30,30,30);
}

#FarLandPopupHolder .tradeOfferTable tr:nth-of-type(even) {
    background-color: rgb(35,35,35);
}

#PausePopupPopupHolder .pauseDescription {
    font-size:18px;
}

#PausePopupPopupHolder .timeRanges {
    margin-top: 12px;
}

#PausePopupPopupHolder .timeRanges ul.timeRangesList {
    font-size:16px;
    margin-top: 6px;
    margin-bottom: 6px;
    line-height: 150%;
}

#PausePopupPopupHolder .timeRanges ul li.next {
    font-size:20px;
    color: inherit;
}

#PausePopupPopupHolder .timeRanges ul li {
    color: #aaa9ae;
}

#PausePopupPopupHolder .timeRanges .timeRangesTitle {
    font-size:20px;
}
