body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000;
    color: #0F0;
    text-align: center;
    margin: 0;
    overflow: hidden;
}

#scale-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}



.reaction-text {
    font-size: 1.2em;
    font-weight: bold;
}

.action-text {
    color: rgb(40, 173, 28); /* You can change the color to whatever you prefer */
    font-size: 1.1em;
    font-weight: bold;
}
#autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000; /* Match the terminal background */
    color: #0F0; /* Match the terminal text color */
    border: 1px solid #0F0; /* Match the terminal border color */
    z-index: 999;
    display: none; /* Hidden by default */
    padding: 0;
}

.autocomplete-suggestion {
    padding: 5px;
    cursor: pointer;
    background-color: rgba(0, 255, 0, 0.1); /* Light green background for suggestions */
    color: #0F0; /* Suggestion text color */
    font-size: 14px;
}

.autocomplete-suggestion:hover {
    background-color: rgba(0, 255, 0, 0.3); /* Darker green when hovering */
}
#game-container {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#terminal {
    width: 80vw;  /* 80% of the viewport width */
    height: 60vh; /* 60% of the viewport height */
    background-color: #000;
    border: 2px solid #0F0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}


#terminal-header-koal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0F0;
    padding: 5px;
}

.tab-container-koal {
    display: flex;
    align-items: center;
}

.tab {
    flex-grow: 1;
    padding: 5px 10px;
    cursor: pointer;
    background-color: #000;
    color: #0F0;
    margin-right: 2px;
}

.active-tab {
    background-color: rgb(65, 65, 65);
}

.tab:hover {
    background-color: #111;
}

#game-tab {
    border-left: 2px solid #0F0;
}

.button-container-koal {
    display: flex;
    align-items: center;
}

.header-button-koal {
    padding: 5px;
    cursor: pointer;
    background-color: #000;
    color: #0F0;
    border-left: 2px solid #0F0;
}

.header-button-koal:hover {
    background-color: #111;
}
.fighting .header-button-koal {
    border-left: 2px solid rgb(194, 0, 0);
    color: rgb(194, 0, 0);
}

.big-text {
    font-size: 1.2em;
    font-weight: bold;
    color: rgb(158 255 158);
    text-align: center;
}
.chritical-hit {
    color: red;
    font-size: 1.5em;
    font-weight: bold;
}

#terminal-body-koal {
    display: flex;
    flex-direction: column;
    height: calc(100% - 20px);
    overflow-y: auto;
}

#terminal-body-koal::-webkit-scrollbar {
    display: none;
}

#output-container-koal::-webkit-scrollbar {
    display: none;
}

#output-koal {
    font-size: 14px;
    line-height: 0.5;
}

#input-container-koal {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: #000;
    border-top: 2px solid #0F0;
    position: sticky;
    bottom: 0;
}
#output-container-koal {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 10px;
    height: 100%;
}

#prompt-koal {
    color: #0F0;
    font-weight: bold;
    margin-right: 5px;
}


#input-koal {
    background-color: transparent;
    border: none;
    color: #0F0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    outline: none;
    width: calc(100% - 30px);
    position: relative;
    z-index: 1; /* Ensure it stays above the autocomplete suggestions */
}

.tab-content {
    display: none; /* Hide all tab contents by default */
    margin-bottom: 30px;
    height: calc(100% - 30px); /* Set a specific height */
    overflow-y: auto; /* Enable vertical scrolling */
}

.tab-content::-webkit-scrollbar {
    display: none;
}

.tab-content.active {
    display: block; /* Show only the active tab content */
}

#map-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Adjust for the number of columns */
    gap: 5px;
    margin-top: 10px;
}

