/* =======================================================
** Layout
======================================================= */
body {
  background: #eee793 url("/static/img/site-background.png") no-repeat;
  font-family: 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  padding: 30px 15px 15px;
  border-radius: 6px;
}

.site-content {
  background: #FBFBFB;
}

/* =======================================================
** Helpers
======================================================= */
p:last-child {
  margin-bottom: 0;
}

.cf:before, .site-pagination:before, .artifact-media-links:before, .artifacts-list:before,
.cf:after,
.site-pagination:after,
.artifact-media-links:after,
.artifacts-list:after {
  display: table;
  content: " ";
}

.cf:after, .site-pagination:after, .artifact-media-links:after, .artifacts-list:after {
  clear: both;
}

.browsehappy {
  margin: 0;
  padding: 1em;
  background: #ebebeb;
  text-align: center;
  color: #101010;
}

/* =======================================================
** Nav
======================================================= */
#main-nav {
  background: #002977;
  border-radius: 0;
  border: none;
  margin-bottom: 0;
}
#main-nav .navbar-header {
  height: 50px;
}
#main-nav .navbar-brand {
  display: block;
  margin: 0;
  padding: 0;
  width: 200px;
  height: 50px;
  background-image: url("/static/img/computer-museum-logo-x1.jpg");
}
#main-nav .navbar-collapse {
  box-shadow: none;
  border: none;
  margin: 0;
  padding: 0;
}
#main-nav .navbar-nav {
  margin: 0;
}
#main-nav .navbar-nav li {
  display: block;
  float: none;
}
#main-nav .navbar-nav a {
  color: #D4D4E6;
  font-size: 13px;
  line-height: 50px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0 12px;
}
#main-nav .navbar-nav a:hover {
  color: #FFF;
  background: #004;
}
#main-nav .navbar-nav .dropdown {
  display: none;
}
#main-nav .navbar-nav .dropdown.is-active {
  display: block;
}
#main-nav .dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: none;
}
#main-nav li.active a,
#main-nav .dropdown-menu,
#main-nav .dropdown.open a {
  background: #08084B;
}
#main-nav .navbar-toggle {
  float: right;
  position: relative;
  overflow: visible;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #FBFBFB;
  background-color: #004;
  font-size: 24px;
  line-height: 50px;
}
#main-nav .navbar-toggle:hover, #main-nav .navbar-toggle:focus {
  background: #004;
  outline: none;
}
#main-nav .navbar-toggle .toggle-end {
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  bottom: -10px;
  z-index: 999;
  border-style: solid;
  border-width: 10px 25px 0 25px;
  border-color: #004 transparent transparent transparent;
}

/* =======================================================
** Lookup widget
======================================================= */
#lookup-widget {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6000;
  float: right;
  width: 50px;
  height: 50px;
  margin: 0 50px 0 0;
  padding: 0;
  border: 0;
  background: #002977;
}
#lookup-widget form {
  display: none;
  float: left;
  width: 150px;
  height: 50px;
  margin: 0;
  padding: 10px 0;
}
#lookup-widget input {
  font-size: 14px;
  line-height: 30px;
  text-align: center;
  display: block;
  width: 95%;
  height: 30px;
  margin: 0 0 0 5%;
  padding: 0;
  border-radius: 3px;
  color: #303030;
  border: 0;
}
#lookup-widget:focus,
#lookup-widget input:focus {
  outline: none;
}
#lookup-widget ::-webkit-input-placeholder {
  text-align: center;
}
#lookup-widget a {
  display: block;
  float: left;
  width: 50px;
  height: 50px;
  color: white;
  text-align: center;
  font-size: 18px;
  line-height: 50px;
  font-weight: bold;
  text-transform: uppercase;
}
#lookup-widget a:hover {
  text-decoration: none;
}
#lookup-widget .widget-end {
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  bottom: -10px;
  z-index: -1;
  border-style: solid;
  border-width: 10px 25px 0 25px;
  border-color: #002977 transparent transparent transparent;
}
#lookup-widget .widget-link-text, #lookup-widget .widget-link-icon {
  position: relative;
  z-index: 1;
}
#lookup-widget .widget-link-text {
  display: none;
}
#lookup-widget .widget-link-icon {
  font-size: 24px;
  line-height: 50px;
}
#lookup-widget.is-active {
  width: 200px;
  background: #08084B;
}
#lookup-widget.is-active form {
  display: block;
}
#lookup-widget.is-active .widget-end {
  border-top-color: #08084B;
}
#lookup-widget:hover {
  background: #08084B;
}
#lookup-widget:hover .widget-end {
  border-top-color: #08084B;
}

