/*
=====================================
  Global Styles for clutterx Website
  ----------------------------------
  This CSS file controls the look of your site.
  Each section is commented to help you understand what it does!
=====================================
*/

/* CSS Custom Properties for Consistency */
:root {
    /* Font System */
    --font-primary: 'Michroma', sans-serif;
    --font-system: 'MS Sans Serif', sans-serif;
    --font-ui: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Z-Index Hierarchy */
    --z-base: 1;
    --z-taskbar: 1000;
    --z-window-base: 1100;
    --z-window-active: 1200;
    --z-modal: 1300;
    --z-tooltip: 1400;
    
    /* Transform Safety for Draggable Windows */
    --window-x: 0px;
    --window-y: 0px;
    
    /* Backdrop Filter Consistency */
    --blur-light: blur(5px);
    --blur-medium: blur(8px);
    --blur-heavy: blur(10px);
    --blur-extra: blur(12px);
}

@font-face {
    font-family: 'Michroma';
    src: url('../assets/fonts/Michroma-Regular.ttf') format('truetype'),
         url('../assets/fonts/Michroma-Regular.woff2') format('woff2'),
         url('../assets/fonts/Michroma-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* Prevent the page itself from panning horizontally */
html, body {
  overflow-x: hidden;
  touch-action: pan-y;   /* only allow vertical pan on the page */
}

/* Let your floating windows capture all touch moves */
.floating-window {
  touch-action: none;    /* disable browser panning on these elements */
  will-change: transform; /* Optimize for transform changes */
  transform-style: preserve-3d; /* Prevent transform flattening */
  /* Use CSS custom properties for dynamic positioning */
  transform: translate(var(--window-x), var(--window-y));
}
/* ========================
   MOBILE FRIENDLY TWEAKS
   ======================== */

/* 1) Meta‑viewport is already set—but let’s reinforce no horizontal scroll */
html, body {
  overflow-x: hidden !important;    /* block any horizontal scroll */
  touch-action: pan-y;              /* only vertical swipe on page */
  width: 100%;                      /* prevent accidental overflow */
  max-width: 100vw;                 /* clamp to viewport width */
}

/* 2) Ensure every container box stays within screen */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 3) Disable horizontal overscroll bounce on iOS */
body, html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior-x: contain;   /* Safari iOS 13+ */
}

/* 4) For any wide elements (images, iframes, etc.) */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* 5) Keep .floating‑window drags from triggering page pan */
.floating-window {
  touch-action: none;               /* your existing drag capture */
}
@media only screen and (max-width: 768px) {
  .button-nav .nav-button {
    min-width: 120px;    /* make each button at least 120px wide */
    margin-right: -20px;   /* smaller gap between buttons */
  }
  .button-nav .nav-button:last-child {
    margin-right: 0;     /* no extra gap after the last one */
  }
}



/* ----- 1. Basic Page Setup ----- */
body, button, input, textarea, select {
    margin: 0; /* Removes default browser margin */
    padding: 0; /* Removes default browser padding */
    background: #fff; /* Sets background to pure white */
    font-family: var(--font-primary); /* Apply Michroma font */
    color: #222; /* Sets default text color to dark gray */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- 2. Discord Updates Container ----- */
.discord-updates-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.discord-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Loading spinner */
.fade-in {
    animation: fadeIn 0.25s;
}

.fade-out {
    animation: fadeOut 0.25s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #5d8aa8;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.error-message {
    padding: 15px;
    background: #fff5f5;
    border-left: 3px solid #ff6b6b;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
}

.retry-btn {
    background: #5d8aa8;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'Michroma', sans-serif;
}

.retry-btn:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
    background: #e6f3ff;
    color: #0056b3;
}

.retry-btn:hover {
    background: #4a7a9a;
}

/* ----- 3. Discord Message Styling ----- */
.discord-message {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    border-left: 3px solid #5d8aa8;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.message-header strong {
    color: #2c3e50;
}

.timestamp {
    color: #7f8c8d;
    font-size: 0.8em;
}

.message-content {
    line-height: 1.5;
    word-wrap: break-word;
}

.attachments {
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px dashed #ccc;
}

