body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

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

.manni-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.checkpoint-icon {
    background-color: yellow;
    border: 1px solid black;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    width: 20px;
    height: 20px;
}

.participant-marker-icon {
    background-color: #3498db;
    color: white;
    border: 2px solid #2980b9;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);

    div {
        position: relative;
    }
    div:before {
        position: absolute;
        top: -50px;
        left: 0px;
        width: 100%;
        text-align: center;
        font-style: normal;
        font-size: 40px;
        content: "";

        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.current-location-marker {
    background-color: rgb(30, 144, 91);
    border: 2px solid rgb(31, 116, 63);
    border-radius: 4px;
    color: white;
    text-align: center;
    font-weight: bold;
    line-height: 26px;

    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);

    div {
        position: relative;
    }
    div:before {
        position: absolute;
        top: -30px;
        left: 0px;
        width: 100%;
        text-align: center;
        font-style: normal;
        font-size: 40px;
        content: "";

        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.highlighted-participant {
    background-color: #e67e22; /* Orange */
    border-color: #d35400;
}

#map-container {
    position: relative;
    width: 100%;
    height: 100svh;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0.3;

    color: red;
    pointer-events: none; /* Allows clicking through the crosshair */
    z-index: 1001; /* Ensure it's above map tiles but below controls */
}

#coords-display-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

    span {
        font-weight: bold;
    }
}

#coords-display {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 10px;
    border-radius: 5px;
    font-family: monospace;
    margin-top: 5px;
}

#coords-display-gmaps,
#center-on-me {
    padding: 10px 10px;
    border-radius: 5px;
    font-family: monospace;
    background-color: #e3e3e3;
    color: #302688;
    text-decoration: none;
    border: 2px solid #fff;
    cursor: pointer;

    display: flex;
    gap: 5px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);

    span {
        display: none;
    }
    i {
        font-size: 28px;
        font-style: normal;
    }
}

#coords-display-gmaps:hover,
#center-on-me:hover {
    background-color: #fff;
}

.live {
    background-color: rgb(30, 144, 91);
    border: 2px solid rgb(31, 116, 63);

    z-index: 6000;
}
.live div:before {
    content: "😎";
}
.sleep {
    background-color: #e67e22; /* Orange */
    border-color: #d35400;
}
.sleep div:before {
    content: "😴";
}

.participant-marker-icon.scratched {
    filter: grayscale(100%);
    z-index: 10;
}
