/* Off Berlin - Styles */

html,body{height:100%;width:100%}
body{margin:0;overflow:hidden;font-family:Arial,sans-serif;position:relative}
canvas{width:100vw;height:100vh;display:block;position:fixed;top:0;left:0;z-index:0}

:root{
  --ui-w: min(360px, 34vw);
  --ui-pad: 18px;
  --ui-font: 14px;
  --btn-h: 36px;
  --btn-pad-x: 16px;
  --stroke-col: rgb(255,87,71);
  --bg-col: rgb(170,220,230);
}

.logo{
  position:fixed;
  top:4vh;
  left:50%;
  transform:translateX(-50%);
  height:60px;
  width:auto;
  z-index:10;
}
.logo svg{
  height:100%;
  width:auto;
  fill:var(--stroke-col);
}

.dock{
  position:fixed;
  left:50%;
  bottom:4vh;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  font-size:var(--ui-font);
  color:var(--stroke-col);
  z-index:10;
  user-select:none;
  -webkit-user-select:none;
}

.ui{
  width:var(--ui-w);
  max-width:calc(100vw - 16px);
  border:1px solid var(--stroke-col);
  border-radius:12px;
  padding:var(--ui-pad);
  box-sizing:border-box;
  background:var(--bg-col);
  display:none;
}
.ui.open{display:block;}

.section{margin:22px 0}
.label{margin-bottom:6px}
.value{margin-top:4px;margin-bottom:8px}

.actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;
  justify-content:flex-start;
  overflow-x:auto;
  overflow-y:hidden;
  position:relative;
  z-index:20;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:0 24px;
}
.actions::-webkit-scrollbar{
  display:none;
}

button{
  height:var(--btn-h);
  padding:0 var(--btn-pad-x);
  background:transparent;
  color:var(--stroke-col);
  border:1px solid var(--stroke-col);
  border-radius:999px;
  font-size:var(--ui-font);
  cursor:pointer;
  white-space:nowrap;
  flex-shrink:0;
}

.pillRow{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}

.infoText{line-height:1.6}
.infoText p{margin:0 0 16px 0}
.infoText p:last-child{margin-bottom:0}
.infoText a{color:var(--stroke-col);text-decoration:underline}

.langToggleBottom{margin-top:20px;display:flex;justify-content:flex-start}

input[type=range]{
  width:100%;
  -webkit-appearance:none;
  appearance:none;
  height:44px;
  background:transparent;
  margin:0;
  padding:0;
  cursor:pointer;
}
input[type=range]::-webkit-slider-runnable-track{
  height:1px;
  background:var(--stroke-col);
  border:none;
}
input[type=range]::-moz-range-track{
  height:1px;
  background:var(--stroke-col);
  border:none;
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:18px;
  height:18px;
  border-radius:999px;
  border:1px solid var(--stroke-col);
  margin-top:-8.5px;
  background:var(--stroke-col);
  box-shadow:none;
  cursor:pointer;
}
input[type=range]::-moz-range-thumb{
  width:18px;
  height:18px;
  border-radius:999px;
  border:1px solid var(--stroke-col);
  background:var(--stroke-col);
  box-shadow:none;
  cursor:pointer;
}

.startOverlay{
  position:fixed;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  background:var(--bg-col);
  z-index:50;
}
.startOverlay.hidden{display:none;}
.startBtn{
  height:44px;
  padding:0 22px;
  background:transparent;
  color:var(--stroke-col);
  border:1px solid var(--stroke-col);
  border-radius:999px;
  font-family:Arial,sans-serif;
  font-size:14px;
  cursor:pointer;
}
.startNote{
  color:var(--stroke-col);
  font-size:12px;
  font-family:Arial,sans-serif;
}

@media (max-width:720px){
  :root{
    --ui-w: min(92vw, 520px);
  }
  .logo{
    height:50px;
  }
  .actions{
    padding:0 24px;
  }
}