@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&amp;display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@keyframes matrix {
  from {
    text-shadow: 0 0 5px #0F0;
  }
  to {
    text-shadow: 0 0 0 #0F0;
  }
}
@keyframes hover {
    from {
      transform: rotate(-20deg) scale(1);
    }
    to {
      transform: rotate(-20deg) scale(1.5);
    }
}
@keyframes rgb {
  0% {
    background: red;
  }
  14% {
    background: orange;
  }
  28% {
    background: yellow;
  }
  42% {
    background: green;
  }
  56% {
    background: blue;
  }
  70% {
    background: indigo;
  }
  84% {
    background: violet;
  }
  100% {
    background: red;
  }
}
@keyframes charged {
  0% {
    text-shadow: 0 0 0 #0FF;
  }
  100% {
    text-shadow: 0 0 5px #0FF;
  }
}
@keyframes glitched-anim-1 {
    0% { clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); }
    20% { clip-path: polygon(0 15%, 100% 15%, 100% 48%, 0 48%); }
    40% { clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); }
    60% { clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); }
    80% { clip-path: polygon(0 33%, 100% 33%, 100% 66%, 0 66%); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); }
}

@keyframes glitched-anim-2 {
    0% { clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); }
    25% { clip-path: polygon(0 15%, 100% 15%, 100% 48%, 0 48%); }
    50% { clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); }
    75% { clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); }
    100% { clip-path: polygon(0 15%, 100% 15%, 100% 48%, 0 48%); }
}

@keyframes rainbowName {
  0%   { background-position: 0% 50%; }
  100%  { background-position: 200% 50%; }
}

:root {
    --retro-gray: #c0c0c0;
    --retro-dark: #000080;
    --neon-green: #00ff00;
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
}

body, html {
    overscroll-behavior: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000033;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 4px 4px;
    font-family: "MS Sans Serif", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.3;
}

.container {
    max-width: 1100px;
    margin: 8px auto;
    border: 4px outset #c0c0c0;
    background-color: #000033;
    box-shadow: 4px 4px 0 #000000;
}

.header {
    background: linear-gradient(#000080, #000033);
    padding: 8px 12px;
    border-bottom: 3px solid #c0c0c0;
    text-align: center;
    position: relative;
}

.logo {
    text-decoration: none;
    font-family: "Press Start 2P", system-ui;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 3px 3px 0 #ff0000, -1px -1px 0 #00ffff;
    margin: 0;
    letter-spacing: 3px;
}

.tagline {
    font-size: 11px;
    color: #00ffff;
    margin: 2px 0 6px;
    font-weight: bold;
}

.marquee-container, .trackListWrapper {
    background-color: #000000;
    border: 2px inset #666;
    margin: 4px 0;
    overflow: hidden;
    position: relative;
    font-size: 15pt;
}

.trackList {
    max-height: 100px;
    overflow-y: auto;
    overscroll-behavior: none;
}

#interactiveTrackList {
    max-height: 60vh;
    overflow: auto;
}

.trackList::-webkit-scrollbar {
    width: 4px;
}
.trackList::-webkit-scrollbar-track {
    background: #000000;
}
.trackList::-webkit-scrollbar-thumb {
    background: #ffff00;
    border-radius: 5%;
}

#trackListHeader, #trackListSubheader {
    text-align: center;
    margin: 0;
    padding: 5px;
    background-color: #ffff00;
    color: #000;
    font-family: "Press Start 2P", system-ui;
}

#trackListSubheader {
    font-size: 6pt;
    display: flex;
    align-items: center;
    justify-content: center;
}

#trackListSubheader > span {
    margin: 0;
    width: 50%;
    text-align: left;
}

#trackListSubheader > span:nth-child(even) {
    text-align: right;
}

.track {
    font-size: 8pt;
    color: #ffff00;
    cursor: pointer;
    max-height: 250px;
    white-space: nowrap;
    margin: 3px 5px;
    text-align: right;
    position: relative;
}

.track:hover:before {
    content: " ";
    display: inline-block;
    height: 100%;
    width: 3px;
    border-top: solid 2px #ffff00;
    border-left: solid 2px #ffff00;
    border-bottom: solid 2px #ffff00;
    position: absolute;
    right: calc(100% - 1px);
    top: -3px;
}

