/* Container for the map */

@media (min-width: 901px) {
    #mapContainer {
        width: calc(100% - 300px);
        height: calc(100vh - 100px);
    }
}

#mapContainer {
    display: grid;
    position: relative;
    border: 1px solid #000;
    width: 100%;
    height: calc(100vh - 200px);
    
    overflow:auto;
}

/* Style for each tile */
.tile {
    box-sizing: border-box;
    width: 10px; /* Default tile size */
    height: 10px; /* Default tile size */
}

/* Land tile styles */
.land {
    background-color: #a0d3a2; /* Light green for land */
}

/* Sea tile styles */
.sea {
    background-color: #00aaff; /* Vibrant blue for sea */
}

/* Style for city markers */
.city {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}

/* City labels indicating sea access */
.city-label {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 2px;
    font-size: 14px; /* Increased font size for readability */
    font-weight: bold;
    border-radius: 3px;
    color: black; /* Default color to be overridden by JS */
    background-color: transparent;
    cursor: pointer;
}

/* Style for country labels */
.country-label {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 4px;
    font-size: 16px; /* Increased font size */
    font-weight: bold; /* Bold text */
    border-radius: 4px; /* Rounded corners */
    color: #fff; /* Default color, will be overridden by JS */
    background-color: transparent; /* Will be set dynamically by JS */
}



.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    overflow: auto;
}

.overlay-content {
    background: #333;
    padding: 20px;
    border-radius: 5px;
}


#playerShip {
    position: absolute;
    width: 20px;
    height: 40px;
    background-color: brown; /* Simple representation of a boat */
    clip-path: polygon(50% 0%, 100% 100%, 50% 80%, 0% 100%);
    transform-origin: center;
    transition: transform 0.1s linear;
}