html, body {
  width: 100%;
  height: 100%;
}

body {
  background-color: #fff;
  font-family: 'Helvetica Neue','Helvetica','Arial',sans-serif;
  font-size: 0.8em;
  text-rendering: optimizeLegibility;
  margin: 0;
}
a {
  text-decoration: none;
}

h2 {
  font-size: 20px;
  margin: 7px 0px;
}
h2 a {
  display: block;
  color: #111;
}
.header {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  height: 55px;
  background: transparent;
  min-width: 640px;
}

#map {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
}

#about {
  font-size: 1.1em;
  width: 38px;
  margin: -15px;
  margin-left: 0;
  padding: 15px;
  padding-top: 18px;
}
#about:hover{
  text-decoration: underline;
}
#about a, #about ai {
  display: block;
  color: #404040;
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(255,255,255,.9);
}
#facebook {
  width: 145px;
}
#twitter {
  width: 100px;
}

#mailing-list {
  font-size: 1.1em;
  color: #404040;
  text-shadow: 0 1px 1px rgba(255,255,255,.9);
  margin: -15px;
  margin-left: 0;
  padding: 15px;
  padding-top: 19px;
}

.logo {
  position: absolute;
  left: 10px;
  top: 10px;
  background-color: #fff;
  width: 285px;
}
.logo .wrapper {
  font-size: 1.2em;
  padding: 10px;
}

.logo a {
  font-family: Georgia, serif;
  font-size: 2em;
  color: #111;
  line-height: 1em;
  display: inline-block;
}

.logo .slogan {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.85em;
  line-height: 1.2em;
}

.header .social-about {
  position: absolute;
  top: 10px;
  left: 300px;
  padding: 15px;
  padding-bottom: 12px;
}

.header .social-about > div {
  float: left;
}

#facebook {
  margin-right: 10px;
}

#feedback a {
  background-image: url('../images/feedback_tab_white.png');
  text-indent: -1000px;
  width: 22px;
  height: 90px;
  position: absolute;
  left: 0px;
  width: 22px;
  height: 90px;
  bottom: 100px;
  padding: 2px;
  background-color: #c33c3c;
  border-left: none;
}

.curtains {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: #111;
  opacity: 0.9;
}

#grid-container {
  position: fixed;
  z-index: 2;
  top: 55px;
  left: 180px;
  right: 0;
  bottom: 0;
  overflow-y: scroll;
}

#expanded-controls {
  position: fixed;
  top: 55px;
  left: 0;
  height: 150px;
  width: 150px;  /* matches #grid-container.margin-right */
  padding: 15px;
  padding-top: 0px;
}

#expanded-controls .location {
  color: white;
  font-size: 1.6em;
  white-space: pre-line;
  width: 150px;
  margin-top: 5px;
}

.nypl-logo {
  position: fixed;
  bottom: 10px;
  left: 10px;
}

div.exit {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  font-size: 35px;
  line-height: 35px;
  color: white;
  cursor: pointer;
}
div.exit:hover {
  color: gray;
}

#search {
  position: fixed;
  left: 10px;
  bottom: 30px;
  background: white;
  overflow: auto;
  padding: 5px;
  box-shadow: rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px;  /* This matches Google Maps. */
}

#current-location {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  margin-right: 2px;
}
#current-location svg path {
  fill: #777;
}
#current-location:hover svg path {
  fill: black;
}

#location-search {
  padding-left: 2px;
}

.og-grid {
  padding-top: 0;
}

/* reclaim some space */
.og-close {
  display: none;
}
.og-expander-inner {
  padding: 20px 30px;
}
.og-details {
  padding-right: 0;
  width: 40%;
}
.og-fullimg {
  width: 60%;
}
.og-fullimg > img {
  transition: transform 200ms;
}

#preview-map {
  width: 150px;
  height: 150px;
  cursor: pointer
}

#expanded .og-fullimg img:hover {
  cursor: pointer;
}

#expanded .header {
  background: transparent;
}
#expanded .logo {
  background: transparent;
}

#expanded .logo a {
  color: white;
  cursor: pointer;
}
#expanded .logo a:hover {
  color: gray;
}
#filtered-slideshow {
  position: absolute;
  left: 190px;
  top: 10px;
  color: white;
  font-size: 1.4em;
  height: 35px;
  line-height: 35px;
}
a#slideshow-all, a#slideshow-all:visited {
  color: white;
  text-decoration: underline;
}
.arrow-right {
  width: 0;
  height: 0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-left: 50px solid #DADADA;
}
.arrow-left {
  width: 0;
  height: 0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-right:50px solid #DADADA;
}
.arrow-left:hover{
  border-right:50px solid #fff;
}
.arrow-right:hover{
  border-left:50px solid #fff;
}

.spacer {
  height: 64px;
}

