body {
  margin: 0;
  font-family: '04b_30__';
  background: #000000;
  color: #fff;
  cursor: url('/assets/img/cursor.png'), default;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  font-size: 24px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 12px #a584e4);
}

::selection {
  background-color:#c1aee6;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
  }


a, a:visited, a:hover, a:active {
  cursor: url('/assets/img/pointer.png'), pointer;
  color: #ffcc00;
  text-decoration: none;
}

.site-header {
  background: #20232a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.title-link {
color: white;
text-decoration: none;
}

.menu-button-open {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  margin-right: 2rem;
  flex-shrink: 0;
}

/* ADDED: Rule to make the marquee fill the available space */
.site-header-marquee {
  flex-grow: 1;
  min-width: 0;
}

.star {
  position: absolute;
  top: -10px;
  background: #ffcc00;
  border-radius: 50%;
  
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;

  will-change: transform, opacity;
  box-shadow: 0 0 5px 2px rgba(255, 204, 0, 0.7);
}

/* Keyframes for the falling animation */
@keyframes fall {
  from {
      /* Start with full size and opacity */
      transform: translateY(0) scale(1);
      opacity: 1;
  }
  to {
      /* Fall 150px downwards while shrinking and fading out */
      transform: translateY(150px) scale(0.3);
      opacity: 0;
  }
}

.site-footer {
  background: #20232a;
  color: white;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: url('/assets/img/cursor.png'), default;
}

.menu-button-open {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  display: none;
}

.sidebar li a {
  padding-top: 10px;
  padding-bottom: 10px;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.title-link {
  color: #a584e4;
  text-decoration: none;
}

.sidebar {
  background: #333;
  color: white;
  padding: 1rem;
  min-width: 250px;
  transition: transform 0.3s ease;
  transform: none;
  background: url('/assets/img/observatory.gif');
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sidebar-inner nav {
  flex-shrink: 0;
}

ul.menu-items li {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

#music-player {
  flex-grow: 1;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
}

#chattable {
  width: 100%;
  height: 600px;
  flex-grow: 1;
  display: flex;
  border-radius: 16px;
  border: 2px solid #a584e4;
  box-shadow: 0 0 10px #a584e4;
}

.menu-button-open {
  display: none;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

.sidebar nav ul li a {
  color: white;
  text-decoration: none;
}

.menu-hoverable:hover {
  border-radius: 16px;
  background-color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-selected {
  border-radius: 16px;
  background-color: #20232a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-selected .ajax-link {
  color: #ffcc00;
}

li.menu-hoverable:hover::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  background: url('/assets/img/star.png') no-repeat center center;
  background-size: contain;
  image-rendering: pixelated;
  animation: fadeStar 3s linear forwards;
  vertical-align: middle;
  position: relative;
  top: 2px;
}

@keyframes fadeStar {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.content {
  flex: 1;
  padding: 2rem;
  position: relative;
  background-image: url('/assets/img/star-background2.gif');
  background-repeat: repeat;
  background-attachment: scroll;
  /* background-size: cover; */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-shadow: 0 0 6px #a584e4;
}

.content-frame {
  min-width: 320px;
  max-width: 1200px;
  width: 100%;
  min-height: 300px;
  padding: 1.5rem;
  box-sizing: border-box;
  background: #111;
  border-radius: 16px;
  box-shadow: 0 0 12px #a584e4;
}

.content-inner {
  font-size: 1rem;
  line-height: 1.5;
}

.shinobu-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0rem;
  z-index: 10;
}

.shinobu-wrapper img {
  max-width: 150px;
  height: auto;
}

.sprite {
  border-radius: 16px;
  background-image: url('/assets/img/chat-back.gif');
  background-repeat: no-repeat;
  background-size: cover;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding-bottom: 20px;
}


.responsive-img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
}

.centered-img {
  text-align: center;
}

#contentDisplay {
  border-radius: 16px;
  background-color: #20232a;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #a584e4;
  box-shadow: 0 0 12px #a584e4;
  min-height: 100px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.page-titles {
  color: #a584e4;
}

.post-select {
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
  padding: 10px;
  margin: 20px auto;
  display: block;

  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid #a584e4;
  border-radius: 16px;
  box-shadow: 0 0 12px #a584e4;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;

  background-image: url('data:image/svg+xml;utf8,<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position-x: 95%;
  background-position-y: 50%;

  font-family: '04b_30__';
  src: url('/assets/fonts/04b_30__-webfont.woff') format('woff');
}

.post-select:hover {
  border-color: #ffcc00;
  box-shadow: 0 0 5px #ffcc00;
}

.post-select option {
  background-color: #001f3f;
  color: #ffcc00;
  padding: 8px;
}

.code-container {
  max-width: 100%;
  overflow-x: auto;
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.code-container pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.chat-background-container {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('/assets/img/star-background.gif');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #000;
}

#picture-glow {
    border: 2px solid #a584e4;
    box-shadow: 0 0 10px #a584e4;
}

.glow {
  background-color: #000033;
  border: 2px solid #a584e4;
  border-radius: 5px;
  padding: 8px 12px;
  font-family: '04b_30__', monospace;
  font-size: 1.1em;
  color: #ffcc00;
  text-shadow: 0 0 5px #ffcc00;
  box-shadow: 0 0 10px #a584e4;
}


/* Mobile overrides */
@media (max-width: 768px) {
  .menu-button-open {
    display: block;
  }

  .shinobu-wrapper {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    z-index: 1000;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .layout {
    flex-direction: column;
  }

  .content {
    padding: 1rem;
  }
  
  #music-player {
    padding-top: 0%;
  }
}