:root {
  --boot-bg: #000000;
  --boot-text: #ffffff;
  --boot-gray: #aaaaaa;
  --boot-highlight-bg: #ffffff;
  --boot-highlight-text: #000000;
  --boot-font: 'Consolas', 'Courier New', Courier, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  background-color: var(--boot-bg);
  color: var(--boot-text);
  font-family: var(--boot-font);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
}

.boot-screen {
  max-width: 820px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
}

.boot-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 24px;
}

.boot-instructions {
  color: var(--boot-text);
  margin-bottom: 20px;
}

.boot-sub-instruction {
  color: var(--boot-gray);
  margin-bottom: 24px;
}

.os-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 30px;
  padding-left: 20px;
}

.os-item {
  padding: 4px 10px;
  cursor: pointer;
  width: max-content;
  min-width: 360px;
  color: var(--boot-text);
  letter-spacing: 0.5px;
}

.os-item.selected {
  background-color: var(--boot-highlight-bg);
  color: var(--boot-highlight-text);
  font-weight: bold;
}

.boot-footer-info {
  margin-top: 30px;
  color: var(--boot-gray);
  font-size: 14px;
  line-height: 1.8;
}

.boot-timer {
  color: var(--boot-gray);
  margin-top: 14px;
}

.boot-keys-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.boot-action-btn {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  font-family: var(--boot-font);
  font-size: 13px;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 2px;
}

.boot-action-btn:hover {
  background: #fff;
  color: #000;
}

kbd {
  background: #333;
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid #666;
}

/* BIOS CMOS Setup Screen */
.bios-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0000aa;
  color: #ffffff;
  font-family: var(--boot-font);
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 9999;
}

.bios-header {
  text-align: center;
  font-weight: bold;
  color: #ffff55;
  font-size: 16px;
  line-height: 1.4;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 10px;
}

.bios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.bios-menu-col {
  border: 2px double #ffffff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bios-item {
  padding: 4px 8px;
  cursor: pointer;
  color: #ffff55;
  letter-spacing: 0.5px;
}

.bios-item.selected {
  background-color: #aa0000;
  color: #ffffff;
  font-weight: bold;
}

.bios-details {
  border: 2px solid #ffffff;
  padding: 10px 14px;
  background-color: #000088;
  font-size: 14px;
}

.bios-footer {
  border-top: 2px solid #ffffff;
  padding-top: 8px;
  font-size: 13px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bios-btn {
  background: #000088;
  color: #ffffff;
  border: 1px solid #ffffff;
  font-family: var(--boot-font);
  font-size: 12px;
  padding: 3px 8px;
  cursor: pointer;
  margin-right: 8px;
}

.bios-btn:hover {
  background: #ffff55;
  color: #000000;
}

/* F8 Advanced Options Screen */
.f8-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  color: #ffffff;
  font-family: var(--boot-font);
  padding: 40px 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.f8-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.f8-subtitle {
  color: #aaa;
  margin-bottom: 24px;
}

.f8-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
  padding-left: 10px;
}

.f8-item {
  padding: 4px 10px;
  cursor: pointer;
  width: max-content;
  max-width: 90%;
}

.f8-item.selected {
  background-color: #ffffff;
  color: #000000;
  font-weight: bold;
}

.f8-footer {
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .boot-screen {
    margin-top: 20px;
    padding: 0 10px;
  }
  .os-item {
    min-width: 100%;
    font-size: 13px;
  }
  .bios-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
