/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */
/* 8-bit Bento Retro Theme */
body {
  background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
  color: #00ffcc;
  font-family: "Press Start 2P", monospace;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  text-shadow: 0 0 5px #00ffc8;
}

header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  animation: flicker 2s infinite alternate;
}

h1 {
  font-size: 1.5rem;
  letter-spacing: 3px;
}

.subtitle {
  font-size: 0.6rem;
  color: #ff00ff;
  text-shadow: 0 0 6px #ff00ff;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem 2rem;
}

.bento-box {
  border: 3px solid #00ffcc;
  background: rgba(10, 10, 10, 0.9);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 15px #00ffcc;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.bento-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #ff00ff;
}

h2 {
  font-size: 0.8rem;
  color: #ff00ff;
  text-shadow: 0 0 4px #ff00ff;
}

p, ul {
  font-size: 0.6rem;
  line-height: 1.6;
}

a {
  color: #00ffcc;
  text-decoration: none;
  border-bottom: 1px dashed #00ffcc;
}

a:hover {
  color: #ff00ff;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.5rem;
  color: #555;
}

/* CRT Scanline effect */
.scanlines::before,
.scanlines::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scanlines::before {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0px,
    rgba(0, 0, 0, 0.2) 1px,
    transparent 2px
  );
  z-index: 10;
  mix-blend-mode: multiply;
}

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