/* --- General page background --- */
body {
  background: #111;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.0em; 
  justify-content: flex-start;
  padding-top: 5px;

  /* Dark room glow + subtle static + vignette */
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  background-image:
    radial-gradient(circle at center, #111 0%, #000 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(circle at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.8) 100%);
  background-blend-mode: overlay;
}

/* --- Sticky Note Menu --- */
.menu {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin: 30px 0;
}

a.postit,
a.postit:link,
a.postit:visited {
  display: inline-block;
  padding: 1em;
  font-family: "Indie Flower", "Comic Sans MS", "Segoe Print", cursive;
  font-size: 1.2em;
  text-align: center;
  width: 100px;
  box-shadow: 2px 4px 6px rgba(0,0,0,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
  backface-visibility: hidden;
  text-decoration: none !important;
  color: #222 !important;
}

a.postit:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 3px 6px 10px rgba(0,0,0,0.5);
}

a.postit:hover:active {
  transform: none !important;
  box-shadow: 2px 4px 6px rgba(0,0,0,0.4) !important;
}

/* Sticky note colors */
.postit.green  { background: #B2FF59; border: 1px solid #80cc33; }
.postit.lilac  { background: #E1BEE7; border: 1px solid #b68cc1; }
.postit.orange { background: #FFB347; border: 1px solid #e6992e; }
.postit.blue   { background: #81D4FA; border: 1px solid #4ba3c7; }
.postit.pink   { background: #F48FB1; border: 1px solid #c76a8a; }

/* Tilt angles */
.tilt-left     { transform: rotate(-5deg); }
.tilt-right    { transform: rotate(5deg); }
.tilt-right2   { transform: rotate(7deg); }
.tilt-slight   { transform: rotate(2deg); }
.tilt-straight { transform: rotate(0deg); }

/* --- CRT Monitor --- */
.monitor-frame {
  position: relative;
  width: 800px;
  height: 600px;
}

.monitor-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Screen inside CRT --- */
.screen {
  position: absolute;
  top: 75px;
  left: 78px;
  width: 665px;
  height: 500px;
  background: #000;
  color: #ccc;
  overflow-y: auto;
  border: 2px solid #0f0;
  border-radius: 10px;
  box-shadow: inset 0 0 20px rgba(0, 255, 100, 0.15);
  padding: 1em;
  box-sizing: border-box;
}

.screen::-webkit-scrollbar {
  width: 12px;
}
.screen::-webkit-scrollbar-track {
  background: #000;
  border-radius: 10px;
}
.screen::-webkit-scrollbar-thumb {
  background: #0f0;
  border-radius: 10px;
}
.screen::-webkit-scrollbar-thumb:hover {
  background: #6f6;
}

/* Scanline effect 
.screen::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}
*/

/* --- Bezel sticky note --- */
.bezel-note {
  position: absolute;
  top: 60px;
  right: -52px;
  transform: rotate(-8deg);
  background: #FFFB7D;
  border: 1px solid #e6e04d;
  box-shadow: 2px 4px 6px rgba(0,0,0,0.4);
  font-family: "Shadows Into Light", "Comic Sans MS", cursive;
  font-size: 1em;
  color: #222;
  padding: 0.8em 1em;
  width: 120px;
  text-align: center;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
}

/* --- Counter placeholder --- */
.counter {
  position: absolute;
  bottom: 40px;
  left: 95px;
  background: #111;
  color: #0f0;
  font-family: "Courier New", monospace;
  font-size: 0.7em;
  padding: 4px 8px;
  border: 1px solid #0f0;
  box-shadow: inset 0 0 6px rgba(0,255,0,0.4);
}

/* --- Contact Form --- */
form {
  max-width: 450px;
  margin: 0 auto;
}

.contact-table {
  margin: 0 auto;
  border-collapse: collapse;
  width: 450px;
}

.contact-table td {
  padding: 0.5em;
  vertical-align: top;
}

.contact-table label {
  color: #0f0;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.contact-table input,
.contact-table textarea {
  background: #000;
  border: 1px solid #0f0;
  color: #ccc;
  font-family: "Courier New", monospace;
  padding: 0.4em;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.contact-table input:focus,
.contact-table textarea:focus {
  outline: none;
  border-color: #6f6;
  box-shadow: 0 0 8px rgba(0,255,0,0.6);
}

.contact-table button,
#status button {
  background: #000;
  border: 1px solid #0f0;
  color: #0f0;
  font-family: "Courier New", monospace;
  padding: 0.5em 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1em;
}
.contact-table button:hover,
#status button:hover {
  background: #0f0;
  color: #000;
}

/* Status message styling */
#status {
  font-family: "Courier New", monospace;
  margin-top: 0.5em;
  text-align: left;
  white-space: pre-wrap;
}
#status.success { color: #0f0; }
#status.error   { color: #f33; }
#status.warning { color: #ff0; }

#status::before {
  content: "vin@wtf:~$ ";
  color: #0f0;
}
#status:empty::before {
  content: none;
}

/* --- Home button click area over LED --- */
.home-button {
  position: absolute;
  bottom: -51px;   /* adjust vertically */
  left: 480px;    /* adjust horizontally */
  width: 13px;
  height: 4px;
  display: block;
  cursor: pointer;
  z-index: 2;
}

.home-button:hover {
  box-shadow: 0 0 8px 3px rgba(0, 255, 0, 0.7);
  border-radius: 3px;
}

/* Tape label as link */
.home-label {
  position: absolute;
  bottom: -63px;
  left: 431px;
  background: rgba(255, 255, 200, 0.8);
  color: #111;
  font-family: "Shadows Into Light", "Comic Sans MS", cursive;
  font-size: 0.8em;
  padding: 2px 6px;
  border-radius: 2px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.4);
  transform: rotate(-5deg);
  text-decoration: none;
  z-index: 2;
  transition: all 0.2s ease;
}

.home-label:hover {
  color: #0f0;
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.6);
}

.home-label:hover:active {
  transform: rotate(-5deg) !important;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.4) !important;
}

