/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.spacer {
  height: 1rem;
}

body {
  background-color: #121212;
  background-image:
    linear-gradient(rgba(150,150,150,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,150,150,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  color: #ccc;
  font-family: 'Courier New', Courier, monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow-x: hidden;
  user-select: none;
}

/* Full width header */
header {
  text-align: center;
  padding-bottom: 0.3rem;
}

header h1 {
  font-size: 2rem;
  color: #ddd;
  text-shadow: 0 0 4px #bbb;
}

/* Matinee text below title */
#matinee-container {
  overflow: hidden;
  color: #ddd;
  font-size: 0.7rem;
  height: 1.5rem;
  position: relative;
  margin-top: 0.5rem;
  user-select: none;
}

#matinee-text {
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: matinee-scroll 15s linear infinite;
  padding-left: 100%;
  text-shadow: 0 0 4px #aaa;
}

@keyframes matinee-scroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* Nav buttons */
nav {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

nav a {
  text-decoration: none;
  color: #ccc;
  border: 1px solid #aaa;
  padding: 8px 12px;
  margin: 0 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: inset 0 0 5px #aaa;
  text-shadow: 0 0 4px #ccc;
  user-select: none;
  cursor: pointer;
}

nav a:hover {
  background-color: #ccc;
  color: #121212;
  box-shadow: none;
  text-shadow: none;
}

/* Horizontal line between nav and main columns */
hr.nav-separator {
  border: none;
  border-top: 1px solid #888;
  margin: 0 0 1rem 0;
}

/* Main container with 3 columns arranged left-center-right */
main {
  display: flex;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
  flex-grow: 1;
  align-items: flex-start;
  min-height: 600px; /* Ensure enough height for scroll */
}

/* Left column: smaller */
#left-column {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
}

/* Profile/About container box */
#profile-about-container {
  background-color: #121212;
  border: 1px solid #666;
  padding: 1rem;
  box-shadow: 0 0 6px #66666644 inset;
  color: #bbb;
  text-shadow: 0 0 3px #999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Profile pic and status side by side inside about container */
#profile-status-box {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Profile pic box */
#profile-pic-box {
  width: 100px;
  height: 100px;
  background-color: #222;
  border: 1px solid #555;
  box-shadow: inset 0 0 5px #555;
  flex-shrink: 0;

}  
  #profile-pic-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures it fills without distortion */
  border-radius: 2px; /* optional: softens corners */

}

/* Status box */
#status-box {
  background-color: #1a1a1a;
  border: 1px solid #555;
  padding: 0.5rem 1rem;
  box-shadow: inset 0 0 5px #555;
  color: #ccc;
  font-size: 0.75rem;
  text-align: center;
  flex-shrink: 0;
  min-width: 80px;
}

#status-box h3 {
  margin-bottom: 0.3rem;
  font-weight: normal;
  text-shadow: 0 0 3px #777;
}

/* About section inside profile-about container */
#about h2 {
  margin-bottom: 0.5rem;
  color: #ddd;
  text-shadow: 0 0 3px #999;
}

#about p {
  font-size: 0.7rem;
  line-height: 1.4;
}

/* More links box under profile-about */
#more-links {
  background-color: #121212;
  border: 1px solid #666;
  padding: 1rem;
  box-shadow: 0 0 6px #66666644 inset;
  color: #bbb;
  text-shadow: 0 0 3px #999;
  font-size: 0.7rem;
}

#more-links h2 {
  margin-bottom: 0.5rem;
  color: #ddd;
}

#more-links ul {
  list-style: disc inside;
}

#more-links a {
  color: #bbb;
  text-decoration: underline;
}

#more-links a:hover {
  color: #eee;
}

/* Center column: widest */
#main-content {
  flex: 3 1 450px;
  background-color: #121212;
  padding: 1rem;
  border: 1px solid #888;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #ccc;
  box-shadow: 0 0 8px #88888822 inset;
  min-height: 600px;
}

/* Center headings */
#main-content h2 {
  color: #ddd;
  margin-bottom: 1rem;
  text-shadow: 0 0 3px #aaa;
}

/* Right column (Updates + Guestbook) */
#right-column {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  border: 1px solid #666;
  background-color: #121212;
  box-shadow: 0 0 6px #66666644 inset;
  color: #bbb;
  text-shadow: 0 0 3px #999;
  padding: 1rem;
  min-height: 600px;
  max-height: 600px;
  overflow: hidden;
}

