body {
    font-family: 'Gothic A1', sans-serif;
    background-color: #222;
    color: #eee;
}


.header {
    background-color: #333;
    height: 50px;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 10px;
    font-family: 'Cinzel', serif;
}

nav ul li a {
    color: #eee;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
}

.footer {
    background-color: #333;
    padding: 20px;
    width: 100%;
    border: 0px solid red;
}

.hr-style{
    margin: 15px 0px 25px 0px;
    color: red;
}

.parallax {
    /* Add parallax scrolling effect */
    background-image: url("images/of_1.png");
    min-height: 400px; /* Adjust this value as needed */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

main {
    text-align: center;
}

.description {
    background-color: #333;
    padding: 20px;
}

.button-div {
    text-align: center;
    padding-top: 50px;
}

.small-button {
    padding: 5px 5px; /* Adjust these values as needed */
    margin-top: 15px;
    font-size: 0.8em; /* Adjust this value as needed */
}


.adventure-button {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #555;
    color: #eee;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.adventure-button:hover {
    background-color: #777;
}

/*content for enter your adventure page*/
.main-content {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* General sidebar style for the site */
.sidebar {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-block {
    text-align: center;
    transition: transform 0.2s;
}

.image-block:hover {
    transform: scale(1.05);
}

.lore-link {
    text-decoration: none;
    color: #eee;
}

.image-title {
    margin-top: 0.5rem;
    font-family: 'Cinzel', serif;
}

.content {
    flex: 1;
}

.action-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.box {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.box-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.box-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.find-clan {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.button-div {
    margin-top: auto;
}

.play-realm-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #4a4a4a;
    color: #eee;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.play-realm-button:hover {
    background: #666;
}

.campaigns-section {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 2rem;
}

.campaign-row {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.campaigns-title {
    margin-top: 2rem;
    font-family: 'Gothic A1', sans-serif;  /* Match the main font */
    font-size: 12pt;
}

.campaigns-title p {
    padding: 8px;
    margin: 0 0 8px 0;  /* Add bottom margin for spacing */
}

/* Remove margin from last paragraph to avoid extra space at bottom */
.campaigns-title p:last-child {
    margin-bottom: 0;
}

.log-content-container {
    min-height: 100px;
    height: auto;
    overflow-y: auto;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);  /* Match the dark transparent background */
    border: 1px solid #999;  /* Light gray border */
    margin-bottom: 20px;
    border-radius: 8px;  /* Match other containers' rounded corners */
    padding: 20px;  /* Match other containers' padding */
}

/*Adventure list page styles*/
.header-image {
    width: 100%;
    height: 400px; /* Adjust this as needed */
    background: url('images/of-desert-city.png') no-repeat center center;
    margin-bottom: 20px;
}

.realm-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .realm-info img {
        width: 100px; /* Adjust as needed */
        height: 100px; /* Adjust as needed */
        object-fit: cover;
        border-radius: 10px;
    }

    .realm-info p {
        flex-grow: 1;
        margin: 0;
    }

.button-div {
    width: 100%; /* Optional, only if you want .button-div to span full width of its parent */
}

.play-realm-button {
    /*display: inline-block;*/
    font-family: 'Cinzel', serif;
    font-size: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #555;
    color: #eee;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* realm lore page */
.full-width-image img {
    width: 100%;
    height: auto;
}

.lore-section {
    background-color: rgba(44, 62, 80, 0.8);
    margin: 20px 10px;
    padding: 20px;
    border-radius: 10px;
    
}
/*specific style for rom of images on realm lore page*/
.lore-section2 {
    background-color: rgba(44, 62, 80, 0.8);
    margin: 20px 10px;
    padding: 20px;
    border-radius: 10px;
}

    .lore-section img {
        display: block;
        margin: 0 auto 20px;
        max-width: 100%;
        height: auto;
        
    }

.lore-image-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .lore-image-grid a {
        display: block;
        width: 250px;
    }

    /*realm lore page style to display other lore pages in a single row*/
.lore-image-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping onto next line */
    
}

.lore-image-block {
    width: 23%; /* (100 - 3 gaps) / 4 images */
}

    .lore-image-block img {
        width: 100%;
        height: auto;
    }

.lore-image-title {
    text-align: center;
    margin-top: 10px;
}

.horizontal-container {
    /*background-color: white;*/
    border: 0px solid red;
    border-radius: 10px;
    box-sizing: border-box;
    margin: 25px 0px 25px 0px;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px; 
}

.lore-title {
    font-size: 14pt;
    text-align: center;
    font-weight: bold;
    padding: 15px 0px 15px 0px;
    width: 100%;
}

/*Game management syling*/
.manage-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
  }
  
  .manage-button:hover {
    background-color: #555;
  }

  .admin-action-links-containter{
    margin: 10px;
  }

  /*item catalog page styles*/

  .instruction-div {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #eee;
    border-radius: 15px; /* This gives the rounded border */
    font-size: 1.2em;
    background-color: rgba(44, 62, 80, 0.8); /* Optional: matching your other background colors */
    color: #fff; /* White text for better visibility against the background color */
    }

    .equipment-container {
        border: 1px solid yellow;
        display: flex;
        align-items: start;
        gap: 2rem;
        height:auto;
    }

    .item-selector {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .item-selector button {
        padding: 0.5rem 1rem;
        background-color: #333;
        color: #fff;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .item-selector button:hover {
        background-color: #555;
    }
    .card-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center; /* Centering the cards on the page */
      }
      
      .card {
        display: flex;
        width: 500px; /* Adjust width as needed */
        height: 200px; /* Adjust height as needed */
        border: 1px solid #ccc;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        background-color: #ffffff; /* Card background color */
      }
      
      .card-image-container {
        flex: 0 0 150px; /* Adjust width as needed */
        overflow: hidden;
      }
      
      .card-img {
        width: 100%;
        height: 100%;
      }
      
      .card-content {
        padding: 16px;
        flex: 1; /* Takes the remaining space */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Distribute space */
      }
      
      .card-history,
      .card-description,
      .card-more,
      .card-details,
      .card-properties {
        margin-bottom: 10px;
      }
      
      .card-history h5,
      .card-description h5,
      .card-details h5,
      .card-properties h5 {
        margin: 0;
        font-size: 1em;
        font-weight: bold;
        color: #403f3f;
      }
      
      .card-history p,
      .card-description p,
      .card-details p,
      .card-properties p {
        font-size: 0.9em;
        color: #403f3f;
      }
      
      .card-more a {
        display: inline-block;
        color: #007bff;
        text-decoration: none;
      }
      
      .card-more a:hover {
        text-decoration: underline;
      }
/* start your game page styles*/
.main-content-start-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-row-start-game {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    margin-bottom: 30px;
}

.box-start-game {
    background-color: #222; /* Match the page background color */
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    color: #eee; /* White text color */
    border: 1px solid #444; /* Adding a subtle border for definition */
}

.select-game-requirements {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.realm-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #555;
    color: #eee;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.realm-button:hover {
    background-color: #777;
}

/*gameplay page styles*/

/* Style for input box */
.gameplay-text-input {
    width: 100%; /* Full width */
    padding: 10px; /* Padding for input */
    margin-top: 10px; /* Margin to separate from above paragraph */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding and border in width */
}

.gameplay-div {
    margin-bottom: 5px;
    border: 1pt solid red;
    flex-grow: 1; /* Allow it to grow based on content */
    min-height: 100px; /* Ensure a minimum height */
    overflow: auto; /* Handle overflow content */
    text-align:left;
    height: auto; /* Automatically adjust height */
    max-height: 100%; /* Optional: limit max height if needed */    
}

.gameplay-content{
    text-align: left;
    border: 1px solid #ccc;
    display: block;
    margin-bottom: 10px;
    width: 100%;
}

/* Ensure the paragraph and input elements are block-level and full width */
.gameplay-content p, .gameplay-content input {
    display: block; /* Make them block-level elements */
    width: 100%; /* Full width */
    margin: 0; /* Remove default margin */
    text-align: left; /* Align text to the left */
    border: 0px solid red;
}

/* NPC selection table styling */
.box-start-game table {
    width: 100%;
    border-collapse: collapse;
}

.box-start-game td {
    text-align: left;
    padding: 5px 10px;
    vertical-align: middle;
}

.box-start-game label {
    margin-left: 5px;
    display: inline-block;
}

.box-start-game input[type="checkbox"] {
    vertical-align: middle;
}

/* Make sure select elements are also left-aligned */
.box-start-game select {
    text-align: left;
    width: 100%;
    padding: 5px;
    background-color: #333;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
}

/* Gameplay page styles */
#gameHeaderBoxes .first-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

#gameHeaderBoxes .box {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

#gameHeaderBoxes .campaign-content {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    color: #eee;
}

#gameHeaderBoxes .gameplay-div {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

#gameHeaderBoxes .gameplay-submit-div {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 100;
    margin-top: 10px;
}

.input-area-container + .gameplay-submit-div {
    margin-top: 20px;
}

#gameHeaderBoxes .content-row {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Loading spinner styles - centered version */
.spinner-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.spinner-container.active {
    display: block;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #333;
    border-top: 6px solid #eee;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1.5s linear infinite;
}

.spinner-text {
    color: #eee;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Game context styling */
#game-context {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    color: #eee;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #444;
    position: relative;
    z-index: 100;
    margin-right: 20px; /* Add space for inventory sidebar */
}

#game-context h1, #game-context h2, #game-context h3 {
    color: #ddd;
    margin-top: 0;
}

