/* ===========================================
   andhop.dev - Early 2000s Web Style
   =========================================== */

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  background-color: #336699;
  color: #000000;
}

.container {
  width: 760px;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

/* Header bar */
header {
  background: #003366;
  border: 1px solid #000000;
  padding: 8px 12px;
  margin-bottom: 10px;
}

header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
}

header h1 a {
  color: #ffffff;
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: underline;
}

/* Navigation bar */
nav {
  background: #eeeeee;
  border: 1px solid #999999;
  padding: 6px 10px;
  margin-bottom: 10px;
}

nav a {
  color: #003366;
  text-decoration: none;
  padding: 2px 8px;
  margin-right: 4px;
  font-weight: bold;
  font-size: 10px;
}

nav a:hover {
  color: #ff6600;
  text-decoration: underline;
}

/* Main content panels */
.panel {
  background: #ffffff;
  border: 1px solid #999999;
  padding: 12px;
  margin-bottom: 10px;
}

.panel h2 {
  color: #003366;
  font-size: 14px;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 4px;
  margin: 0 0 10px 0;
}

.panel p {
  line-height: 1.5;
  margin: 8px 0;
}

.panel ul {
  margin: 8px 0;
  padding-left: 20px;
}

.panel li {
  margin-bottom: 4px;
}

.panel a {
  color: #0066cc;
}

.panel a:visited {
  color: #663399;
}

.panel a:hover {
  color: #ff6600;
}

/* Blog post list */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  padding: 8px;
  margin-bottom: 8px;
  background: #f5f5f5;
  border: 1px solid #cccccc;
  border-left: 3px solid #ff6600;
}

.post-list a {
  color: #003366;
  text-decoration: none;
  font-weight: bold;
}

.post-list a:hover {
  color: #ff6600;
  text-decoration: underline;
}

.post-date {
  color: #666666;
  font-size: 10px;
}

.post-description {
  color: #333333;
  margin-top: 4px;
}

/* Blog post content */
.post-content {
  line-height: 1.6;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  color: #003366;
}

.post-content h2 {
  font-size: 13px;
  border-bottom: 1px dotted #cccccc;
  padding-bottom: 3px;
}

.post-content h3 {
  font-size: 12px;
}

.post-content a {
  color: #0066cc;
}

.post-content a:visited {
  color: #663399;
}

.post-content a:hover {
  color: #ff6600;
}

.post-content code {
  background: #f0f0f0;
  padding: 1px 4px;
  border: 1px solid #cccccc;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.post-content pre {
  background: #f8f8f8;
  border: 1px solid #cccccc;
  padding: 10px;
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.post-content pre code {
  background: transparent;
  border: none;
  padding: 0;
}

.post-content ul {
  margin: 8px 0;
  padding-left: 20px;
}

.post-content li {
  margin-bottom: 4px;
}

.post-content hr {
  border: none;
  border-top: 1px solid #cccccc;
  margin: 15px 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid #999999;
  padding: 2px;
  background: #ffffff;
  display: block;
  margin: 10px 0;
  box-sizing: border-box;
}

/* Post header */
.post-header {
  background: #f5f5f5;
  border: 1px solid #cccccc;
  padding: 10px;
  margin-bottom: 10px;
}

.post-header h1 {
  margin: 0 0 6px 0;
  color: #003366;
  font-size: 16px;
}

.post-header .meta {
  color: #666666;
  font-size: 10px;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 10px;
  background: #003366;
  padding: 4px 8px;
  border: 1px solid #000000;
}

.back-link:hover {
  background: #004488;
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: auto;
  background: #003366;
  border: 1px solid #000000;
  padding: 10px;
  text-align: center;
}

.footer p {
  margin: 4px 0;
  color: #ffffff;
  font-size: 10px;
}

/* Visitor counter */
.counter {
  font-family: "Courier New", Courier, monospace;
  background: #000000;
  color: #00ff00;
  padding: 2px 8px;
  border: 1px inset #666666;
  font-size: 11px;
}

/* Welcome banner with scrolling text */
.welcome-banner {
  background: #003366;
  padding: 4px;
  margin-bottom: 10px;
  border: 1px solid #000000;
  overflow: hidden;
}

.marquee-text {
  color: #ffcc00;
  font-weight: bold;
  font-size: 12px;
  display: inline-block;
  white-space: nowrap;
  animation: marquee-bounce 8s linear infinite alternate;
}

@keyframes marquee-bounce {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(760px - 100% - 8px));
  }
}

/* Site info box */
.site-info {
  background: #ffffcc;
  border: 1px solid #cccc99;
  padding: 8px;
  margin: 10px 0;
  font-size: 10px;
}

/* Update notice */
.update-notice {
  background: #fff8dc;
  border: 1px dashed #cc9900;
  padding: 6px;
  margin-bottom: 10px;
  font-size: 10px;
  color: #666600;
}

/* Weather grid */
.weather-locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.weather-location h3 {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #003366;
  border-bottom: 1px dotted #cccccc;
  padding-bottom: 4px;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.weather-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.weather-item {
  background: #f5f5f5;
  border: 1px solid #cccccc;
  padding: 8px;
  text-align: center;
}

.weather-label {
  display: block;
  color: #666666;
  font-size: 9px;
  margin-bottom: 2px;
}

.weather-value {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  color: #003366;
}

.weather-updated {
  color: #666666;
  font-size: 9px;
  margin: 4px 0 0 0;
  text-align: right;
}
