/* ==========================================================================
   GLOBAL STYLES & BACKGROUND
   ========================================================================== */
body {
  background-image: url("/lunglardbackground.png"); 
  background-size: cover;       
  background-position: center;  
  background-repeat: no-repeat; 
  background-attachment: fixed; 
  color: #1e222b;
  font-family: 'Segoe UI', Verdana, Geneva, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Glossy Vista Title Accent */
.vista-title {
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 3rem;
  color: #ffffff;
  margin: 10px 0 20px 0;
  text-transform: uppercase;
  letter-spacing: -1px;
  text-shadow: 
    0 2px 4px rgba(0, 75, 145, 0.8),
    0 4px 12px rgba(0, 150, 255, 0.4);
}

/* ==========================================================================
   LAYOUT WRAPPER & STRUCTURAL BALANCE
   ========================================================================== */
.wrapper {
  width: 100%;
  max-width: 900px; 
  padding: 20px;    
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 860px; /* Keeps the main layout perfectly parallel to the header bar */
  gap: 20px;
  margin-top: 10px;
  align-items: stretch;
}

.sidebar-spacer {
  display: none; /* Safely hides the old spacer rule */
}

}

/* Responsive constraints forcing layout blocks to stack neatly on smaller screens */
@media (max-width: 600px) {
  .main-layout {
    flex-direction: column;
    align-items: center;
  }
  .sidebar-spacer {
    display: none;
  }
  .left-sidebar {
    width: 100%;
    max-width: 280px;
  }
}

/* ==========================================================================
   LEFT HAND AERO GLASS SIDEBAR
   ========================================================================== */
.left-sidebar {
  width: 160px;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Adds consistent breathing room between buttons */
  box-shadow: 0 8px 32px rgba(0, 60, 120, 0.15);
  box-sizing: border-box;
}

.sidebar-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(0, 60, 130, 0.8);
  text-align: center;
  border-bottom: 2px solid rgba(0, 70, 140, 0.15);
  padding-bottom: 8px;
  margin-bottom: 5px;
}

/* ==========================================================================
   RETRO PC KEYBOARD KEYCAP BUTTONS (Backspace / Shift Style)
   ========================================================================== */
.retro-btn {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  text-align: center;
  
  /* Vintage tech typography */
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: #ffffff;
  padding: 14px 5px; /* Taller, boxier vertical height */
  
  /* Rectangular key profile shape */
  border-radius: 6px; 
  
  /* Bright glossy base gradient */
  background: linear-gradient(
    to bottom, 
    #5cd6ff 0%, 
    #00a6ff 40%, 
    #0088cc 100%
  );
  
  /* Thick white inner bezel highlight */
  border: 1px solid #ffffff; 
  
  /* Heavy 3D stacked shadow creating the rigid plastic keycap thickness */
  box-shadow: 
    0 1px 0px #004466,
    0 2px 0px #004466,
    0 3px 0px #003355,
    0 4px 0px #002244,
    0 5px 0px #001133,
    0 6px 8px rgba(0, 40, 80, 0.4), /* Outer drop shadow on the glass */
    inset 0 2px 2px rgba(255, 255, 255, 0.6); /* Internal gloss ridge */
    
  text-shadow: 1px 1px 2px rgba(0, 30, 60, 0.8);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
}

/* Custom constraint making the Home button shape resemble a classic square keyboard keycap */
.home-key {
  max-width: 70px;
  margin: 0 auto;
  width: 100%;
}

/* THE GLOSS SLIDER LAYER (Adjusted tilt angle to cross the boxier shape cleanly) */
.retro-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.35) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
}

/* HOVER EFFECT - Subtle lift before pressing */
.retro-btn:hover {
  filter: brightness(1.08) saturate(110%);
}

.retro-btn:hover::after {
  animation: aeroShine 1s ease-in-out forwards;
}