.attachments a {
    color: #3498db;
    text-decoration: none;
}

.attachments a:hover {
    text-decoration: underline;
}

/* ----- 3. Header Image Styling ----- */
.header-img {
    display: block; /* Makes the image a block element so margin works */
    margin: 20px auto 15px auto; /* Reduced top and bottom margin */
    max-width: 750px; /* Increased from 650px */
    width: 100%; /* Makes image responsive on small screens */
    height: auto; /* Keeps the image's aspect ratio */
}

/* ----- 3. Navigation Buttons ----- */
.button-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 5px auto 15px auto; /* Reduced top margin, kept bottom margin */
    padding: 10px 0; /* Reduced padding */
    max-width: 800px;
}

.nav-buttons-container {
    display: flex;
    gap: 40px; /* Increased from 20px */
    align-items: center;
    padding: 0 20px; /* Add some padding on the sides */
}

.nav-button {
    display: block;
    text-decoration: none;
    position: relative;
    perspective: 1000px;
    /* Add glow effect base */
    --glow-color: rgba(173, 216, 255, 0);
    transition: --glow-color 0.3s ease;
    filter: drop-shadow(0 0 0 var(--glow-color));
}

.nav-button-inner {
    display: block;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 1.5);
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    overflow: hidden; /* For the shine effect */
}

/* Sparkle base styles */
.nav-button-inner {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.nav-button-inner .sparkle {
    position: absolute;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 0 4px rgba(200, 230, 255, 0.95),
        0 0 8px rgba(180, 220, 255, 0.85),
        0 0 12px rgba(160, 210, 255, 0.75);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    filter: drop-shadow(0 0 2px rgba(220, 240, 255, 1));
    will-change: transform, opacity;
    display: block;
    line-height: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
    width: 20px;
    height: 20px;
    text-align: center;
}

/* Sparkle animation */
@keyframes sparklePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
        opacity: 0.7;
        filter: drop-shadow(0 0 2px rgba(200, 230, 255, 0.9));
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(15deg);
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(220, 240, 255, 0.9))
                drop-shadow(0 0 12px rgba(200, 230, 255, 0.8));
    }
}

/* Sparkle patterns */
/* Pattern 1 - Diamond Shape */
.nav-button[data-pattern="1"] .s1 { top: 25%; left: 25%; }
.nav-button[data-pattern="1"] .s2 { top: 25%; right: 25%; }
.nav-button[data-pattern="1"] .s3 { bottom: 25%; left: 25%; }
.nav-button[data-pattern="1"] .s4 { bottom: 25%; right: 25%; }
.nav-button[data-pattern="1"] .s5 { top: 50%; left: 50%; }

/* Pattern 2 - Plus Sign */
.nav-button[data-pattern="2"] .s1 { top: 10%; left: 50%; }
.nav-button[data-pattern="2"] .s2 { bottom: 10%; left: 50%; }
.nav-button[data-pattern="2"] .s3 { top: 50%; left: 10%; }
.nav-button[data-pattern="2"] .s4 { top: 50%; right: 10%; }
.nav-button[data-pattern="2"] .s5 { top: 50%; left: 50%; }

/* Pattern 3 - X Shape */
.nav-button[data-pattern="3"] .s1 { top: 15%; left: 15%; }
.nav-button[data-pattern="3"] .s2 { top: 15%; right: 15%; }
.nav-button[data-pattern="3"] .s3 { bottom: 15%; left: 15%; }
.nav-button[data-pattern="3"] .s4 { bottom: 15%; right: 15%; }
.nav-button[data-pattern="3"] .s5 { top: 50%; left: 50%; }

/* Pattern 4 - Top Heavy */
.nav-button[data-pattern="4"] .s1 { top: 15%; left: 30%; }
.nav-button[data-pattern="4"] .s2 { top: 15%; right: 30%; }
.nav-button[data-pattern="4"] .s3 { top: 35%; left: 30%; }
.nav-button[data-pattern="4"] .s4 { top: 35%; right: 30%; }
.nav-button[data-pattern="4"] .s5 { top: 25%; left: 50%; }