.room {
    position: relative;
    width: 100%;
    height: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    color: #0F0;
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cell-1 { grid-area: 1 / 1 / 2 / 2; }
.cell-2 { grid-area: 1 / 2 / 2 / 3; }
.cell-3 { grid-area: 2 / 1 / 3 / 2; }
.cell-4 { grid-area: 2 / 2 / 3 / 3; }

.direction-icon {
    color: blue;
    font-size: 14px;
    margin-right: 15px;
    font-weight: bold;
}

.exclamation-mark {
    color: red;
    font-size: 14px;
    margin-right: 15px;
    font-weight: bold;
}

.item-icon {
    color: yellow;
    font-size: 14px;
    margin-right: 15px;
    font-weight: bold;
}

.item-icon, .exclamation-mark, .direction-icon, .current-room-dot {
    position: absolute; /* Positioned within the cell */
    max-width: 100%;
    max-height: 100%;
    /* Optional: You might need additional styling for different elements */
}

.room:not(:empty) {
    visibility: visible; /* Only show blocks with room content */
    background: rgba(128, 128, 128, 0.336);
}

.current-room-dot {
    width: 10px;
    height: 10px;
    background-color: #0F0;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wall-north {
    border-top: 2px solid #0F0; /* Slightly darker shade for walls */
}

.wall-south {
    border-bottom: 2px solid #0F0;
}

.wall-east {
    border-right: 2px solid #0F0;
}

.wall-west {
    border-left: 2px solid #0F0;
}

.doorway-north {
    border-top: 2px dashed #0F0;
}

.doorway-south {
    border-bottom: 2px dashed #0F0;
}

.doorway-east {
    border-right: 2px dashed #0F0;
}

.doorway-west {
    border-left: 2px dashed #0F0;
}

#tab-content-help, #tab-content-fight-help {
    padding: 10px;
    text-align: left;
}

#tab-content-help, #tab-content-fight-help h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

#tab-content-help, #tab-content-fight-help p {
    margin-bottom: 10px;
}

#tab-content-help, #tab-content-fight-help ul {
    list-style-type: disc;
    margin-left: 10px;
    margin-right: 10px;
}

#tab-content-help, #tab-content-fight-help ul li {
    margin-bottom: 5px;
}


.entity {
    color: orange;
}

.item {
    color: yellow;
}

.help-section {
    margin-bottom: 15px;
}

.dropdown-btn {
    background-color: #000; /* Match the terminal background */
    color: #0F0; /* Terminal text color */
    padding: 10px;
    font-size: 14px;
    border: 2px solid #0F0; /* Border to make the dropdown buttons stand out */
    cursor: pointer;
    width: 100%;
    text-align: left;
    outline: none;
    font-family: 'Courier New', Courier, monospace; /* Match terminal font */
}

.dropdown-btn:after {
    content: '\\25BC'; /* Down arrow */
    float: right;
}

.dropdown-btn.active:after {
    content: '\\25B2'; /* Up arrow */
}

.dropdown-content {
    padding: 10px 18px; /* Ensure padding inside the dropdown content */
    display: none;
    overflow: hidden;
    background-color: #000; /* Match the terminal background */
    color: #0F0; /* Terminal text color */
    border-left: 3px solid #0F0; /* Border to differentiate content */
    border-bottom: 3px solid #0F0; /* Border to differentiate content */
    border-right: 3px solid #0F0; /* Border to differentiate content */
    font-family: 'Courier New', Courier, monospace; /* Match terminal font */
}

#tab-content-changelog {
    padding: 10px 18px; /* Ensure padding inside the dropdown content */
    display: none;
    overflow: hidden;
    background-color: #000; /* Match the terminal background */
    color: #0F0; /* Terminal text color */
    text-align: left;
    font-family: 'Courier New', Courier, monospace; /* Match terminal font */
}

.status-container {
    display: flex;
    flex-wrap: wrap;
    border-radius: 8px;
    padding: 15px;
    color: #0F0;
    text-align: left;
}

/* Description section styling */
.status-description, .status-inventory, .status-exits, .status-entities, .status-stats {
    flex: 1 1 100%; /* Full width on small screens, shared width on larger screens */
    min-width: 250px;
    background-color: #2a2a2a9a;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}



.status-description h3, .status-inventory h3, .status-exits h3, .status-entities h3, .status-stats h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #0f0;
    text-decoration: underline;
}

.status-description p, .status-inventory p, .status-exits p, .status-entities p, .status-stats p {
    font-size: 14px;
    line-height: 1.5;
    color: #0F0;
}

/* Inventory and items styling */
.item-list p {
    margin: 0;
    color: yellow;
    font-size: 0.9em;
}

.entity-list p {
    margin: 0;
    color: orange;
    font-size: 0.9em;
}

.exit-list p {
    margin: 0;
    color: cyan;
    font-size: 0.9em;
}

/* Equipped items and stats table styling */
.status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    color: #0F0;
}

.status-table td {
    padding: 5px;
    border: 1px solid #ccc;
    text-align: left;
}

.status-table .table-header {
    font-weight: bold;
    color: #FFF;
    background-color: #333;
}

/* Add visual markers for special actions or important items */
.item-action, .entity-action, .exit-action {
    font-weight: bold;
    color: #FF0;
}

