html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
}
canvas {
    display: block;
}
body {
    margin: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Futura+PT:wght@400;500;600;700&display=swap');

/* Custom Loading Bar Styles */
:root {
	--logo-scale: 0.5; /* 0.5x scale as requested */
}

#unity-loading-bar {
	display: flex;
	flex-direction: column;
	align-items: center;
/* 	gap: 20px; */
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
}

loading-container {
	background: linear-gradient(135deg, #666666 0%, #555555 50%, #444444 100%);
	border: calc(4px * var(--logo-scale)) solid #2d1b69;
	border-radius: calc(100px * var(--logo-scale));
	padding: calc(20px * var(--logo-scale)) calc(40px * var(--logo-scale));
	display: inline-block;
	box-shadow: 0 calc(8px * var(--logo-scale)) calc(20px * var(--logo-scale)) rgba(0, 0, 0, 0.3);
	position: relative;
	overflow: hidden;
	font-family: 'Futura PT', Arial, sans-serif;
}

/* Map Unity's progress bar to our custom progress bar */
#unity-progress-bar-empty {
	display: none !important; /* Hide original, we'll use loading-container instead */
}

#unity-progress-bar-full {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: linear-gradient(135deg, #7c4dff 0%, #512da8 50%, #4527a0 100%);
	width: 0%;
	transition: width 0.3s ease;
	border-radius: calc(100px * var(--logo-scale));
	z-index: 1;
}

/* Hide the label inside progress bar, we'll show it below */
#unity-progress-bar-full .label {
	display: none;
}

loading-text {
	font-size: calc(48px * var(--logo-scale));
	font-weight: 600;
	letter-spacing: calc(-1px * var(--logo-scale));
	margin: 0;
	white-space: nowrap;
	display: block;
	position: relative;
	z-index: 2;
	background: linear-gradient(
		90deg,
		#ffffff 0%,
		#ffffff var(--progress, 0%),
		rgba(255, 255, 255, 0.3) var(--progress, 0%),
		rgba(255, 255, 255, 0.3) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	background-size: 100% 100%;
}

text-sky {
	color: inherit;
}

text-control {
	background: linear-gradient(
		90deg,
		#ff6b35 0%,
		#ff6b35 var(--progress, 0%),
		rgba(255, 107, 53, 0.3) var(--progress, 0%),
		rgba(255, 107, 53, 0.3) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

text-bet {
	color: inherit;
}

/* Style for the external progress label */
.progress-label {
	font-family: 'Futura PT', Arial, sans-serif;
	font-size: 10px;
	color: #ffffff;
	text-align: center;
	margin-top: 10px;
	font-weight: 500;
}

/* ######END Loading####### */

#unity-container {
    width: 100%;
    height: 100%;
}
#unity-canvas {
    width: 100%;
    height: 100%;
    background: #231F20;
    background: url('../splashscreen.jpg') no-repeat center center;
    background-size: cover;
}

/* Portrait orientation - for mobile devices in portrait mode */
@media only screen and (orientation: portrait) {
	#unity-canvas {
      background: url('../splashscreen-portrait.jpg') no-repeat center center;
      background-size: cover;
    }
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-logo {
    text-align: center;
    display: none;
}
#unity-logo img {
    max-width: 80%;
}

#unity-fullscreen-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

.spinner,
.spinner:after {
  border-radius: 50%;
  width: 5em;
  height: 5em;
}
.spinner {
  margin-top: 10px;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  transform: translateZ(0);
  animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