#game-context p {
    margin-bottom: 15px;
}

.context-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.toggle-button {
    background: #555;
    color: #eee;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Gothic A1', sans-serif;
    font-size: 12px;
}

.toggle-button:hover {
    background: #666;
}

.game-context.minimized #context-content {
    display: none;
}

.game-context.minimized .toggle-text {
    content: "Expand";
}

/* Custom alert styles */
.custom-alert {
    background-color: #555;
    color: #eee;
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Dashboard layout styles */
.dashboard {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

.sidebar {
    width: 25%;
    background-color: #2a2a2a;
    overflow-y: auto;
    border-right: 1px solid #3a3a3a;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
    margin-right: 20px;
}

/* Enhanced sidebar scrollability - single scrollbar */
.dashboard .sidebar {
    height: auto; /* Auto height for the sidebar itself */
    max-height: none; /* Remove max-height restriction */
    overflow-y: hidden; /* Hide the outer scrollbar */
    display: flex;
    flex-direction: column;
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    width: 250px;
    flex-shrink: 0;
    border: 1px solid #3a3a3a;
}

.dashboard .sidebar #character-list {
    flex: 1;
    max-height: 70vh; /* Limit the height of the character list */
    overflow-y: auto; /* Only this element should scroll */
    padding-right: 5px; /* Add space for scrollbar */
}

/* Make sure only one set of scrollbar styles is used */
.dashboard .sidebar::-webkit-scrollbar {
    width: 0; /* Hide sidebar scrollbar */
    display: none;
}

.dashboard .sidebar #character-list::-webkit-scrollbar {
    width: 8px; /* Show character list scrollbar */
    display: block;
}

