body.win95 {
  position: fixed;
  margin: 0;
  padding: 0;
  background-color: #4650ff;
  background-image: url("images/wallpaperglitched1.png");
  background-size: cover;
  font-family: 'MS Sans Serif', sans-serif;
  color: black;
}

.desktop-area {
  position: relative;
  width: 100%;
  height: 100%;
}

.desktop-icons {
  position: absolute;
  top: 0;
  width: 100px;
}

#column1 {
  left: 20px;
}

#column2 {
  left: 140px;
}

.icon {
  z-index: 1;
  position: absolute;
  width: 80px;
  height: 100px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon img {
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
}

.icon span {
  font-size: 0.8rem;
  background: white;
  border: 1px solid gray;
  padding: 2px;
  display: block;
  width: 100%;
  text-align: center;
}


.icon.broken {
  opacity: 0.4;
  pointer-events: none;
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;  
  height: 40px; 
  background: silver;
  border-top: 2px solid #d3d3d3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  box-shadow: inset 1px 1px white, inset -1px -1px #404040;
  z-index: 10000; 
}

.start-btn {
  font-family: 'MS Sans Serif', sans-serif;
  background: silver;
  border: 2px outset #d3d3d3;
  padding: 2px 8px;
  cursor: pointer;
}

.start-btn:hover {
  background: #c0c0c0;
}

.status {
  font-family: 'MS Sans Serif', sans-serif;
  background: silver;
  border: 2px outset #d3d3d3;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 0.75rem
}

.window {
  position: absolute;
  width: 400px;
  background-color: #c0c0c0;
  border: 2px solid #000;
  z-index: 10;
}

.title-bar {
  background: #2c35db;
  color: white;
  padding: 0.4em 0.6em;
  cursor: move;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.title-bar button {
  background: none;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  line-height: 1;
}

.window-content {
  background: white;
  padding: 1em;
  font-family: monospace;
  font-size: 0.9rem;
  overflow-y: hidden; 
  border-top: 1px solid #000;
  height: auto; 
  max-height: 100%; 
}

.window-content::-webkit-scrollbar {
  width: 8px;
}

.window-content::-webkit-scrollbar-thumb {
  background: #999;
  border: 1px solid #000;
}

.window.error .window-content {
  background: #ffe0e0;
  color: black;
}

html {
  overscroll-behavior: none;
}

body.win95 {
  overscroll-behavior-y: none;
}

.hidden {
  display: none;
}

#vn-container {
  width: 100%;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
  background: #1f202b;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

#vn-image {
  width: 90%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  background: #1f202b;
  margin: 0;
}

#vn-dialogue {
  width: 90%;
  max-width: 440px;
  background: #1f202b;
  color: white;
  border: 2px solid white;
  padding: 0;
  margin: 0; 
  box-sizing: border-box;
  font-family: 'MS Sans Serif', monospace;
  font-size: 1rem;
  min-height: 80px;
  text-align: center;
  overflow-wrap: break-word;
}

#vn-next {
  margin-top: 8px;
  padding: 4px 10px;
  font-family: 'MS Sans Serif', monospace;
  font-size: 0.9rem;
  cursor: pointer;
}

#desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.tetris-container {
  display: flex;
  gap: 10px;
  padding: 10px;
}

#tetris-canvas {
  border: 2px solid #000;
  background-color: #000;
}

.tetris-side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100px;
}

#next-piece-canvas {
  border: 1px solid #000;
  background-color: #000;
  margin-bottom: 10px;
}

.tetris-side-panel h3 {
  margin: 0 0 5px 0;
  font-size: 14px;
}

#tetris-score {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

.tetris-side-panel .controls {
  font-size: 12px;
  margin-top: 10px;
}
