html * {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html > body {
  background-color: black;
}

html > body > .app {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
}

html > body > .app > .border {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 20;
  background-image: url(images/application-border-dark.png);
  background-position: center;
  background-size: 1900px 1100px;
  background-repeat: no-repeat;
  pointer-events: none;
}
html > body > .app.expanded > .border {
  display: none;
}

@media (prefers-color-scheme: light) {
  html > body > .app > .border {
    background-image: url(images/application-border-light.png);
  }
}

html > body > .app > .container {
  position: relative;
  width: 950px;
  height: 550px;
}
html > body > .app.expanded > .container {
  width: 100%;
  height: 100%;
}

html > body > .app > .container > .loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

html > body > .app > .container > .loader > .error {
  display: none; /* Initial State */
  color: white;
}

html > body > .app > .container > .loader > .bar {
  width: 100px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgb(59, 59, 59);
}

html > body > .app > .container > .loader > .bar > .fill {
  height: 100%;
  width: 0%; /* Initial state */
  border-radius: 4px;
  background: white;
  transition: 1s ease-out width;
}

html > body > .app > .container > .webview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-color: black;
  border: 0;
  display: none; /* Initial State */
}

html > body > .app > .container > .button-close {
  position: absolute;
  top: 10px;
  width: 150px;
  aspect-ratio: 3;
  right: 15px;
  background-image: url(images/button-close.png);
  background-position: center;
  background-size: 100% 100%;
  z-index: 7;
  cursor: pointer;
  display: none; /* Initial State */
}

html > body > .app > .container > canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
}
