body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 10px;
}

.game-container {
    display: flex;
    gap: 10px;
    width: 1400px; /* Fixed width */
    margin: auto;
}

@media (max-width: 1420px) {
    .game-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }
    .player-panel, .equipment-panel {
        width: 100%;
    }
    .mission-list, .item-list, .monster-list {
        flex-direction: column;
    }
    .mission-card, .item-card, .monster-card {
        width: 100%;
    }
}

.player-panel, .equipment-panel {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    width: 250px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.main-content {
    flex-grow: 1;
}

.game-nav {
    display: flex;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    justify-content: space-around;
}

.game-nav a {
    color: #ffc107;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.game-nav a:hover {
    background-color: #333;
}

.game-view {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    min-height: 500px;
}

h2, h3 {
    color: #ffc107;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.progress-bar {
    background-color: #444;
    border-radius: 5px;
    padding: 2px;
    margin: 10px 0;
}

.progress-bar span {
    display: block;
    text-align: center;
    font-size: 0.8em;
    color: #fff;
    position: absolute;
    width: 220px;
}

.progress-bar .bar {
    background-color: #ffc107;
    height: 15px;
    border-radius: 3px;
}

.resources p, .stats-training p, .derived-attributes p {
    margin: 5px 0;
}

.stats-training button {
    float: right;
    background-color: #ffc107;
    border: none;
    color: #1e1e1e;
    cursor: pointer;
}

.equipment-panel .slot {
    background-color: #333;
    margin: 10px 0;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    border: 1px dashed #555;
}

@media (max-width: 768px) {
    .mission-list, .item-list, .monster-list {
        flex-direction: column;
    }
    .mission-card, .item-card, .monster-card {
        width: 100%;
    }
}