.dashboard .sidebar #character-list::-webkit-scrollbar-thumb {
    background-color: #444; /* Dark gray */
    border-radius: 4px;
}

.dashboard .sidebar #character-list::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Slightly lighter gray */
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.site-header {
    background-color: #333;
    color: #eee;
    padding: 20px;
    position: relative;
    z-index: 100;
    display: block;
    width: 100%;
}

.dashboard {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    .main-content {
        width: 100%;
    }
}

/* Styles for character-dashboard.php */
.login-message {
    text-align: center;
    margin: 50px auto;
    max-width: 600px;
    padding: 20px;
    background-color: #333;
    color: #eee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-message a {
    color: #4CAF50;
    text-decoration: none;
}

.login-message a:hover {
    text-decoration: underline;
}

.error-message {
    text-align: center;
    margin: 50px auto;
    max-width: 600px;
    padding: 20px;
    background-color: #333;
    color: #eee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.error-details {
    text-align: left;
    margin-top: 20px;
    padding: 10px;
    background-color: #444;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.site-header {
    background-color: #333;
    color: #eee;
    padding: 20px;
    position: relative;
    z-index: 100;
    display: block;
    width: 100%;
}

.dashboard {
    margin-top: 20px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

.character-info, .ability-scores, .personality-traits, .character-traits, .character-avatar {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

.character-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.character-details-table th, .character-details-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.character-details-table th {
    background-color: #f2f2f2;
}

.site-header h1 {
    margin: 0;
    font-size: 24px;
}

.dashboard h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.stat-section {
    margin-bottom: 30px;
    min-height: fit-content; /* Ensures the section is at least as tall as its content */
    height: auto; /* Allows the section to expand as needed */
    overflow: visible; /* Ensures content doesn't get cut off */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    width: 100%; /* Use full available width */
}

.stat-section h3 {    
    margin: 0 0 10px 0;
    font-size: 18px;
}

/* 
=======================================
Character Dashboard Page Specific Styles 
=======================================
*/

/* Character grid layout for dashboard */
.character-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    margin: 20px 0;
    background-color: #2a2a2a; /* Dark gray background */
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
}

/* Section headers styling (main column headers) */
.stat-section h3 {
    color: #d4af37; /* Golden color for headers */
    text-align: center;
    font-family: 'Cinzel', serif; /* Fantasy-style serif font */
    font-size: 22px;
    font-weight: bold;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #d4af37;
}

/* Character content section styling */
.character-info, 
.ability-scores, 
.personality-traits {
    background-color: #2a2a2a;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
    padding: 0;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Character details table styling */
.character-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: transparent;
}

.character-details-table th, 
.character-details-table td {
    border: none;
    padding: 10px 12px;
    text-align: left;
    font-family: 'Cinzel', serif;
}

.character-details-table tr:last-child td {
    border-bottom: none;
}

.character-details-table th {
    background-color: #151515; /* Very dark gray/black */
    color: #d4af37; /* Golden color for table headers */
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Create alternating row colors */
.character-details-table tr:nth-child(even) td {
    background-color: #3a3a3a; /* Medium gray */
    color: #ffffff; /* White text */
}

.character-details-table tr:nth-child(odd) td {
    background-color: #333333; /* Dark gray */
    color: #ffffff; /* White text */
}

/* Value cells (right column) */
.character-details-table td:nth-child(2) {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feature description styling (right column) */
.personality-traits .character-details-table td:nth-child(2) {
    text-transform: none;
    font-style: normal;
    letter-spacing: normal;
}

/* Dashboard heading styles */
.dashboard h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Dashboard container styling */
.dashboard {
    display: flex;
    gap: 20px;
    background-color: #222;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin: 20px auto;
    max-width: 1200px;
}

/* Specific table column widths */
.character-info .character-details-table th:first-child,
.ability-scores .character-details-table th:first-child,
.personality-traits .character-details-table th:first-child {
    width: 40%;
}

/* Sidebar Styling */
.dashboard .sidebar {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    width: 250px;
    flex-shrink: 0;
    border: 1px solid #3a3a3a;
}

.dashboard .sidebar h3 {
    color: #d4af37; 
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #d4af37;
}

/* Sidebar Character List Styling */
#character-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
}

#character-list li {
    margin-bottom: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Create alternating row colors matching main content */
#character-list li:nth-child(even) {
    background-color: #3a3a3a; /* Match table even rows */
    color: #ffffff;
}

#character-list li:nth-child(odd) {
    background-color: #333333; /* Match table odd rows */
    color: #ffffff;
}

