* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body.home {
  height: auto !important;
}

body {
  margin: 0;
  font-size: 24.5px;
  line-height: 1.25;
  font-family: 'Lancelot', cursive;
}

body.home,
body.permalink {
  background: url('../../assets/images/landscape.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

img {
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

ul li {
  margin-bottom: 1em;
}

/*b, strong {
  background: #bbb;
  border-radius: 4px;
  font-weight: normal;
}

em, i {
  font-style: normal;
  background: #ddd;
  border-radius: 4px;
}*/

a {
  color: black;
  text-decoration: none;
  background:url('../../assets/images/underline.png') repeat-x;
  background-position: 0 150%;
  background-size: 253px 17px;
}

figure {
  margin: 1em 0;
}

figure.video {
  width: 100%;
  padding-bottom: 56%;
  padding-top: 30px;
  margin-top: 1em;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  height: auto;
  position: relative;
}

figure.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

hr {
  border: 0;
  height: 20px;
  background:url('../../assets/images/underline.png') repeat-x;
  background-position: 0 150%;
  background-size: 253px 17px;
  margin-bottom: 1em;
  margin-top: 1em;
}

/* TYPOGRAPHY */

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

nav li,
.info {
  line-height: 1.1;
}

/* LAYOUT */

.container {
  max-width: 900px;
  margin: 50px auto;
}

.container-side {
  margin: 0;
  padding: 50px;
  width: 55%;
  height: 100vh;
  position: absolute;
  overflow: auto;
}

.container-side .text {
  max-width: 600px;
}

.container-side.full {
  width: 100%;
}

.container-side img {
  max-width: 100%;
}

/* Navigation */

.thing {
  background: url('../../assets/images/flower-georgia-plain.png');
  background-size: 100% 100%;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 178px;
  height: 170px;
  cursor: pointer;
  z-index: 99;
  display: none;
}

.thing.animate {
  transform: rotate(0deg);
  transition: all 3s ease-in-out;
  -webkit-transition-delay: 1s;
  transition-delay: 1s;
}

.thing.click {
  background: url('../../assets/images/flower-georgia.png');
  background-size: 100% 100%;
  width: 178px;
  height: 170px;
  transform: rotate(360deg) !important;
  -webkit-animation-iteration-count:  infinite !important;
    -webkit-animation-timing-function: linear !important;
}

a#clock {
  display: none;
  background: url('../../assets/images/pocket-watch.png');
  background-size: 100% 100%;
  position: fixed;
  bottom: 32px;
  right: 32%;
  width: 147px;
  height: 82px;
  cursor: pointer;
  z-index: 101;
}

#clock.broken {
  background: url('../../assets/images/pocket-watch-broken.png');
  background-size: 100% 100%;
}

@-webkit-keyframes pulse-one {
    0% { opacity: 1; }
    10% { opacity: 1; }
    50% { opacity: 0.2; }
    90% { opacity: 1; }
    100% { opacity: 1; }
}

#clock.pulse-one {
  -webkit-animation: pulse-one 2s ease-out;
  -webkit-animation-iteration-count: 1; 
}

@-webkit-keyframes pulse-two {
    0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;}
    50% {opacity: 1.0;}
    100% {-webkit-transform: scale(1.4, 1.4); opacity: 0.0;}
}

#clock.pulse-two {
  -webkit-animation: pulse-two 3s ease-out;
  -webkit-animation-iteration-count: 1; 
}

.bird {
  display: none;
  background: url('../../assets/images/hummingbird.png');
  background-size: 100% 100%;
  position: fixed;
  top: 32%;
  left: 62%;
  /*right: 22%;*/
  width: 132px;
  height: 74px;
  cursor: pointer;
  z-index: 99;
}

.bird.ready {
  transition: all 6s ease-in-out;
}

.bird.large {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: url('../../assets/images/hummingbird-large-bw.png');
  background-size: 100% 100%;
  width: 100%;
  height: 100%;
}

.bird.flower {
  top: 90px;
  left: 110px;
  bottom: auto;
  right: auto;
  width: 132px;
  height: 74px;
}

