body {
  margin: 0;
  overflow: hidden;
  touch-action: pan-x pan-y;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.right {
  position: absolute;
  right: 0;
  width: 400px;
  height: 100vh;
  padding: 1em;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 10px 100px 0 rgba(0, 0, 0, 0.2);
  z-index: 100;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.left {
  position: absolute;
  left: 1em;
  top: 1em;
  z-index: 100;
}

.buttons {
  background: hsla(0, 0%, 10%, 0.9);
  box-shadow: 0 0 100px 0 rgba(0, 0, 0, 0.2);
  padding: .75em;
  border-radius: .5em;
  color: #eee;
}

.buttons button {
  margin-left: .5em;
}

.buttons button {
  width: 2.5em;
  font-weight: bold;
}

.search-container {
  width: 100%;
}

#search,
button,
#room-info,
#search-results {
  color: #eee;
  background-color: rgb(51, 51, 51);
  border: none;
  border-radius: .5em;
  padding: .75em;
  font-size: 1em;
}

#search {
  width: 100%;
  box-sizing: border-box;
}

#search:focus {
  outline: none;
  box-shadow: inset 0 0 0 3px #24422e;
}

button {
  background-color: rgba(68, 68, 68, 0.9);
  cursor: pointer;
}

button:focus,
button:hover {
  outline: none;
  background-color: rgba(85, 85, 85, 0.9);
}

#button:focus,
#button:hover {
  color: hsla(0, 0%, 70%, 0.9);
  cursor: pointer;
}

#search-results .selected,
button.selected {
  background-color: hsla(140, 30%, 20%, 0.9);
}

#search-results .selected:hover,
button.selected:focus,
button.selected:hover {
  outline: none;
  background-color: hsla(140, 30%, 25%, 0.9);
}

#room-info .door-name-floor {
  display: flex;
  gap: .75em;
  align-items: center;
}

#room-info .door {
  font-family: monospace;
  font-weight: bold;
  font-size: 2.5em;
  background-color: rgba(40, 40, 40, 0.8);
  padding: .25em;
  border-radius: .25em;
}

#room-info .name {
  font-weight: bold;
  font-size: 2em;
}

#room-info .floor {
  font-size: small;
}

#room-info .name-floor {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding-bottom: .25em;
}

#search-results:empty,
#room-info:empty {
  display: none;
}

#search-results {
  max-height: calc(100vh - 13.5em);
  overflow: auto;
  border-radius: 0 0 .5em .5em;
  padding: 0;
}

#search-results>* {
  border-bottom: 1px solid #444;
}

#search-results>*:last-child {
  border-bottom: none;
}

#search-results>* {
  padding: .6em .75em;
  display: flex;
  justify-content: space-between;
}

#search-results *:hover {
  background-color: rgba(85, 85, 85, 0.9);
  cursor: pointer;
}

#search-results small {
  color: #bbb;
}

#panorama {
  height: 30vh;
  border-radius: .5em;
  display: none;
}

.pnlm-controls-container {
  top: 0.5em !important;
  right: 0.75em !important;
  left: unset !important;
}

.teachers {
  line-height: 1.7em;
  cursor: pointer;
  margin-left: .25em;
}

.teachers svg {
  color: #888;
  margin-right: .25em;
}

.teacher {
  font-weight: bold;
}

.teacher .title {
  font-weight: initial;
  color: unset;
}

.info {
  margin-top: .75em;
  color: #ccc;
}

.info span {
  margin-left: 0.25em;
}

.error {
  display: none;
}

.search-input {
  position: relative;
}

.search-input .icon {
  position: absolute;
  right: 0.25em;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  padding: 0.5em 0.75em;
  background-color: rgb(51, 51, 51);
  border-left: solid 2px #444;
}

.result .text {
  margin-left: 0.5em;
}

.result svg {
  color: #aaa;
}

.legend {
  color: #ccc;
}