#updates {
  overflow-y: auto;
  flex-grow: 1;
  margin-bottom: 0.5rem;
}

#updates h2 {
  margin-bottom: 0.5rem;
  color: #ddd;
}

#updates ul {
  list-style: none;
  font-size: 0.6rem;
  line-height: 1.3;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

#updates li {
  margin-bottom: 0.5rem;
  border-bottom: 1px dotted #888;
  padding-bottom: 0.3rem;
}

/* Guestbook always pinned at bottom of column */
#guestbook-link {
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.75rem 0 0.25rem 0;
  text-align: center;
  border-top: 1px solid #888;
  background: #121212;
  box-shadow: inset 0 1px 0 #222;
}

#guestbook-link a {
  text-decoration: none;
  color: #bbb;
  font-weight: bold;
  border: 1px solid #aaa;
  padding: 0.5rem 1.5rem;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-shadow: 0 0 3px #bbb;
  border-radius: 4px;
  background-color: #1a1a1a;
  box-shadow: inset 0 0 5px #555;
  cursor: pointer;
}

#guestbook-link a:hover {
  background-color: #bbb;
  color: #121212;
  text-shadow: none;
}


/* Footer */
footer {
  text-align: center;
  font-size: 0.5rem;
  padding: 1rem;
  border-top: 1px solid #444;
  margin-top: 1rem;
  color: #555;
  font-family: 'Courier New', Courier, monospace;
  user-select: none;
}

/*Blinkie page */
/* Layout for blinkie library page */
main.blinkie-layout {
  display: flex;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
  flex-grow: 1;
  align-items: flex-start;
  min-height: 600px;
}

/* Main wide column (center + left from index) */
#blinkie-main {
  flex: 3 1 600px;
  background-color: #121212;
  padding: 1rem;
  border: 1px solid #888;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #ccc;
  box-shadow: 0 0 8px #88888822 inset;
}

#blinkie-main h2 {
  color: #ddd;
  margin-bottom: 1rem;
  text-shadow: 0 0 3px #aaa;
}

.category {
  margin-top: 2rem;
}

.category h3 {
  font-size: 1rem;
  color: #ccc;
  border-bottom: 1px solid #555;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 2px #999;
}

.subcat {
  margin-bottom: 1rem;
}

.subcat h4 {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: #aaa;
  text-shadow: 0 0 2px #777;
}

/* Grid layout for blinkies */
.blinkie-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blinkie-grid img {
  width: 150px;
  height: 20px;
  border: 1px solid #444;
  box-shadow: 0 0 4px #333;
}

/* Right sidebar */
#blinkie-sidebar {
  flex: 1 1 280px;
  background-color: #121212;
  border: 1px solid #666;
  padding: 1rem;
  box-shadow: 0 0 6px #66666644 inset;
  color: #bbb;
  text-shadow: 0 0 3px #999;
  font-size: 0.7rem;
}

#blinkie-sidebar h2 {
  margin-bottom: 0.5rem;
  color: #ddd;
  text-shadow: 0 0 3px #aaa;
}

#blinkie-sidebar ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

#blinkie-sidebar li {
  margin-bottom: 0.5rem;
}

#blinkie-sidebar a {
  color: #bbb;
  text-decoration: underline;
}

#blinkie-sidebar a:hover {
  color: #eee;
}

#blinkie-sidebar h3 {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  color: #ccc;
}

#blinkie-sidebar p {
  margin-bottom: 0.5rem;
}

/* One-column guestbook layout */
main.single-column {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  flex-grow: 1;
}

#guestbook-container {
  background-color: #121212;
  border: 1px solid #888;
  box-shadow: 0 0 8px #88888822 inset;
  padding: 1.5rem;
  color: #ccc;
  font-size: 0.75rem;
  text-shadow: 0 0 3px #999;
}

#guestbook-container h2 {
  color: #ddd;
  text-shadow: 0 0 4px #aaa;
  margin-bottom: 1rem;
}

#guestbook-container p {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.guestbook-placeholder {
  background: #1a1a1a;
  border: 1px dashed #666;
  padding: 2rem;
  text-align: center;
  font-style: italic;
  color: #888;
}
