* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
canvas {
  position: absolute;
  z-index: -1;
  border-bottom: 1px solid #333;
  background-color: #000;
background-image:  linear-gradient(to top, rgba(55, 144, 252, .34) 0%, rgba(22, 58, 101, 0.38) 30%), url("https://spaceplace.nasa.gov/constellations/en/orion-nebula.en.jpg");
  
  background-size: cover;
  background-position: center;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  height: 100vh;
}

h1 {
  letter-spacing: 2px;
  text-shadow: 1px 1px rgba(0,0,0,0.7);
}

/* Center the logo container */
.logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* This perfectly centers the element */
  z-index: 1; /* Ensures it sits ABOVE the canvas (which is z-index: -1) */
  pointer-events: none; /* Allows mouse movements to pass through to the canvas */
}

.logo-overlay img {
  width: 40vw;
  max-width: 90%; /* Prevents it from overflowing on small 
  height: auto;
  display: block;
  
    /* 2. Optional: Add a glow to separate it from the nebula */
  filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.5));
}

/* Ensure the body doesn't have scrollbars since the canvas is absolute */
body {
  margin: 0;
  overflow: hidden;
  background-color: #000;
}