.track:hover:after {
    content: " ";
    display: inline-block;
    height: 100%;
    width: 3px;
    border-top: solid 2px #ffff00;
    border-right: solid 2px #ffff00;
    border-bottom: solid 2px #ffff00;
    position: absolute;
    left: calc(100% - 1px);
    top: -3px;
}

.track > b {
    float: left;
}

.track.playing {
    color: #ffffff;
}

marquee {
    font-size: 11px;
    color: #ffff00;
    padding: 2px 0;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #c0c0c0;
    color: #000000;
    padding: 3px 8px;
    font-size: 11px;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #808080;
}

.main-layout {
    display: flex;
    gap: 8px;
    padding: 10px;
    background-color: #000033;
}

.panel {
    background-color: #c0c0c0;
    border: 3px outset #ffffff;
    color: #000000;
    padding: 6px;
    box-shadow: 2px 2px 0 #000000;
}

.panel h3 {
    margin: 0 0 6px 0;
    font-size: 13px;
    background-color: #000080;
    color: #ffffff;
    padding: 3px 6px;
    border: 2px inset #c0c0c0;
    text-align: center;
    font-weight: bold;
}

.panel p {
    margin: 0;
}

.panelContent {
    background:#e0e0e0;
    border: 2px inset #666;
    padding:4px;
    font-size: 10px;
}


.left-panel {
    width: 218px;
    flex-shrink: 0;
}

.chat-panel {
    flex: 1;
    min-width: 480px;
    display: flex;
    flex-direction: column;
}

.right-panel {
    width: 260px;
    flex-shrink: 0;
}

.chat-header {
    background-color: #000080;
    color: #ffffff;
    padding: 4px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px inset #c0c0c0;
    margin-bottom: 4px;
    position: relative;
}

#chattable {
    display: block;
    height: 90vh;
    max-height: 750px;
    overflow-y: auto;
    background-color: #000;
    border: 4px inset #666666;
    padding: 8px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    line-height: 1.35;
    color: #00ff00;
    box-shadow: inset 2px 2px 0 #333;
    border: none;
}

.message {
    margin: 4px 0;
    word-wrap: break-word;
}

.message .nick {
    font-weight: bold;
}

.action-message {
    color: #ffff00;
    font-style: italic;
}

.system-message {
    color: #ff9900;
    font-style: italic;
    text-align: center;
    margin: 6px 0;
}

button {
    background-color: #c0c0c0;
    border: 3px outset #ffffff;
    padding: 4px 12px;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    color: #000000;
    min-width: 60px;
}

button:active {
    border-style: inset;
    background-color: #aaaaaa;
}

.retro-btn {
    font-family: "MS Sans Serif", sans-serif;
}

#user-list {
    max-height: 300px;
}

.online-user {
    padding: 3px 6px;
    margin: 2px 0;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 12px;
}

.online-user:hover {
    background-color: #000080;
    color: #ffffff;
    border: 1px solid #00ffff;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 4px;
    border-bottom: 1px dotted #888;
    font-size: 12px;
}

.shop-item:last-child {
    border-bottom: none;
}

.item-name {
    flex: 1;
}

.item-price {
    color: #cc0000;
    font-weight: bold;
    margin: 0 6px;
    white-space: nowrap;
}

.achievement {
    padding: 5px;
    margin: 4px 0;
    border: 2px inset #888;
    background-color: #e0e0e0;
    font-size: 11px;
}

.achievement.unlocked {
    background-color: #ccffcc;
    border-color: #00aa00;
}

