* {
  box-sizing: border-box;
}

html, body {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: white;
}

#cover-image {
  z-index: 1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  /* Fallback if background image failed to load.*/
  background-color: #ffffff;
  transition: opacity 1s linear;
}

#walk-canvas {
  width: 0;
  height: 0;
  touch-action: none;
}

.message {
  z-index: 300;
  position: absolute;
  width: 260px;
  top: 0;
  left: 0;
  padding: 1em;
  background-color: white;
  color: black;
  font-size: 16px;
  text-align: center;
}
.message > a {
  color: black;
}
.info-message {
  border: 2px solid yellow;
}
.error-message {
  border: 2px solid red;
}

.ui-panel {
  background-color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
}
.ui-hoverable:hover {
   background: rgba(0, 0, 0, 1);
}

/* Reponsive UI dimensions and positions - large display */
.ui-top {
  top: 10px;
}
.ui-bottom {
  bottom: 10px;
}
.ui-left {
  left: 10px;
}
.ui-right {
  right: 10px;
}
.ui-center {
  left: 50%;
  transform: translate(-50%, 0);
}
.info-item {
  min-width: 60px;
  height: 60px;
}
.menu-item {
  min-width: 52px;
  height: 52px;
  padding: 13px 6px 13px 6px;
  line-height: 26px;
}
.menu-item > img {
  padding: 2px 0 1px 0;
}
.menu-button {
  font-size: 26px;
}
#secondary-progress-done {
  height: 8px;
}
#engine-logo {
  padding-top: 8px;
  padding-bottom: 8px;
  line-height: 34px;
}
#view-list-items {
  /* Make view-list not higher than half of the viewport:
       50vh + view_margin - ui_margin - (folder_margin + folder_height) */
  max-height: calc(50vh + 2px - 10px - (4px + 14px));
}
#view-list-items::-webkit-scrollbar,
#view-list-items::-webkit-scrollbar-thumb {
  width: 6px;
}
.ext-popup-content {
  /* 100vw - ui_margin - (ui_margin + close_button) */
  max-width: calc(100vw - 10px - (10px + 30px));
  /* 100vh - ui_margin - ui_margin */
  max-height: calc(100vh - 10px - 10px);
  font-size: 14px;
}

/* Reponsive UI dimensions and positions - small display */
@media (max-width: 639px), (max-height: 639px) {
  .ui-panel {
    font-size: 12px;
  }
  .ui-top {
    top: 5px;
  }
  .ui-bottom {
    bottom: 5px;
  }
  .ui-left {
   left: 5px;
  }
  .ui-right {
    right: 5px;
  }
  .info-item {
    min-width: 46px;
    height: 46px;
  }
  .menu-item {
    min-width: 42px;
    height: 42px;
    padding: 11px 6px 11px 6px;
    line-height: 20px;
  }
  .menu-item > img {
    padding: 2px 0 0 0;
  }
  .menu-button {
    font-size: 22px;
  }
  #secondary-progress-done {
    height: 4px;
  }
  #engine-logo {
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 30px;
  }
  #view-list-items {
    max-height: calc(50vh + 2px - 5px - (4px + 14px));
  }
  @media (min-width: 560px) and (max-height: 439px) {
    #view-list-items {
      /* If the small display is low but wide make the view-list taller:
           80vh + view_margin - ui_margin - (folder_margin + folder_height) -
             (ui_margin + menu_bar_height + ui_margin) - webkit_ui_height
         We use 80vh instead of 100vh because on mobile WebKit 100vh includes
         the browser UI.
       */
      max-height: calc(80vh + 2px - 5px - (4px + 14px) - (5px + 42px + 5px));
    }
  }
  #view-list-items::-webkit-scrollbar,
  #view-list-items::-webkit-scrollbar-thumb {
    width: 4px;
  }
  .ext-popup-content {
    max-width: calc(100vw - 5px - (5px + 30px));
    max-height: calc(100vh - 5px - 5px);
    font-size: 12px;
  }
}

.absolute-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  /* For IE9: */
  -ms-transform: translateX(-50%) translateY(-50%);
}

#info-bar {
  z-index: 100;
  position: absolute;
  overflow: hidden;
}
#info-bar-slide {
  position: relative;
  left: 0;
  transition: left 1s ease;
}
#author-logo {
  display: inline-block;
  margin-right: 2px;
  background: none;
  text-align: center;
}
#author-logo > img {
  height: 100%;
}
#info-text {
  display: inline-block;
  padding: 5px 10px 3px 10px;
  vertical-align: top;
}
#info-text > div {
  display: table;
  height: 50%;
}
#info-title, #info-author {
  display: table-cell;
  height: 100%;
  line-height: 1;
  vertical-align: middle;
  /* For <a> */
  color: white;
  text-decoration: none;
}
#info-title {
  font-size: 1.4em;
}

