:root {
  --bg-gray-one: #bcbec0;
  --bg-gray-two: #f1f2f2;
  --bg-gray-three: #dcddde;
  --bg-gray-four: #e6e7e8;
  --bg-gray-five: #d1d3d4;
  --bg-gray-six: #a7a9ac;
  --bg-gray-seven: #ababab;
  --bg-gray-eight: #a5a4a4;
  --bg-gray-nine: #58595b;
  --outline-stroke: #231f20;
  --sr-color: #ef847c; /*session room*/
  --pr-color: #cbc8e4; /*Printers*/
  --sd-color: #8b2331; /*service desk*/
  --lsr-color: #116935; /*library study room*/
  --ar-color: #4dbd8f; /*audio room*/
  --ms-color: #0e9fda; /*makerspace*/
  --ss-color: #b6d778; /*silent study*/
  --wc-color:  #1e3868; /*writing centre*/
  --hs-color: #fdf385; /*hold shelf*/
  --ua-color: #4a153b; /*university archives*/
  --cl-color: #52a5b5; /*Computer Labs*/
  --ca-color: #97d7e2; /*Computer Areas*/
  --mr-color: #d28729; /*Multipurpose Room*/
  --na-color: #e6e7e8; /*Named Area*/
  --fl-color: #ffffff; /*Floor Label Color*/
  --fl-stroke: #231f20; /*Flor Label Stroke*/
  --focus-fill: white;
  --focus-stroke: #990099;
  --focus-text: #990099;
  --office-color: #56454b;  /*Library Offices*/
  --row-hilight: red;  /*Row Hilight*/
  --aed-bg: #d41f37;
  --aed-fill: #ffffff;
  --fcr-color: #eea48c; /* Family Care Room/Children's area */
}

#block-librarymapblock {
  margin-left: 20px;
  margin-right: 20px;
}

#library-map-svg {
  position: relative;
}

.black-text {
  fill: #000000;
  font-family: Montserrat, Arial, sans-serif;
}

.white-text {
  fill: #ffffff;
  font-family: Montserrat, Arial, sans-serif;
}

.gray-text {
  fill: #666666;
  font-family: Montserrat, Arial, sans-serif;
}

.black-stroke {
  stroke: #000000;
  stroke-width: .5px;
  stroke-miterlimit: 10;
}

.black-stroke-thick {
  stroke: #000000;
  stroke-width: 2px;
  stroke-miterlimit: 10;
}

.white-stroke {
  stroke: #ffffff;
  stroke-width: .5px;
  stroke-miterlimit: 10;
}

.bold-text {
  font-weight: bold;
}

.fs4 {
  font-size: 4px;
}

.fs5 {
  font-size: 5px;
}

.fs6 {
  font-size: 6px;
}

.fs7 {
  font-size: 7px;
}

.fs8 {
  font-size: 8px;
}

.fs9 {
  font-size: 9px;
}

.fs10 {
  font-size: 10px;
}

.fs11 {
  font-size: 11px;
}

.fs12 {
  font-size: 12px;
}

.fs18 {
  font-size: 18px;
  font-weight: bold;
}

.fs25 {
  font-size: 25px;
  font-weight: bold;
}

.fs55 {
  font-size: 55px;
  font-weight: bold;
}

.bg-gray-one {
  fill: var(--bg-gray-one);
}

.bg-gray-two {
  fill: var(--bg-gray-two);
}

.bg-gray-three {
  fill: var(--bg-gray-three);
}

.bg-gray-four {
  fill: var(--bg-gray-four);
}

.bg-gray-five {
  fill: var(--bg-gray-five);
}

.bg-gray-six {
  fill: var(--bg-gray-six);
}

.bg-gray-seven {
  fill: var(--bg-gray-seven) !important;
}

.bg-gray-eight {
  fill: var(--bg-gray-eight);
}

.bg-gray-nine {
  fill: var(--bg-gray-nine);
}

.background {
  fill: #f4f4f4;
  fill-rule: evenodd;
}

.outline-stroke {
  stroke: var(--outline-stroke);
  fill: none;
  stroke-width: .5px;
  stroke-miterlimit: 10;
  stroke-linejoin: round;
}

.outline-fill {
  fill: var(--outline-stroke);
}

.floor-base {
  fill: #999999;
  fill-rule: evenodd;
}

.floor-base-light {
  fill: #d0cfc9;
  fill-rule: evenodd;
}

.pillar {
  fill: #707070;
  fill-rule: evenodd;
}

.compass-arrow-left {
  fill: #000000;
}

.compass-arrow-right {
  fill: #a7a9ac;
}