/* =======================================================
** Pagination
======================================================= */
.site-pagination {
  margin: 6px -15px 24px;
  padding: 0 6px;
  border-bottom: 3px solid #404040;
  text-align: center;
  position: relative;
}
.site-pagination .page-current,
.site-pagination .page-category {
  display: block;
  margin: 6px 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: bold;
}
.site-pagination .page-counter {
  display: block;
  position: relative;
  margin: 0 12px;
  padding: 6px 0;
  color: #606060;
  line-height: 24px;
  font-weight: bold;
  white-space: nowrap;
}
.site-pagination .page-prev,
.site-pagination .page-next {
  position: absolute;
  bottom: 4px;
  font-size: 10px;
}
.site-pagination .page-prev:hover,
.site-pagination .page-next:hover {
  color: #FBFBFB;
  background: #202020;
  text-decoration: none;
}
.site-pagination .page-prev {
  left: 2px;
}
.site-pagination .page-next {
  right: 2px;
}
.site-pagination a.disabled {
  display: none;
  color: #DADADA;
  cursor: default;
  pointer-events: none;
}

/* =======================================================
** Footer
======================================================= */
.site-footer {
  display: block;
  margin: 12px auto;
  padding: 12px 0;
  color: #5f5c3b;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
  font-size: 12px;
  font-weight: bold;
}
.site-footer a {
  text-decoration: none;
  color: inherit;
}
.site-footer a:hover {
  color: #000;
}

/* =======================================================
** Artifact detail
======================================================= */
.artifact-media img {
  display: block;
  height: auto;
  width: 90%;
  margin: 0 auto 24px;
}
.artifact-media .caption {
  text-align: center;
  font-size: 12px;
  margin: 0 0 24px;
}

.artifact-copy {
  padding: 0  0 12px;
}
.artifact-copy h1 {
  font-size: 18px;
  margin: 0 0 18px;
  padding: 0 0 6px;
  border-bottom: 1px solid #DADADA;
}
.artifact-copy dd, .artifact-copy dt, .artifact-copy p {
  font-size: 12px;
}

.artifact-media-links {
  padding: 0;
  margin: 0;
}
.artifact-media-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.artifact-media-links li {
  float: left;
}
.artifact-media-links i {
  padding-left: .5em;
}
.artifact-media-links a {
  font-size: 12px;
  font-weight: bold;
  margin: 0 12px 12px 0;
  text-transform: uppercase;
}
.artifact-media-links a:hover {
  text-decoration: none;
}

.artifact-specs {
  padding: 0;
  margin: 0 0 18px;
}
.artifact-specs dt, .artifact-specs dd {
  line-height: 1.75em;
}
.artifact-specs dt {
  float: left;
  padding-right: .25em;
}

.artifact-description {
  margin: 0 0 18px;
}

.artifact-share {
  border-top: 1px solid #DADADA;
  padding-top: 18px;
}

/* =======================================================
** Artifacts grid view
======================================================= */
.artifacts-list {
  margin: 0;
}
.artifacts-list .artifact {
  float: left;
  position: relative;
  width: 60%;
  text-align: center;
  margin: 0 0 24px;
  border-radius: 3px;
  overflow: hidden;
}
.artifacts-list .artifact-image {
  overflow: hidden;
}
.artifacts-list .artifact-image img {
  width: 100%;
}
.artifacts-list .artifact-title {
  padding: 0 6px;
  color: #FFF;
  background: #A59C8C;
  border-top: 1px solid #9a907e;
}
.artifacts-list .artifact-title h2 {
  height: 30px;
  font-size: 12px;
  line-height: 30px;
  font-weight: bold;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}
.artifacts-list .artifact a:hover {
  text-decoration: none;
}
.artifacts-list .artifact a:hover .artifact-title {
  background: #8e8370;
}

