/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html {
  height: 100%;
  font-family: sans-serif;
}

/* Full-height column: navbar on top, .page fills the rest. The page only
   scrolls if the content is taller than the viewport. */
body {
  background-color: #121212;
  color: oklch(55.1% 0.027 264.364);
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.posts {
  width: 600px;
}

.post-container {
  display: flex;
  align-items: center;       /* Centers vertically */
  justify-content: center;   /* Centers horizontally (optional) */
  flex: 1;                   /* Fills the space left under the navbar */
}

.post {
  margin-bottom: 4rem;
  min-width: 550px;
}

a:link { color: rgb(107, 201, 251); }
a:visited { color: #6d4b8d; }
a:hover { color: #ffffff; }
a:active { color: #ff4040; text-decoration:none; font-weight:normal; }

/* Navbar container setup */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #222; /* Dark background */
  padding: 15px 15px;
  position: sticky;       /* Stays at the top while scrolling */
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

/* Remove list bullets and align horizontally */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px; /* Spacing between links */
  padding-inline-start: unset;

}

/* Style individual link items */
.nav-links a {
  color: #efefef;
  text-decoration: none; /* Removes underline */
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 2px;
  transition: all 0.3s ease; /* Smooth hover effect */
}

/* Hover state for links */
.nav-links a:hover {
  background-color: #444;
}

/* Highlight style for the current/active page */
.nav-links a.active {
  background-color: #4B4038;
  color: #fff;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }  /* -100% of the text's own width (padding included) */
}

@media (prefers-reduced-motion: reduce) {
  .marquee-text {
    animation: none;
    padding-left: 0;
  }
}

.about {
  max-width: 600px;
  line-height: 2.2rem;  
  font-size: 24px;
}
