/* Global Styles for Windows 98 Eerie Experience */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  background-color: #008080;
  overflow: hidden;
  position: relative;
  height: 100vh;
  color: #000;
  user-select: none;
}

/* Initial window positions */
#calculator-window {
  top: 80px;
  left: 100px;
  width: 250px;
  height: 300px;
}

#paint-window {
  top: 90px;
  left: 150px;
  width: 500px;
  height: 400px;
}

#minesweeper-window {
  top: 70px;
  left: 200px;
  width: 300px;
  height: 350px;
}

#solitaire-window {
  top: 60px;
  left: 250px;
  width: 500px;
  height: 450px;
}

#ie-window {
  top: 50px;
  left: 300px;
  width: 600px;
  height: 450px;
}

#notepad-window {
  top: 100px;
  left: 120px;
  width: 400px;
  height: 350px;
}

#media-player-window {
  top: 110px;
  left: 140px;
  width: 350px;
  height: 400px;
}

#calendar-window {
  top: 120px;
  left: 160px;
  width: 300px;
  height: 350px;
}

#help-window {
  top: 130px;
  left: 180px;
  width: 550px;
  height: 400px;
}

#find-files-window {
  top: 140px;
  left: 200px;
  width: 400px;
  height: 350px;
}

/* CRT Effects */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
  background-size: 100% 4px;
  z-index: 1000;
  pointer-events: none;
  animation: scanlines 8s linear infinite;
  opacity: 0.3;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 1001;
  animation: vignette 10s ease-in-out infinite alternate;
}

.crt-flicker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  z-index: 1002;
  pointer-events: none;
  animation: flicker 6s linear infinite;
}

/* Desktop Elements */
.desktop {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

.desktop-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  grid-gap: 20px;
  padding: 20px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 15px;
}

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

.desktop-icon span {
  font-size: 12px;
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2px 4px;
}

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px;
  background: silver;
  border-top: 2px solid white;
  display: flex;
  z-index: 100;
}

.start-button {
  width: 80px;
  height: 100%;
  background: silver;
  border-right: 2px solid #7e7e7e;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-bottom: 2px solid #7e7e7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  padding: 0 5px;
  cursor: pointer;
  font-size: 14px;
}

.start-button img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.taskbar-items {
  display: flex;
  flex-grow: 1;
  padding: 3px 0;
  height: 100%;
  overflow: hidden;
}

