body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Lora', serif; /* Use Lora for body text */
    display: flex;
    justify-content: center;
    /* align-items: center; */
    min-height: 100vh;
    margin: 0;
    padding-top: 60px; /* Add padding to account for fixed header height */
    padding: 1rem; /* Add general body padding */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-width: 360px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif; /* Already set this */
    color: #a52a2a;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 3.5rem; /* This was in style.css, but vampire.css has a simpler h1,h2,h3 rule. Let's keep this for general pages. */
}

/* Section styles (from vampire.css, more specific) */
section {
    border: 1px solid #a52a2a;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 0.75rem; /* Reduced margin */
    background-color: #1e1e1e;
}

/* Input styles (from vampire.css, more specific) */
input[type="text"], input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem; /* Reduced margin */
    border: 1px solid #a52a2a;
    background-color: #333333;
    color: #ffffff;
}

/* Character Details - Multi-column layout (from vampire.css) */
#character-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust as needed */
    gap: 1rem;
}

#character-details input {
    margin-bottom: 0;
}

/* List styles (from vampire.css, more specific) */
#abilities ul, #advantages ul, #spheres ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List item styles (from vampire.css, more specific) */
#abilities li, #advantages li, #spheres li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem; /* Reduced margin */
}

/* Heading margins (from vampire.css, more specific) */
#abilities h3, #advantages h3, #other-traits h3, #spheres h3 {
    margin-bottom: 0.75rem; /* Reduced margin */
}

/* Grid group layouts (from vampire.css, more specific) */
#attributes .attribute-group,
#abilities .ability-group,
#advantages .advantage-group,
#other-traits .other-traits-group,
#spheres .sphere-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Explicitly 3 columns */
    gap: 1rem;
}

/* Media queries for grid groups (from vampire.css, more specific) */
@media (max-width: 768px) {
    #attributes .attribute-group,
    #abilities .ability-group,
    #advantages .advantage-group,
    #other-traits .other-traits-group,
    #spheres .sphere-group {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }
}

@media (max-width: 480px) {
    #attributes .attribute-group,
    #abilities .ability-group,
    #advantages .advantage-group,
    #other-traits .other-traits-group,
    #spheres .sphere-group {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}

/* Button styles (from vampire.css, more specific, overriding general button in style.css) */
button, #add-discipline, #add-background, #add-gift, #add-art, #add-arcanoi, #add-sphere, #add-rite, #add-lore, #add-utterance, #add-pillar {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background-color: #a52a2a;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

button:hover, #add-discipline:hover, #add-background:hover, #add-gift:hover, #add-art:hover, #add-arcanoi:hover, #add-sphere:hover, #add-rite:hover, #add-lore:hover, #add-utterance:hover, #add-pillar:hover {
    background-color: #8b2323;
}

/* Dot styles (from vampire.css, more specific) */
.dots {
    display: flex;
    gap: 5px; /* Space between dots */
    align-items: center;
}

.dot {
    width: 15px; /* Size of the dot */
    height: 15px;
    border-radius: 50%; /* Make it a circle */
    border: 1px solid #a52a2a; /* Border color */
    background-color: transparent; /* Default empty state */
    cursor: pointer;
}

.dot.filled {
    background-color: #a52a2a; /* Filled color */
}

/* Character Actions (from vampire.css) */
.character-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .character-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .character-actions {
        grid-template-columns: 1fr;
    }
}

/* General H1, H2, H3 (from style.css, but vampire.css has a simpler one. Let's keep the style.css one for general pages) */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #a52a2a;
    text-align: center;
    margin-bottom: 1rem;
}

/* Specific styles from original style.css (login/register, menu) */
#app {
    width: 100%;
    max-width: 50%
    max-block-size: fit-content;
    padding: 2rem;
    border: 1px solid #a52a2a;
    border-radius: 5px;
    background-color: #1e1e1e;
}

/* Input (general) - from style.css, but vampire.css has more specific. Keep vampire.css's. */
input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #a52a2a;
    background-color: #333333;
    color: #ffffff;
}

/* Button (general) - from style.css, but vampire.css has more specific. Keep vampire.css's. */
button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background-color: #a52a2a;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

button:hover {
    background-color: #8b2323;
}

/* Language Selector */
.language-selector {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 1rem;
}

.language-selector button {
    width: auto;
    padding: 0.5rem 1rem;
}

/* Form Toggle (Register/Login buttons) */
.form-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.form-toggle button {
    flex: 1;
}

/* Auth Container */
.auth-container {
    max-width: 450px;
    padding: 2.5rem;
    background-color: #2a2a2a;
    border: 1px solid #a52a2a;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Auth Toggle Buttons */
.auth-toggle {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    overflow: hidden;
}

.auth-toggle button {
    flex: 1;
    padding: 0.8rem;
    background-color: #444444;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0;
    border-radius: 0;
}

.auth-toggle button.active {
    background-color: #a52a2a;
    font-weight: bold;
}

.auth-toggle button:hover:not(.active) {
    background-color: #555555;
}

/* Auth Forms */
.auth-form h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.auth-form div {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-size: 0.9rem;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #555555;
    border-radius: 4px;
    background-color: #333333;
    color: #ffffff;
    font-size: 1rem;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="email"]:focus {
    border-color: #a52a2a;
    outline: none;
}

.auth-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background-color: #a52a2a;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1.5rem;
}

.auth-form button[type="submit"]:hover {
    background-color: #8b2323;
}

/* Error/Success messages */
.auth-container p {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
}

/* Main Menu Styling */
.main-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2a2a2a;
    padding: 10px 20px;
    border-bottom: 1px solid #a52a2a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.menu-left, .menu-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.main-menu button {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin: 0;
}

.main-menu .language-selector button {
    padding: 8px 12px;
}

/* Dot styles (from vampire.css, more specific) */
.dots {
    display: flex;
    gap: 5px; /* Space between dots */
    align-items: center;
}

.dot {
    width: 15px; /* Size of the dot */
    height: 15px;
    border-radius: 50%; /* Make it a circle */
    border: 1px solid #a52a2a; /* Border color */
    background-color: transparent; /* Default empty state */
    cursor: pointer;
}

.dot.filled {
    background-color: #a52a2a; /* Filled color */
}

/* Character Actions (from vampire.css) */
.character-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .character-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .character-actions {
        grid-template-columns: 1fr;
    }
}

/* Character Type Selection Page */
.character-type-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.character-type-card {
    display: block;
    padding: 1.5rem 2rem;
    background-color: #2a2a2a;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #a52a2a;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    min-width: 250px; /* Ensure a minimum width for buttons */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.character-type-card:hover {
    background-color: #3a3a3a;
    border-color: #ff4500; /* Highlight color on hover */
    transform: translateY(-3px); /* Slight lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.character-type-card:active {
    background-color: #1a1a1a;
    transform: translateY(0); /* Press down effect */
}

@media (max-width: 600px) {
    .character-type-card {
        min-width: 100%; /* Full width on small screens */
    }
}