/* alex-links styles */

body {
  background-color: #0d0d0d;
  color: #f4efe5ff;
  font-family: "Courier New", Courier, monospace;
}

/* CRT scanlines overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

article {
  position: relative; /* anchor for the absolutely positioned image */
  border: 2px dashed #7ec8a0;
  padding: 1rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

article:hover {
  border-color: #9fc87eff;
  box-shadow: 0 0 10px #7ec8a0;
}

.card-img {
  position: absolute;
  right: calc(100% + 1rem); /* 1rem gap from the left edge */
  top: 5%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: wobble 2s infinite ease-in-out;
  width: 200px;
}

article:hover .card-img {
  opacity: 1;
}

@keyframes wobble {
  0%   { transform: rotate(-3deg); }
  50%  { transform: rotate(3deg); }
  100% { transform: rotate(-3deg); }
}

main {
  max-width: 600px;
  margin: 0 auto;
}

/* === title and link styling */

h1 {
  text-align: center;
  padding-top: 2rem;

  text-shadow:  0 0 3px #c6c6c6ff;
}

a {
  color: #9fc87eff;
  text-decoration: none;
}

a::before {
  content: "> ";
}

a::after {
  content: "_";
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #7ec8a0;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: #7ec8a0;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

header p {
  margin-top: 0.2rem;
  color: #c6c6c6ff;
  font-size: 0.85rem;
}

footer {
  text-align: center;
  margin-top: 4rem;
  border-top: 1px solid #7ec8a0;
  padding-top: 1rem;
}