/* =========================
   BASE
========================= */

body {
  background: #050505;
  color: #d33fff;
  font-family: "Courier New", monospace;
  margin: 0;
}

/* =========================
   HEADER
========================= */

header {
  padding: 20px;
  border-bottom: 1px solid #d33fff;
}

.logo {
  font-size: 18px;
  letter-spacing: 2px;
}

.logo,
.logo:visited,
.logo:hover,
.logo:active {
  color: #d33fff;
  text-decoration: none;
}

.logo:hover {
  text-shadow: 0 0 10px #d33fff;
  cursor: pointer;
}

/* =========================
   LAYOUT
========================= */

.container {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
}

/* =========================
   HEADINGS
========================= */

h2 {
  border-bottom: 1px solid #d33fff;
  padding-bottom: 10px;
  text-shadow: 0 0 8px #d33fff;
}

/* =========================
   NOTES AREA
========================= */

textarea {
  width: 100%;
  height: 220px;

  background: #050505;
  border: 1px solid #d33fff;
  color: #d33fff;

  font-size: 16px;
  padding: 10px;
  resize: none;

  text-shadow: 0 0 6px currentColor;
  box-shadow: 0 0 8px rgba(211, 63, 255, 0.4);
}

/* placeholder */
textarea::placeholder {
  color: #d33fff;
  opacity: 0.5;
}

/* =========================
   CONTROLS
========================= */

.controls {
  margin: 20px 0;
}

button {
  background: #050505;
  border: 1px solid #d33fff;
  color: #d33fff;

  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;

  font-family: "Courier New", monospace;

  text-shadow: 0 0 6px currentColor;
  box-shadow: 0 0 6px currentColor;
}

button:hover {
  background: #2a0033;
}

/* =========================
   SCANLINES (LUNA TINT)
========================= */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;

  background: repeating-linear-gradient(
    to bottom,
    rgba(211, 63, 255, 0.05),
    rgba(211, 63, 255, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );

  z-index: 999;
}

/* =========================
   CURSOR
========================= */

* {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 9999;

  image-rendering: pixelated;
  transform: translate(-50%, -50%);

  filter:
    drop-shadow(0 0 2px #000)
    drop-shadow(0 0 6px #d33fff);
}

/* remove default outline */
*:focus {
  outline: none;
}

/* custom focus style */
input:focus,
textarea:focus,
button:focus {
  box-shadow:
    0 0 6px #d33fff,
    0 0 12px rgba(211, 63, 255, 0.4);

  border-color: #d33fff;
}

.container {
  max-width: 700px;   /* 👈 THIS is what stops full width */
  margin: 80px auto;  /* 👈 centers it */
}

textarea {
  width: 100%; /* fills container, NOT screen */
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #d33fff;
  border-radius: 5px;
  box-shadow: 0 0 5px #d33fff;
}

::-webkit-scrollbar-thumb:hover {
  background: #9e00cd;
}

#preview {
  margin-top: 10px;
  border-top: 1px solid #d33fff;
  padding-top: 8px;
  font-size: 13px;
  opacity: 0.8;
}

#preview a {
  display: block;
  color: #d33fff;
  text-decoration: underline;
  margin-bottom: 4px;
}

#preview a:hover {
  text-shadow: 0 0 6px #d33fff;
}