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

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

a:hover {
  text-decoration: none;
}

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

#overview {
  margin-top: 5px;
}

.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;
}

#adjust_time {
  width: 70px;
}

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;
}

#map .legend span {
  background-color: white;
  color: black;
  border: 1px solid #000;
  text-align: left;
  white-space: nowrap;
}

#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;
}

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

.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;
}

#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: 0;
  margin-top: 0;
  margin-right: 0;
  width: 14px;
  height: 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#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;
}

.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;
}

/* Message Threads: */

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

.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;
  }
}
