body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
}

h1 {
    color: #333;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin-top: 20px;
}

.map-container {
    position: relative;
    width: 100%;
    border: 2px solid #555;
    min-height: 500px;
    background-color: #e0e0e0;
}

#world-map {
    width: 100%;
    height: auto;
    display: block;
}

#map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

#drop-zone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.dot-name-container {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: grab;
    user-select: none;
    font-weight: bold;
    font-size: 1.1em;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #007bff;
    border: 2px solid black;
}

/* New style for the correct dot */
.correct-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: red;
    border: 2px solid black;
    z-index: 10;
}

.london-dot { background-color: #e74c3c; }
.helsinki-dot { background-color: #3498db; }
.new-york-dot { background-color: #f1c40f; }
.los-angeles-dot { background-color: #2ecc71; }
.delhi-dot { background-color: #9b59b6; }


.dot-name-container.placed {
    position: absolute;
    cursor: auto;
    z-index: 100;
    font-size: 0;
}

.dot-name-container.placed .dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 101;
    border: 1px solid rgba(0,0,0,0.3);
}

#check-btn {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.2em;
    background-color: #008CBA;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#check-btn:hover {
    background-color: #007bb5;
}

#score-container {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #4CAF50;
}