html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background:#000;
}

* {
  box-sizing: border-box;
}

a { color:inherit; }

#map {
  /* height: 100%;
  width:100%; */
  filter:grayscale(100%) contrast(175%);
  position:absolute;
  z-index:0;
  top:15px;
  right: 15px;
  bottom:15px;
  lefT:15px;
  transition: filter 400ms ease-in-out;
}

#map::after {
  content:"";
  display:block;
  width:30px;
  height: 30px;
  top:50%;
  left:50%;
  margin:-15px 0 0 -15px;
  border:1px solid rgba(255,255,255,.75);
  position: absolute;
  border-radius:50%;
  z-index: 100;
  opacity:0;
  pointer-events: none;
  transition: opacity 800ms ease-in-out;
}

h1, .text .open-text, .links p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 4em;
  text-transform: uppercase;
  text-align: center;
  color:#fff;
  position:absolute;
  z-index: 2;
  left:0;
  right:0;
  top:50%;
  margin-top: -0.75em;
  transition: opacity 800ms ease-in-out;
  pointer-events: none;
}

.moved h1,
body:not(.index) h1 {
  opacity: 0;
  transition-delay: 1s;
}

.moved #map::after,
body:not(.index) #map::after {
  opacity: 1;
  transition-delay: 1.5s;
}

.text .open-text, .links p {
  opacity: 0;
  font-size: 1em;
  /* display: inline-block; */
  /* width:200px; */
  left:50%;
  right: auto;
  margin:2em auto 0;
  background-color: rgba(0,0,0,.9);
}

.links p {
  max-width:45%;
  text-align: left;
  padding:2px 5px;
  line-height: 1.375;
  margin-right:25px;
}

.links p.focused {
  pointer-events: auto;
  opacity: 1;
}

.links p a {
  color: inherit;
  /* text-decoration: none; */
  /* display: inline-block; */
  /* line-height: 1; */
}

.text div {
  position: absolute;
  top:15px;
  left:0;
  right:0;
  bottom:15px;
  display: none;
}

.text .content {
  position: absolute;
  z-index: 2;
  padding: 3em 60px;
  max-width: 640px;
  left: 0;
  right: 0;
  margin: 0 auto;
  background: #fff;
  font-size: 1.5em;
  line-height: 1.5;
  top: 15px;
  bottom: 15px;
  overflow: auto;
  box-shadow: 0 4px 10px -6px rgba(0,0,0,.25);
}

.text .content p {
  margin-bottom: 1.5em;
}

.text .content p:last-of-type {
  margin-bottom: 3em;
}

.text .content img {
  display: block;
  width: 100%;
  height: auto;
  filter:grayscale(100%);
}

.text .open-text {
  position: absolute;
  left:30px;
  margin:0 auto;
  top:auto;
  bottom:25%;
  pointer-events: auto;
  padding:5px 15px;
  /* width: 30px; */
  opacity: 1;
  z-index:2;
  font-size: 1.25em;
  /* text-indent: -9999px; */
  overflow: hidden;
  background:#fff;
  color:#000;
  border:0;
  display: block;
  cursor: pointer;
  transition: all 200ms ease-in-out;
}

.text .close-text {
  position: absolute;
  right:30px;
  top:15px;
  padding: 10px 30px;
  border:0;
  cursor: pointer;
  background: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color:#fff;
  background:#000;
  text-transform: uppercase;
  z-index: 5;
}

/* .text button:hover {
  background:#000;
  color:#fff;
} */

.show-text .text div {
  display: block;
}

.show-text .text .content {
  animation: appears 1s ease-in-out;
}

.show-text .text .open-text {
  opacity: 0;
}

.show-text #map {
  filter:grayscale(100%) contrast(175%) blur(5px);
}

/* .text h2::after {
  content:"Leer";
  position: absolute;
  left: 50%;
  margin-left: -10px;
  width: 20px;
  text-align: center;
  text-indent: 0;
} */

.hidden {
  position: absolute;
  top:-9999px;
  left:-9999px;
}

@keyframes appears {
  0% { opacity:0; }
  20% { opacity:0; }
  100% { opacity:1; }
}
