
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  font-size: 14px;
  color: #000;
  background: url("assets/wallpaper.png") no-repeat center center fixed;
  background-size: cover;
}


::-webkit-scrollbar {
  width: 16px;
  height: 16px;
  background: #f1efe2;
}
::-webkit-scrollbar-thumb {
  background: #ece9d8;
  border: 2.5px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}
::-webkit-scrollbar-button {
  background: #ece9d8;
  width: 16px;
  height: 16px;
  border: 1.5px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}


.xp-bevel-out {
  border: 3.5px solid;
  border-color: #ffffff #7f7f7f #7f7f7f #ffffff;
  background: #ece9d8;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.xp-bevel-in {
  border: 3px inset #808080;
  background: #ffffff;
}
.xp-bevel-btn {
  border: 3px solid;
  border-color: #ffffff #7f7f7f #7f7f7f #ffffff;
  background: #ece9d8;
  padding: 5px 12px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}
.xp-bevel-btn:active {
  border-color: #7f7f7f #ffffff #ffffff #7f7f7f;
  padding: 6px 11px 4px 13px;
  box-shadow: none;
}


.glossy-3d-blue {
  background: linear-gradient(to bottom, 
    #7cb0ff 0%, 
    #3b82ff 10%, 
    #1356e4 45%, 
    #003ec3 55%, 
    #002b9e 85%, 
    #001c71 100%
  ) !important;
  border-top: 3px solid #b3d1ff !important;
  border-left: 3px solid #b3d1ff !important;
  border-bottom: 3.5px solid #000d3a !important;
  border-right: 3.5px solid #000d3a !important;
  box-shadow: inset 1px 1.5px 3px rgba(255, 255, 255, 0.8), 2px 2.5px 6px rgba(0, 0, 0, 0.4);
}


.xp-luna-btn {
  background: linear-gradient(to bottom, 
    #a8d0ff 0%, 
    #5c9dff 12%, 
    #1d6bfa 50%, 
    #0044cd 88%, 
    #002c91 100%
  );
  border: 2px solid #001d67;
  border-radius: 5px;
  color: #ffffff;
  font-weight: bold;
  padding: 6px 16px;
  cursor: pointer;
  text-shadow: 1px 1px 2px #000;
  box-shadow: inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.7), 2px 2px 4px rgba(0,0,0,0.4);
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  transition: filter 0.1s ease;
}
.xp-luna-btn:hover {
  filter: brightness(1.15) contrast(1.1);
}
.xp-luna-btn:active {
  background: linear-gradient(to bottom, #001a5d 0%, #003ebd 85%, #5799ff 100%);
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.6);
}


.xp-luna-green-btn {
  background: linear-gradient(to bottom, 
    #7cbd44 0%, 
    #51a62d 10%, 
    #388e1a 50%, 
    #297610 88%, 
    #1b530b 100%
  );
  border: 2px solid #103807;
  border-radius: 5px;
  color: #ffffff;
  font-family: 'Comic Neue', sans-serif;
  font-size: 15px;
  font-weight: bold;
  font-style: italic;
  padding: 4px 16px;
  cursor: pointer;
  text-shadow: 1px 1px 2px #000;
  box-shadow: inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.7), 2px 2px 4px rgba(0,0,0,0.4);
  transition: filter 0.1s ease;
  outline: none;
  display: flex;
  align-items: center;
}
.xp-luna-green-btn:hover {
  filter: brightness(1.15) contrast(1.15);
}
.xp-luna-green-btn:active {
  background: linear-gradient(to bottom, #0b2405 0%, #1c520a 85%, #50a12c 100%);
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.6);
}


.xp-input {
  border: 3.5px inset #7f7f7f;
  background: #ffffff;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  border-radius: 0;
  color: #000;
  box-shadow: inset 1px 1px 1px rgba(0,0,0,0.2);
}


.xp-header-bar {
  color: #ffffff;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  z-index: 1000;
  text-shadow: 1.5px 1.5px 2px #000;
}
.header-logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-logo {
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-ticker {
  flex: 1;
  max-width: 45%;
  color: #ffff00;
  font-weight: bold;
  text-shadow: 1px 1px 2px red;
}


.page-container {
  display: flex;
  margin: 72px auto 82px auto; 
  width: 95%;
  max-width: 1100px;
  gap: 20px;
  min-height: calc(100vh - 154px);
  transition: all 0.3s ease;
}


.page-container.sidebar-collapsed .sidebar {
  display: none !important;
}


.sidebar {
  width: 290px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}


.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}


.xp-group-box {
  border: 3px solid;
  border-color: #ffffff #7f7f7f #7f7f7f #ffffff;
  background: #ece9d8;
  border-radius: 4px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}
