@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&amp;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;
  }
}

:root {
    --retro-gray: #c0c0c0;
    --retro-dark: #000080;
    --neon-green: #00ff00;
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
}

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;
}

body:has(#spotlight) {
  cursor: none !important;
}

.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 {
    font-family: "Press Start 2P", system-ui;
    font-size: 32px;
    color: #ffff00;
    text-shadow: 
        3px 3px 0 #ff00ff,
        -1px -1px 0 #00ffff;
    margin: 0;
    letter-spacing: 3px;
}

.tagline {
    font-size: 11px;
    color: #00ffff;
    margin: 2px 0 6px;
    font-weight: bold;
}

.marquee-container {
    background-color: #000000;
    border: 2px inset #666;
    margin: 4px 0;
    overflow: hidden;
}

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;
}

.left-panel {
    width: 210px;
    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;
    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;
}

.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;
  }

  #shadow {
    height: 100vh;
    width: 100vw;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    backdrop-filter: brightness(25%);
    pointer-events: none;
  }

  #spotlight {
    height: 200px;
    width: 200px;
    border-radius: 50%;
    backdrop-filter: brightness(600%);
    box-shadow: 0 0 10px 5px #000 inset;
    position: fixed;
    left: calc(50vw - 100px);
    top: calc(50vh - 100px);
    z-index: 10002;
    cursor: none;
    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%;
}
.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 {
  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 {
  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, #F00, #F0F, #77F, #33F, #0F0, #FF0, #F70, #F00);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-color: #333;
}
.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;
}
.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;
}
.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;
}
.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;
}