@font-face {
  font-family: "Pixelify";
  src: url("fonts/PixelifySans-Regular.ttf") format("truetype");
  font-weight: normal;
}

@font-face {
  font-family: "Pixelify";
  src: url("fonts/PixelifySans-Bold.ttf") format("truetype");
  font-weight: bold;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111318;
  color: #f2f2f2;
  font-family: Arial, sans-serif;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 28px;
}

h2 {
  margin-top: 0;
  font-size: 18px;
}

.layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
}

.panel {
  background: #1b1f28;
  border: 1px solid #2a3140;
  border-radius: 14px;
  padding: 18px;
}

.controls label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 14px;
}

.controls input[type="text"],
.controls input[type="file"],
.controls select,
.controls button {
  width: 100%;
}

.controls input[type="text"],
.controls select,
.controls input[type="file"] {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #394255;
  background: #12161d;
  color: #f2f2f2;
}

.controls input[type="range"] {
  width: 100%;
}

.controls input[type="color"] {
  width: 100%;
  height: 40px;
  border: none;
  background: transparent;
  padding: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: auto !important;
}

.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

button {
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #5d67ff;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  filter: brightness(1.08);
}

.preview-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 300px;
}

.preview-wrap {
  margin-top: 20px;
  background:
    linear-gradient(45deg, #1c1c1c 25%, #2a2a2a 25%, #2a2a2a 50%, #1c1c1c 50%, #1c1c1c 75%, #2a2a2a 75%, #2a2a2a 100%);
  background-size: 24px 24px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #353c49;
}

#blinkieCanvas {
  width: 600px;
  height: 80px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 1px solid #222;
  background: #000;
}

.note,
.dim {
  color: #b7c0d1;
  font-size: 13px;
  line-height: 1.5;
}

hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #31394a;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  #blinkieCanvas {
    width: 100%;
    height: auto;
    aspect-ratio: 150 / 20;
  }
}