/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1a1a1a; /* Dark background like RaceX.tech */
  color: #fff; /* White text */
  font-family: 'Arial', sans-serif; /* Match RaceX.tech typography */
  overflow-x: hidden;
}

/* Header Styles */
.racex-header {
  background: linear-gradient(135deg, #ff4d4d, #8b008b); /* Red-to-purple gradient */
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.racex-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.racex-logo img {
  width: 80px;
  height: 80px;
}

.racex-logo h1 {
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Unity Container Styles */
#unity-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#unity-container.unity-desktop {
  background-color: #1a1a1a; /* Match body background */
}

#unity-canvas {
  background: #231f20; /* Slightly lighter dark background for canvas */
  border: 2px solid #ff4d4d; /* Red border for accent */
  border-radius: 10px;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  background: #333; /* Dark background for loading bar */
  padding: 10px;
  border-radius: 5px;
}

#unity-logo {
  width: 154px;
  height: 130px;
  background: url('unity-logo-dark.png') no-repeat center;
  display: none; /* Hide default Unity logo */
}

#unity-progress-bar-empty {
  width: 200px;
  height: 18px;
  margin-top: 10px;
  background: #444; /* Dark gray background */
  border: 1px solid #ff4d4d; /* Red border */
  border-radius: 5px;
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #ff4d4d, #8b008b); /* Gradient fill */
}

#unity-footer {
  position: relative;
  width: 100%;
  bottom: 0;
  height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #231f20; /* Dark footer background */
  border-top: 1px solid #ff4d4d; /* Red border */
}

#unity-webgl-logo {
  width: 88px;
  height: 38px;
  background: url('webgl-logo.png') no-repeat center;
  display: none; /* Hide default WebGL logo */
}

#unity-build-title {
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

#unity-fullscreen-button {
  width: 38px;
  height: 38px;
  background: url('fullscreen-button.png') no-repeat center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#unity-fullscreen-button:hover {
  transform: scale(1.1);
}

#unity-fullscreen-button i {
  color: #fff;
  font-size: 1.2rem;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #333;
  padding: 10px;
  border-radius: 5px;
  color: #fff;
  display: none;
}