body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #222;
    color: white;
    overflow: hidden;
}

.game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.stats {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
}

.counter, .money {
    margin-bottom: 10px;
}

.money {
    color: #4CAF50;
}

.window-area {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#dirtCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.85;
}

#clothCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.completion-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 24px;
    border: 3px solid #4CAF50;
}

.completion-message h2 {
    color: #4CAF50;
    margin-top: 0;
    font-size: 36px;
}

.hidden {
    display: none;
}

/* Webcam mirror effect */
#video {
    transform: scaleX(-1);
}

#canvas, #dirtCanvas, #clothCanvas {
    transform: scaleX(-1);
} 