/* Primary Styles */
html {
  position: relative;
  min-height: 100%;
}

body {
  padding-top: 70px; /* For navbar */
}

a:hover {
  text-decoration: none;
}

.panel-body-lobby {
  padding-left: 0px;
  padding-right: 0px;
}

.navbar {
  margin-bottom: 5px;
  padding: 0.4rem 0.4rem;
}

#adjudication-warning {
  margin-bottom: 0px;
}

.affix {
  position: fixed;
  top: 20px;
  width: 260px;
}

.affix-top {
  width: 260px;
}

#overview {
  margin-top: 5px;
}

#dropdown-pagenav {
  min-width: 200px !important;
}

#navbar-icon {
  padding-top: 0px;
  padding-bottom: 0px;
}

#navbar-icon-caret {
  vertical-align: middle;
  margin-top: 4px;
}

.navbar-btn-pagenav {
  padding-top: 1px;
  padding-left: 4px;
}

.btn-history:focus,
.btn-history:active {
  outline: none !important;
  box-shadow: none !important;
}

#history_current_season {
  width: 130px !important;
}

#breadcrumb {
  text-overflow: ellipsis;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
}

.select-width-auto {
  width: auto !important;
}

.lobby-panel-heading {
  cursor: pointer;
}

#adjust_time {
  width: 70px;
}

.login {
  margin-top: 10px;
  margin-right: 10px;
}

#brand a {
  color: #999999;
}

.input-user-settings {
  width: 270px;
}

form {
  margin-bottom: 0px;
}

#map_container {
  text-align: center;
  margin-bottom: 10px;

  margin: 0px;
  /*-1 margins because the map includes its own one-pixel-background-colored border:*/
  margin-top: -1px;
  margin-left: -1px;
}

.game-list-header {
  cursor: pointer;
}

#map > svg {
  cursor: crosshair;
}

#map .legend {
  font-size: 0.8em;
  position: relative;
  z-index: 50;
  text-align: center;
  line-height: 1.22;
  padding: 0px;
}

#map .legend table {
  border-collapse: collapse;
}

#map .legend span {
  background-color: white;
  color: black;
  border: 1px solid #000;
  vertical-align: middle;
  text-align: left;
  padding: 1px;
  margin: 1px;
  margin-top: 2px;
  white-space: nowrap;
  line-height: 1.7;
}

#map .legend legend {
  font-size: 0.9em;
  font-family: sans-serif;
  font-weight: bold;
  width: 110px;
  background: #333;
  padding: 1px;
  cursor: pointer;
}

#map .season {
  font-size: 1.4em;
  font-family: sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}

#map-season {
  font-size: 1.4em;
  font-family: sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  position: absolute;
  top: 1px;
  left: 5px;
  z-index: 10;
}

.red {
  color: #f00;
}

#hint {
  padding: 10px;
  margin: 0;
}

.static-map {
  float: left;
  width: 100%;
}

.prompt {
  padding: 10px;
  border: 1px solid #aa9;
}

.prompt-form {
  margin-bottom: 0px;
}

.playerlist {
  font-size: 9pt;
}

.playerlist div.country {
  white-space: nowrap;
}

.playerlist tr {
  border-top: 1px solid #ddd;
}

.playerlist tr:first-child {
  border-top: none;
}

.playerlist td,
.playerlist th {
  padding: 3px 8px 6px 8px;
  vertical-align: top;
}

.playerlist th {
  text-align: left;
  font-weight: normal;
  font-style: italic;
}

.playerlist p {
  margin: 0;
  padding: 0;
  font-family: monospace;
}

#retreats td {
  vertical-align: top;
}

#retreats p {
  margin: 0;
  padding: 0;
  font-family: monospace;
}

#builds .build_disband_table tr {
  border-top: none;
}

#builds .build_disband_table td,
#builds .playerlist table th {
  border: none;
  text-align: center;
  padding: 3px;
}

#builds .build_disband_count {
  font-size: 1.2em;
}

#content {
  clear: both;
  padding: 0;
  margin-bottom: 0;
  min-height: 400px;
}

/* Layout */

.country-icon {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 5px;
  margin-top: 3px;
  position: relative;
  top: 2px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}

.country-icon-map {
  top: 1px;
  width: 8px;
  height: 8px;
}

#order_buttons {
  z-index: 149;
  padding-left: 2px;
  padding-right: 1px;
  margin-top: 0px;
  padding-top: 0px;
}

#order_buttons button {
  margin-left: 0px;
  margin-right: 1px;
}

/* Tooltip */
#tooltip {
  position: absolute;
  width: 150px;
  padding: 4px;
  background: #666;
  background: rgba(0, 0, 0, 0.5);
  z-index: 75;

  -moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);

  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.padded-anchor {
  padding-top: 40px;
}

.modal-table th {
  font-size: 12px;
}

.card-header .fa {
  transition: 0.3s transform ease-in-out;
}

.card-header .collapsed .fa {
  transform: rotate(90deg);
}

label {
  font-weight: normal !important;
}

.checkbox-spacer {
  padding-right: 8px;
}

.press-spacer {
  margin-bottom: 10px;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
}

.spacer-5 {
  margin-bottom: 5px;
}

.minimal_dropdown {
  height: auto;
  width: auto;
}

/* Thread Listings:*/

.thread-listing {
  padding: 5px;
  border-bottom: 1px solid #999;
  cursor: pointer;
}

.thread-listing.unread {
  background: #fee;
}

.thread-listing h5 {
  margin: 0px;
}

.thread-listing p {
  margin: 0px;
}

.thread-listing.new {
  margin-top: 5px;
  border-top: 1px solid #999;
  padding-left: 23px;
  background-image: url(/images/plus-circle.png);
  background-position: 3px center;
  background-repeat: no-repeat;
}

.thread-listing:hover {
  background-color: #eee;
}

/* Message Threads: */

.thread .subject {
  border-bottom: 1px solid #999;
}

.thread .subject h3 {
  margin: 0px;
}

.thread .subject .from {
  margin: 0px;
}

.thread .message .byline em {
  font-weight: bold;
}

.thread .message .body {
  font-family: monospace;
}

#member-home-tweets {
  height: 300px;
}

.scroll-touch {
  -webkit-overflow-scrolling: touch;
  /* Enable momentum scrolling on mobile */
}

.animate {
  animation-name: button-flash;
  /* changes must be matched in game.js:copyToClipboard(...) */
  animation-duration: 2000ms;
}

@keyframes button-flash {
  0%    {background-color:white;}
  50%   {background-color:blue;}
}

/* Shrink tab width and font size for game info card tabs on mobile */
@media (max-width: 576px) {
  #game-info-card .nav-tabs .nav-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.85rem;
    min-width: 0;
  }
  #game-info-card .nav-tabs {
    flex-wrap: wrap;
  }
}