/* Popular Photos */
#popular, .popular-link {
  position: absolute;
  top: 10px;
  width: 213px;
  right: 10px;
  background: #eee;
  padding: 0 10px;
}

#popular {
  overflow-y: scroll;
  bottom: 30px;
}

#popular h2, .popular-link h2 {
  font-size: 16px;
}

.popular-photo {
  padding-bottom: 15px;
}
.popular-photo p {
  margin: 0 auto;
}

/* for "About" page */

#title {
  font-size: 24px;
  margin: 0;
  padding: 0;
  margin-top: 16px;
  margin-left: 5px;
}

#content-area {
  font: 1em;
  max-width: 960px;
  margin: 0 auto;
  margin-bottom: 50px;
  padding: 0 20px;
}
#content-area h3{
  padding: 0;
  margin: 0;
  padding-top: 15px;
}

/* image grid */
.rotate {
  position: absolute;
  bottom: 0;
  right: 0;
}

.description{
  font-weight: bold;
  font-size: 20px;
}


.text,
.more-on-back {
  margin: 20px 0;
  margin-top: 10px;
  padding-right: 30px;
  font-size: 16px;
}

.text {
  white-space: pre-line;
}

.more-on-back {
  font-style: italic;
}

.feedback-link {
  margin: 20px 0;
  font-size: 14px;
}

.nypl-link {
  font-style: italic;
  font-size: 14px;
  margin-top: 10px;
}
.nypl-link a {
  color: rgb(87, 54, 25);
}

.comments{
  margin-top: 10px !important;
}

.og-grid li {
  margin: 0 5px 10px 5px;  /* moves margin from top to bottom */
}

.og-grid li.og-expanded > a::after {
  border-bottom-color: #fff;
}

.og-expander {
  background: #fff;
}

.og-details {
  overflow-y: auto;
}

.og-details h3 {
  font-size: 22px;
}

.copy-link {
  padding: 3px 5px;
  background: #eee;
  background: linear-gradient(to bottom, #fff 0%, #eee 100%); /* W3C */

  border-radius: 3px;
  font-size: 0.8em;
  font-weight: bold;
  display: inline-block;
  border: 1px solid #bbb;
  text-align: center;
}
.copy-link.zeroclipboard-is-hover {
  background: #d7d7d7;
  background: linear-gradient(to bottom, #f7f7f7 0%, #e7e7e7 100%); /* W3C */
}
.copy-link a {
  color: #333;
}
.copy-link .octicon {
  font-size: 12px;
}
.copy-link.clicked {
  background: #dddddd;
}

.og-details .tweet, .og-details .facebook-holder {
  display: inline-block;
  vertical-align: top;
  height: 20px;
  overflow: hidden;  /* this hides the "Like" flyout */
}
.og-details .social, .more-on-back {
  margin: 10px 0;
}
.og-details > div {
  position: relative;
}

.details, .feedback {
  position: absolute;
  left: 0;
  right: 0;
}

.feedback p, .feedback button {
  padding: 5px;
  margin: 10px 0;
  display: block;
}
.feedback input {
  padding: 5px;
}
.feedback p { padding-left: 0; }
.feedback .suggest-date button {
  display: inline-block;
}
.feedback a.back { style: italic; }


#popular::-webkit-scrollbar, .og-details::-webkit-scrollbar-thumb {
  width: 6px;
  height: 6px;
  padding: 18px;
  -webkit-border-radius: 1ex
}

#popular::-webkit-scrollbar-thumb, .og-details::-webkit-scrollbar-thumb {
  background-color: rgba(053,057,071,0.3);
  padding: 8px;
  width: 6px;
  height: 6px;
  -webkit-border-radius: 1ex;
}

#popular .close {
  position: absolute;
  top: 6px;
  right: 10px;
  height: 1.5em;
  line-height: 1.5em;
  font-size: 1.5em;
  cursor: pointer;
}

#popular .close:hover {
  color: gray;
}

#about-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
#about-page .container {
  background: #fff;
  position: fixed;
  top: 20px;
  left: 50%;
  width: 100%;
  max-width: 960px;
  margin-left: -480px;
  bottom: 20px;
}

#time-range-summary {
  position: fixed;
  top: 74px;
  left: 60px;
  width: 235px;
  height: 54px;
  background: white;
  font-size: 1.8em;
  text-align: center;
  line-height: 54px;
  cursor: pointer;
}

#time-range {
  position: fixed;
  top: 116px;
  left: 60px;
  width: 205px;
  height: 10px;
  background: white;
  padding: 15px;
  /* box-shadow: #777 0 0px 5px 0px; */
  display: none;
}

#time-slider {
  /* width: 200px; */
}

.white-arrow-down {
  width: 0;
  height: 0;
  /* position: absolute; */
  top: 32px;
  left: 257px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid black;
  display: inline-block;
}

span.ui-slider-handle.ui-corner-all.ui-state-default {
  outline: none;
}
