body {
  margin: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#unity-container {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#unity-canvas {
  position: relative;
  background-image: url('background.png'); 
  background-color: rgb(0, 0, 0);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: auto;
  height: 100%;
  max-width: calc(100vh * 9 / 16);
}

/*  Tint Overlay Added */
#unity-canvas::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* change color/tint here */
  pointer-events: none; 
}

#unity-loading-bar { 
  position: absolute; 
  left: 50%; 
  top: 50%; 
  transform: translate(-50%, -50%); 
  display: none;
}

/* #unity-logo { 
  width: 154px; 
  height: 130px; 
  background: url('unity-logo-dark.png') no-repeat center;
} */

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

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

#unity-warning { 
  position: absolute; 
  left: 50%; 
  top: 5%; 
  transform: translate(-50%); 
  background: white; 
  padding: 10px; 
  display: none;
}


/* ===== Player Details Form Container ===== */
#html-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-color: #000;
  overflow: hidden;

  display: none;
  align-items: center;
  justify-content: center;

  pointer-events: auto;
}

#html-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000 url("background.png") no-repeat center center;
  background-size: 100% auto;
  filter: blur(8px);
  transform: scale(1.03);
  transform-origin: center;
  z-index: 0;
}

#html-overlay > * {
  position: relative;
  z-index: 1;
}

/* Overlay Content */
.overlay-content {
  position: relative;
  width: 400px;
  text-align: center;
}

/* Heading */
.overlay-content h3 {
  position: relative;
  z-index: 5;
  color: white;
  margin-bottom: 22px;
  font-family: poppins, sans-serif;
}

/* Form */
#userForm {
  width: 350px;
  margin: 0 auto;   /* center form */
  
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
  row-gap: 18px;

  position: relative;
  z-index: 2;
}

/* IMPORTANT FIX */
#userForm input,
#userForm button {
  box-sizing: border-box;
}

/* Email Full Width */
#userForm input[name="email"] {
  grid-column: span 2;
}

/* Buttons Full Width */
#userForm button {
  grid-column: span 2;
}

/* ===== Input Fields ===== */
#userForm input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 16px;
  outline: none;
  text-align: center;

  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.2),
    0 0 10px rgba(255, 255, 255, 0.15);
}

/* Placeholder */
#userForm input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Focus Effect */
#userForm input:focus {
  border-color: #ff00cc;
  box-shadow:
    0 0 15px rgba(255, 0, 204, 0.7),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
}

#userForm button[type="submit"] {
  background: linear-gradient(135deg, #ff00cc, #3333ff);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  max-width: 350px;
  grid-column: span 2;
  justify-self: center;
  width: 220px;

  box-shadow: 0 0 20px rgba(255, 0, 204, 0.6);
  transition: 0.3s;
}

#userForm button[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 0, 204, 0.9);
}
h2 {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
  margin-top: 20px;
}

.form-container {
  position: relative;
  z-index: 1;
}
.overlay {
  position: absolute;
  z-index: 0;
}
