* {
  padding: 0;
  margin: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  width: 100%;
  background: url('bg.png') no-repeat center center fixed;
  background-size: cover;
}

@font-face {
  font-family: "Cygre-Black";
  src: url("fonts/Cygre-Black.ttf");
}

#logo {
  width: 300px;
  height: 300px;
  background-image: url("logo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#whole-wrapper {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-image: url(loadingbg.png);
    background-size: auto;
    background-position: center;
    z-index: 1;
}

#whole-page-wrapper {
  height: 100dvh;
  width: 100%;
  max-width: calc(100dvh * 9 / 16);
  margin: 0 auto;
}

#loading-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2vh;
  width: 100%;
}

#unity-canvas:before {
  content: "";
  background-color: #272c30;
}

#unity-canvas {
  position: absolute;
  height: 100dvh;
  width: 100%;
  max-width: calc(100dvh * 9 / 16);
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#progress-text {
  color: white;
  text-align: center;
  font-family: "Cygre-Black";
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  font-size: 32px;
  width: 95%;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.75);
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
}

#progress-wrapper {
  width: 80%;
  height: 14px;
  background-color: #000000;
  border-radius: 10px;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  outline-style: solid;
  outline-color: #0f080b;
  outline-width: 3px;
}

#progress-bar {
  width: 28%;
  margin: 1px;
  height: calc(100% - 2px);
  border-radius: 10px;
  background-color: #f3a93c;
  transition: width 0.3s ease;
  position: absolute;
  top: 0px;
  left: 0px;
}

@keyframes loading {
  to {
    width: 95%;
  }
}
