@font-face {
  font-family: "VT323";
  src: url("https://fonts.gstatic.com/s/vt323/v17/pxiKyp0ihIEF2isfFJU.woff2") format("woff2");
  font-display: swap;
}

#welcomeopen,
#mydivheader::before {
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 0.5px;
}

#TopBar {
  background: linear-gradient(to bottom, #d4d0c8, #b0aca4);
  border-bottom: 2px solid #000;
  box-shadow: inset 0 1px 0 #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
}
#bodystyle {
  background-image: url("Background.jpg"); /* or whatever it was */
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  margin: 0;
}

#welcomeopen {
  background-color: #c0c0c0;
  color: #000;
  font-size: 13px;
  padding: 2px 10px;
  margin-left: 4px;
  border: 1px solid #000;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #404040,
    inset 2px 2px 0 #dfdfdf;
  cursor: pointer;
}
#welcomeopen {
  font-family: "VT323", monospace !important;
  font-size: 22px !important;
}

#mydivheader::before {
  font-family: "VT323", monospace;
  font-size: 20px;
}
#welcomeopen:active {
  box-shadow:
    inset 1px 1px 0 #808080,
    inset -1px -1px 0 #fff,
    inset 2px 2px 0 #404040,
    inset -2px -2px 0 #dfdfdf;
}

#timeElement {
  background-color: #c0c0c0;
  color: #000;
  font-size: 12px;
  padding: 2px 8px;
  margin-right: 4px;
  border: 1px solid #808080;
  box-shadow:
    inset 1px 1px 0 #404040,
    inset -1px -1px 0 #fff;
}
#window {
  width: 320px;
  background-color: #c0c0c0;
  border: 2px solid #000;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #404040,
    inset 2px 2px 0 #dfdfdf;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 13px;
  color: #000;
  position: absolute;
  top: 100px;
  left: 100px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
}

#mydivheader {
  background: linear-gradient(to right, #0a246a, #a6caf0);
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
  height: 18px;
  margin: -16px -16px 12px -16px;
}

#mydivheader::before {
  content: "Dream_oS";
}

#welcomeclose {
  background-color: #c0c0c0;
  color: #000;
  width: 16px;
  height: 14px;
  margin: 0;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #fff;
}

#welcomeclose::before {
  content: "✕";
}
.body-content {
  padding: 10px;
#startMenu {
  position: fixed;
  display: flex;
  background-color: #c0c0c0;
  border: 2px solid #000;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #404040,
    inset 2px 2px 0 #dfdfdf;
  min-width: 200px;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 13px;
  z-index: 9999;
  padding: 2px;
}

/* classic vertical banner strip on the left */
#startMenu::before {
  content: "Dream_oS";
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: linear-gradient(to bottom, #0a246a, #a6caf0);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 2px;
  padding: 8px 4px;
  display: flex;
  align-items: flex-end;
}

#startMenuItems {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.startMenuItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

.startMenuItem img,
.startMenuItem .menuIcon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.startMenuItem:hover {
  background-color: #0a246a;
  color: #fff;
}

.menuDivider {
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
  margin: 3px 2px;
}}
#startMenu {
  position: fixed;
  display: none;
  background-color: #c0c0c0;
  border: 2px solid #000;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #404040,
    inset 2px 2px 0 #dfdfdf;
  min-width: 200px;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 13px;
  z-index: 9999;
  padding: 2px;
}

#startMenu::before {
  content: "Dream_oS";
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: linear-gradient(to bottom, #0a246a, #a6caf0);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 2px;
  padding: 8px 4px;
  display: flex;
  align-items: flex-end;
}

#startMenuItems {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.startMenuItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

.startMenuItem .menuIcon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.startMenuItem:hover {
  background-color: #0a246a;
  color: #fff;
}

.menuDivider {
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
  margin: 3px 2px;
}
.app-window {
  background-color: #c0c0c0;
  border: 2px solid #000;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #404040,
    inset 2px 2px 0 #dfdfdf;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 13px;
  z-index: 1000;
}

.app-window-header {
  background: linear-gradient(to right, #0a246a, #a6caf0);
  color: #fff;
  font-weight: bold;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}

.app-window-close {
  background-color: #c0c0c0;
  color: #000;
  width: 16px;
  height: 14px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  cursor: pointer;
}

.app-window-body {
  padding: 10px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.calc-btn {
  padding: 6px;
  background-color: #c0c0c0;
  border: 1px solid #000;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #fff;
  cursor: pointer;
  font-family: monospace;
}

.calc-btn:active {
  box-shadow:
    inset 1px 1px 0 #808080,
    inset -1px -1px 0 #fff;
}

.calc-clear {
  grid-column: span 4;
  background-color: #e8b0b0;
}
@keyframes screenShake {
  0% { transform: translate(0,0); }
  10% { transform: translate(-10px,5px); }
  20% { transform: translate(10px,-5px); }
  30% { transform: translate(-8px,8px); }
  40% { transform: translate(8px,-8px); }
  50% { transform: translate(-10px,-5px); }
  60% { transform: translate(10px,5px); }
  70% { transform: translate(-6px,6px); }
  80% { transform: translate(6px,-6px); }
  100% { transform: translate(0,0); }
}

@keyframes redFlash {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(200,0,0,0.5); }
}

body.jumpscare-shake {
  animation: screenShake 0.15s infinite;
}

#jumpscareOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99998;
  animation: redFlash 0.2s infinite;
}

.jumpscare-text {
  position: fixed;
  color: red;
  font-family: "Tahoma", sans-serif;
  font-weight: bold;
  font-size: 22px;
  text-shadow: 0 0 6px red;
  white-space: nowrap;
  z-index: 99999;
  pointer-events: none;
}

.escape-window {
  position: fixed;
  background-color: #c0c0c0;
  border: 2px solid #000;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #404040,
    inset 2px 2px 0 #dfdfdf;
  font-family: "Tahoma", sans-serif;
  z-index: 99999;
  min-width: 180px;
}

.escape-window-header {
  background: linear-gradient(to right, #7a0000, #cc0000);
  color: #fff;
  font-weight: bold;
  padding: 3px 6px;
  font-size: 13px;
}

.escape-window-body {
  padding: 12px;
  text-align: center;
  font-weight: bold;
  color: #000;
}

#holdMyHandOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

#blackoutScreen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Tahoma", sans-serif;
  font-size: 24px;
  z-index: 100001;
  opacity: 0;
  transition: opacity 1.5s ease;
}

#blackoutScreen.show {
  opacity: 1;
}