:root {
  --ui-bg: #d1d0d1;
  --ui-primary: #004d9b;
  --ui-secondary: #aaddf8;
  --ui-mosaic-bg: #d1d0d1;
  --ui-border: #d1d0d1;
  --ui-selection: black;
  --ui-text: black;
  --display-tools: flex; /* Default is flex  */
  --display-search: flex; /* Default is flex  */
  --ui-radius: 20px;
}

html,
body {
  font-family: "Arial";
  height: 100%;
  background-color: var(--ui-bg);
  font-size: 16px;
}

body {
  font-weight: 600;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  /* overflow: hidden; */
}

#logo-div {
}

#logo {
  display: none;
}

#toolbar {
  padding-top: 1.5rem;
  display: var(--display-tools) !important;
}

@media only screen and (max-width: 576px) {
  #logo {
    height: 40px;
  }

  #logo-div {
    padding: 20px 0px 10px 0px !important;
  }

  #toolbar-mob {
    display: var(--display-tools) !important;
    height: 40px;
    margin-bottom: 20px !important;
  }

  #toolbar {
    display: none !important;
  }
}

#mosaic-container {
  cursor: pointer;
  background-color: var(--ui-mosaic-bg);
}

#input-container {
  display: none;
}

#search-input,
#search-input-mob {
  text-align: left;
  padding-left: 20px !important;
  height: 40px;
  width: 100%;
  /* vertical-align: middle; */
  border: solid 1px var(--ui-border);
  border-radius: var(--ui-radius) 0 0 var(--ui-radius);
}

#search-input:focus,
#search-input-mob:focus {
  border: 1px solid var(--ui-primary);
  outline: none;
}

.borderless,
.borderless:hover,
.borderless:focus {
  border: none;
  outline: none;
}

.borderless:hover {
  border: none;
  outline: none;
}

.hover-background-color {
  background-color: var(--ui-primary);
}

.hover-background-color:hover,
.hover-background-color:focus,
.hover-background-color:active {
  background-color: var(--ui-secondary);
}

.hover-Scale {
  transform-origin: center;
  transition: transform 0.2s;
}

.hover-Scale:hover {
  transform: scale(1.2);
}

.masked-svg {
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

#btn-home,
#btn-home-mob {
  background-color: transparent;
  /* width: 100%;
  height: 100%; */
}

#btn-close {
  background-color: transparent;
  width: 20px;
  height: 20px;
  margin: 10px 10px 0px 0px !important;
  /* width: 100%;
  height: 100%; */
}

.gradient {
  background: var(--ui-primary);

  /* background: linear-gradient(
    90deg,
    rgba(var(--ui-primary), 1) 0%,
    rgba(var(--ui-primary), 1) 55%,
    rgba(var(--ui-primary), 0.8) 100%
  ); */
}

.gradient:hover {
  background: var(--ui-secondary);

  /* background: linear-gradient(
    90deg,
    rgba(var(--ui-secondary), 1) 0%,
    rgba(var(--ui-secondary), 1) 55%,
    rgba(var(--ui-secondary), 0.8) 100%
  ); */
}

#search-mob,
#search-input,
#btn-search {
  display: var(--display-search) !important;
}

#btn-search,
#btn-search-mob {
  border-radius: 0 var(--ui-radius) var(--ui-radius) 0;
  height: 40px;
  width: 60px;
  padding: 8px !important;
}

#btn-home-icon {
  -webkit-mask-image: url(./images/btn-home.svg);
  mask-image: url(./images/btn-home.svg);
  width: 60%;
  height: 70%;
}

#btn-close-icon {
  -webkit-mask-image: url(./images/btn-close.svg);
  mask-image: url(./images/btn-close.svg);
  width: 100%;
  height: 100%;
}

#btn-minus-icon {
  -webkit-mask-image: url(./images/zoom-out.svg);
  mask-image: url(./images/zoom-out.svg);
  width: 100%;
  height: 80%;
}

#btn-plus-icon {
  -webkit-mask-image: url(./images/zoomiin.svg);
  mask-image: url(./images/zoomiin.svg);
  width: 100%;
  height: 80%;
}

#btn-search-icon,
#btn-search-icon-mob {
  background-color: white;
  -webkit-mask-image: url(./images/search.svg);
  mask-image: url(./images/search.svg);
  width: 100%;
  height: 100%;
}

#search-results {
  display: none;
  position: fixed;
  width: auto;
  top: 180px;
  left: 50%;
  height: auto;
  max-height: 300px;
  transform: translateX(-50%);
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(255, 255, 255, 0.7); /* Black w/ opacity */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  display: grid;
  overflow: auto;
  margin-bottom: 5px;
  z-index: 1;
}

#search-results img {
  margin-left: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  border: solid 1px white;
  width: 64px;
  height: 64px;
}

.openseadragon-container :focus {
  outline: none;
}

#zoomToolsRow {
  display: var(--display-tools);
}

#zoom-tools {
  margin: 0 auto;
  margin-bottom: 5px;
}

#card {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 0;
  margin: 0 auto;
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  /* display: none; */
}

#messageText {
  font-size: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  font-weight: 400;
  font-style: italic;
}

/* Card content */
#cardContent {
  border: solid 1px var(--ui-primary);
  background-color: white;
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow-y: none !important;
  width: 90vw;
  padding: 0;
  margin: 0;
}

#nameText {
  font-size: 20px;
  text-transform: capitalize;
}

#overlayText {
  display: none;
}

#cardcontent p {
  font-weight: bold;
  width: 70%;
  word-wrap: break-word;
}

#rawImg,
#rawVid {
  margin: 0 auto;
  padding: 5px;
  width: 100%;
}

.selection-selected {
  border: solid 3px var(--ui-selection);
}

.selection-unselected {
  border: solid 3px var(--ui-primary);
}

#btn-close {
  width: 100%;
  height: 100%;
}

.lds-ring {
  display: none;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 8px;
  border: 8px solid var(--ui-primary);
  border-radius: 70%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: white transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(720deg);
  }
}

.field {
  font-weight: 300;
}