/* MECHANICAL KEY PRESS EVENT - Pushes the button down flush against the shadow stack */
.retro-btn:active {
  transform: translateY(4px); /* Sinks downwards by 4 pixels */
  box-shadow: 
    0 1px 0px #004466,
    0 2px 0px #003355,
    0 2px 3px rgba(0, 40, 80, 0.6), /* Compressed base shadow */
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* SHINE ANIMATION CODE TRIGGER */
@keyframes aeroShine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

/* ==========================================================================
   AERO WEBPAGE MAIN CONTAINER
   ========================================================================== */
.center-content {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 35px rgba(0, 50, 100, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-box {
  margin-bottom: 10px;
  text-align: center;
}

.lead-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #004488;
}

.welcome-box p {
  font-weight: 500;
}

.aero-link {
  color: #0077dd;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px dashed #0077dd;
}

.aero-link:hover {
  color: #0044aa;
  border-bottom-style: solid;
}

/* GIF Glass Tray Display */
.gif-container {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 12px;
  margin: 15px 0;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.spinning-gif {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.details-box h2 {
  color: #0055aa;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 15px;
}

ul {
  display: inline-block;
  text-align: left;
  margin: 5px 0 10px 0;
  padding-left: 20px;
  line-height: 1.8;
  font-weight: 600; /* Makes text easier to read over glass transparency */
  color: #112233;
}

/* ==========================================================================
   AUDIO APP CONTROLS CONTAINER
   ========================================================================== */
.audio-controls {
  margin-top: 25px;
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.6); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  display: flex;
  flex-direction: row; 
  gap: 25px;          
  align-items: center;
  box-shadow: 0 6px 20px rgba(0, 40, 80, 0.1);
}

.audio-controls button {
  background: linear-gradient(to bottom, #ffffff 0%, #edf5fa 100%);
  border: 1px solid #a4c2e6;
  border-radius: 20px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #1e3c5c;
  cursor: pointer;
  white-space: nowrap; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.audio-controls button:hover {
  background: linear-gradient(to bottom, #edf5fa 0%, #dbeeff 100%);
  border-color: #70a5df;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-container label {
  font-size: 12px;
  font-weight: bold;
  color: #2c4d70;
}

/* Glassy Slider Input customization */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #cbdceb;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #52ccff 0%, #0088cc 100%);
  border: 1px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ==========================================================================
   CUSTOM SKEUOMORPHIC KEYCAP GRAPHICS & MATCHING TAN SIDEWALLS
   ========================================================================== */
.music-key, .art-key, .games-key {
  text-indent: -9999px; 
  white-space: nowrap;
  background-size: 100% 100% !important; 
  border-radius: 6px !important;
}

/* Turn off light hover glare overlays strictly for image buttons */
.music-key::after, .art-key::after, .games-key::after {
  display: none !important;
}

/* 1. MUSIC KEY PROFILE */
.music-key {
  background: url("/musicbutton.png") center/cover no-repeat !important;
  box-shadow: 
    0 1px 0px #9e6400, 0 2px 0px #9e6400, 0 3px 0px #704700, 0 4px 0px #523400, 0 5px 0px #2e1d00,
    0 6px 8px rgba(0, 40, 80, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}
.music-key:active {
  background: url("/musicbutton.png") center/cover no-repeat !important;
  box-shadow: 0 1px 0px #9e6400, 0 2px 0px #704700, 0 2px 3px rgba(0, 40, 80, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* 2. ART KEY PROFILE (FIXED: Shadows updated from blue to tan/gold) */
.art-key {
  background: url("/artbutton.png") center/cover no-repeat !important;
  box-shadow: 
    0 1px 0px #9e6400, 0 2px 0px #9e6400, 0 3px 0px #704700, 0 4px 0px #523400, 0 5px 0px #2e1d00,
    0 6px 8px rgba(0, 40, 80, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}
.art-key:active {
  background: url("/artbutton.png") center/cover no-repeat !important;
  box-shadow: 0 1px 0px #9e6400, 0 2px 0px #704700, 0 2px 3px rgba(0, 40, 80, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* 3. GAMES KEY PROFILE (FIXED: Shadows updated from blue to tan/gold) */
.games-key {
  background: url("/gamesbutton.png") center/cover no-repeat !important;
  box-shadow: 
    0 1px 0px #9e6400, 0 2px 0px #9e6400, 0 3px 0px #704700, 0 4px 0px #523400, 0 5px 0px #2e1d00,
    0 6px 8px rgba(0, 40, 80, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}
.games-key:active {
  background: url("/gamesbutton.png") center/cover no-repeat !important;
  box-shadow: 0 1px 0px #9e6400, 0 2px 0px #704700, 0 2px 3px rgba(0, 40, 80, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
/* ==========================================================================
   HORIZONTAL AERO GLASS HEADER PANEL
   ========================================================================== */
.aero-header-panel {
  width: 100%;
  max-width: 860px; 
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 10px; /* Slimmed down to let the banner stretch more */
  margin-bottom: 15px;
  box-shadow: 0 8px 32px rgba(0, 60, 120, 0.1);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CUSTOM BANNERS GRAPHIC LOADER SLOT (FIXED FOR OVERLAYS) */
.title-banner-graphic {
  position: relative; /* REQUIRED: Acts as an anchor coordinate map for your absolute floating GIF */
  width: 100%;
  max-width: 840px; 
  height: 110px;    
  
  /* FIXED: Removed text-indent so that child elements like our GIF stay visible */
  background: url("/headerbanner1.png") no-repeat !important;
  background-size: 100% 100% !important; 
  
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

/* FLOATING OVERLAY COORDINATES FOR YOUR SPINNING GRAPHIC */
.header-spinner-gif {
  position: absolute;
  width: 48px;
  height: 49px;
  
  /* Centered perfectly vertically inside the 110px height card */
  top: 50%;
  transform: translateY(-50%);
  
  /* COORDINATE ADJUSTMENT TOOL: Change this value to slide your GIF left or right! 
     Bigger numbers push it further right, smaller numbers push it left. */
  left: 47.5%; 
  
  z-index: 5; /* Ensures the graphic sits safely on top of your background layout layer */
}

/* ==========================================================================
   BLUE TO RED KEYBOARD MODIFIER: HORIZONTAL HOME KEY
   ========================================================================== */
.home-key {
  /* Safely hides the browser font text so only your custom PNG artwork shows */
  text-indent: -9999px;
  white-space: nowrap;

  /* Keeps your exact blue-to-red background gradient intact, 
     then layers your new transparent PNG directly over the face */
  background: 
    url("/homebuttontext.png") center/contain no-repeat,
    linear-gradient(to right, #024fff 0%, #0091ff 35%, #ff3333 75%, #cc0000 100%) !important;
  
  box-shadow: 
    0 1px 0px #880000,
    0 2px 0px #880000,
    0 3px 0px #660000,
    0 4px 0px #440000,
    0 5px 0px #220000,
    0 6px 8px rgba(0, 40, 80, 0.4), 
    inset 0 2px 2px rgba(255, 255, 255, 0.6) !important;
}

/* Custom interactive press state keeping the image visible when clicked */
.home-key:active {
  background: 
    url("/homebuttontext.png") center/contain no-repeat,
    linear-gradient(to right, #003bb3 0%, #cc0000 100%) !important;
  
  box-shadow: 
    0 1px 0px #660000,
    0 2px 0px #440000,
    0 2px 3px rgba(0, 40, 80, 0.6), 
    inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
/* ==========================================================================
   INLINE NAVIGATION WEB BADGE TRAY
   ========================================================================== */
.inline-badge-tray {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 5px 0; /* Creates an even, balanced gap between the keys above and below */
}

/* Forces retro gifs to stay pixel-crisp without modern browser blurring filters */
.web-badge {
  width: 88px;
  height: 31px;
  display: block;
  image-rendering: pixelated; 
  image-rendering: crisp-edges;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15); /* Subtle shadow so it stands out over the glass */
  transition: transform 0.1s ease;
}

/* Makes the badge scale up slightly when rolled over */
.web-badge:hover {
  transform: scale(1.04);
  cursor: pointer;
}

/* ==========================================================================
   SIDEBAR CONTAINER EXPANSION FOR THE GRID (FIXED NAV BUTTONS)
   ========================================================================== */
.left-sidebar {
  width: 220px !important;     
  min-width: 220px !important; 
  align-items: center; /* FIXED: Centers your keyboard buttons cleanly down the middle */
}

/* Invisible layout block on the right side adjusted to match the new sidebar width */
.sidebar-spacer {
  width: 220px !important;
  min-width: 220px !important;
}

/* REVERT STRETCHING: Forces your navigation keys to maintain their crisp, original hardware sizes */
.left-sidebar .retro-btn {
  width: 130px; /* Restores the exact native width of your keyboard keycaps */
  box-sizing: border-box;
}

/* Restores the unique square proportions strictly for your HOME button key cap */
.left-sidebar .home-key {
  width: 70px !important;
  max-width: 70px !important;
}

