html, body {
  margin: 0;
  padding: 0;
  background-color: black;
  color: white;
  font-family: 'Arial Narrow', Arial, Helvetica, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  overflow: hidden;
}

#background-text-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2em;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 0;
}

#background-text {
  color: rgba(255, 255, 255, 0.3);
  font-family: "Arial Narrow", sans-serif;
  font-size: 14px;
  line-height: 1.2em;
  text-align: justify;
  text-align-last: justify; /* justify last line */
  white-space: normal;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

canvas {
  position: relative;
  z-index: 1; /* above background text */
  display: block;

  /* Elevation effect */
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.8),   /* dark shadow beneath */
    0 0 60px rgba(255, 255, 255, 0.2); /* subtle glow */
  border-radius: 30px;                  /* rounded phone corners */

}


/* Widths for notch & corners are set dynamically */
#phone-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50px; /* placeholder, will be overwritten in JS */
  background: #111;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5), /* bigger main shadow */
    0 0 80px rgba(255,255,255,0.05), /* subtle glow */
    inset 0 0 15px rgba(255,255,255,0.02); /* inner shadow for bezel effect */
  overflow: hidden;
  z-index: 2;
}

/* Canvas fills phone screen */
#phone-container canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 30px; /* placeholder, overwritten in JS */
  box-shadow:
    inset 0 0 20px rgba(0,0,0,0.5), /* inner shadow */
    0 10px 20px rgba(0,0,0,0.2);   /* subtle outer shadow */

}

/* Notch */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border-bottom-left-radius: 15px; /* placeholder, overwritten in JS */
  border-bottom-right-radius: 15px; /* placeholder, overwritten in JS */
  z-index: 3;
}