#menu-bar {
  z-index: 102;
  position: absolute;
  overflow: hidden;
}
#menu-bar-slide {
  position: relative;
  right: 0;
  transition: right 1s ease;
}
.menu-item {
  display: inline-block;
  margin-left: 2px;
  vertical-align: top;
  text-align: center;
  cursor: pointer;
}
.menu-item > img {
  height: 100%;
  vertical-align: top;
}
#menu-bar-content {
  display: inline-block;
  padding-left: 2px;
}

#menu-buttons {
  display: inline-block;
}
.menu-button {
  font-weight: 700;
}
#engine-logo {
  color: white;
  text-decoration: none;
}
#engine-logo-text {
  display: inline-block;
  margin-right: 6px;
  vertical-align: top;
}

#view-list {
  xz-index: 101;
  xposition: absolute;
  xoverflow: hidden;
}
#view-list-slide {
  position: relative;
  top: 0;
  transition: top 1s ease;
}
#view-list-items {
  /* Negative margin to compensate for the first view having margin-top: 2px */
  margin-top: -2px;
  margin-bottom: 4px;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: white rgba(0, 0, 0, 0.6);
  -ms-overflow-style: -ms-autohiding-scrollbar;
}
#view-list-items::-webkit-scrollbar {
  background-color: rgba(0, 0, 0, 0.6);
}
#view-list-items::-webkit-scrollbar-thumb {
  background-color: white;
}
.view {
  padding: 3px 9px;
  margin-top: 2px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}
@-moz-document url-prefix() {
  @media (pointer: coarse) {
    /* In Firefox on touch devices the view-list scrollbar is positioned
       a few pixels to the left from the edge of the scrollable area, which looks
       strange. Fix it by adding a margin. Detect touch device based on how
       precise the primary pointing device is. */
    .view {
      margin-right: 4px;
    }
  }
}
#view-list-folder {
  height: 14px;
  padding-top: 5px;
  padding-bottom: 4px;
  text-align: center;
  cursor: pointer;
}
#view-list-folder > img {
  /* Using height: 100% does not work on Safari, so set height in pixels. */
  height: 5px;
  vertical-align: top;
}

#play-button {
  z-index: 200;
  max-width: 30vw;
  max-height: 35vh;
  cursor: pointer;
}

#help-and-primary-progress {
  z-index: 200;
  text-align: center;
}

.help {
  /* Such vertical margins here and in #primary-progress introduce
     5vh margin between the help and the progress indicator when they
     are shown together, while maintaining the vertical centering of these
     elements when they are shown stand-alone. */
  margin: 2.5vh auto;
  padding: 16px;
  font-size: 13px;
}
.close-help-button {
  float: right;
  width: 14px;
  height: 14px;
  margin: 2px 0;
  background-size: cover;
  cursor: pointer;
}
.help-columns {
  display: table;
  width: 100%;
  text-align: center;
}
.help-column3, .help-column3-sep, .help-column2, .help-column2-sep {
  display: table-cell;
  vertical-align: middle;
}
.help-column3 {
  width: 26%;
}
.help-column3-sep {
  width: 11%;
}
.help-column2 {
  width: 45%;
}
.help-column2-sep {
  width: 10%;
}

#desktop-help, #mobile-help {
  background-color: #ffffff;
  color: #9B9B9B;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
}

#desktop-help h1, #mobile-help h1 {
  color: #5b5b5b;
}

#desktop-help {
  width: 500px;
  padding: 20px 24px;
}

#desktop-help-switch {
  padding-left: 25%;
  width: 75%;
  font-size: 14px;
  text-align: center;
  padding-top: 15px;
}
#desktop-help-switch > div {
  display: inline-block;
  width: 50%;
  border: 2px solid #4da9ea;
  cursor: pointer;
  padding: 5px;
  border-radius: 2px;
}
#desktop-help-switch > div:nth-child(1) {
  border-right-width: 1px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}
#desktop-help-switch > div:nth-child(2) {
  border-left-width: 1px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}
#desktop-help-switch > div:hover {
  background-color: #4da9ea;
  color: #ffffff;
}
#desktop-help-switch > div.selected,
#desktop-help-switch > div.selected:hover {
  background-color: #4da9ea;
  color: #ffffff;
}

#desktop-basic-help {
  margin-top: 20px;
  margin-bottom: 40px;
}

#desktop-basic-help h1 {
  margin-top: 24px;
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 700;
  
}
#desktop-basic-help img {
  height: 60px;
}

#advanced-desktop-help {
  max-height: calc(100vh - 200px);
  margin-top: 8px;
  overflow-y: auto;
  font-size: 12px;
}
#advanced-desktop-help h1 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

#advanced-desktop-help > div > div:nth-child(odd) {
  background-color: #fbfbfb;
}

#advanced-desktop-help > div > div {
  padding: 5px 0px;
}