.achievement-header {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.points-display {
    font-family: "Press Start 2P", system-ui;
    color: #ffff00;
    background-color: #000000;
    padding: 2px 8px;
    border: 2px inset #666;
    display: inline-block;
}

.neon-text {
    text-shadow: 0 0 5px currentColor;
}

.footer {
    background-color: #000080;
    color: #c0c0c0;
    padding: 6px 12px;
    font-size: 10px;
    text-align: center;
    border-top: 3px solid #c0c0c0;
}


.footer a {
    color: inherit !important;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.footer a:hover {
    text-decoration: none;
}

.intro {
    font-family: "Press Start 2P", system-ui;
    font-size: 10px;
    color: #ff00ff;
}

.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #00ffff, transparent);
    margin: 8px 0;
}

.fake-window-title {
    background-color: #000080;
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    margin-bottom: 4px;
}

#giphyWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 7;
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
}
#giphyWidget {
  max-width: 300px;
  display: block;
  width: 90vw;
  margin: 10px;
  position: relative;
  padding-top: 30px;
   }
   #giphyInput {
    display: flex;
    align-items: center;
    justify-content: flex-start;
     padding: 5px;
     margin-right: 5px;
     width: 200px;
     position: absolute;
     bottom: 100%;
     left: 0;
     width: 100%;
     height: 20px;
   }
   .gif-effect {
     max-width: 150px;
     margin: 5px;
   }
   #giphyModal {
     display: none;
     position: fixed;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     background: white;
     border: 1px solid #ccc;
     padding: 20px;
     max-width: 500px;
     width: 90%;
     max-height: 400px;
     overflow-y: auto;
     box-shadow: 0 4px 8px rgba(0,0,0,0.2);
     z-index: 1000;
   }
   #giphyModal img {
     width: 100px;
     height: 100px;
     margin: 5px;
     cursor: pointer;
     object-fit: cover;
   }
   #giphyModal img:hover {
     border: 2px solid #007bff;
   }
   .modal-overlay {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0,0,0,0.5);
     z-index: 999;
   }
   .giphyImage {
    width: 200px;
    max-width: 100vw;
    max-height: 50vh;
    transition: opacity 250ms linear;
  }
  .giphyImage:hover {
    opacity: 0.5;
  }
  .inlineItem {
    display: inline-block;
    height: 12pt;
    width: 12pt;
  }
  
  .cookiesFalling, .moneyFalling {
    pointer-events: none;
  }

  /* Shop stuff  */
.fox-preview:after {
    content: " ";
    background-image: url(https://nightscape.xobyte.org/media/fox.gif);
    background-size: 100% 100%;
    display: inline-block;
    height: 12pt;
    width: 12pt;
    margin: 3px;
    border-radius: 50%;
}
.glitched, .glitched-preview {
  position: relative;
  color: #fff;
}
.glitched::before, .glitched::after, .glitched-preview::before, .glitched-preview::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0f172a;
}
.glitched::before, .glitched-preview::before {
  left: 2px;
  text-shadow: -2px 0 #ff00c1;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  animation: glitched-anim-1 1.2s infinite linear alternate-reverse;
}
.glitched::after, .glitched-preview::after {
  left: -2px;
  text-shadow: -2px 0 #00fff9;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  animation: glitched-anim-2 1.5s infinite linear alternate-reverse;
}
.red-preview, .redname-preview {
  color: #C00;
}
.orange-preview, .orangename-preview {
  color: #F70;
}
.yellow-preview, .yellowname-preview {
  color: #FF0;
}
.green-preview, .greenname-preview {
  color: #0C0;
}
.blue-preview, .bluename-preview {
  color: #55F;
}
.purple-preview, .purplename-preview {
  color: #F0F;
}
.flames-preview {
  flex: unset;
  background-image: url(https://nightscape.xobyte.org/media/flames.gif);
  background-size: 50px 100%;
  background-repeat: repeat-x;
  color: #F00;
  text-shadow: 0 0 3px #F70;
  padding-left: 5px !important;
  padding-right: 5px !important;
}
.water-preview {
  flex: unset;
  background-image: url(https://nightscape.xobyte.org/media/water.gif);
  background-size: 150px 150px;
  background-repeat: repeat-x;
  color: #FFF;
  text-shadow: 0 0 3px #CDF;
  padding-left: 5px !important;
  padding-right: 5px !important;
}
.electric-preview {
  color: #0FF !important;
  font-weight: bolder;
  animation: charged 250ms ease-in infinite;
}
.goldname-preview {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 400%;
  animation: move 5s ease infinite;
  background-image: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  font-weight: bold;
  text-shadow: 0 0 3px #B38728;
}
.prismatic-preview, .iridescent-preview {
  background-image: url(https://nightscape.xobyte.org/media/iridescent.gif);
  background-size: 50% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "Comic Sans";
}
.rainbows-preview {
    font-family: arial, sans-serif;
    background-image: linear-gradient(to left, 
          #ff0000, #ff7f00, #ffff00, #00ff00, 
          #00ffff, #0000ff, #8b00ff, #ff0000,
          #ff0000, #ff7f00, #ffff00, #00ff00, 
          #00ffff, #0000ff, #8b00ff);
    background-size: 200% 100%;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-color: #333;
    animation: rainbowName 4s linear infinite;
}
.secret-preview {
  filter: blur(3px);
  transition: filter 100ms ease;
}
.secret-preview:hover {
    filter: blur(0);
    cursor: zoom-in;
}
.pedro-preview:before, .pedroPfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/pedro.gif);
    background-size: 100% 100%;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}
.hatsunemiku-preview:before, .hatsunemikuPfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/hatsunemiku.png);
    background-size: 100% 100%;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}
