body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

#map {
    height: 100vh;
    width: 100%;
}

#game-info {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 250px;
    box-sizing: border-box;
}

#game-info h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

#game-info p {
    margin: 10px 0;
    word-wrap: break-word;
}

.range-container {
    margin: 15px 0;
}

.range-container label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.range-slider {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.range-button {
    width: 30px;
    height: 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
}

.range-button:hover {
    background: #45a049;
}

.range-container input[type="range"] {
    flex: 1;
    margin: 0 10px;
}

.range-value {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

button {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background: #45a049;
}

/* Welcome Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.welcome-modal {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.welcome-modal h1 {
    color: #4CAF50;
    margin-top: 0;
    font-size: 2em;
}

.welcome-modal p {
    margin: 15px 0;
    line-height: 1.5;
    font-size: 1.1em;
    text-align: left;
}

.welcome-modal ul {
    text-align: left;
    margin: 15px 0;
    padding-left: 20px;
}

.welcome-modal li {
    margin-bottom: 10px;
    line-height: 1.4;
}

.play-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 1.2em;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: #45a049;
}

/* Mobile and Small Height Responsive Styles */
@media (max-width: 768px), (max-height: 600px) {
    #game-info {
        width: auto;
        max-width: 250px;
        padding: 10px;
    }

    #game-info h2,
    #game-info .range-container,
    #game-info div[style*="background: #f5f5f5"] /* Stats panel */ {
        display: none;
    }

    /* Keep the target panel visible but more compact */
    #game-info div[style*="text-align: center"] {
        margin: 0;
        padding: 10px;
    }

    /* Adjust font sizes for better mobile display */
    #game-info div[style*="font-size: 1.4em"] {
        font-size: 1.2em !important;
        margin-bottom: 10px !important;
    }

    #game-info div[style*="font-size: 0.9em"] {
        font-size: 0.8em !important;
        margin-bottom: 8px !important;
    }

    /* Make the next round button more compact */
    #game-info button#next-round {
        padding: 8px 16px;
        font-size: 1em !important;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    #game-info {
        right: 10px;
        padding: 8px;
    }
}

/* Labels Toggle Button */
.toggle-labels-btn {
    background: none !important;
    color: #666;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9em;
    margin-top: 5px;
    transition: color 0.3s;
}

.toggle-labels-btn:hover {
    color: #333;
}

/* Tooltip Toggle Button */
.toggle-tooltip-btn {
    background: none !important;
    color: #666;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9em;
    margin-top: 5px;
    margin-left: 10px;
    transition: color 0.3s;
}

.toggle-tooltip-btn:hover {
    color: #333;
}

/* Suburb Tooltip */
.suburb-tooltip {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.9em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide toggle buttons on mobile or small screens */
@media (max-width: 768px), (max-height: 600px) {
    .toggle-labels-btn,
    .toggle-tooltip-btn {
        display: none;
    }
} 