.flexbox .artifacts-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.flexbox .artifact-title {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

/* =======================================================
** Site Intro
======================================================= */
.site-intro img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.site-intro h1 {
  font-weight: bold;
  font-size: 21px;
  line-height: 24px;
  padding-bottom: 6px;
  margin-bottom: 12px;
  border-bottom: 3px solid #DADADA;
}
.site-intro p {
  font-size: 15px;
  line-height: 1.125em;
  margin-bottom: 12px;
  color: #404040;
}
.site-intro p:last-child {
  margin-bottom: none;
}
.site-intro a.btn {
  margin: 0 12px 6px 0;
  float: left;
  display: block;
}

/* =======================================================
** Contact Form
======================================================= */
.contact-form h1 {
  font-weight: bold;
}
.contact-form p {
  font-size: 18px;
  line-height: 21px;
}
.contact-form form {
  margin: 24px 0 12px;
  padding: 24px 12px 0;
  border-top: 1px solid #DADADA;
}

/* =======================================================
** 404
======================================================= */
.artifact-not-found {
  padding: 48px;
  text-align: center;
}
.artifact-not-found h1 {
  font-size: 48px;
  font-weight: bold;
}

.icon-404 .fa {
  font-size: 96px;
  color: #DADADA;
}

/* =======================================================
** Buttons
======================================================= */
.btn {
  font-weight: bold;
}

.btn.btn-museum {
  color: #FFF;
  background-color:  #D4A143;
}
.btn.btn-museum:hover {
  background-color: #ba872a;
}

.btn.btn-contact {
  color: #FFF;
  background-color: #D47D43;
}
.btn.btn-contact:hover {
  background-color: #ba642a;
}

.btn.btn-navigation {
  color: #FBFBFB;
  background: #00549C;
}
.btn.btn-navigation:hover {
  background-color: #003969;
}

.btn.btn-action {
  color: #303030;
  background: #DADADA;
}
.btn.btn-action:hover {
  color: #000000;
  background-color: #E0E0E0;
}

/* =======================================================
** Responsive 
======================================================= */
@media (min-width: 380px) {
  .artifacts-list {
    margin: 0 -12px;
  }
  .artifacts-list .artifact {
    width: 156px;
    margin: 0 12px 12px;
  }
}
@media (min-width: 768px) {
  .container {
    padding: 15px;
  }

  #main-nav {
    margin-bottom: 48px;
  }
  #main-nav .navbar-collapse {
    margin: 0 110px 0 210px;
  }
  #main-nav .navbar-nav {
    width: 100%;
    white-space: nowrap;
  }
  #main-nav .navbar-nav li {
    display: inline-block;
  }
  #main-nav .navbar-nav .dropdown {
    display: none;
  }
  #main-nav .navbar-nav .dropdown li {
    display: block;
  }
  #main-nav .navbar-nav .dropdown.is-active {
    display: inline-block;
  }

  #lookup-widget {
    position: absolute;
    z-index: 6000;
    margin: 0;
  }
  #lookup-widget .widget-end {
    display: none;
  }
  #lookup-widget .widget-link-text {
    display: inline;
  }
  #lookup-widget .widget-link-icon {
    font-size: inherit;
  }

  .site-pagination {
    margin: 6px 0 24px;
  }
  .site-pagination .page-current,
  .site-pagination .page-category {
    display: block;
    margin: 9px 0;
    font-size: 24px;
    line-height: 30px;
    font-weight: bold;
  }
  .site-pagination .page-prev,
  .site-pagination .page-next {
    bottom: 6px;
    font-size: 14px;
  }
  .site-pagination .page-prev {
    left: 6px;
  }
  .site-pagination .page-next {
    right: 6px;
  }

  .artifacts-list .artifact {
    margin-bottom: 24px;
  }
}
@media (min-width: 992px) {
  .artifact-media .caption {
    font-size: 13px;
  }

  .artifact-copy {
    padding: 0  0 18px;
  }
  .artifact-copy h1 {
    font-size: 24px;
    margin: 0 0 18px;
    padding: 0 0 6px;
    border-bottom: 1px solid #DADADA;
  }
  .artifact-copy dd, .artifact-copy dt, .artifact-copy p {
    font-size: 14px;
  }

  .site-intro h1 {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 24px;
  }
  .site-intro p {
    font-size: 18px;
    margin-bottom: 24px;
  }
}
@media (min-width: 1200px) {
  .artifact-copy {
    padding: 0 12px 24px 0;
  }
  .artifact-copy h1 {
    font-size: 36px;
    margin: 0 0 18px;
    padding: 0 0 6px;
    border-bottom: 1px solid #DADADA;
  }
  .artifact-copy dd, .artifact-copy dt, .artifact-copy p {
    font-size: 15px;
  }

  .site-intro h1 {
    font-size: 36px;
    line-height: 42px;
    margin-bottom: 24px;
  }
  .site-intro p {
    font-size: 21px;
    margin-bottom: 24px;
  }
}
@media (min-width: 1560px) {
  .container {
    width: 90%;
    width: 1440px;
  }

  .artifact-copy dd, .artifact-copy dt, .artifact-copy p {
    font-size: 16px;
  }

  .artifacts-list .artifact {
    margin: 0 12px 24px;
  }
  .artifacts-list .artifact-title {
    height: 36px;
    padding: 3px 6px;
  }
  .artifacts-list .artifact-title h2 {
    font-size: 12px;
    margin: 0;
    padding: 0;
  }
}
@media (min-width: 1920px) {
  .container {
    width: 90%;
    width: 1800px;
  }
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpx), only screen and (min-resolution: 2dppx) {
  #main-nav .navbar-brand {
    background-size: 200px 50px;
    background-image: url("/static/img/computer-museum-logo-x2.jpg");
  }
}