.reading-room {
  fill: #b0dc4d;
}

.printers {
  fill: var(--pr-color);
}

.childrens-area, .family-care-room {
  fill: var(--fcr-color);
}

.named-area {
  fill: var(--na-color);
}

.computers {
  fill: var(--ca-color);
}

.computers-text {
  fill: var(--ca-text);
}

.computer-lab {
  fill: var(--cl-color);
}

.computer-lab-text {
  fill: var(--cl-text);
}

.multipurpose-room {
  fill: var(--mr-color);
}

.multipurpose-room-text {
  fill: var(--mr-text);
}

.silent-study {
  fill: var(--ss-color);
}

.library-study-room {
  fill: var(--lsr-color);
}

.audio-room {
  fill: var(--ar-color);
} 
  
.service-desk {
  fill: var(--sd-color);
}

.writing-centre {
  fill: var(--wc-color);
}

.holds {
  fill: var(--hs-color);
}

.session-room {
  fill: var(--sr-color);
}

.speakers-corner {
  fill: #ebeae6;
}

.rupertsland {
  fill: #ebeae6;
}

.makerspace {
  fill: var(--ms-color);
}

.university-archives {
  fill: var(--ua-color);
}

.office {
  fill: var(--office-color);
}

.collection-row {
  fill: #ffffff;
  cursor: initial !important;
}

.facility-icon {
  fill: #ffffff;
  fill-rule: evenodd;
}

.facility-icon-black-fill {
  fill: #000000;
  fill-rule: evenodd;
}

.facility-icon-stroke {
  stroke: #ffffff;
  stroke-miterlimit: 10;
  fill: none;
}

.facility-icon-black-stroke {
  stroke: #000000;
  stroke-miterlimit: 10;
  fill: none;
}

.facility-icon-bg {
  fill: #000000;
  fill-rule: evenodd;
}

.facility-icon-emergency-bg {
  fill: #b50000;
  fill-rule: evenodd;
}

.ct-stair-icon {
  fill: none;
  stroke: #000000;
  stroke-width: .5px;
  stroke-miterLimit: 8.5;
}

.aed-bg {
  fill: var(--aed-bg);
}

.aed-fill {
  fill: var(--aed-fill);
}

#library-map-wrapper {
  margin: 60px 0;
  width: 100%;

}

#library-map-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1920px;
}

#library-map {
  font-family: Montserrat, Arial, sans-serif;
}

#map-nav-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 0 0 10px;
  margin-top: 10px;
  height: 42px;
  line-height: 42px;
  border-left: 2px solid #8b2331;
  border-top: 2px solid #8b2331;
  border-right: 2px solid #8b2331;
}

#map-container {
  position: relative;
  max-width: 1920px;
  width: 100%;
  border: 2px solid #8b2331;
  border: 2px solid #8b2331;
  width: 100%;
  max-width: 1920px;
  height: 504px;
  display: inline-block;
}

#active-floor {
  height: 40px;
  font-size: 20px;
  padding: 0 10px 0 0;
  line-height: 40px;
  background-color: #8b2331;
  color: white;
  cursor: pointer;
  position: absolute;
  right: -2px;
  top: 2px;
  z-index: 999999;
}

#active-floor>span {
  background-repeat: no-repeat;
  background-position: center;
  background-color: black;
  background-size: 20px 20px;
  height: 40px;
  width: 40px;
  padding: 0 10px;
  margin-right: 10px;
  display: inline-block;
}

#active-floor>span.arrow-up {
  background-image:url('../icons/flarrow_up.svg');
}

#active-floor>span.arrow-down {
  background-image:url('../icons/flarrow_down.svg');
}

#active-floor:focus {
  outline: none;
  background-color: #057986;
}

#background {
  display: relative;
}

#third-floor, #second-floor {
  position:relative;
  transition: all 1s linear;
  animation: normal;
}

#second-floor {
  transform: scale(1);
  -moz-transform: scale(1);
  -webkit-transform: scale(1);
  opacity: 1;
  transform-origin: 817px 383px;
}

#third-floor {
  transform: scale(10);
  -moz-transform: scale(10);
  -webkit-transform: scale(10);
  opacity: 0;
  visibility: hidden;
  transform-origin: 817px 383px;
}

#find-callnumber {
  display: inline-block;
}

#collection-functions {
  flex-basis: 25%;
  flex-grow: 1;
}

#collection-functions h3 {
  margin-top: 0;
}

#collection-functions label {
  font-weight: bold;
  line-height: 40px;
}

#collection-functions div {
  margin-bottom: 10px;
}

#collection-selection {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  flex-wrap:wrap;
}

#collection-selection span {
  flex-basis: 50%;
}