/* Ensure sparkles are visible when active */
.nav-button {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.nav-button .sparkle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.2s ease;
    font-size: 18px;
    color: rgba(255, 255, 255, 1);
    text-shadow: 
        0 0 4px rgba(200, 230, 255, 1),
        0 0 8px rgba(180, 220, 255, 0.9),
        0 0 12px rgba(160, 210, 255, 0.8);
    filter: drop-shadow(0 0 2px rgba(220, 240, 255, 1));
}

/* Sparkle animation */
@keyframes sparklePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
        filter: drop-shadow(0 0 2px rgba(200, 230, 255, 0.9));
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(220, 240, 255, 0.9))
                drop-shadow(0 0 12px rgba(200, 230, 255, 0.8));
    }
}

/* Apply animation to visible sparkles */
.nav-button .sparkle.visible {
    animation: sparklePulse 1.2s ease-in-out infinite;
    opacity: 1;
}

.nav-button img {
    display: block;
    height: 44px;
    width: auto;
    position: relative;
    z-index: 1;
    /* Improve image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: subpixel-antialiased;
    transform: translateZ(0);
}

/* Decorative X buttons */
.decorative-x {
    display: flex;
    align-items: center;
    height: 44px; /* Match the height of nav buttons */
    opacity: 0.7;
    user-select: none;
    cursor: default;
}

.decorative-x-img {
    height: 40px; /* Increased from 30px to be just slightly smaller than nav buttons */
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    margin: 0 5px; /* Add a little horizontal margin */
}

/* Right X button - inverted */
.decorative-x:last-child .decorative-x-img {
    transform: scaleX(-1);
}

/* Subtle floaty animation */
.nav-button {
    animation: subtleFloat 4s ease-in-out infinite;
}

/* Stagger the animations for each button */
.nav-button:nth-child(1) {
    animation-delay: 0s;
}

.nav-button:nth-child(2) {
    animation-delay: 1.3s;
}

.nav-button:nth-child(3) {
    animation-delay: 2.6s;
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-1px);
    }
    50% {
        transform: translateY(-2px);
    }
    75% {
        transform: translateY(-1px);
    }
}

/* Hover effect - grow bigger with glow and shine */
.nav-button {
    --glow-color: rgba(173, 216, 255, 0);
    --glow-spread: 0px;
    transition: 
        --glow-color 0.3s ease,
        --glow-spread 0.3s ease,
        filter 0.3s ease;
    filter: drop-shadow(0 0 0 var(--glow-color));
}

.nav-button:hover {
    --glow-color: rgba(173, 216, 255, 0.8);
    --glow-spread: 8px;
    filter: drop-shadow(0 0 var(--glow-spread) var(--glow-color));
}

.nav-button:hover .nav-button-inner {
    transform: scale(1.1);
    filter: brightness(1.1);
    animation-play-state: paused;
}

