/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  #desktop {
    gap: 2px;
    padding: 12px;
  }

  .desktop-icon {
    width: 80px;
  }

  .desktop-icon-label {
    font-size: 10px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  :root {
    --taskbar-height: 36px;
  }

  #desktop {
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 8px;
    gap: 2px;
    overflow-y: auto;
  }

  .desktop-icon {
    width: 72px;
    padding: 4px;
  }

  .desktop-icon-img {
    width: 40px;
    height: 40px;
  }

  .desktop-icon-label {
    font-size: 9px;
  }

  /* windows go fullscreen on mobile */
  .win7-window {
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: calc(100vh - var(--taskbar-height)) !important;
    border-width: 0 !important;
    box-shadow: none !important;
  }

  .win7-resize {
    display: none;
  }

  /* simplified taskbar */
  .taskbar-start span {
    display: none;
  }

  .taskbar-start {
    padding: 3px 8px;
  }

  .taskbar-win-btn span {
    display: none;
  }

  .taskbar-win-btn {
    padding: 2px 6px;
    max-width: 40px;
  }

  /* start menu full width on mobile */
  #start-menu {
    width: 100vw;
    max-height: 60vh;
  }
}