#character-list li:hover {
    border-left: 4px solid #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

#character-list li.active {
    border-left: 4px solid #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

#character-list li img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4af37;
    display: block;
    margin: 0 auto 10px auto;
}

#character-list li p {
    margin: 5px 0;
    text-align: center;
    font-family: 'Cinzel', serif;
}

#character-list li p:first-of-type {
    font-size: 16px;
    font-weight: bold;
    color: #d4af37;
}

#character-list li p:nth-of-type(2), /* Class information */
#character-list li p:nth-of-type(3) { /* Level information */
    font-size: 8pt;
}

/* Create Character Button Styling */
#create-character {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background-color: #4CAF50; /* Green color */
    color: #fff;
    border: none;
    border-radius: 10px; /* Rounded corners */
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#create-character:hover {
    background-color: #45a049; /* Darker green on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.dashboard .sidebar::after {
    content: "";
    display: block;
    margin-top: 5px;
    border-bottom: 1px solid #444;
}

/* Character Details New Layout */
.character-details-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 15px;
    width: 100%;
}

.character-name-section {
    grid-column: 1;
    grid-row: 1;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #3a3a3a;
    height: 30px;
}

.character-name-section h2 {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    margin: 0;
    font-size: 18px;
}

.character-image-section {
    grid-column: 1;
    grid-row: 1; /* Changed from 2 to 1 to position it right under the character name */
    margin-top: 45px; /* Add margin to position it below the character name section */
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #3a3a3a;
}

.character-image-section img {
    max-width: 80%;
    max-height: 250px;
    border-radius: 8px;
    border: 2px solid #d4af37;
}

