/* GLOBAL */
@font-face {
  font-family: 'AlbertSans';
  src: url('../fonts/AlbertSans-VariableFont.ttf');
}

:root {
  --primary-color: #003350;
  --secondary-color: #B1B1B1;
  --tertiary-color: #4185A7;
}

* {
  font-family: 'AlbertSans';
  letter-spacing: 2px;
  color: var(--primary-color);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* LOGO */
#logo {
  position: absolute;
  z-index: 3;
  top: 60px;
  left: 60px;
}

/* CONTENT */
/** MAP **/
#content {
  display: flex;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

#content .left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 65%;
  padding: 60px 30px 60px 60px;
  box-sizing: border-box;
}

#content .map-container {
  height: auto;
  width: 100%;
}

#content .map-container #map {
  height: auto;
  width: 100%;
}

/** SHORTCUTS **/
#content .shortcuts {
  height: auto;
  width: 100%;
}

#content .shortcuts .row {
  display: flex;
  justify-content: space-between;
  height: auto;
  width: 100%;
}

#content .shortcuts .shortcut {
  display: flex;
  width: 33%;
  padding: 10px 0;
}

#content .shortcuts .shortcut:not(.empty) {
  cursor: pointer;
  border-bottom: 2px solid var(--primary-color);
  align-items: center;
  box-sizing: border-box;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: bold;
}

#content .shortcuts .shortcut.blurred:not(.empty) {
  border-bottom-color: var(--secondary-color);
}

#content .shortcuts .shortcut:not(:last-child) {
  margin-right: 45px;
}

#content .shortcuts .shortcut .zone {
  display: inline-block;
  margin-right: 8px;
  color: var(--tertiary-color);
}

#content .shortcuts .shortcut.selected span.name {
  font-weight: bolder;
}

#content .shortcuts .shortcut.blurred span.name {
  color: var(--secondary-color);
}

#content .shortcuts .shortcut .icon {
  margin-left: auto;
}

#content .shortcuts .shortcut .icon img {
  height: 35px;
}

#content .shortcuts .shortcut.blurred .icon img {
  opacity: 0.4;
}

#content .shortcuts .shortcut .icon.small img {
  height: 25px;
}

#content .shortcuts .shortcut .icon.smaller img {
  height: 20px;
}

/** SIDEBAR **/
#content .right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 35%;
  padding: 60px 60px 60px 30px;
  box-sizing: border-box;
}

#local-info {
  display: flex;
  justify-content: center;
  height: 20%;
}

#local-info #time .icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: 5px;
  background: url("../images/time.png") center no-repeat;
  background-size: contain;
  vertical-align: middle;
}

#local-info #time .text {
  display: inline-block;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--primary-color);
  font-size: 36px;
  font-weight: 300;
  vertical-align: middle;
}

#local-info #weather .icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: 5px;
  background: center no-repeat;
  background-size: contain;
  vertical-align: middle;
}

#local-info #weather .text {
  display: inline-block;
  font-size: 36px;
  font-weight: 300;
  vertical-align: middle;
}

#listing {
  display: flex;
  flex-direction: row;
  height: 33%;
  overflow: hidden;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: bold;
}

#listing .content {
  width: 100%;
  height: 100%;
}

#listing .controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: auto;
  height: 100%;
  margin-right: 30px;
  padding: 50px 0 10px;
  box-sizing: border-box;
}

#listing .controls img {
  width: 20px;
  height: auto;
  cursor: pointer;
}

#listing .head {
  margin-bottom: 3px;
  padding-bottom: 5px;
  padding-left: 2px;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary-color);
  box-sizing: border-box;
}

#listing .head .name {
  display: inline-block;
  width: 72%;
}

#listing .head .zone {
  display: inline-block;
  width: 12%;
  text-align: center;
}

#listing .head .floor {
  display: inline-block;
  width: 13%;
  text-align: center;
}

#listing .list {
  width: 100%;
  height: 100%;
  padding-right: 17px;
  box-sizing: content-box;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to bottom,
      transparent,
      black 45%,
      black 55%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      black 45%,
      black 55%,
      transparent);
}

#listing .list::-webkit-scrollbar {
  display: none;
}

#listing .list .row {
  display: flex;
  align-items: start;
  cursor: pointer;
  padding: 6px 0 6px 2px;
  box-sizing: border-box;
}

#listing .list .row.selected {
  font-weight: bolder;
}

#listing .list .row.hidden {
  display: none;
}

#listing .list .row.blurred>span {
  color: var(--secondary-color);
}

#listing .list .name {
  display: inline-block;
  width: 75%;
}

#listing .list .zone {
  display: inline-block;
  width: 12%;
  text-align: center;
}

#listing .list .floor {
  padding-left: 15px;
  box-sizing: border-box;
  display: inline-block;
  width: 13%;
  text-align: center;
}

#keyboard {
  height: 39%;
  display: flex;
  align-items: end;
}

#keyboard .keyboard {
  border: 1px solid var(--secondary-color);
  border-radius: 5px;
  padding: 5px 15px 15px;
}

/* POPUPS */
#popup {
  display: flex;
  position: absolute;
  z-index: 9;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  align-items: center;
  background-color: #ffffff;
  box-sizing: border-box;
}

#popup.open {
  padding: 150px;
}

#popup.open,
#popup.open.elevator-b #elevator-b,
#popup.open.elevator-c #elevator-c,
#popup.open.floor #floor {
  height: 100%;
  width: 100%;
}

#popup #elevator-b,
#popup #elevator-c {
  height: 0;
  width: 0;
}

#popup #floor {
  height: 0;
  width: 0;
}