#collection-selection label {
  font-weight: normal;
}

hr {
  margin-bottom: 28px;
}

.shelves {
  fill: white;
}

.row-hilight {
  fill: var(--row-hilight); 
}

.row-hilight + text.white-text {
  fill: black;
}

.hilight-arrow {
  fill: #000000;
  stroke: #ffffff;
  stroke-width: 0.5px;
}

.label {
  fill: var(--fl-color);
  stroke: var(--fl-stroke);
  stroke-width: 1px;
}

/* Modal Styles */

#modal {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.5);
}

#cn-search-error {
  font-weight: bold;
  color:red;
}

#modal-content {
  width: 600px;
  height: 400px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  margin-bottom: 50px;
  background-color: white;
  color: #000000;
  position: relative;
  -webkit-border-radius: 9px;
  -moz-border-radius: 9px;
  border-radius: 9px;
}

#modal-content-images {
  width: 200px;
  margin: 0;
  float: left;
}

#modal-image-a, #modal-image-b {
  width: 200px;
  height: 200px;
  overflow: hidden;
}

#modal-image-a {
  -webkit-border-top-left-radius: 9px;
  -moz-border-radius-topleft: 9px;
  border-top-left-radius: 9px;
}

#modal-image-b {
  -webkit-border-bottom-left-radius: 9px;
  -moz-border-radius-bottomleft: 9px;
  border-bottom-left-radius: 9px;
}

#modal-image {
  width: 200px;
  height: 400px;
  overflow: hidden;
  -webkit-border-top-left-radius: 9px;
  -moz-border-radius-topleft: 9px;
  border-top-left-radius: 9px;
  -webkit-border-bottom-left-radius: 9px;
  -moz-border-radius-bottomleft: 9px;
  border-bottom-left-radius: 9px;
}

#modal-image-a img, #modal-image-b img, #modal-image img {
  height:auto;
  width: 100%;
}

.modal-desc-text {
  font-size: 15px;
}

.modal-desc-text p {
  margin: 5px 0;
}

#modal-content-html {
  width: 360px;
  margin: 0;
  padding: 20px;
  float: right;
  z-index: 400;
}

#modal-close {
  position: absolute;
  display: inline-block;
  background-image: url('../icons/close_icon_maroon.svg');
  background-repeat: no-repeat;
  background-position: center;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.has-modal {
  cursor: pointer;
}

.has-modal:focus {
  outline: none;
}

.has-modal:focus rect, .has-modal:focus path, .has-modal:focus polygon {
  stroke: var(--focus-stroke);
  stroke-width: 2px;
  fill: var(--focus-fill);
}

.has-modal:focus text {
  fill: var(--focus-text);
}

#modal-content-html h3 {
  margin-bottom: 10px;
  margin-top: 0px;
}

.technology {
  padding: 10px 20px 10px 36px;
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 20px 20px;
  border: 1px solid #e5e5e5;
  -webkit-box-shadow: 0px 0px 6px 3px rgba(0,0,0,0.1); 
  box-shadow: 0px 0px 6px 3px rgba(0,0,0,0.1);
  font-size: 19px;
  color: #8b2331;
  margin-right: 20px;
  background-image:url('/modules/custom/library-map/icons/check-ina-box.svg'); 
}

.seats {
  margin-top: 16px;
  font-size: 15px;
}

.modal-link {
  margin-top: 20px;
}

/* Legend Styles */

#map-legend-table {
  margin-top: 20px;
  max-width: 1920px;
  width: 100%;
  display: flex;
  gap: 40px;
  justify-content: space-around;
}

#points-of-interest {
  flex-basis: 50%;
  flex-grow: 2;
  display: flex;
  flex-wrap: wrap;
}

#points-of-interest div {
  display: inline-block;
  min-height: 30px;
  line-height: 30px;
  width: 50%;
  min-width: 250px;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  cursor: pointer;
}

#points-of-interest div svg {
  mix-blend-mode: overlay;
  margin-right: 5px;
  float: left;
}

.poi-text {
  display: block;
  margin-left: 35px;
}

.swatch {
  display: inline-block;
  width: 30px;
  height: 30px;
}

#gr-tech {
  margin-top: 5px;
  padding-left: 35px;
  display: inline-block;
  width: 100%;
  min-height: 60px !important;
}

#gr-tech span {
  display: inline-block;
  width: 100%;
  margin-bottom: 0;
  font-size:1.2rem;
  font-weight: bold;
}

.facility {
  width: 100%;
  min-height: 30px;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  display: inherit;
  padding-left: 35px;
  background-repeat: no-repeat;
  background-position: right middle;
  background-size: 30px 30px;
}

