/*
Theme Name: US-Mint

Author: Mario Hendricks, Leidos
*/

div.usmint-timeline-container {
  border-left: 2px solid #888;
  position: relative;
  max-width: 774px;
}

div.usmint-timeline-section {
  position: relative;
  overflow-y: hidden;
  overflow-x: hidden; /* Keeps scroll bars from showing when images are cropped. */
  padding-top: 30px;
}

/* Add extra space at the top, since we have the expand/collapse buttons there.  */
div.usmint-timeline-container div.usmint-timeline-section:first-of-type {
  margin-top: 60px;
}


/* =============================================================================
   US Mint Timeline Show All box
   ========================================================================== */

div.usmint-timeline-container > button {
  border: 1px solid #777;
  position: absolute;
  color: #111;
  background: -moz-linear-gradient(top, #f1d958 5%, #f1c938 100%);
  background: -webkit-linear-gradient(top, #f1d958 5%, #f1c938 100%);
  background: -o-linear-gradient(top, #f1d958 5%, #f1c938 100%);
  background: -ms-linear-gradient(top, #f1d958 5%, #f1c938 100%);
  background: linear-gradient(to bottom, #f1d958 5%, #f1c938 100%);
  background-color: #f1c938;
  right: 0;
  top: -50px;
  padding: .1em .45em;
  height: 2em;
  font-weight: normal;
}

div.usmint-timeline-container button#show-all span.timeline-expand-icon,
div.usmint-timeline-container button#hide-all span.timeline-expand-icon {
  font-weight: bold;
  font-size: 1.3em;
}

div.usmint-timeline-container button.hidden-btn {
  display: none;
}


/* =============================================================================
   US Mint Timeline Section Header Styles
   ========================================================================== */

div.usmint-timeline-section h2.usmint-timeline-section-header {
  margin: 0 0 10px;
  padding: 4px 4px 4px 0;
}

div.usmint-timeline-section h2.header-with-img {
  height: 76px;
  overflow-x: hidden;
}

div.usmint-timeline-section h2.usmint-timeline-section-header div.timeline-large-tick {
  display: inline-block;
  width: 20px;
  height: 12px;
  border-bottom: 2px solid #888;
  margin: 0 0 11px 0;
  position: relative;
  z-index: 10;
}

div.usmint-timeline-section h2.usmint-timeline-section-header span.timeline-marker {
  background-color: #0b5578;
  border-radius: 4px;
  color: #fff;
  font-weight: 900; /* aka Black */
  letter-spacing: .1em;
  line-height: 1.7em;
  padding: 3px 5px 1px;
  position: relative;
  z-index: 3;
}

div.usmint-timeline-section img.timeline-section-img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 400%;  /* This allows the image to be truncated, overriding a global 100% rule. */
  width: 750px;
  height: 96px;
  margin-left: 20px;
  z-index: 1;
  border: 2px solid #888;
  border-radius: 4px;
}

/* =============================================================================
   US Mint Timeline Event Styles
   ========================================================================== */

div.usmint-timeline-section dl.usmint-timeline-event-list dt.timeline-event-title {
  font-size: 111.1%;
  margin: 0 0 1em 0;
  color: #0b5578;
  padding: 0 0 0 4em;
  text-indent: -4em;
}

dl.usmint-timeline-event-list dt.timeline-event-title div.timeline-small-tick {
  display: inline-block;
  width: 20px;
  height: 12px;
  border-bottom: 1px solid #888;
  margin: 0 4px 7px 0;
}

dl.usmint-timeline-event-list input.timeline-event-checkbox {
  display: none;
}

dl.usmint-timeline-event-list dt.timeline-event-title label {
  cursor: pointer;
}

div.usmint-timeline-section dl.usmint-timeline-event-list dd {
  display: none;
  padding: 0 0 0 4.6em;
  font-size: 1.0em;
  margin: 0 0 .6em 0;
}

div.usmint-timeline-section dl.usmint-timeline-event-list dd p:first-of-type {
  margin-top: 0;
}

div.usmint-timeline-section dl.usmint-timeline-event-list dd p:last-of-type {
  margin-bottom: 0;
}

/* Styling for the event title when open */
div.usmint-timeline-container div.show-all-entries dt.timeline-event-title,
dl.usmint-timeline-event-list input[type=checkbox]:checked + dt.timeline-event-title {
  margin: 0 0 0.4em 0;
  color: #0b5578;
}

/* Styling for the event details when open. */
div.usmint-timeline-container div.show-all-entries dd,
dl.usmint-timeline-event-list input[type=checkbox]:checked + dt + dd {
  display: inline-block;
  padding: 0 0 0 4.6em;
  font-size: 1.0em;
  margin: 0 0 .6em 0;
  color: #000;
}

@media only print {
  /* Always show all details when printing */
  div.usmint-timeline-section dl.usmint-timeline-event-list dd {
    display: inline-block;
  }

  div.usmint-timeline-section h2.header-with-img {
    height: auto;
  }
}
