/* General Styles */

a {
  color: rgb(0, 99, 220);
}

html {
  background: #f4f4f4 none repeat scroll 0 0;
  font: 14px/22px "Open Sans Light",sans-serif;
  color: #000000;
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  -ms-scroll-limit: 0 0 0 0;
  position: fixed;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
  -moz-tap-highlight-color: rgba(0, 0, 0, 0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
  text-shadow: none;
}

td {
  font-family: "Open Sans Light",sans-serif;
  font-size: 14px;
  line-height: 22px;
  vertical-align: top;
  padding: 9px;
}

body {
  -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
  -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
  -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
  -moz-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
  -moz-text-size-adjust: none; /* prevent webkit from resizing text to fit */
  -moz-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
  background: #f4f4f4 none repeat scroll 0 0;
  background-image: none;
  width: 100%;
  height: 100%;
}

label {
  color: #4d4d4d;
  display: block;
  font: 12px/18px "Open Sans Light",sans-serif;
}

svg {
  fill: rgb(0, 99, 220);
}

.displaynone {
  display: none !important;
}

.hidden {
  visibility: hidden;
}

.zeroOpacity {
  opacity: 0 !important;
}

/* Use this class on all hoverable elements. */

.no-touch .easing {
  transition: border 0.1s ease-out 0s, background 0.1s ease-out 0s;
}

/* Transformations */

.flip {
  transform: scaleX(-1);
}

.rotate180 {
  transform: rotate(180deg);
}

.rotate270 {
  transform: rotate(270deg);
}

/* Buttons */

button {
  background: transparent;
  border: medium none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  min-height: 26px;
  min-width: 26px;
  outline: medium none;
  position: relative;
  text-align: center;
  vertical-align: middle;
  font: 15px/18px sans-serif;
}

button[on="true"] {
  background-color: rgba(0, 99, 220, 0.3);
}

button[active="true"]:hover {
  cursor: default;
}

button svg {
  height: 60px;
  width: 60px;
}

button[active="false"] > svg,
.no-touch button[active="false"]:hover svg,
button[active="false"]:active svg {
  fill: #bbbbbb;
}

.no-touch button:hover,
.touch button:active,
.touch button.active {
  background-color: rgba(0, 99, 220, 0.2);
}

.no-touch button[active="true"]:hover,
button[active="true"]:active {
  background-color: transparent;
}

.no-touch button {
  transition: background 0.15s ease-out 0s;
}


/* Sidebars */

#searchpanel,
#thumbspanel,
#publicationFilterPanel {
  display: flex;
  flex-direction: column;
  position: fixed;
  height: calc(100% - 61px);
  width: 0;
  top: 61px;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 35;
  background-color: #dfdfdf;
}

body[search-visible="true"][orientation="landscape"] #searchpanel,
body[thumbs-visible="true"][orientation="landscape"] #thumbspanel,
body[pubFilter-visible="true"][orientation="landscape"] #publicationFilterPanel {
  left: 0;
  width: 300px;
}

body[search-visible="true"][orientation="portrait"] #searchpanel,
body[thumbs-visible="true"][orientation="portrait"] #thumbspanel,
body[pubFilter-visible="true"][orientation="portrait"] #publicationFilterPanel {
  left: 0;
  width: 100%;
}

.pageLabel {
  position: absolute;
  padding: 0 4px;
  bottom: 0;
  color: white;
  background-color: #888;
}

.pageLabel.left {
  left: 0;
  border-top-right-radius: 2px;
}

.pageLabel.right {
  right: 0;
  border-top-left-radius: 2px;
}