* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-follow-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffcc00;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #ffcc00;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.floating-follow-btn:hover {
    background: #ffcc00;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    text-decoration: none;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 640px;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid #ffcc00;
}

#input_video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

#output_canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.game-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fries {
    position: absolute;
    width: 80px;
    height: auto;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    cursor: grab;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

.fries.grabbed {
    cursor: grabbing;
    transform: translateY(-50%) scale(1.1);
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}

.fries.hidden {
    opacity: 0;
    pointer-events: none;
}

.bag {
    position: absolute;
    width: 100px;
    height: auto;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s ease;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
    z-index: 5;
}

.bag.highlight {
    transform: translateY(-50%) scale(1.1);
    filter: drop-shadow(5px 5px 15px rgba(255, 204, 0, 0.8));
}

.bag.exit {
    transform: translateY(-50%) translateX(200px);
    opacity: 0;
}

.ui {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
}

.earnings-display {
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    border: 2px solid #00ff00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.earnings-display label {
    color: #00ff00;
    font-family: 'Arial', sans-serif;
}

.timer-display {
    background: rgba(255, 0, 0, 0.8);
    color: #ffff00;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    border: 2px solid #ffff00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.timer-display label {
    color: #ffff00;
    font-family: 'Arial', sans-serif;
}

#status {
    background: rgba(0, 0, 0, 0.8);
    color: #ffcc00;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    border: 2px solid #ffcc00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.start-btn {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 0 10px;
}

.reset-btn {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 0 10px;
}

.mirror-btn {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 0 10px;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.reset-btn:hover, .mirror-btn:hover, .start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.reset-btn:active, .mirror-btn:active, .start-btn:active {
    transform: translateY(0);
}

/* Animation for successful delivery */
@keyframes success {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: success 0.6s ease-in-out;
}

/* Game over state */
.game-over .fries,
.game-over .bag {
    display: none;
}

.game-over .game-elements {
    pointer-events: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .video-container {
        width: 90vw;
        height: calc(90vw * 0.75);
    }
    
    .fries {
        width: 80px;
        left: 20px;
    }
    
    .bag {
        width: 100px;
        right: 20px;
    }
    
    #status {
        font-size: 14px;
        padding: 10px 20px;
    }
} 