/* hotcorners.css
  Styling for slide viewer with nav items in corners
  Starts as long top down page until javascript kicks in

  * Basic Styling and Typography
  * Navigation in Corners and Edges
  * Slide and Image Layout
*/

/* Basic Styling and Typography
------------------------------------------- */

html,
body {
  background: #fff;

  padding: 0;
  margin: 0;
  color: #fff;
  font-family: Helvetica, 'Helvetica Neue';
  font-size: 12px;

}

div {
  box-sizing: border-box;
}

h1 {
  font-size: 1rem;
  color: #111231;
}

h2 {
  font-size: 1rem;
}

hr {
  height: 0;
  border: 0;
  border-bottom: 2px solid #fff;
}

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

a {
  color: #fff;
}
a:focus,
a:hover {
  color: #111231;
}


/* Navigation in Corners and Edges
------------------------------------------- */

/* unitialized state - links will just be at the top */
nav li {

  height: 30px;
  width: 30px;
  text-align: center;
  list-style: none;
  line-height: 30px;
}

nav li a {
  display: block;
  height: 30px;
  width: 30px;
  line-height: 30px;
  color: #fff;
  background: #111213;
  text-decoration: none;
  font-family: Garamond;
  font-size: 16px;
  font-style: italic;
}
nav li a:focus,
nav li a:hover {
  color: #fff;
  opacity: 0.75;
}

/* initialized state - links will fit corners */
.hotcorners nav li {
  position: fixed;
  z-index: 5
}
nav .one {
  top: 0;
  left: 0;
}
nav .two {
  top: 0;
  right: 0;
}
nav .three {
  bottom: 0;
  left: 0;
}
nav .four {
  bottom: 0;
  right: 0;
}
nav .five {
  top: 50%; /* ish */
  top: calc(50% - 15px);
  left: 0;
}
nav .six {
  top: 0;
  left: 50%;  /* ish */
  left: calc(50% - 15px);
}
nav .seven {
  top: 50%;  /* ish */
  top: calc(50% - 15px);
  right: 0;
}
nav .eight {
  bottom: 0;
  width: 70px;
  left: 50%; /* ish */
  left: calc(50% - 35px);

  background: #bfbbb5;
  color: #111213;
}
nav .eight a {
  width: 70px;
}


/* Slide and Image Layout
------------------------------------------- */

/* not-initialized state of slide - this will just be stacked vertically at proper aspect ratio */
.slide {
  width: 100vw;
  min-height: 100vw;
  padding: 0;
  margin: 0;
  position: relative;
}

.slide-img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
}

.slide-content {
  position: relative;
  max-width: 30em;
  margin: 0 auto;
  padding: 2em 0;
  z-index: 3;
}

/* initialized state of slide - fill browser window */
.hotcorners .slide {
  opacity: 0;
  z-index: 2;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  transition: opacity 0.3s ease-in-out;
}

/* safari likes to drag images for things like save to desktop */
.hotcorners .slide:after {
  content: ".";
  text-align: -9999px;
  position: absolute;

  background: rgba(0,0,0,0);
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hotcorners  .slide--img,
.hotcorners  .slide--img::after {
  cursor: all-scroll;
}

.hotcorners .slide>img {
  position: absolute;
  left: 50%;
  top: 50%;
  transition: transform 0.1s linear;
  transform-origin: 0 0;
  transform: scale3d(0.65,0.65,0.65) translate3d(-50%, -50%, 0);
}

.hotcorners .slide--text .slide-content {
  padding: 4em 4em;
}

@media screen and (min-width: 521px) {
  .hotcorners .slide--text .slide-content {
    padding: 4em 0;
  }
}

.hotcorners .slide--active {
  opacity: 1;
  z-index: 3;
}
