/* 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." */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  margin: 0;
  font-family: 'Press Start 2P', monospace;
  background: linear-gradient(135deg, #ffccff, #ccffff);
  color: #333;
}

body::after {
  animation: flicker 1.5s infinite;
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 9999;
}
@keyframes flicker {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.2; }
}


.layout {
  display: grid;
  grid-template-areas:
    "header header"
    "sidebar main"
    "footer footer";
  grid-template-columns: 180px 1fr;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  gap: 6px;
  padding: 8px;
}

header, aside, main, footer {
  border: 2px solid #000;
  background: #fff8fc;
  padding: 12px;
  box-shadow: 3px 3px 0 #000;
  text-shadow: 1px 1px 0 #fff;
}

header   { grid-area: header; background: linear-gradient(to right, #ffccff, #ff99cc); }
aside    { grid-area: sidebar; background: #e0f7ff; }
main     { grid-area: main; background: #ffffe0; }
footer   { grid-area: footer; background: #d0ffd0; font-size: 0.75em; text-align: center; }

.post-paragraph {
  font-size: 16px;
  line-height: 1.6;
  font-family: 'VT323', monospace;
}

.post-paragraph:lang(zh),
.post-paragraph span,
.post-paragraph strong {
  font-family: 'Noto Sans SC', sans-serif;
}

a {
  text-decoration: underline;
}