.side {
  float: right;
  padding: 50px;
  overflow-y: auto;
  position: fixed;
  top: 0;
  bottom: 0;
  transition: right 3s ease-in-out;
  background: #fff;
  z-index: 111;
  width: 45%;
  display: none;
}

.side.open {
  display: block;
  right: 0 !important;
}

.side.open.mobile {
  left: 0;
  width: 100% !important;
}

.side.perma-open {
  right: 0 !important;
}

.side a {
  background: none;
  word-wrap: break-word;
}

.side a:hover,
.side a.active,
.toggle a.active,
.toggle a:hover,
.info span,
.announcement span a {
  background:url('../../assets/images/underline.png') repeat-x;
  background-position: 0 150%;
  background-size: 253px 17px;
}

.announcement span {
  background:url('../../assets/images/underline-jagged.png') repeat-x;
  background-position: 0 160%;
  background-size: 253px 17px;
  display: inline-block;
}

ul.submenu .status,
.info .status {
  font-size: 1.5em;
  margin-top: -5px;
  width: 6%;
}

ul.submenu li div,
.info div {
  display: inline-block;
  vertical-align: top;
  width: 90%;
}

ul.basic-submenu {
  margin-left: 1em;
}

ul.basic-submenu li {
  margin: 0;
  list-style-type: circle;
}

