* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: "Courier New", monospace;
  overflow: hidden;
}

canvas {
  border: 5px solid #fff;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  cursor: none;
  display: block;
  animation: pulse 2s infinite;
}

canvas:focus {
  outline: none;
}

/* Smooth animations */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
  }
}

/* Style for the instructions box */
div[style*="position: absolute"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37) !important;
  backdrop-filter: blur(4px) !important;
  border-radius: 12px !important;
}

div[style*="position: absolute"] h3 {
  color: #fff !important;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

div[style*="position: absolute"] ul {
  list-style: none !important;
}

div[style*="position: absolute"] li {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
}

div[style*="position: absolute"] li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #ffeb3b;
}
