:root {
  --black: #002832;
  --white: #e6ebee;
  --blue: #00aff0;
  --white15: #ccd8df;
}

@font-face {
  font-family: "Titillium Web";
  src: url("Fonts/titillium-web-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("Fonts/titillium-web-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("Fonts/titillium-web-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: "Titillium Web", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  color: var(--black);
  background-color: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
}
html.app-mode, body.app-mode {
  overflow: hidden;
}

header {
  padding: 20px;
  margin: 0;
  text-align: center;
  border-bottom: 3px solid var(--white15);
}

.logo {
  height: 50px
}

#main-content {
  margin-left: auto;
  margin-right: auto;
  background: var(--white15);
  padding: 20px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 90%;
}

#start-button {
  margin-left: auto;
  font-family: "Titillium Web", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin-right: auto;
  width: 100%;
  height: 4em;
  margin-bottom: 1em;
  margin-top: 1em;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  font-size: 2em;
}

#browser-description {
  font-size: .8em;
  margin-top: 10px;
}

#unity-container {
  width: 100%;
}

#unity-canvas-container {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

#unity-canvas {
  background: var(--white15);
}

/* Wenn App läuft: Canvas-Wrapper wirklich bildschirmfüllend */
#unity-container.in-app,
#unity-canvas-container.in-app {
  position: fixed;        /* vom Dokumentfluss lösen */
  inset: 0;               /* top/right/bottom/left = 0 */
  width: 100vw;
  height: 100dvh;         /* robust gegen Mobile-UI-Bars */
  /* Fallback für ältere Browser: */
  /* height: 100vh; */
  padding: 0;
  z-index: 9999;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@supports not (height: 100dvh) {
  #unity-container.in-app,
  #unity-canvas-container.in-app {
    height: 100vh;
  }
}

#unity-canvas.in-app {
  /*display: block;*/
  width: 100%;
  height: 100%;
  touch-action: none;     /* verhindert Browser-Gesten auf Touch */
  background: var(--white15);
}    

#unity-loading-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none
}

#unity-logo {
  width: 154px;
  height: 130px;
  background: url('dataexperts_Logo_rgb_2016_noText_square.png') no-repeat center;
  background-size: cover;
}

#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin-top: 10px;
  background: url('progress-bar-empty-dark.png') no-repeat center
}

#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 10px;
  background: url('progress-bar-full-dark.png') no-repeat center
}

#page-content {
  flex: 1;
  margin: 0 auto 0 auto;
  max-width: 90vw;
  width: 73.125em;
}

footer {
  padding: 20px;
  text-align: center;
  border-top: 3px solid var(--white15);
  padding-top: 1.625em;
  margin: 1.1875em auto 0.875em auto;
  max-width: 90vw;
  width: 73.125em;
  z-index: 15;
}

footer a {
  text-decoration-line: none;
  color: var(--black);
}

footer a:hover {
  text-decoration-line: underline;
}

/* Header/Footer im App-Modus ausblenden (per JS schalten, s.u.) */
.app-mode header,
.app-mode footer {
  display: none !important;
}  