.future { color: yellow; }
.current { color: #3ab90e; }
.past { color: #9a9a9a; }

/*.details {
  display: inline-block;
  max-width: 350px;
  height: auto;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}*/

/*.details.future {
  color: black;
  background: url('../../assets/images/circle-future.png') repeat-x;
  background-size: 100% 100%;
}

.details.current {
  color: black;
  background: url('../../assets/images/circle-current.png') repeat-x;
  background-size: 100% 100%;
}

.details.past {
  color: #9a9a9a;
  background: url('../../assets/images/circle-past.png') repeat-x;
  background-size: 100% 100%;
}

.details p {
  margin: 0;
  padding: 24px;
}*/

.artist-bio {
  margin: 2em 0;
}

.key {
  font-family: "Lucida Grande", Arial;
  font-size: 12px;
  text-transform: uppercase;
}

.key span {
  display: inline-block;
  padding: 3px;
  background: transparent;
  color: black !important;
}

.key span.future:hover {
  background: yellow;
}

.key span.current:hover {
  background: #3ab90e;
}

.key span.past:hover {
  background: #9a9a9a;
}

/*.key .future { background: yellow; }
.key .current { background: #3ab90e; }
.key .past { background: #9a9a9a; }*/

.news {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
}

.side a.species,
.side a.species:hover,
a.species,
a.species:hover {
  background: url('../../assets/images/logo.png');
  background-size: 100% 100%;
  width: 200px;
  height: 106px;
  display: block;
}

/* Individual Show */

.theater {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 24px;
  background: white;
  color: white;
  z-index: 111;
  display: none;
}

.stage {
  width: 100%;
  height: 100%;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -ms-flex-align: center;
  -webkit-align-items: center;
  -webkit-box-align: center;
  align-items: center;
  text-align: center;
}

.stage img {
  z-index: 114;
}

.theater img {
  display: none;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  margin: 0 auto;
  box-shadow: rgba(0,0,0,0.2) 0px 2px 3px, inset rgba(0,0,0,0.2) 0px -1px 2px;
}

.slideshow-count {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 112;
}

.info {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 112;
  display: none;
}

.toggle {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 112;
}

.toggle .images {
  margin-right: 8px;
}

.toggle a {
  background: none;
}

.next {
  background: url('../../assets/images/arrow-right.png');
  background-size: 100% 100%;
  width: 145px;
  height: 50px;
  display: block;
  cursor: pointer;
  position: fixed;
  z-index: 112;
  right: 24px;
  top: 44%;
  display: none;
}

.prev {
  background: url('../../assets/images/arrow-left.png');
  background-size: 100% 100%;
  width: 145px;
  height: 50px;
  display: block;
  cursor: pointer;
  position: fixed;
  z-index: 112;
  left: 24px;
  top: 44%;
  display: none;
}

.menu-thumbs {
  margin-top: 8px;
}

.menu-thumbs img {
  display: inline-block;
  vertical-align: top;
}

.text p:first-child {
  margin-top: 0;
}

figcaption {
  font-family: "Courier New", "Roboto Mono", courier, monospace;
  font-weight: 300;
  /*font-family: "Helvetica Neue", sans-serif;*/
  font-size: 14px;
  margin: 0.15em 0 1.5em;
}

.stage figcaption {
  /*display: none;*/
  color: black;
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 777;
  margin-bottom: 0;
}

.image-container {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-block {
  display: inline-block;
}

.desktop-images {
  margin-bottom: 1.5em;
  position: relative;
  font-size: 0;
}

.desktop-images img {
  max-width: 100%;
  margin: 3px;
  opacity: 0.9;
  cursor: pointer;
  vertical-align: top;
  /*-webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%); 
  -o-filter: grayscale(100%); */
  /*box-shadow: rgba(0,0,0,0.2) 0px 2px 3px, inset rgba(0,0,0,0.2) 0px -1px 2px;*/
}

.desktop-images img:hover {
  -webkit-filter: grayscale(0%);
  -moz-filter: grayscale(0%);
  -o-filter: grayscale(0%);
}


/* News */

.announcements {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 100%;
  background: white;
  padding: 24px;
  z-index: 100;
  display: none;
  transition: bottom 2s ease-in-out;
}

.announcements hr {
  display: none;
}

nav .announcements {
  display: none;
}

.announcements p:first-child {
  margin-top: 0;
}

#mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: none;
}

#mobile-nav #flower {
  background: url('../../assets/images/flower-georgia-plain.png');
  background-size: 100% 100%;
  position: absolute;
  top: 0;
  right: 4px;
  width: 78px;
  height: 74px;
  cursor: pointer;
}

.mobile-images {
  display: none;
}

.clearer {
  clear: both;
}

body.permalink {
  /*background: #ccc;*/
  display: flex;
  align-items: center;
  justify-content: center;
}

body.permalink .note {
  max-width: 600px;
  background: white;
  padding: 1em;
  margin: 1em 0 2em;
  box-shadow: rgba(0,0,0,0.2) 0px 2px 3px, inset rgba(0,0,0,0.2) 0px -1px 2px;
}

body.permalink .note p {
  margin: 0;
}

body.permalink .note h1 {
  margin-top: 0;
}

body.permalink ul.exhibitions {
  margin-top: 1em;
}

body.permalink li {
  margin: 0;
}

a.single-s {
  background: url('../../assets/images/logo-s.png');
  background-size: 100% 100%;
  width: 50px;
  height: 75px;
  display: block;
  position: fixed;
  top: 50px;
  right: 50px;
}

/* MEDIA QUERIES */

@media screen and (max-width: 1300px) {

  .prev {
    top: 8px;
    left: 8px;
  }

  .next {
    top: 8px;
    left: 174px;
  }

  .stage {
    padding-top: 74px;
  }

  .slideshow-count {
    display: none;
  }

@media screen and (max-width: 880px) {

  body.permalink #mobile-nav {
    display: none !important;
  }

  .container-side {
    padding-right: 50px;
  }

  .side.perma-open {
    left: 0;
    width: 100%;
    display: none;
  }

  .info {
    position: static;
    display: block !important;
    margin-bottom: 2em;
  }

  .info span,
  .side .announcements a {
    background:url('../../assets/images/underline.png') repeat-x;
    background-position: 0 150%;
    background-size: 253px 17px;
  }

  .desktop-images {
    display: none;
  }

  .mobile-images {
    display: block;
    margin-bottom: 2em;
  }

  nav .announcements {
    display: block;
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    height: auto;
    background: auto;
    padding: 0;
  }

  .announcements hr {
    display: block;
  }

  .announcement {
    margin-bottom: 1em;
  }

  .no-announcements {
    display: none;
  }

}

@media screen and (max-width: 640px) {

  body {
    font-size: 22px;
    line-height: 1.3;
  }

  .side,
  .container-side {
    padding: 16px;
  }

}