/* Sparkle effects on hover */
.nav-button:hover .nav-button-inner::before,
.nav-button:hover .nav-button-inner::after,
.nav-button:hover .nav-button-inner .sparkle-1,
.nav-button:hover .nav-button-inner .sparkle-2,
.nav-button:hover .nav-button-inner .sparkle-3 {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 0 2px rgba(220, 240, 255, 0.9),
        0 0 4px rgba(200, 230, 255, 0.9),
        0 0 6px rgba(180, 220, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 30px rgba(200, 230, 255, 0.9);
    filter: 
        drop-shadow(0 0 1px rgba(220, 240, 255, 0.9))
        drop-shadow(0 0 2px rgba(200, 230, 255, 0.9))
        drop-shadow(0 0 8px rgba(200, 230, 255, 0.9));
    opacity: 1;
}

/* Individual sparkle animations */
.nav-button:hover .nav-button-inner::before {
    animation: sparkle 1.2s ease-in-out infinite;
}

.nav-button:hover .nav-button-inner::after {
    animation: sparkle 1.4s ease-in-out 0.1s infinite;
}

.nav-button:hover .nav-button-inner .sparkle-1 {
    animation: sparkle 1.3s ease-in-out 0.2s infinite;
}

.nav-button:hover .nav-button-inner .sparkle-2 {
    animation: sparkle 1.5s ease-in-out 0.3s infinite;
}

.nav-button:hover .nav-button-inner .sparkle-3 {
    animation: sparkle 1.6s ease-in-out 0.4s infinite;
}

/* Active/click effect */
.nav-button:active .nav-button-inner {
    transform: scale(0.95);
    filter: brightness(0.95);
    animation-play-state: paused;
}

/* Sparkle animation */
@keyframes sparkle {
    0% {
        transform: scale(0.7) rotate(0deg);
        opacity: 0;
        text-shadow: 
            0 0 1px rgba(200, 230, 255, 0.7),
            0 0 2px rgba(180, 220, 255, 0.6);
        filter: 
            drop-shadow(0 0 1px rgba(180, 220, 255, 0.8))
            drop-shadow(0 0 2px rgba(160, 210, 255, 0.7));
    }
    20% {
        opacity: 0.8;
        text-shadow: 
            0 0 2px rgba(220, 240, 255, 0.8),
            0 0 4px rgba(200, 230, 255, 0.8);
        filter: 
            drop-shadow(0 0 1px rgba(220, 240, 255, 0.9))
            drop-shadow(0 0 3px rgba(200, 230, 255, 0.8));
    }
    40% {
        transform: scale(1.3) rotate(15deg);
        opacity: 1;
        text-shadow: 
            0 0 3px rgba(230, 245, 255, 0.9),
            0 0 6px rgba(220, 240, 255, 0.9),
            0 0 10px rgba(255, 255, 255, 1);
        filter: 
            drop-shadow(0 0 2px rgba(230, 245, 255, 1))
            drop-shadow(0 0 4px rgba(220, 240, 255, 0.9))
            drop-shadow(0 0 15px rgba(255, 255, 255, 1));
    }
    60% {
        opacity: 0.9;
        text-shadow: 
            0 0 2px rgba(220, 240, 255, 0.8),
            0 0 4px rgba(200, 230, 255, 0.8);
        filter: 
            drop-shadow(0 0 1px rgba(220, 240, 255, 0.9))
            drop-shadow(0 0 3px rgba(200, 230, 255, 0.8));
    }
    100% {
        transform: scale(0.7) rotate(0deg);
        opacity: 0;
        text-shadow: 
            0 0 1px rgba(200, 230, 255, 0.5),
            0 0 2px rgba(180, 220, 255, 0.5);
        filter: 
            drop-shadow(0 0 1px rgba(180, 220, 255, 0.6))
            drop-shadow(0 0 2px rgba(160, 210, 255, 0.4));
    }
}

/* Vista-style Window */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    max-height: 400px;  /* Adjust this value */
    /* Rest of your styles... */
}

.vista-window {
    background: linear-gradient(135deg, #e6f0ff 0%, #d0e0ff 100%);
    border-radius: 6px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Changed from hidden to visible to allow overflow */
    border: 1px solid #b0c8ff;
    font-family: 'Michroma', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-height: 55vh;
    display: flex;
    flex-direction: column;
    position: relative; /* Added for positioning context */
}

.floating-window {
  position: absolute;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transition: 
    box-shadow 0.2s ease-out,
    z-index 0.2s ease-out,
    opacity 0.1s ease-out;
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: var(--blur-extra);
  -webkit-backdrop-filter: var(--blur-extra);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform-origin: center;
  -webkit-font-smoothing: subpixel-antialiased;
  user-select: none;
}

/* Simple bounce animation for window physics */
.floating-window.bounce {
  animation: simpleBounce 0.3s ease-out;
}

@keyframes simpleBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.floating-window:focus-within, 
.floating-window.active {
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  transition: 
    left 0.2s ease-out, 
    top 0.2s ease-out, 
    box-shadow 0.2s ease-out,
    z-index 0.2s ease-out;
}

/* Add a subtle active state when dragging */
.floating-window.dragging {
  transition: none;
  box-shadow: 0 12px 36px rgba(0,0,0,0.2), 0 0 0 2px #4a90e2;
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.floating-image {
    position: absolute;
    top: -80px;
    right: -80px;
    z-index: 9999; /* Increased from 10 to ensure it appears above all windows */
    width: 150px;
    height: 150px;
    pointer-events: auto;
    transform-origin: center center;
    will-change: transform;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
    padding: 2px;
}

.floating-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-10px) rotate(-2deg);
    }
    50% {
        transform: translateY(10px) rotate(2deg);
    }
}

