/* Shimakuma-Green Image Viewer
// Version：3.1910
// Date: 2019-10-19
// Copyright (c) 2015-2019 Mitsuhiro Tsuda.
// License: Machikane-Red (version 3.1910) is released
//          under the GNU General Public License (GPL).
//          See the copyright notice LICENSE.
*/

div.s14viewer{
  position: relative; display: block;
  background-color: rgba(0,0,0,0.8);
}
div.s14viewer *{
  margin: 0; padding: 0;
  list-style-type: none;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  touch-action: none; -ms-touch-action: none;  /* IE10 タッチデフォルト挙動の停止 */
}
div.s14viewer img{ border: none; }
div.s14v{ position: absolute; overflow: hidden; left: 0; top: 0; }
div.s14f{ position: relative; overflow: hidden;
  -ms-touch-action: none;  /* IE10 タッチデフォルト挙動の停止 */
  touch-action: none; /* IE11 タッチデフォルト挙動の停止 */
}
div.s14p{ position: absolute; left: 0; top: 0; }
div.s14o{ position: absolute; left:0; top:0; }
div.s14y{ position: absolute; visibility: hidden; left: 0; top:0; }
img.s14t{ position: absolute; visibility: hidden; left: 0; top:0; }

/* Locator */
div.s14loc{
  position: absolute; right: 64px; top: 4px; width: 144px; height: 144px;
  background-color: #000;
  opacity: 0.95; -ms-filter: "alpha(opacity=95)";
  overflow: hidden;
  /*display: none;*/
}
div.s14loc_base{ position: absolute; left: 72px; top: 72px; width: 128px; height: 128px; }
div.s14loc_image{ position: absolute; left: 0; top: 0; }
div.s14loc_area{ position: absolute; left: 0; top: 0; border: 2px solid #f00; }

/* Controller */
div.s14c{
  position: absolute; right: 0; bottom: 0; width: 60px; height: 100%;
  display: block;
}
div.s14c_back{
  width: 100%; height: 100%;
  background-color: #666;
  opacity: 0.8; -ms-filter: "alpha(opacity=80)";
}
div.s14c_base{
  position: absolute; right: 0; bottom: 0; width: 60px; height: 100%;
}
div.s14c_unitc{
  position: absolute; left: 50%; bottom: 0; width: 60px; height: 100%;
  margin-left: -30px;
}
div.s14c_bt{
  position: absolute; right: 10px;
  bottom: 10px;
  width: 40px; height: 40px;
  display: block;
  background-image: url(button1x.png); background-repeat: no-repeat; background-position: 0 0;
  overflow: hidden;
  cursor: pointer;
}
div.s14c_logo_bt{
  position: absolute; right: 0; bottom: 0;
  width: 60px; height: 64px;
  display: block;
  background-image: url(logo.png); background-position: 0 -60px;
  overflow: hidden;
  cursor: pointer;
}
div.s14c_index{ background-position: -80px -520px; }
div.s14c_init{ background-position: 0 -80px; }
div.s14c_zoomout{ background-position: 0 -40px; }
div.s14c_zoomin{ background-position: 0 0; }
div.s14c_rotateccw{ background-position: 0 -120px; }
div.s14c_rotatecw{ background-position: -80px -120px; }
div.s14c_locator{ background-position: 0 -240px; }
div.s14c_fullsize{ background-position: 0 -360px; }
div.s14c_pageleft{ background-position: 0 -400px; }
div.s14c_pageright{ background-position: 0 -440px; }
div.s14c_logo{ background-position: 0 0; }
div.s14c_annote{ background-position: 0 -560px; display: none; }
div.s14c_editor{ background-position: -80px -560px; display: none; }
div.s14c_info{ background-position: -80px -160px; }

/* Controller Left */
div.s14cl{
  position: absolute; left: 0; top: 0; width: 60px; height: 100%;
  overflow: hidden;
  display: none;
}
div.s14cl_back{
  width: 100%; height: 100%;
  background-color: #666;
  opacity: 0.8; -ms-filter: "alpha(opacity=80)";
}
div.s14cl_base{
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
}
div.s14cl_unitc{
  position: absolute; left: 0; top: 0; width: 180px; height: 100%;
}

/* Loader */
div.s14c_indicator{
  position: absolute; right: 5px; bottom: 5px;
  width: 50px; height: 5px;
  display: block;
  overflow: hidden;
  background-color: rgba(0,0,0,0.4);
  visibility: hidden;
}
div.s14c_indicator_value{
  width: 0; height: 5px;
  display: block;
  background-color: rgba(128,255,196,0.8);
}

/* List */
div.s14fl *{
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-touch-action: none;
  touch-action: none;
}
div.s14fl{
  position: relative;
  width: 100%; height: 100%;
}
div.s14fls{
  position: relative;
  width: 100%; height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
div.s14fl_base{
  position: absolute;
  left: 40px; top: 0;
  width: 140px; height: 100%;
  overflow: hidden;
}
/* List, Scroll */
div.s14fl_bar{
  position: absolute; top: 0; left: 0;
  width: 36px; height: 100%;
  background-color: rgba(0,0,0,0.2);
  /*opacity: 0.7;*/
  overflow: hidden;
  cursor: move;
}
div.s14fl_handle{
  position: absolute; top: 0; right: 2px;
  width: 28px; height: 0;
  background-color: rgba(128,128,128,0.8);
  /*border-color: #999;
  border-style: solid;
  border-width: 4px 0 4px 3px;*/
}
div.s14fl_first{
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px;
  background-position: -123px -403px;
  border: 1px solid transparent;
  overflow: hidden;
  opacity: 0.8;
  /*display: none;*/
}
div.s14fl_last{
  position: absolute; left: 0; bottom: 0;
  width: 34px; height: 34px;
  background-position: -123px -443px;
  border: 1px solid transparent;
  overflow: hidden;
  opacity: 0.8;
  /*display: none;*/
}

/* Preview List (Page, Annotation) */
#view{
  position: relative;
}
#annotefl{
  position: relative;
  width: 100%; height: 100%;
}
#preview,
#subview{
  position: absolute; left: 0; top: 61px;
  width: 180px;
  text-align: left;
  /*background-image: url(../myjs/preview.png);
  background-repeat: repeat-y;*/
  background-color: rgba(96,96,96,0.7);
  overflow: hidden;
  /*overflow: auto;
  -webkit-overflow-scrolling: touch;*/
  /*opacity: 0.95; -ms-filter: "alpha(opacity=95)";*/
  display: none;
  z-index: 10001;
}
#preview ul,
#subview ul{
  /*position: absolute; left: 20px; top: 0px; width: 100px; height: 100%;*/
  margin: 0; padding: 0;
  overflow: hidden;
}

