@-webkit-keyframes helpthrob {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@-moz-keyframes helpthrob {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@-o-keyframes helpthrob {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes helpthrob {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
body{
  margin:0;
  padding:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:#333;
  font-family:AppleSDGothicNeo-Light,GillSans-Light,Helvetica,Arial,sans-serif;
  font-size:14px;
  position:relative;
}
#mainblock{
  background-color:black;
  position:absolute;
  height:66vh;
  width:66vw;
  top:0;left:0;
}
#mainblock .title, 
#mainblock .instructions, 
#mainblock .photo, 
#mainblock .text, 
#mainblock .navPoints{
  opacity:0;
  visibility:hidden;
  -webkit-transform: translateZ(0px);
	-webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  position:absolute;
  z-index:2;
  color:white;
}
#mainblock .title.visible, 
#mainblock .instructions.visible, 
#mainblock .photo.visible, 
#mainblock .text.visible, 
#mainblock .navPoints.visible{
  visibility:visible;
}
#mainblock .title.opaque, 
#mainblock .instructions.opaque, 
#mainblock .photo.opaque, 
#mainblock .text.opaque, 
#mainblock .navPoints.opaque{
  opacity:1;
}
#mainblock .title{
  top:-60px;left:0;
  width:100%;
  font-size:150%;
  height:auto;
  padding:10px;
  box-sizing:border-box;
  background:rgba(0,0,0,.7);
  position:absolute;
  text-align:center;
}
#mainblock .title.opaque{
  top:0px;
}
#mainblock .instructions{
  bottom:10;right:10;
  width:30%;
  font-size:150%;
  height:50px;
  text-align:right;
  position:absolute;
  display:none;
}
#mainblock .navPoints{
  bottom:0px;left:0px;
  text-align:left;
  position:absolute;
  width:100%;
  background:rgba(0,0,0,.7);
  padding:5px 20px;
  box-sizing:border-box;
}
.navPoint{
 /*border:1px solid rgba(255,255,255,.2);*/
 background-color:rgba(255,255,255,.2);
 cursor:pointer;
 padding:5px;
 margin-right:5px;
 display:inline-block;
 vertical-align:middle;
}
#mainblock .photo{
  text-align:center;
  top:0;left:0;
  width:100%;
  height:100%;
  /*padding-top:50px;*/
  /*padding-bottom:50px;*/
  box-sizing:border-box;
  background:rgba(0,0,0,.7);
  background-size:contain;
  background-position:center center;
  background-repeat:no-repeat;
}
  #mainblock .photo img{
    max-width:100%;
    max-height:100%;
  }
/*#mainblock .text{
  bottom:0;left:0;
  width:100%;
  height:50px;
}*/
#mapSlateTo, #mapSlateFrom{
  text-align:center;
  top:0;left:0;
  width:100%;
  height:100%;
  /*padding-top:50px;
  padding-bottom:50px;*/
  box-sizing:border-box;
  position:absolute;
}
#mapSlateTo img, #mapSlateFrom img{
  max-width:100%;
  max-height:100%;
}
#mapSlateFrom{
  opacity:1;
   -webkit-transform: translateZ(0px);
	-webkit-transition: opacity 2s ease-out;
  -moz-transition: opacity 2s ease-out;
  -o-transition: opacity 2s ease-out;
  transition: opacity 2s ease-out;
}
#mapSlateFrom.transparent{
  opacity:0;
}
#videowrapper{
  position:absolute;
  text-align:center;
  top:0;left:0;
  width:100%;
  height:100%;
  /*padding-top:50px;
  padding-bottom:50px;*/
  box-sizing:border-box;
}
#video{
  display:inline-block;
  max-width:100%;
  max-height:100%;
  width:100%;
  height:100%;
}
#thumbs{
  position:absolute;
  height:34vh;
  width:66vw;
  left:0;bottom:0;
  white-space: nowrap;
  box-shadow:0px 0px 10px #000 inset;
  padding:10px;
  box-sizing:border-box;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.scrollpane{
  opacity:1;
  -webkit-transform: translateZ(0px);
	-webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  position:absolute;
}
.scrollpane.faded{
  opacity:.5;
}
#seeMoreInstruction{
  display:none;
}
.unicodeIcon{
  line-height:24px;
  font-size:34px;
  opacity:.5;
  position:relative;
  top:4px;
}
.thumbnail{
  display:inline-block;margin:5px;
  text-align:center;
  width:120px;
  height:145px;
  opacity:1;
  -webkit-transform: translateZ(0px);
	-webkit-transition: all .5s;
  -moz-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
  background-color:rgba(255,255,255,0);
  padding:10px;
  margin-top:0px;
}
.thumbnail.hasTransition{
  background-color:rgba(255,255,255,.1);
}
.thumbnail.noTransition{
  opacity:.66;
}
.thumbnail.active{
  background-color:rgba(255,255,255,.3);
  box-shadow:2px 2px 5px #222;
  /*override and noTransition as needed*/
  opacity:1;
}
.thumbnailPic{
  width:120px;
  height:120px;
  text-align:center;
  display:block;
  background-size:contain;background-repeat:no-repeat;background-position:center center;
}
.thumbnailTitle{
  margin-top:5px;
  height:20px;
  overflow:hidden;
  color:white;
  width:120px;
  -webkit-transform: translateZ(0px);
	-webkit-transition: color .5s;
  -moz-transition: color .5s;
  -o-transition: color .5s;
  transition: color .5s;
}
.thumbnail.active .thumbnailTitle{
  /*color:black;*/
}
#thumbsCover{
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  background:rgba(0,0,0,.5);
  opacity:0;
   -webkit-transform: translateZ(0px);
	-webkit-transition: opacity .5s;
  -moz-transition: opacity .5s;
  -o-transition: opacity .5s;
  transition: opacity .5s;
  visibility:hidden;
}
#thumbsCover.visible{
  visibility:visible;
}
#thumbsCover.opaque{
  opacity:1;
}

