body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: Trebuchet MS,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Tahoma,sans-serif; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

#game-container {
    width: 80%;
    max-width: 700px;
    border: 2px solid #666;
    padding: 20px;
    background-color: #2a2a2a;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    color: #0dff8f;
    border-bottom: 2px solid #00ff72;
    padding-bottom: 20px;
}

h2 {
    color: #0dff8f;
    margin-bottom: 15px;
    text-align: center;
}

#name-prompt-container, #character-selection-container, #lobby-container, #tort-lobby-container, #receptionist-dialogue-options, #shop-container, #final-screen-container, #secret-boss-intro-container, #collapsed-world-container {
    text-align: center;
    padding: 20px;
}

#lobby-description, #second-lobby-description, #tort-lobby-description, #shop-description {
    text-align: center;
    font-size: 17px;
    margin-bottom: 20px;
}

#character-selection-container h2 {
    color: #0dff8f;
    margin-bottom: 15px;
}

#character-selection-container button, #tort-lobby-options button {
    margin: 10px;
    padding: 12px 20px;
    font-size: 18px;
}

#receptionist-dialogue-options button {
    margin: 10px;
    padding: 12px 20px;
    font-size: 18px;
}

#player-name {
    padding: 8px;
    background-color: #333e35;
    border: 1px solid #55725c;
    color: #f0f0f0;
    margin-left: 10px;
}

button {
    background-color: #1bd454;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: Trebuchet MS,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Tahoma,sans-serif;
    margin-left: 10px;
    transition: background-color 0.3s, color 0.3s;
}

button:hover:not(:disabled) {
    background-color: #39ad78;
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

#restart-container {
    text-align: center;
    margin-top: 20px;
}

#actions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

#actions-container button {
    flex: 1 1 calc(25% - 7.5px);
    max-width: calc(25% - 7.5px);
    min-width: 80px;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 5px;
    font-size: 17px;
}
#actions-container button:nth-child(4n) {
    margin-right: 0;
}
#actions-container button:nth-child(4n+1) {
    margin-left: 0;
}

#grab-actions-container {
    text-align: center;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#grab-actions-container button {
    margin: 0;
    flex: 1 1 calc(33.333% - 6.666px);
    max-width: calc(33.333% - 6.666px);
    box-sizing: border-box;
    padding: 10px 5px;
    font-size: 15px;
}

.hidden {
    display: none;
}

#stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2em;
}

#player-stats, #enemy-stats {
    width: 48%;
    padding: 10px;
    border: 1px solid #555;
    background-color: #333;
    transition: background-color 0.3s, border-color 0.3s;
}

.hp-bar-container {
    width: 100%;
    height: 20px;
    background-color: #555;
    border: 1px solid #777;
    margin: 5px 0;
    transition: background-color 0.3s, border-color 0.3s;
}

.hp-bar {
    height: 100%;
    width: 100%;
    background-color: #4CAF50;
    transition: width 0.5s ease-in-out, background-color 0.3s;
}

#game-log {
    border: 1px solid #555;
    height: 250px;
    padding: 10px;
    overflow-y: scroll;
    margin-bottom: 20px;
    background-color: #111;
    display: flex;
    flex-direction: column-reverse;
    transition: background-color 0.3s, border-color 0.3s;
}

#game-log p {
    margin: 0 0 8px 0;
    animation: fadeIn 0.5s;
}

.tort-dialogue {
    color: #f84a6a; 
    font-style: italic;
    font-weight: bold;
}

.tsinogat-dialogue {
    color: #ca0ad1;
    font-style: italic;
    font-weight: bold;
}

.esideas-dialogue {
    color: #b51105;
    font-style: italic;
    font-weight: bold;
}

.crior-dialogue {
    color: #7206bf;
    font-style: italic;
    font-weight: bold;
}

.sarsg-dialogue {
    color: #0dff8f;
    font-style: italic;
    font-weight: bold;
}

.receptionist-dialogue {
    color: #ffa500;
    font-style: italic;
    font-weight: bold;
}

.xp-gain {
    color: #00ff72;
    font-weight: bold;
}

.player-dialogue {
    color: #008cff;
    font-weight: bold;
}

#shop-container {
    text-align: center;
    padding: 20px;
}

#player-xp-display {
    font-size: 1.1em;
    font-weight: bold;
    color: #00ff72;
    margin-bottom: 20px;
}

#orb-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

#orb-buttons-container button {
    width: 100%;
    padding: 10px 5px;
    font-size: 15px;
    box-sizing: border-box;
    margin: 0;
}

#buy-orb-confirmation {
    border: 1px solid #555;
    padding: 15px;
    margin-top: 20px;
    background-color: #333;
}

#selected-orb-info {
    font-size: 1em;
    margin-bottom: 10px;
}

#buy-orb-confirmation button {
    margin: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.secret-fight-active {
    background-color: white;
    color: black;
}

body.secret-fight-active #game-container {
    border-color: black;
    background-color: #f0f0f0;
}

body.secret-fight-active h1, 
body.secret-fight-active h2 {
    color: black;
    border-bottom-color: black;
}

body.secret-fight-active button {
    background-color: black;
    color: white;
}

body.secret-fight-active button:hover:not(:disabled) {
    background-color: #333;
}

body.secret-fight-active button:disabled {
    background-color: #666;
    color: #ccc;
}

body.secret-fight-active #player-stats, 
body.secret-fight-active #enemy-stats {
    border-color: black;
    background-color: #ddd;
}

body.secret-fight-active .hp-bar-container {
    background-color: #ccc;
    border-color: #aaa;
}

body.secret-fight-active .hp-bar {
    background-color: black;
}

body.secret-fight-active #game-log {
    border-color: black;
    background-color: #eee;
}

body.secret-fight-active .tort-dialogue,
body.secret-fight-active .tsinogat-dialogue,
body.secret-fight-active .esideas-dialogue,
body.secret-fight-active .crior-dialogue,
body.secret-fight-active .sarsg-dialogue,
body.secret-fight-active .receptionist-dialogue,
body.secret-fight-active .xp-gain,
body.secret-fight-active .player-dialogue {
    color: #222;
}

body.collapsed-world-active {
    background-color: black;
    color: white;
}

body.collapsed-world-active #game-container {
    background-color: black;
    border-color: black;
    box-shadow: none;
}

