/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: #f0d9b5;
    color: #333;
    padding: 20px;
    line-height: 1.6;
}

#game-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff7e6;
    border: 3px solid #8b4513;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

#header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 10px;
}

h1 {
    color: #8b4513;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

h3 {
    color: #8b4513;
    border-bottom: 1px solid #8b4513;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Top Section Styles */
#top-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 10px;
}

#map-container, #inventory-container, #stats-container {
    width: 32%;
    background-color: #f8edd1;
    border: 1px solid #8b4513;
    border-radius: 5px;
    padding: 10px;
    height: 200px;
    overflow-y: hidden;
}

#map, #inventory, #stats {
    height: 150px;
    overflow-y: auto;
}

/* Conversation Status */
#conversation-status {
    background-color: #8b4513;
    color: white;
    padding: 8px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#conversation-status-content {
    flex: 1;
}

.hidden {
    display: none !important;
}

/* Main Section Styles */
#main-section {
    margin-bottom: 20px;
}

#text-display {
    background-color: #f8edd1;
    border: 1px solid #8b4513;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    height: 400px; /* Increased height for better readability */
    overflow-y: auto;
    font-size: 1.1em;
    line-height: 1.5;
}

/* Improved message styling */
.game-message {
    margin-bottom: 12px;
    padding: 5px;
    border-radius: 5px;
}

.player-command {
    color: #006699;
    font-weight: bold;
    margin: 10px 0;
    background-color: rgba(0, 102, 153, 0.1);
    padding: 5px 8px;
    border-radius: 4px;
    border-left: 3px solid #006699;
}

.error-message {
    color: #cc0000;
    background-color: rgba(204, 0, 0, 0.1);
    border-left: 3px solid #cc0000;
    padding-left: 10px;
}

.response-divider {
    margin: 12px 0;
}

.response-divider hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(139, 69, 19, 0), rgba(139, 69, 19, 0.75), rgba(139, 69, 19, 0));
}

#input-section {
    display: flex;
    margin-bottom: 10px;
}

#player-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #8b4513;
    border-radius: 5px 0 0 5px;
    font-size: 1em;
}

#submit-button {
    padding: 10px 20px;
    background-color: #8b4513;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
}

#submit-button:hover {
    background-color: #6d350f;
}

#history-container {
    background-color: #f8edd1;
    border: 1px solid #8b4513;
    border-radius: 5px;
    padding: 10px;
    height: 150px;
    overflow: hidden;
}

#command-history {
    height: 130px;
    overflow-y: auto;
    padding-right: 5px;
}

#command-history p {
    margin: 2px 0;
    padding: 3px;
    border-bottom: 1px dotted #ccc;
}

.command-entry {
    color: #006699;
    font-weight: bold;
}

/* Game Menu Styles */
#game-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#game-menu button {
    padding: 10px 20px;
    background-color: #8b4513;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#game-menu button:hover {
    background-color: #6d350f;
}

/* Popup Styles */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#popup-content {
    background-color: #fff7e6;
    border: 3px solid #8b4513;
    border-radius: 10px;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

#popup-title {
    color: #8b4513;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 10px;
}

#popup-body {
    margin-bottom: 20px;
}

#popup-close {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #8b4513;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#popup-close:hover {
    background-color: #6d350f;
}

/* Location in map styling */
.map-location {
    padding: 3px;
    margin: 3px 0;
    border-bottom: 1px dotted #8b4513;
}

.map-location-visited {
    font-weight: bold;
}

.map-location-current {
    background-color: #e6c9a8;
    font-weight: bold;
}

/* Inventory item styling */
.inventory-item {
    padding: 3px;
    margin: 3px 0;
    border-bottom: 1px dotted #8b4513;
    cursor: pointer;
}

.inventory-item:hover {
    background-color: #e6c9a8;
}

.item-equipped {
    background-color: rgba(0, 102, 0, 0.1);
    border-left: 3px solid #006600;
    padding-left: 5px;
}

.item-key {
    background-color: rgba(184, 134, 11, 0.1);
    border-left: 3px solid #b8860b;
    padding-left: 5px;
}

/* Special Text Styling */
.highlighted-text {
    font-weight: bold;
    color: #8b4513;
}

.wisconsin-point-earned {
    font-weight: bold;
    color: #006600;
    animation: pulse 1s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Styling for high/stoned state */
.player-high .game-message {
    color: #006600;
    font-style: italic;
}

.player-high {
    font-style: italic;
    color: #006600;
}

/* Styling for conversation options */
.dialogue-options {
    background-color: rgba(139, 69, 19, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.dialogue-option {
    cursor: pointer;
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    background-color: #f8edd1;
    border: 1px solid #8b4513;
    transition: background-color 0.2s;
}

.dialogue-option:hover {
    background-color: #e6c9a8;
}

/* Styling for NPC names in dialogue */
.npc-name {
    font-weight: bold;
    color: #8b4513;
}

.player-text {
    font-weight: bold;
    color: #006699;
}

/* Responsive Styles */
@media (max-width: 1000px) {
    #game-container {
        max-width: 95%;
    }
    
    #text-display {
        height: 300px;
    }
    
    #top-section {
        flex-direction: column;
    }
    
    #map-container, #inventory-container, #stats-container {
        width: 100%;
        margin-bottom: 10px;
    }
}/* Add this to your existing styles.css file */

#music-link {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

#music-link button {
    display: inline-block;
    background-color: #8b4513;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: inherit;
    font-size: inherit;
}

#music-link button:hover {
    background-color: #6d350f;
}
/* Improve README formatting */
#readme-content {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    line-height: 1.4;
    white-space: pre-wrap;
    max-height: 70vh;
    overflow-y: auto;
    padding: 15px;
}

#readme-content pre {
    white-space: pre;
    overflow-x: auto;
    background-color: transparent;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-family: inherit;
    font-size: inherit;
}

#readme-content h1, #readme-content h2, #readme-content h3 {
    color: #8b4513;
    margin-top: 20px;
    margin-bottom: 10px;
}

#readme-content hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(139, 69, 19, 0), rgba(139, 69, 19, 0.75), rgba(139, 69, 19, 0));
    margin: 20px 0;
}

#readme-content ul, #readme-content ol {
    padding-left: 20px;
}

/* Improve dialogue options formatting */
.dialogue-options {
    margin-top: 15px;
    border: 1px solid #8b4513;
    border-radius: 5px;
    padding: 10px;
    background-color: rgba(248, 237, 209, 0.5);
}

.dialogue-option {
    padding: 8px;
    margin: 8px 0;
    background-color: #f8edd1;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid #d0bc8a;
}

.dialogue-option:hover {
    background-color: #e6c9a8;
}