#map{
  position:absolute;
  height:100%;
  width:34vw;
  top:0;right:0;
}
.maparea{
  outline:none;
}
#viewshedTo, #viewshedFrom, #viewshedDots{
  position:absolute;
  height:100%;
  width:100%;
  top:0px;left:0px;
}
#viewshedTo img, #viewshedFrom img, #viewshedDots img{
  max-width:100%;
  max-height:100%;
}
#viewshedTo, #viewshedDots{
  opacity:0;
   -webkit-transform: translateZ(0px);
	-webkit-transition: opacity 1s;
  -moz-transition: opacity 1s;
  -o-transition: opacity 1s;
  transition: opacity 1s;
  visibility:hidden;
  -webkit-animation: helpthrob 4s infinite; /* Safari 4+ */
  -moz-animation:    helpthrob 4s infinite; /* Fx 5+ */
  -o-animation:      helpthrob 4s infinite; /* Opera 12+ */
  animation:         helpthrob 4s infinite; /* IE 10+ */
}
#viewshedTo.visible, #viewshedDots.visible{
  visibility:visible;
}
#viewshedTo.opaque, #viewshedDots.opaque{
  opacity:1;
}
#viewshedDots{
  pointer-events:none;
}
#viewshedHelp{
  position:absolute;
  bottom:0;left:0;
  width:100%;
  height:40px;
  padding:10px;
  box-sizing:border-box;
  background-color:rgba(0,0,0,.7);
}
#viewshedHelp .helptext{
  text-transform:uppercase;
  color:rgba(255,255,255,.75);
  text-align:center;
  line-height:20px;
  font-size:12px;
  -webkit-animation: helpthrob 2s infinite; /* Safari 4+ */
  -moz-animation:    helpthrob 2s infinite; /* Fx 5+ */
  -o-animation:      helpthrob 2s infinite; /* Opera 12+ */
  animation:         helpthrob 2s infinite; /* IE 10+ */
}
#viewshedHelp .touchtext{
  display:none;
}

/* iPads (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) {
/* Styles */
  #viewshedTo img, #viewshedFrom img, #viewshedDots img{
    max-width:none;
    max-height:none;
    height:768px;
    position:relative;
  }
  #map{
    /*width:387px; /*full image width*/
    width:224px; /*full image width*/
    overflow;hidden;
  }
  #viewshedHelp .touchtext{
    display:block;
  }
  #viewshedHelp .mousetext{
    display:none;
  }
}

/* iPads (landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
  /* Styles */
  #mainblock{
    height:512px;
    overflow:hidden;
    width:660px;
  }
  #mainblock .instructions{
    bottom:-20px;
  }
  #mainblock .photo{
    height:512px;
    max-height:512px;
    overflow:hidden;
    background-size:auto 100%;
  }
  #mainblock .photo, #mapSlateTo, #mapSlateFrom{
    height:512px;
    overflow:hidden;
  }
  #thumbs{
    /* 256 for Kiosk Pro, 236 for regular ipad use due to carrier bar */
    height:256px;
    width:660px;
  }
  #seeMoreInstruction{
    display:inline-block;
    position:absolute;
    bottom:15px;
    left:10px;
    opacity:.3;
    color:white;
    text-align:center;
    width:640px;
    text-transform:uppercase;
    line-height:2px;
    font-size:12px;
    -webkit-animation: helpthrob 2s infinite; /* Safari 4+ */
    -moz-animation:    helpthrob 2s infinite; /* Fx 5+ */
    -o-animation:      helpthrob 2s infinite; /* Opera 12+ */
    animation:         helpthrob 2s infinite; /* IE 10+ */
  }
  #map{
    width:364px;
    overflow:hidden;
  }
}

/* iPads (portrait) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) {
/* Styles */
  #map{
    display:none;
  }
}