/*
 * Always set the map height explicitly to define the size of the div element
 * that contains the map.
 */
gmp-map {
    height: 100%;
}

/*
   * Optional: Makes the sample page fill the window.
   */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

h3 {
    font-size: 75px;
    display: inline;
    margin: 0 10px;
}

#controls {
    background-color: black;
    color: #1c8b12;
    font-family: 'Courier New', monospace;
    padding: 10px;
    border: 2px solid #00ff00;
    margin: 0 auto;
    padding-top: 0px;
    padding-bottom: 0px;
    word-spacing: 150px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

#map {
    color: #00ff00;
}

#radio-icon {
    background-color: black;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 10px;
    border: 2px solid #00ff00;
    font-size: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    word-spacing: normal;
}

.modal-content {
    background-color: black;
    border: 2px solid #1c8b12;
    box-shadow: 0 0 15px #1c8b12;
    padding: 20px;
    width: 50%;
    max-width: 600px;
    font-family: 'Courier New', monospace;
}

.modal-text {
    color: #00ff00;
    font-size: 24px;
    line-height: 1.4;
    text-shadow: 0 0 5px #1c8b12;
    word-spacing: 0px;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
}

.ok-btn {
    background: none;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 28px;
    cursor: pointer;
    text-shadow: 0 0 5px #1c8b12;
}

.ok-btn:hover {
    background-color: #1c8b12;
    color: black;
}

.pip-input {
    background: black;
    border: 1px solid #1c8b12;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
    box-shadow: inset 0 0 5px #1c8b12;
}

.pip-input:focus {
    box-shadow: 0 0 10px #00ff00;
}

.gm-style .gm-style-iw-c {
    background-color: black !important;
    border: 2px solid #1c8b12 !important;
    box-shadow: 0 0 15px #1c8b12 !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    color: #00ff00 !important;
}

.remove-btn:hover {
    background-color: #1c8b12 !important;
    color: black !important;
}

.gm-ui-hover-effect {
    display: none !important;
}

.pip-input::placeholder {
    color: rgba(28, 139, 18, 0.5);
    font-style: italic;
}

#distance-display {
    position: fixed;
    bottom: 50px;
    right: 30px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #1c8b12;
    padding: 15px;
    font-family: 'Courier New', monospace;
    color: #03f500;
    box-shadow: 0 0 10px #1c8b12;
    z-index: 1000;
    min-width: 150px;
    text-align: center;
}

.dist-label {
    margin: 0;
    font-size: 14px;
    text-decoration: underline;
    opacity: 0.8;
}

#dist-value,
#fuel-value {
    margin: 5px 0 0 0;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 5px #03f500;
    color: #03f500;
    word-spacing: 0px;
}

#quest-items::-webkit-scrollbar {
    width: 8px;
}

#quest-items::-webkit-scrollbar-track {
    background: black;
}

#quest-items::-webkit-scrollbar-thumb {
    background: #1c8b12;
    border: 1px solid #00ff00;
}

.quest-item {
    transition: background 0.2s;
}

.quest-item:hover {
    background: rgba(28, 139, 18, 0.1);
}

#inventory-items-body tr {
    border-bottom: 1px solid rgba(28, 139, 18, 0.3);
}

#inventory-items-body tr:hover {
    background: rgba(28, 139, 18, 0.1);
}

#inventory-items-body td {
    padding: 8px 10px;
    font-size: 18px;
}

select.pip-input {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%231c8b12' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 5px center;
}

[contenteditable="true"]:focus {
    outline: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

#inventory-items-body td {
    border-bottom: 1px solid rgba(28, 139, 18, 0.2);
}

#caps-display:hover {
    background: rgba(0, 255, 0, 0.1);
    cursor: text;
}

.delete-btn {
    background: transparent;
    color: #ff4444; 
    border: 1px solid #ff4444;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    font-weight: bold;
    padding: 2px 8px;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #ff4444;
    color: black;
    box-shadow: 0 0 10px #ff4444;
}

.pip-cell {
    color: #00ff00;
    padding: 10px;
    outline: none;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #1c8b12;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.stat-box span {
    color: #fff;
    border-bottom: 1px dashed #1c8b12;
}

.stat-main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
}

.limb-row {
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.limb-slider {
    appearance: none;
    width: 100px;
    height: 8px;
    background: #082a05;
    outline: none;
    border: 1px solid #1c8b12;
}

.limb-slider::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: #1c8b12;
    cursor: pointer;
}

.stimpack-display {
    text-align: right;
    border-left: 2px solid #1c8b12;
    padding-left: 15px;
}

.stim-count {
    font-size: 2rem;
    color: #fff;
}

.pip-slider {
    -webkit-appearance: none;
    width: 120px;
    height: 8px;
    background: rgba(28, 139, 18, 0.3);
    outline: none;
    border: 1px solid #1c8b12;
}

.pip-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 20px;
    background: #00ff00;
    cursor: pointer;
    border: 1px solid #1c8b12;
}

.pip-slider::-moz-range-thumb {
    width: 15px;
    height: 20px;
    background: #00ff00;
    cursor: pointer;
    border: 1px solid #1c8b12;
}