* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #ffffff;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#map {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#mission-panel {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 2;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 60vh;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

#mission-panel.hidden {
    transform: translateY(100%);
}

h1 {
    font-family: 'Press Start 2P', cursive;
    color: #00ff00;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

#player-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.mission {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.mission:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.mission h3 {
    color: #00ff00;
    margin-bottom: 10px;
}

.start-mission {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.start-mission:disabled {
    background: #666;
    cursor: not-allowed;
}

.start-mission:hover:not(:disabled) {
    background: #00cc00;
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
}

#camera-preview {
    width: 100%;
    border-radius: 10px;
    margin: 15px 0;
}

.camera-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.camera-controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#capture-btn {
    background: #00ff00;
    color: #000;
}

#submit-btn {
    background: #0066ff;
    color: white;
}

#retake-btn {
    background: #ff3300;
    color: white;
}

.mission-status {
    font-weight: bold;
    color: #ffff00;
}

.map-control-button {
    position: fixed;
    z-index: 1001;
    background: white;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#center-location {
    bottom: 20px;
    right: 20px;
}

.mission-toggle {
    top: 20px;
    right: 20px;
}

/* Add margin to leaflet controls to avoid overlap with our mission toggle */
.leaflet-top.leaflet-right {
    margin-top: 70px;
}

.map-control-button:hover {
    background: #f4f4f4;
    transform: scale(1.05);
}

.map-control-button:active {
    transform: scale(0.95);
}

.map-control-button i {
    font-size: 20px;
    color: #666;
}

.mission-handle {
    cursor: grab;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.mission-handle:active {
    cursor: grabbing;
}

@media (max-width: 768px) {
    #mission-panel {
        max-height: 70vh;
    }

    h1 {
        font-size: 1.5em;
    }

    .mission h3 {
        font-size: 1.1em;
    }

    .camera-controls {
        flex-direction: column;
    }

    .camera-controls button {
        width: 100%;
    }
}

.preview-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#preview-image {
    width: 100%;
    height: 50vh;
    object-fit: contain;
    background: #000;
    padding: 20px;
}

.mission-details {
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    flex: 1;
    overflow-y: auto;
}

#image-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#image-preview.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.close-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1003;
    transition: all 0.3s ease;
}

.close-preview:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.close-preview:active {
    transform: scale(0.9);
}

.difficulty-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 12px;
}

.difficulty-badge.easy {
    background: #4CAF50;
    color: white;
}

.difficulty-badge.normal {
    background: #FFC107;
    color: black;
}

.difficulty-badge.hard {
    background: #f44336;
    color: white;
}

.mission-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #00ff00;
    font-family: 'Press Start 2P', cursive;
}

.mission-description {
    margin-bottom: 15px;
    line-height: 1.4;
    color: #ffffff;
}

.mission-status {
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffff00;
}

.start-mission {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.start-mission:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.start-mission:hover:not(:disabled) {
    background: #00cc00;
    transform: scale(1.05);
}

.compass-button {
    bottom: 20px;
    left: 20px;
    position: fixed;
    overflow: visible;
}

.compass-button.north-locked {
    background: #e8f4ff;
    border-color: #0066cc;
}

.compass-button .fa-compass {
    font-size: 24px;
    color: #0066cc;
}

.compass-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 16px;
    background: #ff3300;
    transform-origin: bottom center;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.compass-button.north-locked .compass-arrow {
    display: none;
}

.preview-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
} 