body.desktop {
  background: #008080 url('assets/win98-wallpaper.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  margin: 0;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  overflow: hidden;
}

.window{
  position: absolute;
  z-index: 10;
  resize: both;
  overflow: auto;
  min-height: 150px;
  min-width: 200px;
  width: 400px;
  display: none;
}

#bootup-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bootup-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
}

.bios-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0f0;
  font-family: monospace;
  font-size: 1.7rem;
  font-weight: bold;
  text-align: center;
  white-space: pre-line;
  visibility: visible !important;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  
}

.bios-text p{
  margin: 0;
}

#bootlogger {
  position: fixed;
  top: 8px;
  left: 10px;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: bold;
  color: #0f0;
  user-select: none;
  z-index: 10000;
}

#windows-logo-screen {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#windows-logo-screen img.windows-logo {
  width: auto;
  max-width: 320px;
  max-height: 240px;
  margin-bottom: 40px;
}

.loading-bar {
  width: 300px;
  height: 16px;
  background: #222;
  border: 2px solid #fff;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.loading-bar::after {
  content: '';
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #00f, #fff, #00f);
  animation: loading-bar-anim 2.5s linear forwards;
}

@keyframes loading-bar-anim {
  to { width: 100%; }
}

#login-screen {
  background: url('assets/win98-wallpaper.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}

.login-box {
  background: #fff;
  border: 2px solid #888;
  border-radius: 8px;
  padding: 32px 40px;
  box-shadow: 0 0 24px #000a;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-user-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #888;
  background: #fff;
  box-shadow: 0 2px 8px #0002;
}

.login-name {
  font-size: 1.3rem;
  margin-bottom: 6px;
  font-weight: bold;
}

#login-password {
  font-size: 1.1rem;
  padding: 6px 12px;
  border: 1px solid #888;
  border-radius: 4px;
  margin-bottom: 12px;
  width: 100%;
}

.login-passHelp {
  font-size: 1rem;
  margin-bottom: 6px;
}

.login-btn {
  font-size: 1.1rem;
  padding: 6px 24px;
  background: #e0e0e0;
  border: 2px outset #fff;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-weight: bold;
}

.login-btn:active {
  background: #b0b0b0;
  border: 2px inset #888;
}

.login-error {
  color: #c00;
  margin-top: 8px;
  font-size: 1rem;
}

.taskbar-clock {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 1.1rem;
  color: #222;
  background: #e0e0e0;
  padding: 4px 12px;
  border-radius: 3px;
  border: 1px solid #aaa;
  margin-right: 16px;
  user-select: none;
}
.start-menu {
  position: absolute;
  left: 8px;
  bottom: 48px;
  width: 220px;
  background: #fff;
  border: 2px outset #888;
  box-shadow: 2px 2px 8px #888;
  z-index: 2000;
}

.start-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.start-menu li {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: 'MS Sans Serif', Arial, sans-serif;
}

.start-menu li:hover {
  background: #c0c0c0;
}

.start-divider {
  height: 0;
  border-top: 2px solid #000;
  margin: 8px auto;
  padding: 0;
  width: 90%;
  align-self: center;
}

.start-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.start-label {
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 1.1rem;
}

/* Minesweeper Styles */
#msw98-board {
  display: grid;
  grid-gap: 2px;
  background: #b0b0b0;
  margin: 0 auto;
  border: 2px solid #888;
  width: fit-content;
}
.msw98-cell {
  width: 28px;
  height: 28px;
  background: #c0c0c0;
  border: 2px outset #fff;
  text-align: center;
  font-family: monospace;
  font-size: 1.2rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background 0.1s, border 0.1s;
}
.msw98-cell.open {
  background: #e0e0e0;
  border: 2px inset #888;
  cursor: default;
}
.msw98-cell.flag {
  color: #d00;
}
.msw98-cell.qmark {
  color: #00f;
}
.msw98-cell.mine {
  color: #000;
}
#msw98-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #c0c0c0;
  border: 2px inset #fff;
  padding: 6px 8px;
  margin-bottom: 6px;
  width: 100%;
  box-sizing: border-box;
}
#msw98-mine, #msw98-timer {
  font-family: 'Digital-7', 'Courier', monospace;
  font-size: 1.6rem;
  width: 48px;
  text-align: center;
  background: #000;
  color: #f00;
  border-radius: 4px;
  border: 2px inset #888;
  padding: 2px 0;
  margin: 0 8px;
}
#msw98-smiley {
  width: 32px;
  height: 32px;
  background: #e0e0e0;
  border: 2px outset #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 32px;
  text-align: center;
  margin: 0 8px;
  transition: background 0.1s, border 0.1s;
}
#msw98-smiley:active {
  background: #b0b0b0;
  border: 2px inset #888;
}
#msw98-diff {
  margin-left: 8px;
  font-size: 1rem;
}
