html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Background and Text Colors */
body {
    background-color: #1a1a1a;
    /* Dark grey */
    color: #cccccc;
    /* Light grey text for readability */
    font-family: Arial, sans-serif;
    padding-bottom: 60px;
}

h1 {
    color: #c0c0c0;
}

.card-text {
    flex: 1;
    padding: 20px;
    /* Adjust for spacing */
    overflow-y: auto;
    /* Allows scrolling if content is too long */
}

.navbar,
.footer {
    position: fixed;
    z-index: 10;
    background-color: #000000;
    /* Black for header and footer */
    color: #cccccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
    top: 0;
    width: 100%;
}

.navbar .nav-item img {
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    /* Optional rounded corners */
}

.footer {
    bottom: 0;
    width: 100%;
    height: 60px;
}

a,
a:hover,
a:focus {
    color: #3032ac;
    /* Dark green for links */
}

/* Buttons */
.btn-primary {
    background-color: #333333;
    /* Dark grey for main buttons */
    border-color: #666666;
    /* Silver-ish border */
    color: #cccccc;
}

.btn-primary:hover {
    background-color: #0066cc;
    /* Dark green on hover */
    color: #000000;
}

.btn-secondary {
    background-color: #555555;
    /* A silvery tone for register */
    border: none;
}

.btn-secondary:hover {
    opacity: 0.9;
}

.container {
    max-width: 600px;
    margin: auto;
}

.container-wide {
    max-width: 1200px;
    margin: auto;
    text-align: right;
    padding-bottom: 60px;
}

.container-news {
    max-width: 1200px;
    margin: auto;
    text-align: left;
}

.intro-container {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.rules ul {
    text-align: left;
    color: #66ff66;
    /* Dark green for the rules */
    list-style-type: square;
    padding-left: 20px;
}

.checkbox-container {
    margin-top: 20px;
}

.admin-navbar {
    position: fixed;
    top: 0;
    right: -300px;
    /* Start off-screen */
    width: 300px;
    height: 100%;
    background: #333;
    color: white;
    padding: 1rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    /* Above everything */
    visibility: hidden;
    /* Hidden by default */
}

.admin-navbar.open {
    right: 0;
    /* Slide in */
    visibility: visible;
    /* Only show when open */
}


.admin-navbar a.active {
    color: #ff8c00;
    font-weight: bold;
    border-left: 4px solid #ff8c00;
    padding-left: 8px;
}

.admin-navbar .nav-link,
.admin-navbar .btn {
    display: block;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .admin-navbar {
        width: 80%;
        /* Narrower on small screens */
    }
}

.dropdown-item:hover {
    background-color: #f0f8ff;
    transition: background-color 0.3s ease;
}

.dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    /* Show the menu */
    opacity: 1;
    /* Make it fully visible */
    visibility: visible;
    /* Ensure visibility */
}

.form-text {
    color: #ff8c00;
}

.container-fluid {
    padding: 0 0%;
    /* Adds extra padding on sides for a balanced look */
}

h5 {
    margin-bottom: 1rem;
    text-decoration: underline;
}

.btn-link {
    margin: 0.5rem;
    color: #007bff;
}

.img-fluid {
    max-width: 250px;
    height: auto;
    margin: auto;
}

.flex-fill {
    flex: 1 1 auto;
}

.stat-grade {
    width: 40px;
    text-align: center;
    font-weight: bold;
}

.btn-increment,
.btn-decrement {
    width: 40px;
    height: 40px;
}

.text-success {
    font-weight: bold;
    font-size: 1.5rem;
}

#calculatedResilience,
#calculatedPresence,
#calculatedPrana {
    padding: 10px;
    border: 2px solid #28a745;
    border-radius: 8px;
}

.tooltip-inner {
    background-color: #343a40;
    /* Optional: Dark background for contrast */
    color: #fff;
    /* White text for clarity */
    border-radius: 5px;
    /* Slightly rounded corners for smoothness */
    font-size: 0.9rem;
    /* Adjust font size */
    max-width: 500px;
    white-space: normal;
    /* Allow the text to wrap instead of staying in a single line */
    text-align: center;
}

.tooltip-arrow {
    color: #f8f9fa;
    /* Match tooltip background */
}

.tooltip-word {
    cursor: pointer;
    /* Ensures it looks interactive */
    color: inherit;
    /* Keeps it consistent with the surrounding text */
    text-decoration: none;
    /* Removes underlines */
}

.tooltip-word a {
    text-decoration: none;
    /* Removes the underline */
    color: inherit;
    /* Makes the link take the surrounding text color */
}

.tooltip-word a:hover {
    color: #007bff;
    /* Optional: Add a hover color to make it pop */
    text-decoration: none;
    /* Ensure underline doesn't reappear on hover */
}

.alert {
    color: #007bff;
}

.card {
    max-width: 400px;
    margin: auto;
    border-radius: 10px;
    /* Smooth the edges */
}

.btn-link {
    color: #0066cc;
    /* Match the primary button color */
}

.btn-link:hover {
    text-decoration: underline;
    /* Add underline effect on hover */
}

.btn-toggle {
    max-width: 200px;
    border-radius: 10px;
}

html {
    overflow-y: scroll;
}

/* 💅 Custom Scrollbar for Webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    /* Matches your page background */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    /* Silvery grey */
    border-radius: 10px;
    border: 2px solid #1a1a1a;
    /* Padding illusion */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #888;
    /* Slightly lighter on hover */
}

.flex-fill {
    min-width: 420px;
    max-width: 420px;
    flex: 0 0 420px;
}

.bg-very-light {
    background-color: #e6e7ec;
}

.bg-grey {
    background-color: #575858;
}

.progress-bar {
    transition: width 0.6s ease;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
}

.bubble-card {
    background: #2a2a2a;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    color: white;
}

.bubble-card .bubble-open-btn {
    opacity: 0.8;
}

.bubble-card:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
    transition: all 0.2s ease-in-out;
}

.bubble-open-btn {
    cursor: pointer;
}

.modal-xl {
    max-width: 90%;
    color: rgb(8, 11, 24);
}

.bubble-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    transition: all 0.3s ease;
}

.col-md-4 {
    padding: 15px;
}

.fixed-search {
    width: 400px;
    max-width: 100%;
}

.fixed-headerbox {
    width: 1400px;
    max-width: 100%;
}

.tab-pane .col {
    min-width: 140px;
    padding: 1rem 0.5rem;
    border-right: 1px solid #ddd;
}
    .tab-pane .col:last-child {
    border-right: none;
}

.character-link {
    color: #b65975;
    font-weight: 500;
    transition: color 0.2s;
}
.character-link:hover {
    color: #e67e22; 
    text-decoration: underline;
}
  
.tab-content .tab-pane {
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
}
.tab-pane:not(.show) {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

#characterInfoModal .modal-body {
    text-align: left;
    color: black;
}

.clickable {
    cursor: pointer;
}

.clickable:hover {
    background-color: #f8f9fa;
}