.help-how, .help-what {
  display: inline-block;
  width: 50%;
  padding: 4px 0;
  
}
.help-how {
  padding-right: 5%;
  vertical-align: middle;
}
.help-what {
  padding-left: 5%;
  text-align: left;
  vertical-align: middle;
}
.help-key, .help-key-placeholder {
  display: inline-block;
  min-width: 22px;
  margin: 1px;
  color: #02A9F5;
  border-color: #000000;
}
.help-key {
  line-height: 20px;
  padding: 0 4px;
  border: 2px solid #9B9B9B;
  font-weight: bold;
  border-radius: 4px;
  text-align: center;
}

#mobile-help {
  width: 300px;
}
#mobile-help h1 {
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
}
#mobile-help img {
  height: 50px;
}

#primary-progress {
  /* z-index set to 200 for compatibility with customized indexes based on
     webwalk < 180, because previously #primary-progress was a top-level
     element. */
  z-index: 200;
  margin-top: 2.5vh;
  margin-bottom: 2.5vh;
  width: 25vw;
  max-height: 20vh;
  transition: opacity 0.5s linear;
}

#secondary-progress {
  z-index: 200;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: opacity 0.5s linear;
}
#secondary-progress-done {
  width: 0px;
  background-color: #3c66b0;
}

.ext-popup {
  z-index: 104;
  position: absolute;
}
.ext-popup-content {
  display: inline-block;
  vertical-align: top;
  padding: 16px;
  overflow: auto;
  /* A bit darker than .ui-panel because large pop-ups often overlap with some
     UI elements */
  background-color: rgba(0, 0, 0, 0.8);
}
.ext-popup-close-button-panel {
  display: inline-block;
  vertical-align: top;
  margin-left: 4px;
  padding: 6px;
  background-color: rgba(0, 0, 0, 0.8);
}
.ext-popup-close-button {
  width: 18px;
  height: 18px;
  background-size: cover;
  cursor: pointer;
}




@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Noto Sans'), local('NotoSans'),
  url('font/noto-sans-v6-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
  url('font/noto-sans-v6-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

@font-face {
  font-family: 'fontawesome';
  src: url('font/fontawesome-webfont.woff2') format('woff2'),
  url('font/fontawesome-webfont.woff') format('woff');
}

.close-help-button {
  background-image: url("img/close.svg");
}

.ext-popup-close-button {
  background-image: url("img/close.svg");
}


@keyframes logo-house {
  0%   {transform: scale(1)}
  50%  {transform: scale(1.2)}
  100% {transform: scale(1)}
}

.logo-house {
  transform: scale(1);
  animation: logo-house 5s ease infinite
}


.camera-picker-container {
  position: absolute; 
  left: 50%; 
  top: 15px; 
  width: 300px; 
  margin-left: -150px;
  line-height: 40px;
  
  display: flex;
}

.camera-picker-container svg {
  display: block; 
  padding: 10px; 
  width: 20px; 
  height: 20px;
  box-sizing: content-box;
  fill: #ffffff;
}

.camera-picker {
  flex-grow: 1;
  margin-right: 10px;
  position: relative;
}

.camera-picker-title {
  display: flex;
}

.camera-picker-title > div {
  flex-grow: 1;
  padding-left: 10px;
}

.camera-picker-container > * {
  background-color: rgba(0,0,0,0.2);
  color: #ffffff;
}

.camera-picker:hover .camera-picker-list-container {
  display: block;
}

.camera-picker-list-container {
  position: absolute; 
  left: 0px; 
  top: 0px;
  box-sizing: border-box;
  width: 100%;
  display: none;
  border: 1px solid #d8d8d8;
  background-color: #ffffff;
  color: #777777;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
}

.camera-picker-list-container svg {
  fill: #777777;
}

.camera-picker-list-item {
  padding-left: 10px;
}

.camera-picker-list-item:hover {
  color: #04a9f5;
}

.active-view, .next-active-view {
  background-color: #d3d3d3;
}

.camera-picker-play.tour-on {
  background-color: #04a9f5;
}


@media (max-height:500px) {
  .logo-container {
    height: 30% !important;
  }
  
  .project-details {
    top: 30% !important;
  }
}

@media (max-height:600px) {
  .project-details {
    margin-top: 35px !important;
  }
}

@media (max-width:500px) {
  .project-details {
    font-size: 16px !important;
  }
}

.project-details-container {
  text-align: center;
  position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;
}

.logo-container {
  position: absolute; 
  width: 100%; 
  height: 50%; 
  top: 0px; 
}

.project-details {
  position: absolute;
  top: 50%;
  left: 10px; right: 10px;
  font-size: 26px;
  margin-top: 70px;
  margin-left: 10px;
  margin-right: 10px;
  
}

.project-details-title {
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 140%;
}

.project-details-designer {
  margin-bottom: 20px;
}

.project-details-designed-label {
  font-style: italic;
  font-size: 80%;
}

.logo-container:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.logo-container > img {
  vertical-align: bottom; 
  max-width: 90%;
  max-height: 100%;
}