body {
  margin: 0;
  font-family: sans-serif;
  overflow: hidden; /* Prevent scrollbars */
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0; /* Behind content */
  width: 100%;
  height: 100%;
}

.content-container {
  position: relative; /* Needed for z-index */
  z-index: 1; /* Above canvas */
  display: flex; /* Use flex to center the code-editor */
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Take full viewport height */
  width: 100%; /* Take full width */
}

.code-editor {
  max-width: 400px;
  background-color: #1d1e22;
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 2px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px;
}

.title {
  font-family: Lato, sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1.57px;
  color: rgb(212 212 212);
}

.icon {
  width: 20px;
  transition: .2s ease;
}

.icon:hover {
  cursor: pointer;
  border-radius: 50px;
  background-color: #6e7281;
}

.editor-content {
  margin: 0 10px 10px;
  color: white;
  font-family: monospace; /* Font for code */
  font-size: 13px;
  line-height: 1.4;
}

.property {
  margin-left: 30px;
}

.property:hover {
  cursor: text;
}

.editor-content .color-0 {
  color: rgb(86 156 214);
}

.editor-content .color-1 {
  color: rgb(182 206 168);
}

.editor-content .color-2 {
  color: rgb(156 220 254);
}

.editor-content .color-3 {
  color: rgb(207 146 120);
}

.color-preview-1,.color-preview-2 {
  height: 8px;
  width: 8px;
  border: 1px solid #fff;
  display: inline-block;
  margin-right: 3px;
  vertical-align: middle; /* Align previews */
}

.color-preview-1 {
  background-color: #1d1e22;
}

/* Note: The user provided a duplicate rule for .color-preview-1.
   The second rule below overrides the first one. Keeping as provided. */
.color-preview-1 {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Basic responsiveness */
@media (max-width: 400px) {
  body {
    padding: 10px; /* Add padding on small screens */
  }
}