@font-face {
  font-family: 'Mx437 IBM VGA 8x16';
  src: url('fonts/Web437_IBM_VGA_8x16.woff') format('woff'),
       url('fonts/IBM_VGA8x16.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Ensures text renders immediately with fallback */
}

/* === CRT MONITOR EFFECT === */
body {
    background: #0a0a0a; /* Slightly off-black to reduce harsh contrast */
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
    font-family: 'Mx437 IBM VGA 8x16', 'Courier New', monospace !important
  }
  
  .crt-effect {
    background: #0a0a0a;
    position: relative;
    min-height: 100vh;
  }
  
  .crt-effect::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.1) 50%, rgba(0,20,0,0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
  }
  
  /* === TERMINAL STYLING === */
  .terminal {
    width: 900px;
    max-width: 95%;
    margin: 0 auto;
    border: 3px double #28d828; /* Toned down green */
    font-family: 'Mx437 IBM VGA 8x16', 'Courier New', monospace !important;
    color: #28d828; /* Toned down green for better readability */
    background: #000; /* Keep terminal background pure black for the 'screen' effect */
    position: relative;
    overflow: hidden;
  }
  
  .title-bar {
    background: #000;
    border-bottom: 1px solid #28d828;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  .controls button {
    background: none;
    border: none;
    color: #28d828;
    font-family: 'Mx437 IBM VGA 8x16', monospace !important;
    cursor: pointer;
    padding: 0 5px;
  }
  
  /* === CONTENT AREA === */
  .content {
    padding: 20px;
    min-height: 500px;
  }
  
  .menu, .sub-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  
  .menu button, .sub-menu button {
    background: #000;
    color: #28d828;
    border: 1px solid #28d828;
    padding: 5px 10px;
    font-family: 'Mx437 IBM VGA 8x16', 'Courier New', monospace !important;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
  }
  
  .menu button.active, .sub-menu button.active {
    background: #28d828;
    color: #000;
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  .sub-content {
    margin-top: 20px;
  }
  
  .sub-tab-panel {
    display: none;
  }
  
  .sub-tab-panel.active {
    display: block;
  }
  
  /* === TYPOGRAPHY === */
  h1, h2 {
    color: #FFFF33;
    margin: 15px 0 10px 0;
    font-weight: normal;
  }
  
  h1 {
    font-size: 1.5em;
  }
  
  h2 {
    font-size: 1.2em;
  }
  
  p, li {
    line-height: 1.5;
  }
  
  a {
    color: #3399FF;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  .divider {
    margin: 20px 0;
    color: #28d828;
  }
  
  /* === GRID BUTTONS === */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
  }
  
  .grid button {
    background: #000;
    color: #28d828;
    border: 1px solid #28d828;
    padding: 8px;
    font-family: 'Mx437 IBM VGA 8x16', 'Courier New', monospace !important;
    cursor: pointer;
    text-transform: uppercase;
  }
  
  /* === STATUS BAR === */
  .status-bar {
    border-top: 1px solid #28d828;
    padding: 5px 10px;
    display: flex;
    gap: 10px;
    font-size: 0.9em;
  }
  
  .blink {
    animation: blink 1s step-end infinite;
  }
  
  /* === SPECIAL EFFECTS === */
  @keyframes blink {
    50% { opacity: 0; }
  }
  
  /* Cursor effect */
  .type-cursor::after {
    content: "_";
    animation: blink 1s step-end infinite;
  }
  
  /* === SCROLLBARS === */
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background: #000;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #28d828;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #55FF55;
  }

  /* === ULTIMATE DOS DOWNLOAD BUTTONS === */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin: 12px 0 20px;
  }
  
  .download-grid button {
    background: #000 !important;
    color: #28d828 !important;
    border: 1px solid #28d828 !important;
    padding: 6px 10px !important;
    font-family: 'Mx437 IBM VGA 8x16', monospace !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><rect width="16" height="16" fill="%2328d828" opacity="0.5"/></svg>'), auto;
  }
  
  /* Button hover state */
  .download-grid button:hover {
    background: #112211 !important;
    color: #55FF55 !important;
    border-color: #55FF55 !important;
  }
  
  /* Button active/pressed state */
  .download-grid button:active {
    background: #28d828 !important;
    color: #000 !important;
    border-style: inset !important;
  }
  
  /* Button focus indicator */
  .download-grid button:focus {
    outline: 1px dotted #28d828;
    outline-offset: 2px;
  }
  
  /* Download arrow icon */
  .download-grid button::after {
    content: "↓";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.7;
  }
  
  /* Special warning buttons */
  .warning-btn {
    color: #FF3333 !important;
    border-color: #FF3333 !important;
  }
  
  .warning-btn:hover {
    background: #220000 !important;
    color: #FF5555 !important;
    border-color: #FF5555 !important;
  }
  
  .warning-btn:active {
    background: #FF3333 !important;
    color: #000 !important;
  }

  .status-bar {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #28d828;
    padding: 5px 10px;
    font-size: 0.9em;
    position: relative; /* For absolute positioning if needed */
  }
  
  .status-left {
    display: flex;
    gap: 10px;
  }
  
  .datetime {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #28d828;
  }

  

  /* BSOD Styling */
.bsod {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000082;
  color: white;
  font-family: 'IBM VGA', monospace;
  padding: 20px;
  z-index: 9999;
  display: none;
  overflow: auto;
}

.bsod pre {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

.bsod-countdown {
  position: fixed;
  bottom: 20px;
  left: 0; /* Add this */
  right: 0; /* Add this */
  text-align: left; /* Add this */
  padding: 50px;
  font-size: 16px;
  width: 100%; /* Ensures full width for centering */
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* === BIG CLOCK STYLING === */
.big-clock-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 400px; /* Ensure it has some height */
  font-family: 'Mx437 IBM VGA 8x16', 'Courier New', monospace !important;
}

.big-clock {
  font-size: 7rem; /* Increased font size */
  font-weight: bold;
  letter-spacing: 0.1em;
}


/* BSOD Restart Screen */
.bsod pre {
  text-align: left;
  margin-top: 0vh;
  font-size: 18px;
}

@keyframes blink {
  50% { opacity: 0; }
}