/* Responsive design tweaks */
@media (max-width: 600px) {
    .status-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    #terminal {
        width: 90vw;  /* Adjust width for smaller screens */
        height: 70vh; /* Adjust height for smaller screens */
        transform-origin: center;
        transition: transform 0.3s ease;
    }
}

@media (max-width: 480px) {
    #terminal {
        width: 95vw;  /* Adjust width for very small screens */
        height: 80vh; /* Adjust height for very small screens */
        transform-origin: center;
        transition: transform 0.3s ease;
    }
}

@media (min-width: 1400px) {
    #output-koal {
        font-size: large;   
    }
}

@media (min-width: 1800px) {
    #output-koal {
        font-size: x-large;   
    }
}
.settings-section {
    margin: 20px;
    color: #0F0;
    font-size: 16px;
    text-align: left;
    border: #00C000 2px solid;
    padding: 10px;
}

.slider-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.settings-section input[type="checkbox"] {
    margin-left: 10px;
}


#text-speed-slider {
    flex-grow: 1;
    margin-right: 10px;
    accent-color: #0F0; /* Set slider color to match game theme */
    -webkit-appearance: none; /* Remove default styling */
    appearance: none;
    background-color: #333; /* Track color */
    height: 10px;
    border-radius: 0; /* Remove rounding for a blocky feel */
}

#text-speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; /* Thumb width */
    height: 20px; /* Thumb height */
    background-color: #0F0; /* Thumb color */
    cursor: pointer;
    border-radius: 0; /* Remove rounding for a blocky feel */
    border: 2px solid #00C000; /* Add a border for better visibility */
}

#text-speed-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #0F0;
    cursor: pointer;
    border-radius: 0;
    border: 2px solid #00C000;
}

#slider-preview {
    background-color: #000;
    color: #0F0;
    padding: 5px;
    border: 1px solid #0F0;
    border-radius: 5px;
    font-size: 14px;
}

/* Toggle switch container */
.switch-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

/* Hide the default checkbox */
.settings-section input[type="checkbox"] {
    display: none;
}

/* Create the slider track */
.slider {
    position: relative;
    margin-left: 15px;
    width: 50px;
    height: 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid #0F0;
}

/* Slider circle (toggle knob) */
.slider::before {
    content: "";
    position: absolute;
    width: 21px;
    height: 21px;
    background-color: #00C000;
    border-radius: 50%;
    top: 50%;
    left: 2px;
    transform: translate(0, -50%);
    transition: left 0.3s ease, background-color 0.3s ease;
}

/* When the checkbox is checked, move the slider */
.settings-section input[type="checkbox"]:checked + .slider::before {
    left: calc(100% - 23px);
    background-color: #0F0;
}

/* Change the background color when the checkbox is checked */
.settings-section input[type="checkbox"]:checked + .slider {
    background-color: #1A1A1A;
}

/* Optional: Add a label next to the slider */
.switch-label {
    margin-left: 10px;
    font-size: 16px;
    color: #0F0;
}

#text-alignment-buttons {
    display: flex;
    justify-content: space-around; /* Space buttons evenly */
    margin-top: 10px;
    margin-left: 20px;
}

.alignment-button {
    background-color: #000;
    color: #0F0;
    border: 2px solid #0F0;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px; /* Increase font size for icons */
    display: flex;
    align-items: center; /* Center the icon vertically */
    justify-content: center; /* Center the icon horizontally */
    margin: 0 5px; /* Space between buttons */
    min-width: 40px; /* Ensure buttons have a minimum width */
}

.alignment-button:hover {
    background-color: #111;
}

.alignment-button:active {
    background-color: #222;
}


body.dark-mode #terminal {
    background-color: #1e1e1e; /* Darker terminal background */
    border-color: #444; /* Darker border color */
}

body.dark-mode #terminal-header-koal {
    background-color: #444; /* Darker header background */
}

body.dark-mode .tab {
    background-color: #111; /* Darker tab background */
}

body.dark-mode .tab:hover {
    background-color: #222; /* Darker tab hover background */
}

body.dark-mode .active-tab {
    background-color: #333; /* Darker active tab background */
}

body.dark-mode .header-button-koal {
    background-color: #111; /* Darker button background */
    border-color: #444;
}

body.dark-mode .header-button-koal:hover {
    background-color: #222; /* Darker button hover background */
}

body.dark-mode #input-container-koal {
    border-color: #444; /* Darker button border color */
    background-color: transparent; /* Darker button background */
}