:root {
    --primary-color: #0f0;
    --secondary-color: #0bc;
    --bg-color: #000;
    --text-color: #fff;
    --sidenav-color: #bf3700;
    --selection-color: #f7d07e;
  }
  
  * {
    box-sizing: border-box;
  }
  
  ::selection {
    background: var(--selection-color);
  }
  
  html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: clamp(11pt, 2vw, 13pt);
    color: var(--text-color);
    background-color: var(--bg-color);
  }
  
  #container {
    padding: 0.1em 1.5em 1em 1em;
    margin-left: 50px;
    margin-right: 135px;
    min-height: 100vh;
  }
  
  #cmdline {
    outline: none;
    background-color: transparent;
    margin: 0;
    width: 100%;
    font: inherit;
    border: none;
    color: inherit;
  }
  
  #output {
    clear: both;
    width: 100%;
    word-wrap: break-word;
  }
  
  #prompt {
    white-space: nowrap;
    display: flex;
    align-items: center;
    user-select: none;
  }
  
  .prompt-color {
    color: var(--primary-color);
  }
  
  #a { color: var(--primary-color); }
  #b { color: var(--secondary-color); }
  
  .input-line {
    display: flex;
    align-items: stretch;
    clear: both;
    gap: 0;
  }
  
  .input-line > div:nth-child(2) {
    flex: 1;
  }
  
  /* Sidenav improvements */
  /* Update the sidenav styles */
  #sidenav {
    height: 100%;
    width: 50px;
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    background-color: var(--sidenav-color);
    opacity: 0.8;
    overflow-x: hidden;
    transition: width 0.3s ease;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition-delay: 0.1s;
  }
  
  /* When sidenav is open */
  #sidenav.open {
    width: 250px;
  }
  
  #sidenav.open img {
    opacity: 1;
  }
  /* Fix the sidenav button positioning */
  #sidenavBtn {
    position: absolute;
    padding: 2px;
    top: 0;
    right: 7px;
    font-size: 35px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 10; /* Ensure button is above other elements */
  }
  
  /* Update sidenav buttons to be properly contained */
  #sidenav button:not(#sidenavBtn) {
    padding: 8px 8px 8px 16px;
    cursor: pointer;
    text-decoration: none;
    font-size: 15pt;
    color: var(--text-color);
    display: none; /* Completely hide buttons when closed */
    transition: color 0.3s ease, transform 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
  }
  
  /* Show and style buttons when sidenav is open */
  #sidenav.open button:not(#sidenavBtn) {
    display: block; /* Show buttons when open */
    padding: 8px 8px 8px 32px;
  }
  
  #sidenav.open button:not(#sidenavBtn):hover {
    color: #442e00;
    transform: translateX(5px);
  }
  
  /* Fix profile picture positioning */
  #sidenav img {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100px;
    transition: opacity 0.3s ease;
    opacity: 0;
    max-width: 80%;
    height: auto;
    pointer-events: none; /* Prevent image from interfering with clicks */
  }
  
  /* Add a class for when sidenav is open */
  #sidenav.open {
    width: 250px;
  }
  
  #sidenav.open img {
    opacity: 1;
  }
  
  /* Responsive design */
  @media screen and (max-height: 450px) {
    body { font-size: 11pt; }
    #sidenav { padding-top: 15px; }
    #sidenav button { font-size: 13px; }
  }
  
  @media screen and (max-width: 900px) {
    #container { margin-right: 0; }
  }
  
  @media screen and (max-width: 600px) {
    #container {
      margin-left: 60px;
      padding: 0.1em 0.5em 1em 0.5em;
    }
    
    #sidenav { width: 60px; }
    #sidenavBtn { font-size: 28px; }
  }
  
  /* Accessibility improvements */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  