


/* toroot Responsive Styles */

/* Desktop and default layout for .center-message */
.center-message {
  position: fixed;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  max-width: 900px;
  height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
  overflow-y: visible;
  text-align: center;
}

/* Logo text style for burger menu */
.logo-text-burger {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 0.7em;
  color: #fff;
  margin-left: 0;
  font-family: var(--font-pixel);
 
 
  user-select: none;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;

}
/* Center logo inside mobile menu overlay */
.mobile-menu-content .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1em;
}


@media (max-width: 700px) {
  body {
    overflow-y: auto;
  }
  .center-message {
    width: 85%;
    max-width: none;
    padding: var(--space-sm);
  }
}

/* Hide footer below 500px */
@media (max-width: 500px) {
  .footer-left {
    display: none !important;
  }
  
  .social-icons-bottom {
    display: none !important;
  }
  
  /* Hide header navigation in mobile and show hamburger menu */
  .header-nav {
    display: none !important;
  }
  
  .main-header .hamburger-menu {
    display: flex !important;
  }
  
  .hamburger-menu {
    display: flex !important;
    /* top: var(--space-sm); */
    right: var(--space-sm);
    width: 30px;
    /* height: 30px; */
  }
  
  .readme-link {
    display: none !important;
  }
  
  /* Timeline container mobile adjustments */
  .timeline-container {
    height: calc(100vh - 80px) !important;
  }
  .readme-btn-mobile {
    display: block !important;
    margin: 1.2rem auto 0 auto;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    border: 1.5px solid var(--color-primary);
    color: var(--color-background);
    padding: 0.2em 0.1em !important;
    text-decoration: none;
    background: var(--color-primary);
    text-align: center;
    transition: all var(--transition-normal);
    z-index: var(--z-ui);
    border-radius: 0 !important;
    max-width: 120px !important;
    min-width: 80px !important;
    width: 100% !important;
  }
  .readme-btn-mobile:hover {
    background: var(--color-background);
    color: var(--color-primary);
  }
}

/* Mobile - 400px and below - ONLY SIZE CHANGES */
@media (max-width: 400px) {
  
  
  /* Extra small 404 text */
  .error-code {
    font-size: 2.5rem;
  }
  
  .error-text {
    font-size: 1.rem;
  }
  
  .slogan-text {
    font-size: 0.7rem;
  }
  
  
  .description-text {
    max-width: 90%;
    padding: 0 var(--space-sm);
  }
  
  .social-icon {
    width: 28px;
    height: 28px;
  }
  .main-header {
  
  padding: 0 var(--space-xs);
  background: transparent;
}

/* End of 400px media query */
}

/* Very Small Mobile - 350px and below */
@media (max-width: 350px) {
  html, body {
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  /* Compact hamburger menu */
  .hamburger-menu {
    width: 24px;
    height: 18px;
    top: var(--space-xs);
    right: var(--space-xs);
  }
  
  .hamburger-line {
    height: 2px;
  }
  
  /* Logo positioning and sizing - match corner positioning with hamburger */
  .logo-link {
    top: var(--space-xs);
    left: var(--space-xs);
  }
  
  /* Logo icon - slightly larger for better visibility */
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  
  /* Hide logo text on very small screens */
.logo-text {
    display: flex;
    font-size: 1.0rem;
    margin-left: 0.5em;
    align-items: center;
    /* Adjust color or style as needed */
}
  
  .logo {
    gap: 0;
  }
  
  /* Compact center message */
  .center-message {
    top: 40px !important; /* Force respect for header */
    width: 98%;
    height: calc(100vh - 80px) !important;
    padding: var(--space-xs);
    max-width: none;
  }
  
  
}
/* 
/* Ultra Small Mobile - 200px and below - CRITICAL HEADER FIX */
@media (max-width: 250px) {
  /* Header optimization for ultra small screens */
  .main-header {
    height: 70px !important;
    padding: 3.5px;
  }
  

  
  .logo-icon { 
    width: 24px !important; 
    height: 24px !important; 
  }
  
  .header-nav { 
    display: none !important; 
  }
  
  .hamburger-menu {
    display: flex !important;
    width: 20px !important;
    height: 16px !important;
    top: calc(var(--space-xs) + 2px) !important;
    right: var(--space-xs) !important;
  }
  
  .hamburger-line {
    height: 1.5px !important;
  }
  
  .logo-link {
    top: calc(var(--space-xs) + 2px) !important;
    left: var(--space-xs) !important;
  }
  
  /* Center message for ultra small screens - INDEX PAGE */
  .center-message {
    top: 50px !important;
    width: 99% !important;
    height: calc(100vh - 70px) !important;
    padding: 4px !important;
    max-width: none !important;
  }
  
  /* Timeline container for ultra small screens - UPDATES PAGE */
  .timeline-container {
    top: 70px !important;
    height: calc(100vh - 70px) !important;
  }
  
  /* Ultra small error text */

  
  .error-text {
    font-size: 0.6rem !important;
  }
  
  .slogan-text {
    font-size: 0.6rem !important;
  }
  
  .description-text {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    padding: 0 2px !important;
  }
  
  .social-icon {
    width: 20px !important;
    height: 20px !important;
  }
} 