#areas {
  flex-basis: 25%;
  flex-grow: 1;
}

#areas #elevators {
  background-image: url('../map/icons/elevator.svg');
}

#areas #emergency-exits {
  background-image: url('../map/icons/emerg-stairs.svg');
}

#aed {
  background-image: url('../map/icons/aed.svg');
}

#areas #stairs {
  background-image: url('../map/icons/stairs.svg');
}

#areas #all-gender-washrooms {
  background-image: url('../map/icons/washroom.svg');
}

#areas #barrier-free-washrooms {
  background-image: url('../map/icons/accessible.svg');
}

#areas #mens-washroom {
  background-image: url('../map/icons/man.svg');
}

#areas #womens-washroom {
  background-image: url('../map/icons/woman.svg');
}

#areas #change-table {
  background-image: url('../map/icons/changetable.svg');
}

#areas #water {
  background-image: url('../map/icons/water.svg');
}

#areas #family-care-room {
  background-image: url('../map/icons/nursing.svg');
}

#collaborative, #quiet, #silent {
  padding-left: 35px;
  background-repeat: no-repeat;
  background-position: right middle;
  background-size: 30px 30px;
}

#collaborative {
  background-image: url('../icons/loud.svg');
}

#quiet {
  background-image: url('../icons/quiet.svg');
}

#silent {
  background-image: url('../icons/silent.svg');
}

.ficon {
  cursor: pointer;
}

.attention {
  animation: bounce 2s ease infinite;
}

#shelf-number-tag {
  overflow: visible;
}

#shelf-name {
  fill: #8b2331;
  stroke: black;
  stroke-width: 0.5px;
}

.shelf-name {
  font-size: 10px;
  fill: white;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

#noise-levels {
  display: inline-block;
}

#quiet, #silent, #collaborative {
  display: inline-block;
  width: 100%;
  min-height: 30px;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  cursor: pointer;
}

#quiet-area, #silent-area, #collaborative-area {
  fill: #ffffe0;
  stroke: #000000;
  stroke-width: 2px;
  opacity: 0;
  mix-blend-mode: color-burn;
  visibility: hidden;
}

.highlight {
  visibility: visible !important;
  opacity: 0.9 !important;
}

.active-item {
  background-image: url('../icons/eye.svg');
  background-repeat: no-repeat;
  background-position: 2px 2px;
  background-size: 36px;
}

#submit-callnumber {
  background-image: url(../icons/search_icon_red.svg);
  background-position: 12px center;
  background-size: 16px;
  background-repeat: no-repeat;
  float: right;
}

#submit-callnumber:hover, #submit-callnumber:focus {
  background-image: url(../icons/search_icon.svg);
  background-color: #8b2331;
  color: white;
}

#submit-callnumber:focus {
  outline: none;
}

/* Map Controls */

#map-controls {
  width: 60px;
  height: auto;
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.mc-bg {
  fill: #999999;
}

.mc-text {
  fill: white;
}

#map-controls #zoom-in:focus, #map-controls #zoom-out:focus, #map-controls #reset:focus {
  outline: none;
}

#map-controls #zoom-in:focus .mc-bg, #map-controls #zoom-out:focus .mc-bg, #map-controls #reset:focus .mc-bg {
  outline: none;
  fill: #8b2331;
}

/* Features switch */

.map-function-tab {
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  background-color: #8b2331;
  padding: 10px 5px;
  border: 1px solid #8b2331;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
  float: left;
  margin-right: 10px; 
  margin-bottom: 10px;
  cursor: pointer;
}

@media screen and (min-width: 592px) and (max-width: 768px) {

#map-legend-table {
  display: inline-block;
}

#points-of-interest, #noise-levels, #facility-icons {
  width: 50%;
}

#facility-icons {
  width: 100%;
}

#modal-content {
  width: calc(100% - 40px);
}

#modal-content-images {
  display: none;
}

#modal-content-html {
  width: initial;
}

}

@media screen and (max-width: 591px) {

#map-legend-table {
  display: inline-block;
}

#points-of-interest, #noise-levels, #facility-icons {
  width: 100%;
}

#modal-content {
  width: calc(100% - 40px);
}

#modal-content-images {
  display: none;
}

#modal-content-html {
  width: initial;
}

.technology {
  font-size: 15px;
  background-size: 14px 14px;
  background-position: 5px center;
  padding:5px 5px 5px 21px;
}

.modal-desc-text, .seats {
  font-size: 13px;
  line-height: 1.3rem;
}

#modal-content-html h3 {
  font-size: 1.4rem;
  line-height: 1.8rem;
}