.top-sections {
    grid-column: 2;
    grid-row: 1; /* Changed from 1 / span 2 to just 1 */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.traits-features-section {
    grid-column: 1 / span 2;
    grid-row: 2; /* Changed from 3 to 2 since we rearranged the rows */
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #3a3a3a;
}

.traits-features-section h4 {
    color: #d4af37;
    text-align: center;
    font-family: 'Cinzel', serif;
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #d4af37;
    font-size: 20px;
}

/* Inventory System Styles */

/* Tabs */
.dashboard-title {
    color: #fff;
    font-family: 'Cinzel', serif;
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.tab-container {
    margin: 0 0 20px 0;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: auto;
    background-color: #222;
    max-height: 80vh;
    max-width: 100%;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #333;
    background-color: #191919;
}

.tab-button {
    padding: 12px 25px;
    background-color: transparent;
    color: #ccc;
    border: none;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    border-right: 1px solid #333;
    border-bottom: 3px solid transparent;
    flex-grow: 1;
    text-transform: uppercase;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button:hover {
    background-color: #252525;
    color: #d4af37;
}

.tab-button.active {
    background-color: #222;
    color: #d4af37;
    border-bottom: 3px solid #d4af37;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: #222;
}

.tab-content.active {
    display: block;
}

/* Inventory Container */
.inventory-container {
    width: 100%;
    margin: 0 auto;
}

#inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.inventory-section-title {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    margin: 0;
    text-transform: uppercase;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.inventory-item {
    display: flex;
    flex-direction: column;
    background-color: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #3a3a3a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.inventory-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #444;
}

.inventory-item.equipped {
    border: 2px solid #d4af37;
    background-color: #2d2818;
}

.item-image {
    height: 120px;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-image .no-image {
    width: 60px;
    height: 60px;
    background-color: #444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #ccc;
}

.item-details {
    padding: 15px;
    flex-grow: 1;
}

.item-details h3 {
    margin-top: 0;
    color: #b8860b;
    font-family: 'Cinzel', serif;
}

.item-details .item-type {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

.item-details .item-quantity {
    font-size: 14px;
    margin-bottom: 5px;
}

.item-details .item-description {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 10px;
    line-height: 1.4;
}

.item-details .item-notes {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #2a2a2a;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background-color: #333;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.item-list {
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.available-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.available-item {
    background-color: #2a2a2a;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.available-item:hover {
    background-color: #3a3a3a;
}

.available-item.selected {
    background-color: #603;
    box-shadow: 0 0 10px rgba(102, 0, 51, 0.5);
}

.available-item .item-image {
    height: 80px;
}

.available-item h4 {
    margin: 10px 0 5px;
    font-size: 16px;
    color: #b8860b;
}

.available-item .item-type {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.available-item .item-description {
    font-size: 12px;
    color: #ddd;
    line-height: 1.3;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #222;
    color: #eee;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

/* Alert */
.alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
    z-index: 1100;
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
}

.alert.success {
    background-color: #2a6b2a;
    border-left: 5px solid #4CAF50;
}

.alert.error {
    background-color: #8b2828;
    border-left: 5px solid #f44336;
}

.loading, .loading-items {
    text-align: center;
    padding: 20px;
    color: #ccc;
    font-style: italic;
}

.empty-inventory {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
}

.gold-button {
    background-color: #d4af37;
    color: #222;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 14px;
}

.gold-button:hover {
    background-color: #e8c655;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.gold-button.small, .danger-button.small {
    font-size: 12px;
    padding: 5px 10px;
}

.danger-button {
    background-color: #8b2828;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.danger-button:hover {
    background-color: #a82f2f;
}

/* Gameplay Inventory Sidebar */
.inventory-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background-color: #333;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 900;
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.inventory-sidebar.collapsed {
    transform: translateY(-50%) translateX(250px);
}

/* Gameplay input area styles */
.input-area-container {
    width: 100%;
    margin: 15px 0;
    position: relative;
    z-index: 100;
}

.gameplay-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #222;
    color: #eee;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    min-height: 80px;
}

.inventory-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #222;
    border-top-left-radius: 8px;
}

.inventory-sidebar-header h3 {
    margin: 0;
    color: #b8860b;
    font-family: 'Cinzel', serif;
}

.inventory-toggle-button {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.2s ease;
}

.inventory-toggle-button:hover {
    color: #fff;
}

.inventory-select {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #222;
    color: #eee;
}

#inventory-sidebar-content {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.inventory-message {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.sidebar-inventory-item {
    display: flex;
    background-color: #2a2a2a;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #444;
}

.sidebar-inventory-item.equipped {
    border: 1px solid #b8860b;
    background-color: #3a3520;
}

.sidebar-item-image {
    width: 50px;
    height: 50px;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-item-image .no-image {
    width: 30px;
    height: 30px;
    background-color: #444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #ccc;
}

.sidebar-item-info {
    flex-grow: 1;
}

.sidebar-item-info h4 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #b8860b;
}

.sidebar-item-info .item-type {
    font-size: 12px;
    color: #aaa;
}

.sidebar-item-info .item-quantity {
    font-size: 12px;
    color: #ddd;
    margin-top: 5px;
}

.sidebar-item-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
    z-index: 1100;
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: #2a6b2a;
    border-left: 5px solid #4CAF50;
}

.notification.error {
    background-color: #8b2828;
    border-left: 5px solid #f44336;
}

.notification.info {
    background-color: #1a5276;
    border-left: 5px solid #3498db;
}

/* Login Form Styles */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-container h1 {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-container label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #eee;
    font-weight: bold;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #222;
    color: #eee;
    font-size: 16px;
    box-sizing: border-box;
}

.login-container input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4a4a4a;
    color: #eee;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.login-container input[type="submit"]:hover {
    background-color: #5a5a5a;
}

.login-container p {
    margin-top: 20px;
    color: #ccc;
}

.login-container a {
    color: #d4af37;
    text-decoration: none;
}

.login-container a:hover {
    text-decoration: underline;
}

/* 
=======================================
Gameplay Inventory Panel Styles 
=======================================
*/

/* Inventory Button */
.inventory-button-container {
    margin-top: 20px;
    text-align: center;
}

.inventory-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    margin: 0 auto;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 150px;
    letter-spacing: 1px;
    font-weight: bold;
}

.inventory-button img {
    margin-right: 8px;
    filter: brightness(1.5);
}

.inventory-button:hover {
    background-color: #222;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Save Game Button - matches inventory button styling */
.save-game-button-container {
    margin-top: 20px;
    text-align: center;
}

.save-game-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    margin: 0 auto;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 150px;
    letter-spacing: 1px;
    font-weight: bold;
}

.save-game-button:hover {
    background-color: #222;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.save-game-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #444;
}

/* Save Game Modal */
.save-game-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.save-game-modal-content {
    background-color: #222;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #D4AF37;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    color: #eee;
    font-family: 'Gothic A1', sans-serif;
}

.save-game-modal h2 {
    color: #D4AF37;
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    text-align: center;
}

.save-game-modal input[type="text"],
.save-game-modal textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: #333;
    border: 1px solid #555;
    color: #eee;
    border-radius: 5px;
    font-family: 'Gothic A1', sans-serif;
}

