/* layout */

.splash {
  height: 100%;
  width: auto;
  margin: 0 auto;
  animation-duration: 2s;
  transition: opacity 1s ease-in-out;
}

.splash.hide {
  display: none;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-h);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
  display: none;
}

header.show {
  display: flex;
}

header .title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--c-text);
  border-radius: 12px;
  border-bottom: 1px solid var(--c-border);
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/assets/imgs/preview.webp") no-repeat center/cover;
  display: none;
}

#app.show {
  display: flex;
}

#app .preview {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 160px;
  height: 84px;
  background: url("/assets/imgs/preview.webp") no-repeat center/cover;
  border-radius: 5px;
  border: 2px outset rgba(211, 211, 211, 0.5);
}

#app .preview .svg {
  position: absolute;
  left: 10px;
  bottom: 6px;
  width: 130px;
}

#app .parking-view {
  position: absolute;
  top: 33%;
  left: 9%;
  width: 72.5%;
  height: 66%;
}

#app .parking-view svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

#app .parking-view rect {
  fill: #ccc;
}
#app .parking-view rect.empty {
  fill: var(--c-empty);
}
#app .parking-view rect.occupied {
  fill: #ccc;
}

#app .status {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 120px;
}

#app .status h6 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--c-text-muted);
}

#app .status h6:nth-child(2) {
  color: var(--c-occupied);
}

#app .status h6:last-child {
  color: var(--c-empty);
}
