
/* Basic reset and dark theme */
body { margin: 0; font-family: Arial, sans-serif; background: #000; color: #fff; }
.hidden { display: none; }
#menu { text-align: center; padding-top: 20vh; }
#menu button { padding: 0.8em 1.5em; font-size: 1em; background: #444; color: #fff; border: none; cursor: pointer; }
#menu button:hover { background: #555; }

#game { position: relative; height: 100vh; }

.office { position: relative; width: 100%; height: 100%; overflow: hidden; }
.office img { width: 100%; height: 100%; object-fit: cover; }

.door-btn { position: absolute; bottom: 1em; padding: 0.5em 1em; background: #222; color: #fff; border: 1px solid #555; cursor: pointer; }
.door-btn.left { left: 1em; }
.door-btn.right { left: 7em; }
.cam-btn { position: absolute; bottom: 1em; left: 50%; transform: translateX(-50%); padding: 0.5em 1em; background: #222; border: 1px solid #555; color: #fff; cursor: pointer; }

.power-container { position: absolute; right: 1em; bottom: 1em; width: 20%; height: 0.5em; background: #333; border: 1px solid #555; display: flex; align-items: center; }
.power-fill { background: #0f0; height: 100%; width: 100%; }
.power-container span { margin-left: 0.5em; font-size: 0.8em; }

.clock { position: absolute; right: 1em; bottom: 2.5em; font-size: 0.9em; }

/* Overlay styling */
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 1em; }
.overlay.hidden { display: none; }
.close-btn { margin-top: 0.5em; padding: 0.4em 0.8em; background: #222; color: #fff; border: 1px solid #555; cursor: pointer; }
.camera-title { font-size: 1.2em; margin-bottom: 0.5em; }
.camera-view { max-width: 80vw; max-height: 60vh; object-fit: contain; }

/* Camera map grid using flex */
.camera-map { width: 90%; max-width: 500px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3em; margin-top: 0.5em; }
.camera-map .camera-item { flex: 0 0 calc(33% - 0.3em); padding: 0.4em 0; background: #111; border: 1px solid #444; color: #fff; font-size: 0.8em; text-align: center; cursor: pointer; }
.camera-map .camera-item.active { background: #444; }

/* Jumpscare */
.jumpscare-img { max-width: 80vw; max-height: 80vh; object-fit: contain; margin-top: 20vh; }

/* End overlay */
.end-message { font-size: 2em; margin-top: 30vh; text-align: center; }
.restart-btn { margin-top: 1em; padding: 0.6em 1.2em; background: #444; color: #fff; border: 1px solid #666; cursor: pointer; }
