/*!
 * Bootstrap overrides
 */

/*
  navbar
*/

/* center nav bar */
.navbar .navbar-nav {
  display: inline-block;
/*  float: none; **/
  vertical-align: top;
}

#navbar {
/*  text-align: center; */
}


/* glyphicon sizes */

/* Funding Progress Bar */
.funding-progress-container {
  padding: 5px 0;
}

@keyframes celebrateIcon {
  0% { transform: translateY(-50%) scale(1); }
  100% { transform: translateY(-50%) scale(1.2); }
}

.funding-progress-link {
  display: block;
  text-decoration: none;
  color: #e6e6e6;
  transition: background-color 0.2s ease;
}

.funding-progress-link:hover {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.funding-progress-link.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.funding-progress-label {
  font-size: 0.9em;
  margin-bottom: 5px;
  color: #e6e6e6;
  text-align: left;
  display: flex;
  align-items: center;
}

.funding-progress-header {
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 5px;
  color: #e67e22; /* Matching orange color */
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.funding-progress-label .badge {
  margin-left: 6px;
}

.funding-progress-bar {
  height: 20px;
  background-color: #2c3e50;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #1a242f;
  position: relative;
  margin-bottom: 5px;
  flex-grow: 1;
}

.funding-progress-fill {
  height: 100%;
  background-color: #e67e22; /* Darker orange instead of gold for better contrast */
  border-radius: 4px 0 0 4px;
  transition: width 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.funding-progress-percentage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}

.goal-met-emoji {
  display: inline-block;
  font-size: 1.1em;
  animation: celebrateIcon 1.5s infinite alternate;
  margin-left: 2px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.funding-next-milestone {
  margin-top: 5px;
  text-align: center;
  font-size: 0.85em;
  color: #f8d486;
  font-style: italic;
}

.funding-next-milestone-marker {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  font-size: 0.8em;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 0 6px;
  border-radius: 0 4px 4px 0;
  border-left: 2px solid #f8d486;
  display: none; /* Hidden by default, shown via JS */
  line-height: 20px;
  font-weight: bold;
  z-index: 5;
}
span.glyphicon {
    font-size: 1.5em;
}

/* disable navbar collapse */
.navbar-nav > li {
	float:none;
    display:inline-block;
}

/* navbar stylings */
.navbar-nav {
  margin:0;
}

/*
  content
*/

.message-status input {
  float:right;
}

#pformatlist-textarea {
  width:100%;
}

.map-content {
  background-color:#000;
  overflow:scroll;
}

#map-content {
  border:0;
  width:100%;
  height:100%;
  position: absolute;
}

.navbar-nav>li>a {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* mobile nav */
.visible {
  display:block;
}

.table-borderless th, .table-borderless td {
  border: none !important;
}

#map-subnav {
  position: fixed;
  width:100%;
  background-color:#111;
}

#map-subnav a {
  color:#999;
}

#map-subnav a:hover {
  background-color:#CCC;
  color:#000;
}

.system img {
}

form th, form td {
  padding: 10px 0;
}

/* donate button */
@media (min-width: 768px) {
  #donate-link {
    font-size:2.25em;
  }
}

@media (max-width: 768px) {
  #donate-link {
    font-size:1.25em;
  }
}

/* planets page */
/* up to phone, hide mid */
@media (max-width: 480px) {
  .view-mid {
/*    display:none; */
  }
}

/* up to phone landscape, hide wide */
@media (max-width: 768px) {
  .view-wide {
/*    display:none; */
  }
}

/* down to phone, hide narrow */
@media (min-width: 480px) {
  .view-narrow {
/*    display:none; */
  }
}

/* down to phone landscape, hide mid */
@media (min-width: 768px) {
  .view-mid {
/*    display:none; */
  }
}

/* */
li {
  list-style:none;
}

ul {
  padding:0;
}

.nav li > a {
  padding-bottom:5px;
}


.navbar {
  min-height:0;
}

/* */

#buildform .tooltip-inner {
  font-size:1.5em;
}

/* */

.alert {
  margin-top: 20px;
}

.list-group {
  margin-bottom:0;
}

/* */
nav#nav-small .container-fluid, #map-body .container-fluid {
  padding:0;
}

.navbar-fixed-top {
  border-width:0;
}

.navbar {
  margin-bottom:0;
}

.table-responsive {
  border:none;
}
  
@media (max-width: 768px) {
  .btn-responsive {
    padding:2px 4px;
    font-size:80%;
    line-height: 1;
    border-radius:3px;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .btn-responsive {
    padding:4px 9px;
    font-size:90%;
    line-height: 1.2;
  }
}

/* timeline */
/*
.timeline-timestamp {
  padding-right:25px;
}
*/

.message-info {
  float:left;
}

.message-delete {
  float:right;
}

.button-message-delete {
  cursor:pointer;
}

.handler-link {
  cursor: pointer;
}

.recall-result p {
  text-align:center;
  margin:25px;
}

.empire-box {
  margin:5px 0;
}

.empire-banner {
  float:left;
  width:50px;
  height:50px;
}

.empire-status {
  margin:0 5px;
  float:left;
  display:block;
}

.empire-buff {
  color:green;
}

.empire-debuff {
  color:red;
}

.empire-warning {
  color:yellow;
}
.modal-backdrop {
  opacity: .09;
}