@font-face {
    font-family: 'Runescape';
    src: url('Runescape-Quill.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Runescape', Arial, sans-serif;
    color: #8A8A8A; /* Dark pastel grey for all text */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #1a1a1a;
}

#content {
    display: flex;
    width: 900px;
    height: 700px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    border: 2px solid #8A8A8A; /* Dark pastel grey border */
    border-radius: 8px;
}

#sidebar {
    width: 280px;
    background-color: #000000; /* Solid black background */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    border: 2px solid #8A8A8A; /* Dark pastel grey border */
    border-radius: 8px;
}

#map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000; /* Solid black background */
    z-index: 10;
    border: 2px solid #8A8A8A; /* Dark pastel grey border for map container */
}

#map-image {
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    image-rendering: crisp-edges;
    max-width: none;
    transform: scale(3);
    transform-origin: 0 0;
}

#crosshair {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 15;
    display: block;
    background-image: url('crosshair.png');
    background-size: cover;
    background-position: center;
}

.coord-input {
    margin-bottom: 20px;
}

.coord-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

label {
    font-family: 'Runescape', Arial, sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #8A8A8A; /* Dark pastel grey */
    text-shadow: 1px 1px 1px #000; /* Keep subtle shadow for readability */
    display: block;
    margin-bottom: 8px;
}

input, select, span {
    font-family: 'Runescape', Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #8A8A8A; /* Dark pastel grey */
    text-shadow: 1px 1px 1px #000; /* Keep subtle shadow */
}

input, select {
    padding: 10px;
    background-color: #1a1a1a; /* Dark grey for inputs */
    color: #8A8A8A; /* Dark pastel grey text */
    border: 1px solid #8A8A8A; /* Dark pastel grey border */
    border-radius: 4px;
}

/* Remove number input arrows */
input[type=number] {
    -moz-appearance: textfield;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input {
    width: 70px;
    text-align: center;
}

select {
    width: 100px;
}

span {
    font-size: 18px;
}

button {
    background-image: url('button.png');
    background-repeat: repeat;
    background-size: auto;
    color: #8A8A8A; /* Dark pastel grey text */
    border: 2px solid #8A8A8A; /* Dark pastel grey border */
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Runescape', Arial, sans-serif;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 
        1px 1px 0px #000,   /* Black outline for contrast */
        -1px -1px 0px #000,
        1px -1px 0px #000,
        -1px 1px 0px #000;
    width: 100%;
    min-height: 50px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    filter: brightness(0.9); /* Make button slightly less bright */
}

button:hover {
    filter: brightness(1); /* Return to normal brightness on hover */
    transform: translateY(-2px);
}

h2 {
    font-family: 'Runescape', Arial, sans-serif;
    font-weight: bold;
    font-size: 26px;
    color: #8A8A8A; /* Dark pastel grey */
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 1px #000;
    border-bottom: 2px solid #8A8A8A; /* Dark pastel grey border */
    padding-bottom: 10px;
}