/* =========================
   GLOBAL STYLES
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: black;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

/* =========================
   MENU SCREEN
========================= */

#menu {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu h1 {
    font-size: 55px;
    color: white;
    text-shadow: 0 0 15px red, 0 0 30px darkred;
    margin-bottom: 30px;
}

button {
    padding: 14px 30px;
    font-size: 18px;
    background: darkred;
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: red;
    transform: scale(1.05);
}

/* =========================
   GAME AREA
========================= */

#game {
    display: none;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Office background */
#office {
    width: 100%;
    height: 100%;
    background: url('office.jpg') center/cover no-repeat;
    filter: brightness(0.6);
}

/* Camera view overlay */
#cameraView {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('camera.jpg') center/cover no-repeat;
    filter: grayscale(100%) contrast(1.2);
}

/* Static effect overlay */
#cameraView::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.05) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
}

/* =========================
   HUD
========================= */

#hud {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 14px;
}

#powerBar {
    width: 220px;
    height: 20px;
    border: 2px solid white;
    margin-top: 5px;
}

#power {
    height: 100%;
    width: 100%;
    background: lime;
    transition: width 0.3s;
}

#cameraBtn {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

#night {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
}

/* =========================
   JUMPSCARE
========================= */

#jumpscare {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('jumpscare.png') center/cover no-repeat;
    animation: shake 0.2s infinite;
}

/* Screen shake animation */
@keyframes shake {
    0% { transform: translate(0px, 0px); }
    25% { transform: translate(5px, -5px); }
    50% { transform: translate(-5px, 5px); }
    75% { transform: translate(5px, 5px); }
    100% { transform: translate(0px, 0px); }
}