* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0 auto;
  max-width: 440px;
  min-height: 100vh;
  padding: 12px;
  font-family: ui-rounded, 'Nunito', system-ui, sans-serif;
  color: #2b2340;
  background: linear-gradient(#fff4d6, #ffe0ec);
}

.tagasi {
  font-weight: 800;
  color: inherit;
}

h1 {
  margin: 8px 0 4px;
  font-size: 1.7rem;
}

.juhend {
  margin: 0 0 10px;
}

.mangukast {
  position: relative;
  overflow: hidden;
  background: #dff5c8;
  border: 4px solid #2b2340;
  border-radius: 20px;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.kate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
}

button,
input {
  font: inherit;
  padding: 0.45rem 1rem;
  border: 3px solid #2b2340;
  border-radius: 999px;
}

button {
  font-weight: 800;
  color: #fff;
  background: #ff7a3d;
  cursor: pointer;
}

#alusta {
  font-size: 1.3rem;
  padding: 0.6rem 1.6rem;
}

.info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-weight: 700;
}

#heliNupp {
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  background: #8c6cf2;
}

.tabel ol {
  padding-left: 1.6rem;
}

/* Inside a house the 3D view covers the whole screen. */
.mangukast.taisekraan {
  position: fixed;
  inset: 0;
  z-index: 10;
  border: 0;
  border-radius: 0;
  background: #2b2340;
}

.mangukast.taisekraan canvas {
  height: 100%;
}

body.lukus {
  overflow: hidden;
}
