@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  background-color: black;
  color: white;background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.18'/%3E%3C/svg%3E");
}

body {
  font-family: 'Roboto Mono', monospace;
  margin: 0;
  padding: 20px;
  animation: static-noise 0.4s step-end infinite;
}

@keyframes terminal-flicker {

  0%,
  12%,
  14%,
  35%,
  37%,
  62%,
  64%,
  88%,
  90%,
  100% {
    opacity: 1;
  }

  13%,
  36%,
  89% {
    opacity: 0.4;
  }

  63% {
    opacity: 0.1;
  }
}

@keyframes static-noise {
  0%, 100% { background-position: 0 0; }
  10% { background-position: -10px -10px; }
  20% { background-position: 10px 20px; }
  30% { background-position: -20px -20px; }
  40% { background-position: 20px 10px; }
  50% { background-position: -10px 20px; }
  60% { background-position: 20px -10px; }
  70% { background-position: -20px 10px; }
  80% { background-position: 10px -20px; }
  90% { background-position: 20px 20px; }
}

.login-container {
  margin-top: 20px;
}

#password {
  font-family: 'Roboto Mono', monospace;
  padding: 8px;
  font-size: 1em;
}

button {
  font-family: 'Roboto Mono', monospace;
  padding: 8px 12px;
  font-size: 1em;
  cursor: pointer;
}

.centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 150px);
}

.error {
  color: red;
  font-weight: bold;
  margin-top: 10px;
}

/* --- Underground Blog Styles --- */

.breadcrumb {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9em;
  border-bottom: 1px dashed white;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #bbb;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.blog-header {
  text-align: center;
  margin-bottom: 30px;
}

.blog-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.blog-main {
  flex: 3;
  min-width: 250px;
}

.blog-sidebar {
  flex: 1;
  min-width: 200px;
  border-right: 2px dashed white;
  padding-right: 20px;
}

.blog-sidebar ul {
  list-style-type: none;
  padding-right: 0;
}

.blog-sidebar a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.blog-sidebar a:hover {
  background-color: white;
  color: white;
}

.blog-post {
  margin-bottom: 40px;
}

.blog-post h2 {
  font-size: 1.2em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.date,
.status-text {
  font-family: 'Roboto Mono', monospace;
  color: #bbb;
  font-size: 0.9em;
}

.error-message {
  font-family: 'Roboto Mono', monospace;
  color: #a10000;
}

/* Mobile adjustments for the sidebar */
@media (max-width: 800px) {
  .blog-layout {
    flex-direction: column;
  }

  .blog-sidebar {
    border-right: none;
    border-top: 2px dashed white;
    padding-right: 0;
    padding-top: 20px;
  }
}