.floating-image:hover {
    animation: float 6s ease-in-out infinite, hover-scale 0.3s forwards;
    filter: 
        drop-shadow(0 0 2px rgba(173, 216, 230, 1))
        drop-shadow(0 0 4px rgba(173, 216, 230, 0.8))
        drop-shadow(0 0 6px rgba(173, 216, 230, 0.6))
        drop-shadow(0 10px 20px rgba(255, 255, 255, 0.8));
}

@keyframes hover-scale {
    to {
        transform: scale(1.2);
    }
}

/* Mobile: Make floating image non-clickable */
@media screen and (max-width: 768px) {
    .floating-image {
        pointer-events: none;
    }
}

.window-title-bar {
    background: #c5e7f2;
    color: #333;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid #a8d5e5;
    user-select: none;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: white;
    width: 22px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
}

.window-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.window-controls button:active {
    background: rgba(0, 0, 0, 0.1);
}

.window-close {
    background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%) !important;
    border: 1px solid #808080 !important;
    color: #333 !important;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 1px 1px rgba(255, 255, 255, 0.8) inset,
        0 0 1px rgba(0, 0, 0, 0.3);
}

.window-close::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1));
    border-radius: 2px 2px 0 0;
    pointer-events: none;
}

.window-close::after {
    content: '×';
    position: relative;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1;
}

.window-close:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #c0c0c0 100%) !important;
    box-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.9) inset,
        0 0 2px rgba(0, 0, 0, 0.2);
}

.window-close:active {
    background: linear-gradient(135deg, #c0c0c0 0%, #909090 100%) !important;
    box-shadow: 
        0 0 2px rgba(0, 0, 0, 0.3) inset;
}

.window-content {
    padding: 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
    flex: 1;
    overflow-y: auto;
    min-height: 300px;
    max-height: 60vh;
}

#discord-content {
    max-height: 60vh;
    overflow-y: auto;
}

/* Taskbar Styles */

/* Enforce correct font for all taskbar items and children */
.taskbar-item {
    font-family: var(--font-primary);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.taskbar-item * {
    font-family: inherit;
    font-size: inherit;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(198, 219, 255, 0.4);
    backdrop-filter: var(--blur-heavy);
    -webkit-backdrop-filter: var(--blur-heavy);
    border: 1px solid #b0c8ff;
    border-top: 1px solid #b0c8ff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    z-index: var(--z-taskbar);
}

.start-button {
    background: linear-gradient(to bottom, #e6f0ff, #cce0ff);
    width: 90px;
    height: 42px;
    padding: 0;
    margin: 0 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #a0c0ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8),
                0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.start-button:hover {
    background: linear-gradient(to bottom, #f0f7ff, #e0f0ff);
    border-color: #80a8ff;
}

.start-button:active {
    background: linear-gradient(to bottom, #d0e0ff, #c0d0f0);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.start-flag {
    width: 94px;
    height: 60px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
}

.taskbar-items {
    display: flex;
    gap: 4px;
    margin-left: 10px;
    height: 100%;
    align-items: center;
}

.taskbar-item {
    background: rgba(230, 240, 255, 0.6);
    padding: 4px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid rgba(160, 192, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
                0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    height: 30px;
    color: #1a3b7a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.taskbar-item:hover {
    background: rgba(240, 247, 255, 0.8);
    border-color: #80a8ff;
}

.taskbar-item.active {
    background: rgba(210, 225, 255, 0.9);
    border-color: #4a90e2;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.taskbar-icon {
    font-size: 16px;
    opacity: 0.9;
}

.taskbar-text {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.taskbar-clock {
    margin-left: auto;
    background: rgba(230, 240, 255, 0.6);
    color: #1a3b7a;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    border: 1px solid rgba(160, 192, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
                0 1px 2px rgba(0, 0, 0, 0.05);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.spotify-btn {
  background-color: #1DB954;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.spotify-btn .spotify-icon {
  width: 17px;
  height: 17px;
  fill: white;
}
