/* Map container styles */
#map {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Controls container */
.controls-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Button styles */
.map-button {
    margin: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.map-button:hover {
    background-color: #0056b3;
}

/* Score display */
.score-display {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 1.2em;
    font-weight: bold;
}

/* Guess marker styles */
.guess-marker {
    background-color: red;
    border-radius: 50%;
    border: 2px solid white;
    width: 12px;
    height: 12px;
}

/* Target marker styles */
.target-marker {
    background-color: green;
    border-radius: 50%;
    border: 2px solid white;
    width: 12px;
    height: 12px;
}

/* Line connecting markers */
.connection-line {
    stroke: #ff0000;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    opacity: 0.7;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .controls-container {
        top: auto;
        bottom: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
    
    .map-button {
        padding: 10px 20px;
        font-size: 16px;
    }
}
