/* Game Header */
.game-header {
    background: linear-gradient(90deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.game-nav .nav-back {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.game-nav .nav-back:hover {
    opacity: 0.8;
}

.game-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Game Canvas Container */
.game-canvas-container {
    position: relative;
    width: 800px;
    height: 600px;
    margin: 0 auto;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background: #87CEEB;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Game UI Overlay */
.game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Pause Menu */
.pause-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.pause-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pause-content h2 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.5rem;
}

/* Delivery Info */
.delivery-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    max-width: 250px;
    pointer-events: auto;
}

.delivery-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #4CAF50;
}

.delivery-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Controls Help */
.controls-help {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    pointer-events: auto;
}

.controls-help h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #FFC107;
}

.control-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.key {
    background: #333;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.action {
    margin-left: 0.5rem;
    color: #ccc;
}

/* Game Controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
}

.control-btn {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.control-btn:hover {
    background: #45a049;
}

.control-btn:active {
    transform: translateY(1px);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification-success {
    background: #4CAF50;
    border-left: 4px solid #45a049;
}

.notification-error {
    background: #f44336;
    border-left: 4px solid #d32f2f;
}

.notification-info {
    background: #2196F3;
    border-left: 4px solid #1976D2;
}

.notification-warning {
    background: #FF9800;
    border-left: 4px solid #F57C00;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .game-canvas-container {
        width: 100%;
        max-width: 800px;
        height: auto;
        aspect-ratio: 4/3;
    }
    
    .delivery-info {
        max-width: 200px;
        font-size: 0.8rem;
    }
    
    .controls-help {
        font-size: 0.8rem;
    }
    
    .game-controls {
        flex-wrap: wrap;
    }
    
    .control-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .game-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .game-canvas-container {
        border: none;
        border-radius: 0;
    }
    
    .delivery-info,
    .controls-help {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        margin: 1rem;
        max-width: none;
    }
    
    .game-ui {
        position: relative;
        height: auto;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .game-stats {
        justify-content: center;
    }
} 