body {
  height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: black;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
}

.df-ui{
  overflow: hidden;
}

.df-ui-btn {
  background-size: 30px;
  background-repeat: no-repeat;
  background-position: center center;
}

.df-ui-btn:before {
  display: none;
}

.df-ui-thumbnail {
  background-image: url("../icos/Thumbnails.svg");
}

.df-ui-zoomin {
  background-image: url("../icos/Zoom\ In.svg");
}

.df-ui-zoomout {
  background-image: url("../icos/Zoom\ Out.svg");
}

.df-ui-fullscreen {
  background-image: url("../icos/Fullscreen.svg");
}

.df-ui-share {
  background-image: url("../icos/Social\ Share.svg");
}

.df-ui-sound {
  background-image: url("../icos/Sound\ On.svg");
}

.df-ui-soundpause {
  background-image: url("../icos/pause.svg");
}

.df-ui-search {
  background-image: url("../icos/search.svg");
}

.df-ui-next-custom {
  background-image: url("../icos/Next\ Page.svg");
}

.df-ui-prev-custom {
  background-image: url("../icos/Previous\ Page.svg");
}

.df-ui-btn.df-ui-play {
  background-image: url("../icos/Auto\ Flip.svg");
}

.df-ui-auto-play {
  background-image: url("../icos/Auto\ Flip.svg");
}

.linkAnnotation a {
  background: transparent !important;
}

#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  transition: ease-in-out 0.3s;

  display: flex;
  align-items: center;
  justify-content: center;
}

#popup.show {
  z-index: 999;
  visibility: visible;
  opacity: 1;
  transition: ease-in-out 0.3s;
}

#popup.show:after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

#popup .popup-wrap {
  width: 50%;
  /* height: calc(100% - 140px); */
  height: max-content;
  /* margin-top: 70px; */
  /* margin-bottom: 70px; */
  background: #fff;
  border-radius: 15px 0 0 15px;
  padding: 0;
  /* overflow: auto; */
  z-index: 10;
  position: relative;
}

#popup .popup-wrap img {
  width: 100%;
  float: left;
}

.sound-control {
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sound-control>img {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.sound-control>img.active {
  visibility: visible;
  opacity: 1;
  position: relative;
  top: 0;
  left: 0;
  z-index: 2;
}

#search{
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 50%;
  height: 40vh;
  background: rgba(255, 255, 255, 0.9);
  transition: ease-out 0.3s;
  /* overflow: hidden; */
  display: flex;
  justify-content: center;
}

#search.show{
  bottom: 60px;
  transform: translate(-50%, 0);
  transition: ease-out 0.3s;
}

#search .close{
  position: absolute;
  top: 0;
  right: -40px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  background: #fff;
}

#search .close img{
  width: 100%;
  height: 100%;
}

#search .search-wrap{
  height: calc(100% - 80px);
  width: 100%;
  padding: 20px 0 10px 10px;
  position: relative;
  overflow-y: auto;
}

#search form{
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  background: #fff;
  width: calc(100% - 10px);
  border-radius: 5px;
  /* position: relative; */
}

#search form span{
  position: absolute;
  top: 8px;
  left: 10px;
  font-style: italic;
  font-size: 16px;
  z-index: 1;
  transition: ease-in-out 0.3s;
}

#search input{
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 0;
  outline: none !important;
  font-size: 16px;
  opacity: 0;
  z-index: 2;
  box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.1);
  transition: ease-in-out 0.3s;
}

#search:focus-within form span{
  top: -14px;
  left: 0;
  font-size: 12px;
  z-index: 2;
  padding: 2px 10px 0;
  background: #fff;
  border-radius: 5px 5px 0 0;
  color: #666;
  transition: ease-in-out 0.3s;
}
#search:focus-within form input{
  z-index: 1;
  opacity: 1;
  transition: ease-in-out 0.3s;
}

#search button{
  background: transparent;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 50%;  
}

#search button img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

#search .results{
  width: 100%;
  /* height: calc(90% - 100px); */
  /* overflow-y: auto; */
  margin-bottom: 20px;
}

#search .results .item{
  padding-right: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}

#search .results .label{
  margin-bottom: 5px;
  font-weight: 600;
}

#search .results .value{
  text-align: justify;
}

#loadMore{
  font-style: italic;
  color: #00a0ff;
  cursor: pointer;
}

@media only screen and (max-width: 767px) {
  #popup .popup-wrap {
    width: 94%;
  }
  .df-ui-nav{
    display: none;
    width: 40px;
    height: 50px;
  }
  #search{
    left: 4%;
    width: 92%;
  }
  #search.show {
    transform: translate(0, 0);
  }
  #search.show .close{
    right: 0;
    top: -40px;
  }
}