.taskbar-item {
  background: silver;
  border-right: 2px solid #7e7e7e;
  border-top: 2px solid #7e7e7e;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  margin-right: 3px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  max-width: 150px;
  min-width: 100px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-item img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.taskbar-item.active {
  border-right: 2px solid white;
  border-top: 2px solid #7e7e7e;
  border-left: 2px solid #7e7e7e;
  border-bottom: 2px solid white;
  background-color: #efefef;
}

.clock {
  height: 100%;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 2px solid #7e7e7e;
  border-top: 2px solid #7e7e7e;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  font-size: 12px;
  margin-left: auto;
}

/* Start Menu */
.start-menu {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 240px;
  background: silver;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
  display: none;
  z-index: 101;
}

.start-menu.active {
  display: block;
  animation: glitch 0.5s infinite;
}

.start-menu-header {
  height: 32px;
  background: linear-gradient(to right, #000080, #1084d0);
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.start-menu-item {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #7e7e7e;
  cursor: pointer;
  font-size: 14px;
  height: 48px;
  position: relative;
}

.start-menu-item:hover {
  background-color: #0000aa;
  color: white;
}

.start-menu-item img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

/* Submenu styling */
.submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background: silver;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
  display: none;
  min-width: 150px;
  z-index: 102;
}

.start-menu-item:hover .submenu {
  display: block;
}

.submenu-item {
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.submenu-item:hover {
  background-color: #0000aa;
  color: white;
}

/* Windows */
.window {
  position: absolute;
  background: silver;
  border: 2px solid #7e7e7e;
  border-top: 2px solid white;
  border-left: 2px solid white;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  min-width: 300px;
  min-height: 200px;
  max-width: 800px;
  max-height: 600px;
  z-index: 10;
  resize: both;
  overflow: hidden;
  display: none;
}

#error-window {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#readme-window {
  top: 100px;
  left: 100px;
  width: 400px;
  height: 300px;
}

.window-titlebar {
  height: 22px;
  background: linear-gradient(to right, #000080, #1084d0);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 5px;
  cursor: move;
}

.window-title {
  flex-grow: 1;
  font-weight: bold;
  font-size: 12px;
  margin-left: 5px;
}

.window-controls {
  display: flex;
}

.window-control {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  background: silver;
  border-top: 1px solid white;
  border-left: 1px solid white;
  border-right: 1px solid #7e7e7e;
  border-bottom: 1px solid #7e7e7e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 10px;
  cursor: pointer;
}

.window-content {
  padding: 10px;
  font-size: 12px;
  overflow: auto;
  height: calc(100% - 22px);
}

.error-window .window-titlebar {
  background: linear-gradient(to right, #aa0000, #ff0000);
}

/* Calculator styling */
.calculator {
  width: 220px;
  background-color: #d4d0c8;
  border: 1px solid #7e7e7e;
  margin: 0 auto;
}

.calc-display {
  width: 100%;
  height: 40px;
  background-color: white;
  border: 1px inset #7e7e7e;
  margin-bottom: 10px;
  text-align: right;
  font-size: 20px;
  padding: 5px;
  font-family: "Calculator", monospace;
}

.calc-buttons {
  display: flex;
  flex-direction: column;
  padding: 5px;
}

.calc-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 5px;
}

.calc-button {
  width: 40px;
  height: 30px;
  background-color: #d4d0c8;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.calc-button:active {
  border-top: 2px solid #7e7e7e;
  border-left: 2px solid #7e7e7e;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
}

.calc-operator {
  background-color: #efefef;
}

.calc-clear {
  background-color: #ffcccc;
}

/* Paint styling */
.paint-tools {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
  border: 1px solid #7e7e7e;
  padding: 5px;
}

.paint-tool {
  background-color: #d4d0c8;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
  padding: 3px 6px;
  margin-right: 5px;
  cursor: pointer;
  font-size: 11px;
}

.paint-tool.selected {
  border-top: 2px solid #7e7e7e;
  border-left: 2px solid #7e7e7e;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  background-color: #efefef;
}

.paint-colors {
  display: flex;
  margin-bottom: 10px;
}

.paint-color {
  width: 20px;
  height: 20px;
  border: 1px solid #7e7e7e;
  margin-right: 5px;
  cursor: pointer;
}

.paint-color.selected {
  border: 1px solid #ffffff;
  outline: 1px solid #000000;
}

#paint-canvas {
  border: 1px inset #7e7e7e;
  background-color: white;
  cursor: crosshair;
}

/* Minesweeper styling */
.minesweeper-header {
  display: flex;
  justify-content: space-between;
  background-color: #d4d0c8;
  border: 1px inset #7e7e7e;
  padding: 5px;
  margin-bottom: 10px;
}

.mines-left, .timer {
  background-color: black;
  color: red;
  font-family: "Digital", monospace;
  font-size: 18px;
  padding: 2px 5px;
  border: 1px inset #7e7e7e;
}

.reset-button {
  width: 26px;
  height: 26px;
  background-color: #d4d0c8;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.minesweeper-grid {
  display: grid;
  grid-template-columns: repeat(9, 20px);
  grid-template-rows: repeat(9, 20px);
  border: 1px solid #7e7e7e;
}

.mine-cell {
  width: 20px;
  height: 20px;
  background-color: #d4d0c8;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}

.mine-cell.revealed {
  border: 1px solid #7e7e7e;
  background-color: #c0c0c0;
}

/* Solitaire styling */
.solitaire-game {
  width: 100%;
  height: 400px;
}

.solitaire-menu {
  display: flex;
  margin-bottom: 10px;
}

.solitaire-menu .button {
  margin-right: 10px;
}

.solitaire-table {
  background-color: #008000;
  height: 350px;
  width: 100%;
  padding: 10px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
}

.card-placeholder {
  width: 80px;
  height: 120px;
  border: 1px dashed white;
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.solitaire-columns {
  display: flex;
  width: 100%;
  margin-top: 20px;
}

.column {
  width: 80px;
  min-height: 150px;
  margin-right: 10px;
  position: relative;
}

/* Internet Explorer styling */
.browser-toolbar {
  display: flex;
  margin-bottom: 10px;
}

.browser-button {
  background-color: #d4d0c8;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
  padding: 3px 10px;
  margin-right: 5px;
  cursor: pointer;
  font-size: 11px;
}

.browser-button:active {
  border-top: 2px solid #7e7e7e;
  border-left: 2px solid #7e7e7e;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
}

.browser-address-bar {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  background-color: #d4d0c8;
  padding: 5px;
  border: 1px inset #7e7e7e;
}

.browser-address-bar span {
  margin-right: 5px;
}

.browser-address-bar input {
  flex-grow: 1;
  margin-right: 5px;
  padding: 2px 5px;
  border: 1px inset #7e7e7e;
  font-size: 11px;
}

.browser-viewport {
  background-color: white;
  border: 1px inset #7e7e7e;
  height: 300px;
  overflow: auto;
  margin-bottom: 5px;
  padding: 10px;
}

.browser-statusbar {
  background-color: #d4d0c8;
  border: 1px inset #7e7e7e;
  padding: 2px 5px;
  font-size: 11px;
}

.default-page {
  font-family: Arial, sans-serif;
  line-height: 1.4;
}

.default-page h2 {
  color: #000080;
  margin-bottom: 10px;
}

.default-page ul {
  margin-left: 20px;
}

.default-page a {
  color: #0000ff;
  text-decoration: none;
}

.default-page a:hover {
  text-decoration: underline;
}

/* Notepad styling */
.notepad-menubar {
  display: flex;
  background-color: #d4d0c8;
  border-bottom: 1px solid #7e7e7e;
  margin-bottom: 5px;
}

.menu-item {
  padding: 3px 10px;
  cursor: pointer;
  font-size: 11px;
}

.menu-item:hover {
  background-color: #0000aa;
  color: white;
}

.notepad-text {
  width: 100%;
  height: calc(100% - 25px);
  border: 1px inset #7e7e7e;
  resize: none;
  font-family: "Courier New", monospace;
  font-size: 12px;
  padding: 5px;
}

/* Media Player styling */
.media-player-controls {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  background-color: #d4d0c8;
  padding: 5px;
  border: 1px solid #7e7e7e;
}

.media-button {
  background-color: #d4d0c8;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
  padding: 2px 10px;
  margin-right: 5px;
  cursor: pointer;
  font-size: 11px;
}

.media-button:active {
  border-top: 2px solid #7e7e7e;
  border-left: 2px solid #7e7e7e;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
}

.media-volume {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.media-volume span {
  margin-right: 5px;
  font-size: 11px;
}

.media-volume input {
  width: 100px;
}

.media-player-display {
  background-color: black;
  color: #00ff00;
  font-family: "Digital", monospace;
  padding: 10px;
  margin-bottom: 10px;
}

.media-title {
  margin-bottom: 5px;
}

.media-time {
  margin-bottom: 5px;
}

.media-progress {
  height: 10px;
  background-color: #d4d0c8;
  border: 1px inset #7e7e7e;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #0000aa;
}

.media-playlist {
  border: 1px inset #7e7e7e;
  height: 150px;
  overflow-y: auto;
}

.playlist-item {
  padding: 5px;
  cursor: pointer;
  border-bottom: 1px solid #d4d0c8;
}

.playlist-item:hover {
  background-color: #0000aa;
  color: white;
}

.playlist-item.playing {
  font-weight: bold;
  background-color: #efefef;
}

/* Calendar styling */
.calendar-header {
  margin-bottom: 10px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.current-month-year {
  margin: 0 10px;
  font-weight: bold;
}

.calendar-grid {
  width: 100%;
  border: 1px solid #7e7e7e;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #d4d0c8;
  border-bottom: 1px solid #7e7e7e;
}

.day-header {
  text-align: center;
  padding: 5px;
  font-weight: bold;
  font-size: 11px;
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 30px);
}

.date-cell {
  border-right: 1px solid #d4d0c8;
  border-bottom: 1px solid #d4d0c8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.date-cell.other-month {
  color: #888;
}

.date-cell.today {
  background-color: #0000aa;
  color: white;
}

.date-cell:hover {
  background-color: #efefef;
}

/* Help Window styling */
.help-window {
  display: flex;
}

.help-sidebar {
  width: 120px;
  background-color: #d4d0c8;
  border-right: 1px solid #7e7e7e;
  padding: 5px;
}

.help-tab {
  padding: 5px;
  margin-bottom: 5px;
  cursor: pointer;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
  text-align: center;
  font-size: 11px;
}

.help-tab.active {
  border-top: 2px solid #7e7e7e;
  border-left: 2px solid #7e7e7e;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  background-color: #efefef;
}

.help-main {
  display: flex;
  flex: 1;
  background-color: white;
}

.help-section {
  width: 200px;
  padding: 10px;
  border-right: 1px solid #d4d0c8;
  overflow-y: auto;
}

.help-topics {
  list-style-type: none;
}

.help-topics li {
  margin-bottom: 5px;
}

.help-topic {
  color: #0000ff;
  text-decoration: none;
}

.help-topic:hover {
  text-decoration: underline;
}

.help-display {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.help-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000080;
}

/* Find Files Window styling */
.find-form {
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 3px;
  border: 1px inset #7e7e7e;
}

.find-results {
  border: 1px inset #7e7e7e;
  height: 200px;
  overflow-y: auto;
  padding: 5px;
}

/* Form Controls */
.button {
  background: silver;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
  padding: 5px 10px;
  margin: 5px 0;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  cursor: pointer;
  display: inline-block;
}

.button:active {
  border-top: 2px solid #7e7e7e;
  border-left: 2px solid #7e7e7e;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
}

/* Special elements */
.notification {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background: silver;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-right: 2px solid #7e7e7e;
  border-bottom: 2px solid #7e7e7e;
  padding: 10px 15px;
  font-size: 12px;
  z-index: 1000;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  transform: translateX(300px);
  transition: transform 0.3s ease-out;
}

.notification.active {
  transform: translateX(0);
}

/* Enhanced Blue Screen Styles */
.blue-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000aa;
  color: white;
  font-family: "Courier New", monospace;
  padding: 50px;
  z-index: 10000;
  display: none;
  overflow: hidden;
}

.bsod-header {
  margin-bottom: 30px;
}

.bsod-header h1 {
  font-size: 30px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0px #000055;
}

.bsod-content {
  font-family: "Courier New", monospace;
  font-size: 16px;
  line-height: 1.6;
}

#bsod-entity-text {
  color: #ff0000;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.entity-message {
  margin-bottom: 15px;
  position: relative;
}

.character-shake {
  display: inline-block;
  animation: shake 0.2s ease-in-out;
}

.typing-cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: white;
  margin-left: 2px;
  animation: blink 1s infinite;
}

.typed-char {
  display: inline;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.glitch {
  animation: glitch 0.3s infinite;
}

.reboot-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 20000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

/* Additional animations for creepy text effects */
@keyframes text-glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes text-flicker {
  0% { opacity: 1; }
  25% { opacity: 0.5; }
  50% { opacity: 0.8; }
  75% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Evil text reveal effect */
.text-reveal {
  animation: text-reveal 1.5s forwards;
  opacity: 0;
}

@keyframes text-reveal {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Face flicker effect (subtle creepy face in background) */
.bsod-face-flicker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/hidden_camera.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: -1;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.show-face {
  animation: face-flicker 0.2s forwards;
}

@keyframes face-flicker {
  0% { opacity: 0; }
  10% { opacity: 0.1; }
  20% { opacity: 0; }
  30% { opacity: 0.05; }
  40% { opacity: 0; }
  50% { opacity: 0.15; }
  60% { opacity: 0; }
  70% { opacity: 0.05; }
  100% { opacity: 0; }
}

/* Special Effects */
.glitch-text {
  position: relative;
  animation: glitch-text 3s infinite;
}

.static-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/static-overlay.png');
  pointer-events: none;
  opacity: 0.08;
  z-index: 999;
  animation: staticNoise 0.5s steps(3) infinite;
}

#tracking-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1005;
  display: none;
}

#subliminal-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: none;
  z-index: 1004;
  pointer-events: none;
}

/* Animation keyframes */
@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

@keyframes flicker {
  0% { opacity: 0; }
  5% { opacity: 0.1; }
  6% { opacity: 0; }
  90% { opacity: 0; }
  92% { opacity: 0.05; }
  94% { opacity: 0; }
  96% { opacity: 0.1; }
  98% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes vignette {
  0% { opacity: 0.7; }
  50% { opacity: 0.85; }
  100% { opacity: 0.7; }
}

@keyframes glitch {
  0% { transform: translate(0); opacity: 1; }
  20% { transform: translate(-2px, 2px); opacity: 0.95; }
  40% { transform: translate(-3px, 3px); opacity: 1; }
  60% { transform: translate(0); opacity: 0.9; }
  80% { transform: translate(2px, 2px); opacity: 1; }
  100% { transform: translate(0); opacity: 1; }
}

@keyframes shake {
  0% { transform: translate(0); }
  10% { transform: translate(-3px, 0); }
  20% { transform: translate(3px, 0); }
  30% { transform: translate(-3px, 0); }
  40% { transform: translate(3px, 0); }
  50% { transform: translate(-3px, 0); }
  60% { transform: translate(3px, 0); }
  70% { transform: translate(-3px, 0); }
  80% { transform: translate(3px, 0); }
  90% { transform: translate(-3px, 0); }
  100% { transform: translate(0); }
}

@keyframes glitch-text {
  0% { text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75); }
  14% { text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75); }
  15% { text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75); }
  49% { text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75); }
  50% { text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75); }
  99% { text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75); }
  100% { text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75); }
}

@keyframes staticNoise {
  0% { background-position: 0 0; }
  100% { background-position: 100% 100%; }
}