body { 
  padding: 0; 
  margin: 0;
  background: #2182FF; /* full page background */
}

#orbsway-logo-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

#orbsway-logo-container img {
  width: 100px;
  height: auto;
  display: block;
}

#unity-container { 
  position: absolute;
  left: 50%; 
  top: 50%; 
  transform: translate(-50%, -50%); 
  text-align: center;
}

#unity-canvas { 
  width: 100%; 
  height: 100%; 
  background: #2182FF; /* Unity canvas background */
}

/* Video container styling */
#video-container {
  position: relative;
  transform: translate(-0%, -100%);
  width: 720px; /* Match canvas width */
  height: 410px; /* Match canvas height */
  opacity: 0; /* Changed opacity to 0 for fade-in effect */
  transition: opacity 0.5s ease-in-out; /* Add transition for fade-in */
  z-index: 999;
}

#video-container.fade-in {
  opacity: 1; /* New class to trigger the fade-in */
}

#video-container.fade-out {
  opacity: 0;
  pointer-events: none;
}

#orbsway-video {
  width: 100%;
  height: 100%;
}

#unity-loading-bar { 
  position: absolute; 
  left: 50%; 
  top: 50%; 
  transform: translate(-50%, -50%); 
  text-align: center;
  transition: opacity 1s ease;
}

#unity-loading-bar.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Custom Orbsway logo with bobbing */
#unity-logo {
  width: 280px;        /* bigger base size */
  max-width: 60%;      /* allow it to grow more on large screens */
  height: auto;
  margin: 0 auto 20px auto;
  background: none;
  animation: bobbing 2s ease-in-out infinite;
  opacity: 1;
  transition: opacity 1s ease;
}

#unity-logo.fade-out {
  opacity: 0;
}

#unity-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bobbing animation */
@keyframes bobbing {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

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

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

/* Footer container for buttons */
#unity-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  opacity: 0; /* Initially hidden */
  pointer-events: none; /* Make them non-interactive when hidden */
  transition: opacity 1s ease-in-out; /* Add a smooth transition */
}

/* This new class will be added via JavaScript to show the buttons */
#unity-footer.visible {
  opacity: 1;
  pointer-events: auto; /* Make them clickable */
}

/* Updated VR/AR buttons for high contrast */
#entervr,
#enterar {
  padding: 14px 28px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background-color: #002C6F; /* Dark blue background */
  color: #fff; /* White text for contrast */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#entervr:hover,
#enterar:hover {
  background-color: #004C9F; /* Slightly lighter blue on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

#entervr:active,
#enterar:active {
  background-color: #001A40; /* Darker blue on click */
  transform: translateY(1px);
  box-shadow: 3px 6px rgba(0,0,0,0.2);
}

#entervr:disabled,
#enterar:disabled {
  background-color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
}

/* Build title styling */
#unity-build-title {
  margin-top: 10px;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-align: center;
}