.legend h3 {
  margin-bottom: 0.5em;
}

.legend .text {
  margin-left: 0.25em;
}

.legend div {
  margin-bottom: 0.25em;
}

.title {
  font-size: smaller;
  color: #aaa
}

.teacher-name {
  display: flex;
  align-items: center;
  padding-bottom: 0.5em;
}

.teacher-name .name {
  font-size: 1.75em !important;
}

#room-info .more-info {
  margin-left: .25em;
}

#room-info .more-info>* {
  line-height: 1.7em;
}

#room-info .more-info a {
  color: #eee;
  text-decoration: none;
}

#room-info .room {
  cursor: pointer;
  display: block;
}

#room-info .room .door-floor {
  color: #ccc;
  font-size: smaller;
}

#room-info .room svg {
  color: #888;
  margin-right: .25em;
}

hr {
  margin-top: .75em;
  margin-bottom: .75em;
  border: none;
  border-top: 2px solid #888;
}

#room-info .pfp {
  background-color: rgba(40, 40, 40, 0.8);
  padding: .25em;
  border-radius: .25em;
  display: flex;
  align-items: center;
  font-size: 3em;
  color: #ddd;
}

.subject {
  font-weight: bold;
  font-size: smaller;
  padding: 0.25em 0.5em;
  background-color: #666;
  border-radius: 0.5em;
  margin-right: 0.5em;
}

.hidden {
  display: none;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(to bottom, hsl(220, 30%, 45%), hsl(270, 30%, 45%));
  color: white;
}

.login-container {
  width: 400px;
  margin: 1em;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-container h1 {
  margin-bottom: 20px;
  background: linear-gradient(to right, hsl(220, 50%, 70%), hsl(270, 50%, 70%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-container span {
  font-weight: 600;
}

.login-container form {
  display: flex;
  flex-direction: column;
}

.login-container label {
  margin-bottom: 5px;
  text-align: left;
}

.login-container input {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.5) !important;
  color: white;
  caret-color: white;
}

.login-container button {
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: hsl(220, 50%, 45%);
  color: #fff;
  cursor: pointer;
}

.login-container button:hover {
  background-color: hsl(220, 50%, 50%);
}

.login-form {
  margin-bottom: 15px;
}

.login-error {
  color: red;
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(54, 54, 54);
  z-index: 9999;
  transition: opacity 1s ease-out;
}

#loader {
  text-align: center;
  transition: opacity 2s ease-out;
}

#loader>* {
  transition: opacity 2s ease-in;
  opacity: 0;
}

#loader-text {
  color: #eee;
  margin-top: none;
  font-size: 3em;
}

#loader-image {
  width: 50%;
}

@media screen and (max-width: 750px) {
  .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100vw;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 100px 0 rgba(0, 0, 0, 0.2);
    z-index: 100;
    gap: .5em;
  }

  .container * {
    position: unset;
  }

  .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: fit-content;
    margin: auto;
  }

  .right {
    flex-grow: 1;
    height: unset;
    padding: unset;
    padding-right: .75em;
  }

  .left {
    flex-shrink: 0;
  }

  .search-input {
    position: relative;
  }

  .search-input .icon {
    position: absolute;
    right: 0.25em;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    padding: 0.5em 0.75em;
    background-color: rgb(51, 51, 51);
    border-left: solid 2px #444;
  }

  .legend {
    display: none;
  }

  #loader-image {
    width: 80%;
  }

  #loader-text {
    font-size: 1em;
  }
}

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

  .container.showing-room,
  .container.searching {
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.75em;
    box-sizing: border-box;
    max-height: 40vh;
    overflow: scroll;
  }

  .container.showing-room .right,
  .container.searching .right {
    width: 100vw;
    padding-left: 0.75em;
    padding-right: 0.75em;
  }
}

@media screen and (max-width: 750px) {
  .container.searching {
    max-height: unset;
    height: 100vh;
    top: 0;
  }
}