.group-title {
  color: #fff;
  font-weight: bold;
  padding: 5px 10px;
  font-size: 12.5px;
  text-shadow: 1px 1px 1.5px #000;
  background: linear-gradient(to right, #0058e6 0%, #3a93ff 100%);
  border-bottom: 1px solid #002c61;
}
.group-content {
  padding: 12px;
}


.navigation-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.navigation-links .nav-link {
  text-align: left;
  text-decoration: none;
  font-size: 12px;
  color: #000;
  display: block;
}
.navigation-links .nav-link:active {
  color: #000;
}


.xp-panel {
  background: #ece9d8;
  border: 4px solid #0050e0;
  border-radius: 8px 8px 0 0;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-header {
  color: #ffffff;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  text-shadow: 1.5px 1.5px 2px #000;
}
.panel-body {
  padding: 18px;
  background: #f1efe2;
}
.panel-body.no-padding {
  padding: 0;
}

.xp-divider {
  border: none;
  border-top: 1.5px solid #808080;
  border-bottom: 1.5px solid #ffffff;
  margin: 18px 0;
}




.avatar-frame {
  font-size: 48px;
  background: #fff;
  border: 3.5px inset #7f7f7f;
  display: inline-block;
  padding: 10px;
  border-radius: 50%;
  margin-bottom: 5px;
  box-shadow: inset 1px 2px 3px rgba(0,0,0,0.2);
}
.mood-warning-bar {
  background: yellow;
  color: red;
  font-weight: bold;
  padding: 4px;
  border: 2px dashed red;
  margin-top: 10px;
  font-size: 12px;
  text-shadow: none;
}
.text-center {
  text-align: center;
}


.stats-dashboard {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #808080;
  padding-bottom: 3px;
}
.stat-val {
  font-weight: bold;
}
.text-red { color: #cc0000; }
.text-green { color: #008000; }
.text-yellow { color: #808000; }
.text-blue { color: #0000cc; }


.winamp-theme {
  background: #1c1c1f;
  color: #00ff00;
  border: 4px solid #444;
  padding: 10px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  border-radius: 4px;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.8);
}
.winamp-display {
  background: #000;
  border: 2px inset #555;
  padding: 6px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr 50px;
  gap: 2px;
}
.winamp-status {
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
}
.winamp-time {
  font-size: 18px;
  text-align: right;
  color: #ff9900;
}
#winamp-visualizer {
  grid-column: 1 / span 2;
  background: #080808;
  border: 1px solid #222;
  margin-top: 5px;
}
.winamp-controls {
  display: flex;
  justify-content: space-around;
  margin-bottom: 8px;
}
.winamp-btn {
  background: #3a3a3d;
  color: #fff;
  border: 2.5px outset #555;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 11px;
}
.winamp-btn:active, .winamp-btn.active-btn {
  border-style: inset;
  background: #111;
  color: #00ff00;
}
.winamp-volume-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #888;
  font-size: 11px;
}
#winamp-volume {
  width: 75%;
  accent-color: #00ff00;
}


.pet-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pet-screen {
  background: #dfdfdf;
  border: 3.5px inset #7f7f7f;
  border-radius: 6px;
  width: 100%;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  box-shadow: inset 1px 2px 3px rgba(0,0,0,0.2);
}
#pet-avatar {
  font-size: 38px;
  animation: bouncePet 1s infinite alternate;
}
#pet-mood-bubble {
  position: absolute;
  top: -10px;
  background: #ffffe1;
  border: 1.5px solid #000;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  color: #000;
  font-weight: bold;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.pet-stats {
  width: 100%;
  margin-bottom: 8px;
  font-size: 12px;
}
.progress-bar-container {
  width: 100%;
  height: 10px;
  background: #ddd;
  border: 1px solid #777;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 3px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(to right, #ff4e50, #f9d423);
  transition: width 0.3s ease;
}
.pet-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  width: 100%;
}
.pet-actions button {
  font-size: 11px;
  padding: 4px;
}

@keyframes bouncePet {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}


.visitor-counter {
  background: #000000;
  border: 3px inset #7f7f7f;
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.8);
}
.visitor-counter span {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: #ff0000;
  background: #111;
  padding: 0 4px;
  border: 1px solid #333;
}


