/* Fantasylore main style */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #181a20;
    color: #f5f5f5;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

header h1 {
    color: #e0b84c;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 2.5rem;
    letter-spacing: 2px;
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}

/* Fantasylore Navbar Styles */
.fantasylore-navbar {
    background: #23272f;
    border-bottom: 2px solid #e0b84c;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}
.fantasylore-navbar .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    text-align: center;
}
.fantasylore-navbar .navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e0b84c;
    letter-spacing: 1px;
    transition: color 0.2s;
    font-size: 5rem;
}
.fantasylore-navbar .navbar-brand a span {
    transition: color 0.2s;
}
.fantasylore-navbar .navbar-brand a:hover {
    color: #f5f5f5;
}

.fantasylore-navbar .navbar-brand a:hover span {
    color: #f5f5f5;
}

.fantasylore-navbar .navbar-brand a:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(224, 184, 76, 0.5);
}
.fantasylore-navbar .navbar-brand a:active {
    color: #f5f5f5; /* Active state for better visibility */
    background: rgba(224, 184, 76, 0.2);
}
.fantasylore-navbar .navbar-brand-logo {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    background: #e0b84c;
    object-fit: contain;
    margin-right: 0.5rem;
}
.fantasylore-navbar .navbar-brand span {
    color: #e0b84c;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.fantasylore-navbar .navbar-toggle {
    background: none;
    border: none;
    color: #e0b84c;
    font-size: 2rem;
    cursor: pointer;
    margin-left: 1rem;
    display: none;
}
.fantasylore-navbar .navbar-menu {
    width: 100%;
    background: #23272f;
    transition: max-height 0.3s ease;
    overflow: hidden;
}
.fantasylore-navbar .navbar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}
.fantasylore-navbar .navbar-menu ul li {
    margin: 0 0.5rem;
}
.fantasylore-navbar .navbar-menu ul li a,
.fantasylore-navbar .navbar-menu ul li button {
    color: #e0b84c;
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.fantasylore-navbar .navbar-menu ul li a:hover,
.fantasylore-navbar .navbar-menu ul li button:hover {
    color: #23272f;
    background: #e0b84c;
}

/* Mobile Styles */
@media (max-width: 900px) {
    .fantasylore-navbar .navbar-brand {
        flex-direction: row;
        padding: 0.5rem 1rem;
    }
    .fantasylore-navbar .navbar-toggle {
        display: block;
    }
    .fantasylore-navbar .navbar-menu {
        max-height: 0;
        display: block;
    }
    .fantasylore-navbar .navbar-menu.show {
        max-height: 500px;
        transition: max-height 0.3s ease;
    }
    .fantasylore-navbar .navbar-menu ul {
        flex-direction: column;
        padding: 0.5rem 1rem;
    }
    .fantasylore-navbar .navbar-menu ul li {
        margin: 0.5rem 0;
    }
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    background: #23272f;
    border-radius: 12px;
    box-shadow: 0 2px 12px #000a;
    padding: 2rem;
}
.character-entry, .object-entry, .help-entry {
    background: #22242a;
    border: 1px solid #e0b84c;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.fantasylore-footer {
    background: #23272f;
    color: #e0b84c;
    text-align: center;
    padding: 1rem 0;
    font-size: 1rem;
    border-top: 2px solid #e0b84c;
    font-family: "Cormorant Garamond", serif;
}
.fantasylore-footer a {
    color: #e0b84c;
    text-decoration: underline;
    transition: color 0.2s;
}
.fantasylore-footer a:hover {
    color: #f5f5f5;
}
.fantasylore-footer a:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(224, 184, 76, 0.5);
}
.fantasylore-footer a:active {
    color: #f5f5f5; /* Active state for better visibility */
    background: rgba(224, 184, 76, 0.2);
}

.login-container {
    max-width: 400px;
    margin: 2rem auto;
    background: #23272f;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: #e0b84c;
    font-family: "Cormorant Garamond", serif;
}
.login-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}
.login-container .form-group {
    margin-bottom: 1rem;
}
.login-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0b84c;
}
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e0b84c;
    border-radius: 4px;
    background: #181a20;
    color: #e0b84c;
}
.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: #e0b84c;
    color: #23272f;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}
.login-btn:hover {
    background: #cfa32a;
}
.login-container p {
    text-align: center;
    margin-top: 1.5rem;
}
.login-container a {
    color: #e0b84c;
    text-decoration: underline;
}