.save-game-modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.save-game-modal-buttons button {
    padding: 10px 20px;
    border: 1px solid #D4AF37;
    background-color: #111;
    color: #D4AF37;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.save-game-modal-buttons button:hover {
    background-color: #D4AF37;
    color: #222;
}

.save-game-modal-buttons .cancel-btn {
    border-color: #666;
    color: #666;
}

.save-game-modal-buttons .cancel-btn:hover {
    background-color: #666;
    color: #222;
}

/* Inventory Panel */
.inventory-panel {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    max-width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.98);
    border-left: 2px solid #D4AF37;
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    color: #d0d0d0;
}

.inventory-panel.visible {
    right: 0;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #111;
    border-bottom: 2px solid #D4AF37;
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 15px;
}

.inventory-header h2 {
    margin: 0;
    color: #D4AF37;
    font-family: 'Cinzel', serif;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
}

.close-button {
    background: none;
    border: none;
    color: #D4AF37;
    font-size: 28px;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.3s;
}

.close-button:hover {
    color: #fff;
}

.inventory-content {
    padding: 15px;
}

.loading-container, .error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.inventory-items {
    display: none; /* Will be shown when items are loaded */
}

/* Inventory Panel Item Cards */
.item-card {
    display: flex;
    align-items: center;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.item-card:hover {
    border-color: #D4AF37;
    background-color: rgba(17, 17, 17, 0.5);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.item-icon {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    object-fit: contain;
    background-color: rgba(17, 17, 17, 0.5);
    border: 1px solid #333;
    padding: 4px;
    border-radius: 4px;
}

.item-details {
    flex-grow: 1;
    padding-right: 60px;
}

.item-name {
    margin: 0 0 8px 0;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #D4AF37;
}

.item-quantity {
    font-size: 16px;
    color: #aaa;
    margin-left: 8px;
}

.item-description {
    margin: 0;
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
}

.item-use {
    position: absolute;
    right: 12px;
    background-color: #111;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 5px 10px;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.item-use:hover {
    background-color: #D4AF37;
    color: #111;
}

.item-use:disabled {
    background-color: #333;
    color: #777;
    border-color: #555;
    cursor: not-allowed;
}

/* Item effect message animation */
@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

.item-effect-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(17, 17, 17, 0.9);
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 15px 30px;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    z-index: 1000;
    animation: fadeInOut 3s forwards;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Different message types */
.item-effect-error {
    border-color: #FF5555;
    color: #FF5555;
    box-shadow: 0 0 15px rgba(255, 85, 85, 0.3);
}

.item-effect-success {
    border-color: #55FF55;
    color: #AAFFAA;
    box-shadow: 0 0 15px rgba(85, 255, 85, 0.3);
}

.item-effect-progress {
    border-color: #5555FF;
    color: #AAAAFF;
    box-shadow: 0 0 15px rgba(85, 85, 255, 0.3);
}

/* Unique items in inventory */
.item-card.unique-item {
    border-color: #D4AF37;
    border-width: 2px;
    background-color: rgba(212, 175, 55, 0.1);
}

.item-equipped {
    color: #55FF55;
    font-size: 14px;
    margin-left: 8px;
}

/* Item acquisition animation */
@keyframes acquireItem {
    0% { transform: scale(0.8); opacity: 0; }
    20% { transform: scale(1.1); opacity: 1; }
    40% { transform: scale(0.95); opacity: 1; }
    60% { transform: scale(1.05); opacity: 1; }
    80% { transform: scale(0.98); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.item-acquired {
    animation: acquireItem 0.8s forwards;
}

/* Gameplay Hints */
.gameplay-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(17, 17, 17, 0.9);
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    z-index: 990;
    max-width: 300px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.gameplay-hint-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
    color: #fff;
}

.gameplay-hint-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #D4AF37;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.gameplay-hint-close:hover {
    color: #fff;
}

.gameplay-hint.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Saved Games Display Styles */
.saved-game-card {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.saved-game-card:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.saved-game-header {
    margin-bottom: 15px;
}

.saved-game-title {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 1.4em;
    margin: 0 0 8px 0;
}

.saved-game-meta {
    display: flex;
    justify-content: space-between;
    color: #bbb;
    font-size: 0.9em;
}

.saved-game-content {
    margin-bottom: 15px;
}

.saved-game-content .game-objective,
.saved-game-content .last-step {
    margin-bottom: 10px;
    color: #eee;
    line-height: 1.4;
}

.saved-game-content strong {
    color: #d4af37;
}

.saved-game-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.continue-game-btn {
    background-color: #d4af37;
    color: #222;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Gothic A1', sans-serif;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.continue-game-btn:hover {
    background-color: #b8941f;
}

.view-details-btn {
    background-color: transparent;
    color: #d4af37;
    padding: 10px 15px;
    border: 1px solid #d4af37;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Gothic A1', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.view-details-btn:hover {
    background-color: #d4af37;
    color: #222;
}

.no-saved-games {
    text-align: center;
    color: #bbb;
    font-style: italic;
    padding: 40px 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border: 1px dashed #444;
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
    background-color: #2a2a2a;
    border: 1px solid #ff6b6b;
    border-radius: 8px;
}

.loading-spinner {
    color: #d4af37;
    font-style: italic;
}

/* Game Details Modal */
.game-details-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.game-details-modal .modal-content {
    background-color: #222;
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    width: 700px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: #eee;
    font-family: 'Gothic A1', sans-serif;
}

.game-details-modal h2 {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    text-align: center;
}

.game-details-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.game-details-content strong {
    color: #d4af37;
}

.objective-full,
.last-step-full {
    margin-top: 20px;
    padding: 15px;
    background-color: #2a2a2a;
    border-left: 4px solid #d4af37;
    border-radius: 4px;
}

.objective-full p,
.last-step-full p {
    margin-top: 10px;
    color: #eee;
}