/* --- Obvious Box (debug placeholder) --- */
.obvious-box {
  margin: 2em auto;
  padding: 1em;
  max-width: 400px;
  border: 2px dashed #f33;
  background: rgba(255, 200, 200, 0.1);
  font-family: "Courier New", monospace;
  color: #f33;
  text-align: center;
}

/* --- Link styling inside CRT screen content --- */
.screen p a,
.screen li a {
  color: #0f0;
  text-decoration: none;
  transition: none;
}

.screen p a:hover,
.screen li a:hover {
  color: #6f6;
  text-decoration: underline;
}

.screen p a:visited,
.screen li a:visited {
  color: #33cc33;
}

/* --- Submenu --- */
.submenu {
  text-align: center;
  margin-bottom: 0.5em;
  font-family: "Courier New", monospace;
}

.submenu a,
.submenu a:link,
.submenu a:visited {
  color: #0f0 !important;
  text-decoration: none;
  margin: 0 0.5em;
  font-size: 0.9em;
}

.submenu a:hover {
  color: #6f6 !important;
  text-decoration: underline;
}

/* --- HR styled for CRT vibe --- */
hr {
  border: none;
  border-top: 1px solid #0f0;
  margin: 0.5em auto 1em auto;
  width: 90%;
  opacity: 0.5;
}
#top {
  scroll-margin-top: 1.5em;  /* adjust as needed */
  display: block;            /* makes sure it's treated as a block target */
}

/* --- Text helpers --- */
.snote {
  font-size: 0.8em;
  color: #999; /* soft gray footnote style */
}

.highlight {
  color: #fff;       /* bright white CRT glow */
  font-weight: bold;
}

/* --- Text readability tweaks --- */
.screen p,
.screen li {
  line-height: 1.3 !important;
}

.screen ul li {
  margin-bottom: 0.4em !important;
}

/* --- Cat Gallery CRT Frames --- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.thumb-frame, .photo-frame {
  background: #000;
  border: 2px solid #0f0;
  border-radius: 8px;
  box-shadow: inset 0 0 15px rgba(0, 255, 100, 0.2);
  padding: 10px;
  text-align: center;
  max-width: 250px;
}

.thumb-frame img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid #0f0;
}

.photo-frame img {
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
  border: 2px solid #0f0;
}

.caption {
  font-size: 0.9em;
  margin-top: 0.5em;
  color: #ccc;
}
