/**
 * City Popup Styles
 * Uses standard popup structure from game-ui.css and Popup component
 * Only city-specific content styles here
 */

/* City popup overrides for the Popup component */
.city-popup .wb-popup-content {
  padding: 0;  /* Remove default padding for full-bleed backgrounds */
}

.city-popup .wb-popup-body-inner {
  position: relative;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* Make the pop-content area position relative for absolute children */
.city-popup .pop-content.city-pop-content {
  position: relative;
  padding: 0;
}

/* City art background - fills entire content area */
.city-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/city/basecity.png') right center no-repeat;
  background-size: cover;
  z-index: 0;
}

/* Wall overlay */
.city-wall-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
}

.city-wall-bg.wall-0 { background-image: url('/city/citywall_0.png'); }
.city-wall-bg.wall-2 { background-image: url('/city/citywall_2.png'); }
.city-wall-bg.wall-3 { background-image: url('/city/citywall_3.png'); }

/* Main layout inside popup */
.city-main-layout {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

/* Left column - tabs */
.city-tabs-column {
  width: 56px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.city-tab-btn {
  width: 56px;
  height: 56px;
  background-image: url('/interface4/city_buttons.png');
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
  transition: filter 0.15s;
}

.construct1 { background-position: 0px -336px; }
.construct2 { background-position: -56px -336px; }
.upgrade1 { background-position: 0px -168px; }
.upgrade2 { background-position: -56px -168px; }
.training1 { background-position: 0px -56px; }
.training2 { background-position: -56px -56px; }
.training3 { background-position: 0px 0px; }
.portal1 { background-position: 0px -112px; }
.portal2 { background-position: -56px -112px; }
.cty_wiki1 { background-position: 0px -224px; }
.cty_wiki2 { background-position: -56px -224px; }
.cty_map1 { background-position: 0px -280px; }
.cty_map2 { background-position: -56px -280px; }
.raze1 { background-position: 0px -392px; }
.raze2 { background-position: -56px -392px; }
.raze3 { background-position: -56px 0px; }

.city-tab-btn:hover {
  filter: brightness(1.15);
}

.city-tab-btn.active {
  filter: brightness(1.1);
}

/* Center column uses cty_info2, popup_minimap, citybank, vectortogg, cityname classes
   defined in game-ui.css and icons.css — no additional city-specific overrides needed */

/* Right column - content panel */
.city-content-column {
  flex: 1;
 
  overflow-y: auto;
  color: #1a1a1a;
}

/* Content panel header */
.city-content-column h3 {
  color: #1a1a1a;
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(90, 74, 58, 0.3);
}

.city-content-column h4 {
  color: #4a3a2a;
  font-size: 14px;
  font-weight: bold;
  margin: 15px 0 10px 0;
}

/* City Information Page Layout - Two columns */
.city-info-layout {
  display: flex;
  gap: 15px;
  height: 100%;
}

.city-info-left {
  flex: 1;
}

.city-info-left h3 {
  color: #1a1a1a;
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(90, 74, 58, 0.3);
}

.city-info-left h4 {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: bold;
  margin: 20px 0 10px 0;
}

/* Stat rows - matching old baseicon style */
.city-stat-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: bold;
  line-height: 28px;
  min-height: 28px;
}

/* Base icon style - 26px height with background from sprite */
.city-stat-icon {
  width: 48px;
  height: 26px;
  background-repeat: no-repeat;
  flex-shrink: 0;
  text-align: right;
  padding-right: 30px;
  box-sizing: border-box;
}

/* Icon positions from icons.png sprite sheet */
.city-stat-icon.income-icon {
  background: url('/icons/icons.png') no-repeat 1px -540px;
}

.city-stat-icon.wall-icon {
  background: url('/icons/icons.png') no-repeat 1px -1269px;
}

.city-stat-icon.view-icon {
  background: url('/icons/icons.png') no-repeat 1px -1242px;
}

.city-stat-icon.cost-icon {
  background: url('/icons/icons.png') no-repeat 1px -243px;
}

.city-stat-icon.redportal-icon {
  background: url('/icons/icons.png') no-repeat 1px -1323px;
}

.city-stat-icon.blueportal-icon {
  background: url('/icons/icons.png') no-repeat 1px -1134px;
}

/* Value displayed inside icon area - right-aligned like old baseicon */
.city-stat-icon {
  font-size: 14px;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 26px;
  text-align: right;
  padding-right: 4px;
}

.city-stat-label {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: bold;
  flex: 1;
}

/* Wall upgrade controls */
.city-wall-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.city-arrow-btn {
  width: 28px;
  height: 20px;
  background: url('/interface4/updown.png') no-repeat;
  border: none;
  cursor: pointer;
}

.city-arrow-btn.arrow-up {
  background-position: 0 0;
}

.city-arrow-btn.arrow-down {
  background-position: 0 -20px;
}

.city-arrow-btn:hover:not(:disabled) {
  filter: brightness(1.2);
}

.city-arrow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Wall cost display - shows upgrade cost with gold icon */
.city-wall-cost {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.city-wall-cost .city-stat-icon {
  width: 56px;
  height: 26px;
  background: url('/icons/icons.png') no-repeat 1px -243px;
  font-size: 14px;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 26px;
  text-align: right;
  padding-right: 4px;
}

/* Training area */
.city-training-area {
  margin-top: 20px;
}

.city-unit-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.city-unit-choice {
  width: 56px;
  height: 56px;
  border: 2px solid #5a4a3a;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
}

.city-unit-choice:hover {
  border-color: #8a7a5a;
  background: rgba(255, 255, 255, 0.3);
}

.city-unit-choice.selected {
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.2);
}

.unit-sprite {
  width: 48px;
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.no-units-text {
  color: #6a5a4a;
  font-style: italic;
}

.city-train-progress {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  font-size: 14px;
  color: #2a2a2a;
}

.city-stop-training-btn {
  padding: 10px 25px;
  background: linear-gradient(to bottom, #7a6a5a, #5a4a3a);
  border: 2px solid #4a3a2a;
  border-radius: 4px;
  color: #f4e4c4;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}

.city-stop-training-btn:hover {
  background: linear-gradient(to bottom, #8a7a6a, #6a5a4a);
}

/* Unit Stats Panel (right side) */
.city-unit-stats-panel {
  width: 180px;
  background: url('/interface4/dropdownbg.png');
  border: 2px solid #5a4a3a;
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.unit-stats-header {
  text-align: center;
}

.unit-sprite-large {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.unit-stats-name {
  font-weight: bold;
  font-size: 16px;
  color: #1a1a1a;
}

.unit-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.unit-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.stat-icon {
  width: 26px;
  height: 26px;
  background-repeat: no-repeat;
}

/* Unit stat icons from icons.png */
.stat-icon.attack-icon { background: url('/icons/icons.png') no-repeat 1px -189px; }
.stat-icon.defense-icon { background: url('/icons/icons.png') no-repeat 1px -486px; }
.stat-icon.ranged-icon { background: url('/icons/icons.png') no-repeat 1px -54px; }
.stat-icon.armor-icon { background: url('/icons/icons.png') no-repeat 1px -486px; }
.stat-icon.hp-icon { background: url('/icons/icons.png') no-repeat 1px -378px; }
.stat-icon.regen-icon { background: url('/icons/icons.png') no-repeat 1px -378px; }
.stat-icon.move-icon { background: url('/icons/icons.png') no-repeat 1px -1053px; }
.stat-icon.gold-icon { background: url('/icons/icons.png') no-repeat 1px -243px; }
.stat-icon.build-icon { background: url('/icons/icons.png') no-repeat 1px -918px; }

.stat-value {
  min-width: 25px;
  font-weight: bold;
  color: #1a1a1a;
}

.unit-bonuses h5 {
  margin: 10px 0 5px;
  font-size: 12px;
  color: #4a3a2a;
}

/* Legacy Info rows (for other pages) */
.city-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(90, 74, 58, 0.3);
}

.city-info-row:last-child {
  border-bottom: none;
}

.city-info-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.city-info-text {
  flex: 1;
  font-size: 14px;
  color: #2a2a2a;
}

.city-info-value {
  color: #1a1a1a;
  font-weight: bold;
}

/* Upgrade buttons */
.city-upgrade-btn {
  width: 28px;
  height: 28px;
  background: url('/interface4/updown.png') no-repeat;
  border: none;
  cursor: pointer;
}

.city-upgrade-btn.up {
  background-position: 0 0;
}

.city-upgrade-btn.down {
  background-position: -28px 0;
}

.city-upgrade-btn:hover {
  filter: brightness(1.2);
}

.city-upgrade-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.city-upgrade-cost {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}

.city-cost-icon {
  width: 20px;
  height: 20px;
  background: url('/interface4/basepopup.png') -75px 0 no-repeat;
  background-size: 400px auto;
}

.city-cost-value {
  color: #c9a227;
  font-weight: bold;
}

/* Training section */
.city-training-section {
  margin-top: 20px;
}

.city-training-units {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.city-train-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.city-train-unit-icon {
  width: 48px;
  height: 48px;
  border: 2px solid transparent;
  border-radius: 4px;
}

.city-train-unit.selected .city-train-unit-icon {
  border-color: #c9a227;
}

.city-train-unit:hover .city-train-unit-icon {
  border-color: #8a7a5a;
}

.city-training-progress {
  font-size: 13px;
  color: #4a3a2a;
  margin: 10px 0;
}

.city-stop-btn {
  padding: 8px 20px;
  background: linear-gradient(to bottom, #8a7a5a, #6a5a3a);
  border: 2px solid #5a4a3a;
  border-radius: 4px;
  color: #f4e4c4;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}

.city-stop-btn:hover {
  background: linear-gradient(to bottom, #9a8a6a, #7a6a4a);
}

/* Production slots */
.city-prod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.city-prod-slot {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid #5a4a3a;
  border-radius: 4px;
  padding: 10px;
  text-align: center;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.city-prod-slot.filled {
  border-color: #4a6a4a;
}

.city-prod-slot.empty {
  border-style: dashed;
  opacity: 0.7;
}

.city-prod-slot-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

.city-prod-slot-name {
  font-size: 12px;
  color: #2a2a2a;
  font-weight: bold;
}

.city-prod-slot-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #8b0000;
  border: 2px solid #5a0000;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  cursor: pointer;
}

.city-prod-slot-remove:hover {
  background: #a00;
}

/* Footer bar */
.city-footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: url('/interface4/basepopup.png') 0 -119px repeat-x;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 20;
}

.city-footer-btn {
  width: 150px;
  height: 36px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1a;
  text-transform: capitalize;
}

.city-footer-btn.cancel {
  background: url('/interface4/basepopup.png') -285px 0 no-repeat;
}

.city-footer-btn.ok {
  background: url('/interface4/basepopup.png') -435px 0 no-repeat;
}

.city-footer-btn:hover {
  filter: brightness(1.1);
}

/* Wiki units list */
.city-wiki-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.city-wiki-unit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.city-wiki-icon {
  width: 48px;
  height: 48px;
}

.city-wiki-info {
  flex: 1;
}

.city-wiki-name {
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.city-wiki-stats {
  font-size: 12px;
  color: #4a3a2a;
}

/* Portal section */
.city-portal-section {
  margin-bottom: 15px;
}

.city-vector-list {
  margin-top: 8px;
}

.city-vector-item {
  padding: 6px 0;
  border-bottom: 1px solid rgba(90, 74, 58, 0.3);
  font-size: 13px;
}

.city-vector-item:last-child {
  border-bottom: none;
}

/* ===== DESTROY PRODUCTION PAGE - matches old razebuilding() ===== */

/* Top panel: title + unit grid */
.cty_destroy2 {
  width: 220px;
  padding: 5px;
  font-size: 18px;
  font-weight: bold;
}

/* Bottom panel: confirmation details (initially hidden) */
.cty_destroy3 {
  display: none;
  margin-left: 10px;
  padding: 5px;
}

/* Unit sprite container in the grid */
.cty_destroy4 {
  width: 65px;
  float: left;
}

/* Confirmation panel: unit name + cost + button area */
.cty_destroy1 {
  width: 140px;
  height: 95px;
  padding-top: 5px;
  float: left;
  margin-left: 10px;
  font-size: 18px;
  font-weight: bold;
}

/* Close button */
.cityclose {
  width: 20px;
  height: 20px;
  float: right;
  cursor: pointer;
  background: url('/interface4/miscpanels.png') -282px -4px;
  background-size: auto;
}
.cityclose:hover {
  filter: brightness(1.3);
}

.margintop { margin-top: 7px; }

/* ===== TRAIN ARMIES PAGE - matches old trainunit() ===== */

/* Container panel */
.cty_train1 {
  padding: 5px;
  min-height: 400px;
}

/* Individual unit entry */
.cty_train2 {
  float: left;
  width: 150px;
}

/* Golden button - from old interface_20130327.css */
.cssbutton {
  margin: 10px 0 1px 1px;
  padding: 4px;
  cursor: pointer;
  float: left;
  border-top: solid 1px #f9dc94;
  border-left: solid 1px #f9dc94;
  border-right: solid 1px #ba9949;
  border-bottom: solid 1px #ba9949;
  font-size: 14px;
  font-weight: bold;
  background-color: #f4cb67;
  box-shadow: 1px 1px 4px #333;
}
.cssbutton:hover {
  margin: 11px 0 0 2px;
  padding: 4px;
  box-shadow: 1px 1px 2px #333;
}

.city-destroy-refund {
  color: #c9a227;
  font-weight: bold;
}

.city-destroy-btn {
  padding: 5px 12px;
  background: linear-gradient(to bottom, #8b0000, #5a0000);
  border: 1px solid #3a0000;
  border-radius: 3px;
  color: #fdd;
  font-size: 12px;
  cursor: pointer;
}

.city-destroy-btn:hover {
  background: linear-gradient(to bottom, #a00, #700);
}

/* Scrollbar for content */
.city-content-column::-webkit-scrollbar {
  width: 10px;
}

.city-content-column::-webkit-scrollbar-track {
  background: rgba(90, 74, 58, 0.2);
}

.city-content-column::-webkit-scrollbar-thumb {
  background: #8a7a5a;
  border-radius: 5px;
}

.city-content-column::-webkit-scrollbar-thumb:hover {
  background: #9a8a6a;
}

/* Page description */
.city-page-desc {
  font-size: 13px;
  color: #4a3a2a;
  margin-bottom: 15px;
  font-style: italic;
}

/* Empty/no data states */
.city-empty-text {
  color: #6a5a4a;
  font-style: italic;
  padding: 10px 0;
}

/* Max level indicator */
.city-max-level {
  color: #4a7c4a;
  font-style: italic;
}

/* ===== BUY PRODUCTION CAPACITY PAGE - EXACT match from old CSS ===== */

/* Main panel style - from interface_20141003.css line 183 */
.misc_gpopstyle {
  float: left;
  border-top: solid 1px #f6e1a6;
  border-left: solid 1px #f6e1a6;
  border-right: solid 1px #8a7649;
  border-bottom: solid 1px #8a7649;
  background-image: url('/interface4/dropdownbg.png');
  -moz-box-shadow: 0 10px 10px 0 #333;
  -webkit-box-shadow: 0 10px 10px 0 #333;
  box-shadow: 0 10px 10px 0 #333;
}

/* Marker container - from interface_20141003.css line 191-192 */
.marker { float: left; }
.marker:hover {
  background-image: url('/interface4/contentback.png');
  border-radius: 5px;
  -moz-border-radius: 5px;
  float: left;
  cursor: pointer;
}

/* Individual unit box - from interface_20141003.css line 359 */
.cty_buyunit {
  width: 200px;
  padding: 2px;
  border-bottom: solid 1px #b39e71;
  border-right: solid 1px #b39e71;
  border-top: solid 1px #f5e2b8;
  border-left: solid 1px #f5e2b8;
  height: 80px;
  margin: 3px;
}

/* Unit list panel - from interface_20141003.css line 368 */
.buyunitspanel {
  width: 660px;
  height: 450px;
}

/* Payment panels - from interface_20141003.css line 369 */
.unitpay {
  width: 160px;
  margin-left: 10px;
}

/* Unit text area - from interface_20141003.css line 370 */
.unittext {
  width: 130px;
}

/* Small padding - from interface_20141003.css line 371 */
.smallpadding {
  padding: 5px;
}

/* Bank display - from interface_20141003.css line 372-373 */
.citybank {
  width: 130px;
  padding-top: 3px;
  font-size: 14px;
  line-height: 24px;
}
.lineheight {
  line-height: 24px;
}

/* Fat text */
.fattext {
  font-weight: bold;
}

/* Icon layout and backgrounds are in icons.css - only city-specific overrides here */

/* Button styles - using sprites from basepopup.png */
button.ok3 {
  background: url('/interface4/basepopup.png') -130px -48px;
  width: 151px;
  height: 36px;
  border: 0;

  margin-top: 3px;
  cursor: pointer;
}

/* cancel3 button - same style as ok3, different position in sprite (left side) */
button.cancel3 {
  background: url('/interface4/basepopup.png') -130px -48px;
  width: 151px;
  height: 36px;
  border: 0;

  margin-top: 3px;
  margin-right: 10px;
  cursor: pointer;
}

button.cancel3:hover,
button.ok3:hover {
  filter: brightness(1.1);
}

/* Remove default focus outline for mouse users; keep for keyboard navigation */
button.ok3:focus:not(:focus-visible),
button.cancel3:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

button.notok {
  padding: 8px 20px;
  background: #888;
  border: 2px solid #666;
  border-radius: 4px;
  cursor: not-allowed;
  opacity: 0.6;
}

.buttontext {
  font-size: 14px;
  font-weight: bold;
  color: #1a1a1a;
}

/* ===== BUILDING UPGRADE PAGE (showstaticupgrade) ===== */

/* City wall name area */
.cty_wall1 { width: 140px; height: 95px; padding-top: 5px; margin-left: 10px; font-size: 18px; }
/* Horizontal separator */
.cty_wall2 { width: 380px; border-bottom: solid 1px #f7eace; border-top: solid 1px #7c6936; float: left; margin: 5px 0 5px 0; }
/* Level list container */
.cty_wall3 { float: left; width: 300px; }
/* Up/Down button container */
.cty_wall4 { float: left; width: 30px; }
/* Cost display container */
.cty_wall5 { float: left; width: 80px; }

/* Up arrow button */
div.add1 { width: 25px; height: 27px; background: url('/interface4/miscpanels.png') -50px 0px; float: left; cursor: pointer; }
div.add1:hover { filter: brightness(1.2); }
/* Down arrow button */
div.sub1 { width: 25px; height: 27px; background: url('/interface4/miscpanels.png') -25px 0px; float: left; cursor: pointer; }
div.sub1:hover { filter: brightness(1.2); }

/* Defence shield icon */
.cityshield { background: url('/interface4/mainpanels.png') -133px -125px; width: 21px; height: 25px; margin-right: 4px; float: right; }

/* Level row - current level highlighted */
.cty_selecterleft {background: url(/interface4/miscpanels.png)  1px -28px;
  padding: 0 0 0 4px;
  text-decoration: none;
  float: left;}
.cty_selecterright {    background: url(/interface4/miscpanels.png) -10px -28px;
  float: left;
  display: block;
  padding: 4px 17px 3px 6px;
  float: left;
  /* font-size: 14px; */
  font-weight: bold;
  line-height: 28px;
  width: 322px;}
/* Level row - not selected */
.cty_noselecterleft { float: left; margin-left: 9px; }
.cty_noselecterright { }

/* Level list items */
.cty_wall3 li { list-style: none; clear: both; line-height: 28px; }
.cty_wall3 li a { display: block; width: 100%; }
.cty_wall3 li span { display: block; overflow: hidden; }

/* Margin top helper */
.margintop { margin-top: 3px; }
.marginleft { margin-left: 5px; }
.lineheight { line-height: 28px; }

/* ===== CITY INFORMATION PAGE - matches old cityinfo() ===== */

.cty_info1 { margin-top: 20px; width: 300px; float: left; }
.cty_info2 { width: 313px; padding: 5px; float: left; }
.cty_info3 { margin-bottom: 5px; border: solid 0px; }
.cty_info4 { width: 320px; padding: 0px 5px 5px 5px; margin-left: 10px; font-size: 14px; font-weight: bold; }
.cty_info5 { float: left; line-height: 28px; min-width: 200px; }
.cty_info6 { float: left; width: 300px; margin: 30px 0 30px 0; }
.cty_info7 { width: 130px; padding: 5px; display: none; margin-left: 10px; }
.cty_info8 { width: 65px; }
.cty_h1 { font-size: 18px; }
input.cityname {
  background-color: #5d4612;
  width: 152px;
  height: 25px;
  font-size: 20px;
  color: #d39349;
  border: solid 1px;
  padding-left: 3px;
  font-weight: bold;
}

/* ===== PORTAL / VECTORING PAGE - matches old portal() ===== */

/* Button strip on left of portal content */
.cty_tele1 { width: 75px; }
.cty_tele2 { line-height: 30px; }
/* Scrollable content area */
.cty_tele3 { max-height: 450px; overflow-y: auto; float: left; width: 435px; }
/* Table container with gold background */
.cty_tele4 { width: 415px; font-size: 14px; }
/* Table columns */
.cty_tele5 { width: 200px; }
.cty_tele6 { width: 95px; }
/* Divider */
.cty_tele7 { margin: 8px 0 12px 0; float: left; width: 400px; height: 0px; }
/* Right panel container */
.cty_tele8 { width: 525px; padding: 5px;}
/* Small unit icon container */
.cty_tele9 { width: 33px; }
/* Build counter next to unit */
.cty_tele10 { width: 64px; }
/* Stop/Transit column */
.cty_tele11 { width: 110px; text-align: center; }

.cty_tele4 .th { font-weight: bold; text-align: left; padding: 2px; border-bottom: solid 1px #b39e71; background: url(interface4/mainpanels.png) -75px 32px;}

/* Font helper */
.cty_font14 { font-size: 14px; }
.font14 { font-size: 14px; }

/* Heart icon for allied cities */
.heart { background: url('/interface4/miscpanels.png') -125px -6px; width: 18px; height: 15px; float: left; }

/* Close button (small X) for removing vectors */
.info_close { height: 16px; width: 16px; float: right; margin-right: 5px; margin-top: 2px; background: url('/interface4/mainpanels.png') -138px -58px; cursor: pointer; }
.info_close:hover { filter: brightness(1.3); }

/* Vector control buttons */
div.cvector1 { width: 67px; height: 35px; background: url('/interface4/miscpanels.png') -515px 0px; float: left; margin: 0px 0px 10px 0px; cursor: pointer; }
div.cvector2 { width: 67px; height: 35px; background: url('/interface4/miscpanels.png') -515px -35px; float: left; margin: 0px 0px 10px 0px; cursor: pointer; }
div.mvector1 { width: 67px; height: 35px; background: url('/interface4/miscpanels.png') -582px 0px; float: left; margin: 0px 0px 10px 0px; cursor: pointer; }
div.mvector2 { width: 67px; height: 35px; background: url('/interface4/miscpanels.png') -582px -35px; float: left; margin: 0px 0px 10px 0px; cursor: pointer; }
div.cvector1:hover, div.cvector2:hover, div.mvector1:hover, div.mvector2:hover { filter: brightness(1.2); }

/* Wiki help button on portal page */
.sidewiki1 { background: url('/interface4/mainpanels.png') -282px -73px; width: 68px; height: 36px; margin-bottom: 6px; cursor: pointer; margin-left: -2px; float: left; }
.sidewiki2 { background: url('/interface4/mainpanels.png') -282px -109px; width: 68px; height: 36px; margin-bottom: 6px; cursor: pointer; margin-left: -2px; float: left; }
.sidewiki1:hover { filter: brightness(1.2); }

/* Allied vector button */
.alliedvector1 { background: url('/interface4/mainpanels.png') -349px -145px; width: 67px; height: 35px; float: left; margin: 0px 0px 10px 0px; cursor: pointer; }
.alliedvector2 { background: url('/interface4/mainpanels.png') -349px -180px; width: 67px; height: 35px; float: left; margin: 0px 0px 10px 0px; cursor: pointer; }
.alliedvector1:hover, .alliedvector2:hover { filter: brightness(1.2); }

/* ===== PORTAL ARROWS - vectoring direction indicators ===== */

.baseportalarrow { width: 9px; height: 18px; float: left; margin: 4px 2px 0 2px; background-image: url('/interface4/portalarrows.png'); }
div.in0turn { background-position: 108px 18px; }
div.in1turn { background-position: 90px 18px; }
div.in2turn { background-position: 81px 18px; }
div.in3turn { background-position: 72px 18px; }
div.in4turn { background-position: 63px 18px; }
div.in5turn { background-position: 54px 18px; }
div.out0turn { background-position: 99px 18px; }
div.out1turn { background-position: 9px 18px; }
div.out2turn { background-position: 18px 18px; }
div.out3turn { background-position: 27px 18px; }
div.out4turn { background-position: 36px 18px; }
div.out5turn { background-position: 45px 18px; }

/* Icon backgrounds (wall, income, viewradius, bonus attributes, move icons, etc.) are all in icons.css */