#preview li,
#subview li{
  /*display: inline-block;*/
  list-style-type: none;
  position: relative;
  width: auto;
  margin: 0;
  text-align: left;
  border-color: #999;
  border-style: solid;
  border-width: 0 0 1px 0;
}
#preview li{
  padding-top: 0.5rem;
  text-align: center;
}
#preview span{
  display: block;
  padding: 0.25rem 0.5rem 0.5rem;
  color: #fff;
}
#subview span{
  display: block;
  padding: 1rem 0.5rem;
  color: #fff;
}
#preview img{
  border: solid 3px transparent;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  touch-action: none; -ms-touch-action: none;  /* IE10 タッチデフォルト挙動の停止 */
  opacity: 1.0;
  max-width: 80px; /*max-height: 80px;*/
}
#preview li.current img{
  border-color: rgba(128,255,255,0.6);
}
#subview li.current span{
  background-color: rgba(255,255,255,0.2);
}

/* Annotation Editor */
.s14ae{
  position: absolute; left: 45%; top: 40%;
  width: 160px; height: 160px;
  /*overflow: hidden;*/
  border-style: solid; border-color: rgba(0,255,0,0.6); border-width: 4px;
  background-color: rgba(0,255,0,0,0.0);
  cursor: move;
  z-index: 100;
  display: none;
}
.s14ah{
  position: absolute; right: 0; bottom: 0;
  width: 58px; height: 58px;
  background-color: #0f0;
  opacity: 0.4;
  cursor: pointer;
}
/* Annotation Overlay */
.s14ao{
  position: absolute; left: 0; top: 0;
  width:0; height:0;
  /*-webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -moz-transform-origin: 50% 50%;
  -ms-transform: rotate(0deg);
  transform: rotate(0deg);*/
  opacity: 1.0;
  pointer-events: none;
}
.s14ac{ /* Canvas */
  position: absolute; top: 0; left: 0;
  pointer-events: none;
  opacity: 0.85;
}
.s14ai{ /* Item */
  position: absolute; top: 0; left: 0;
  width: 64px; height: 64px;
  overflow: hidden;
  border-style: solid; border-color: transparent; border-width: 2px;
  background-color: #333;
  cursor: pointer;
  display: none;
  pointer-events: auto;
}

/* Information view */
#infoview{
  position: absolute; right: 50%; bottom: 2px;
  width: 400px; min-height: 1rem;
  margin-right: -200px;
  text-align: left;
  background-color: rgba(96,96,96,0.9);
  overflow: hidden;
  display: none;
  z-index: 10001;
  padding: 10px;
  color: #eee;
}
#infoview *{
  font-weight: normal;
  font-size: 0.8rem;
  margin: 0.25em 0;
  line-height: 1.25rem;
}
#infoview dt{
  display: inline-block;
  margin-right: 0.5em;
  font-weight: bold;
}
#infoview dd{
  display: inline;
  margin-right: 1em;
}
@media only screen and (max-width: 499px){
  #infoview{
    padding: 5px;
    /*display: none;*/
  }
}