.teto-preview:before, .tetoPfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/teto.jpg);
    background-size: 100% 100%;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}
.heartPfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/heart.gif);
    background-size: 100% 100%;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}
.goldstarPfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/goldstar.gif);
    background-size: 100% 100%;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}
.diamondPfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/diamond.gif);
    background-size: 100% 100%;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}
.smiley-preview:before, .smileypfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/smiley.png);
    background-size: 100% 100%;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}
.guyfawkes-preview:before, .guyfawkesPfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/guyfawkes.png);
    background-size: auto 80%;
    background-position: center;
    background-repeat: no-repeat;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}
.caboose-preview:before, .caboosePfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/caboose.png);
    background-size: 100% 100%;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}
.axolotl-preview:before, .axolotlPfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/axolotl.png);
    background-size: 100% 100%;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}
.weezer-preview:before, .weezerPfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/weezer.jpg);
    background-size: 100% 100%;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}
.vaporwaveSkull-preview:before, .vaporwaveSkullPfp-preview:before {
    content: " ";
    display: inline-block;
    background-image: url(https://nightscape.xobyte.org/media/vaporwave-skull.webp);
    background-size: 100% 100%;
    height: 25px;
    width: 25px;
    margin: 3px;
    border-radius: 50%;
    float: left;
    vertical-align: top;
}

.clickThrough {
    pointer-events: none;
}

#music-content * {
    box-sizing: border-box;
}

.album-art {
    width: 65px;
    height: 65px;
    background-color: #000080;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffff00;
    font-size: 30px;
    position: relative;
}

.album-art:after {
    content: " ";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url(/media/eq.gif);
    background-size: 90% 90%;
    background-position: center;
    filter: grayscale();
}

.bevel-button {
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    color: black;
}

.bevel-button:active {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.progress-container {
    margin: 8px 0;
}

.progress-bar {
    height: 5px;
    background: #ffffff;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #0000a0;
    width: 0;
    position: relative;
}

.time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 3px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 6px 0;
}

.transport-btn {
    width: 25px;
    height: 25px;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

.transport-btn:active {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    display: flex;
    margin-top: 10px;
    font-family: "Press Start 2P", system-ui;
    accent-color: #000080;
}
#volume-slider {
    -webkit-appearance: none;
    flex: 1;
    height: 3px;
    background: #a0a0a0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #808080;
    border-right: 1px solid #808080;
    outline: none;
    cursor: pointer;
}
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 16px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
    cursor: grab;
}

.playlist-panel {
    background: #ffffff;
    border: 2px solid #000000;
    max-height: 225px;
    overflow-y: auto;
    font-size: 13px;
    padding: 4px;
}

.playlist-panel.hidden {
    display: none;
}

.playlist-item {
    padding: 4px 8px;
    cursor: pointer;
    color: #000;
}

.playlist-item:hover {
    background: #000080;
    color: white;
}

.playlist-item.playing {
    background: #000080;
    color: white;
    padding-left: 30px;
    position: relative;
}

.playlist-item.playing:before {
    content: " ";
    background-image: url(/media/eq.gif);
    background-size: 100% 100%;
    filter: grayscale(100%);
    position: absolute;
    left: 0;
    top: calc(50% - 15px);
    height: 30px;
    width: 30px;
    display: flex;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.status-bar {
    background: #c0c0c0;
    border-top: 2px solid #dfdfdf;
    padding: 3px 6px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}

.note {
    color: #5f5f5f;
}
legend {
    padding: 5px;
}