.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.badge-3d {
  border: 2.5px solid;
  font-size: 8px;
  font-family: 'Courier Prime', monospace;
  font-weight: bold;
  padding: 4px 2px;
  text-align: center;
  cursor: help;
  text-shadow: 1px 1px 1px #000;
  color: #fff;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}
.badge-blue {
  background: linear-gradient(to bottom, #4b7dff, #002db9);
  border-color: #8bb1ff #001c74 #001c74 #8bb1ff;
}
.badge-gold {
  background: linear-gradient(to bottom, #ffd14b, #b98900);
  border-color: #ffe68b #745700 #745700 #ffe68b;
}
.badge-green {
  background: linear-gradient(to bottom, #4bff51, #00b906);
  border-color: #8bffa0 #007404 #007404 #8bffa0;
}
.badge-magenta {
  background: linear-gradient(to bottom, #ff4bd5, #b90090);
  border-color: #ff8beb #74005b #74005b #ff8beb;
}
.badge-3d:active {
  border-style: inset;
  box-shadow: none;
}




.gifs-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}
.xp-3d-img {
  border: 4px solid #fff;
  box-shadow: 3px 3px 0px #808080;
}
.welcome-links {
  text-align: center;
  margin-top: 15px;
}


.project-box {
  padding: 5px;
}
.project-title {
  color: #000080;
  margin: 0 0 5px 0;
  text-shadow: 1px 1px 0px #fff;
}
.link-glow {
  color: #c9007a;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(201, 0, 122, 0.2);
}
.ascii-tool {
  padding: 12px;
  margin-top: 10px;
}
.tool-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.tool-controls input {
  flex: 1;
}
#ascii-output {
  white-space: pre;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  overflow-x: auto;
  line-height: 1.1;
  background: #000;
  color: #00ff00;
  padding: 10px;
  border: 3.5px inset #7f7f7f;
}


.construction-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 18px;
  background: #ffffd9;
  border: 2.5px dashed #808080;
  color: #000;
}
.warning-triangle {
  font-size: 32px;
}


.math-tool {
  padding: 15px;
}
.math-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}


.gallery-quote {
  padding: 10px 15px;
  font-style: italic;
  font-size: 15px;
  color: #800000;
  font-weight: bold;
  margin-bottom: 15px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.photo-card {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.photo-placeholder {
  font-size: 48px;
  background: #fff;
  border: 3px inset #7f7f7f;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: inset 1px 2px 2px rgba(0,0,0,0.1);
}
.photo-caption {
  font-size: 11px;
  font-weight: bold;
  color: #002c61;
}


.notepad-toolbar {
  background: #ece9d8;
  border-bottom: 1.5px solid #808080;
  padding: 4px 10px;
  display: flex;
  gap: 10px;
}
#notepad-textarea {
  width: 100%;
  height: 200px;
  border: none;
  outline: none;
  resize: vertical;
  padding: 10px;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  background: #ffffff;
  color: #000000;
}


.terminal-container {
  padding: 2px;
  background: #000;
}
.terminal-body {
  background: #000000;
  color: #00ff00;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  padding: 10px;
  height: 250px;
  overflow-y: auto;
  text-align: left;
}
.terminal-body p {
  margin: 3px 0;
}
.terminal-input-line {
  display: flex;
  margin-top: 8px;
  align-items: center;
}
#terminal-cmd {
  background: transparent;
  border: none;
  outline: none;
  color: #00ff00;
  font-family: inherit;
  font-size: inherit;
  flex: 1;
}


.xp-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 54px;
  background: linear-gradient(to bottom, #245edb 0%, #3f8cf3 9%, #245edb 18%, #184dc2 80%, #1742a6 100%);
  border-top: 3px solid #ffcc00;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0px -3px 10px rgba(0,0,0,0.4);
}
.footer-marquee marquee {
  font-size: 13px;
  color: #ffffff;
  font-weight: bold;
}
.footer-marquee marquee a {
  color: #ffff00;
  text-decoration: underline;
  text-shadow: 0 0 2px red;
}
.footer-bottom marquee {
  font-size: 11px;
  color: #00ffff;
  font-weight: bold;
}


.glitter {
  background: linear-gradient(45deg, red, yellow, lime, cyan, blue, magenta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  animation: textGlitch 0.2s infinite;
  display: inline-block;
  font-size: 42px;
  margin: 10px 0;
  text-shadow: none;
}
.glitter-rainbow {
  background: linear-gradient(45deg, red, orange, yellow, green, blue, purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  font-size: 26px;
  margin: 5px 0;
  display: inline-block;
}

.blink-fast {
  animation: xpBlink 0.3s infinite;
}
.blink {
  animation: xpBlink 0.8s infinite;
}
.blink-text {
  animation: xpBlink 1.2s infinite;
  color: red;
  font-weight: bold;
}

@keyframes xpBlink {
  50% { opacity: 0; }
}

@keyframes textGlitch {
  0% { text-shadow: 1px 1px 0px cyan; }
  50% { text-shadow: -1px -1px 0px magenta; }
  100% { text-shadow: 1px -1px 0px yellow; }
}


@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
    margin-top: 64px;
    margin-bottom: 74px;
    width: 96%;
    gap: 15px;
  }
  .sidebar {
    position: fixed;
    top: 52px;
    left: -310px; 
    height: calc(100vh - 106px);
    width: 290px;
    z-index: 1005;
    background: #ece9d8;
    border-right: 4px solid #0050e0;
    border-bottom: 4px solid #0050e0;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.6);
    padding: 15px;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
  }
  .sidebar.open {
    left: 0 !important;
  }
  .main-content {
    width: 100%;
  }

  .xp-header-bar {
    padding: 0 10px;
  }
  .header-ticker {
    display: none; 
  }

  #ascii-output {
    font-size: 7px !important;
    padding: 6px;
  }
  .tool-controls {
    flex-direction: column;
    gap: 6px;
  }
  .gifs-row {
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .xp-3d-img {
    max-width: 45%;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
