.nav-item{
    font-size: 120%;
    color: #d5e0e7;
}

.toasts{
    z-index: 3;
}

.toast-container {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1060; 
    pointer-events: none; 
}

.toast {
    pointer-events: auto; 
}

.loading-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1050; 
    display: none; 
}

body.busy .loading-overlay {
    display: flex;
    pointer-events: auto;
}

body:not(.busy) .loading-overlay {
    display: none !important;
}

h1{
    margin-left: 15px;
    color: #d5e0e7;
    text-align: center;
}

h2, h3, h4, p {
    margin-left: 15px;
    color: #d5e0e7;
}

.nav-item{
    font-size: 120%;
}

body, .card{
    display: inline;
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight:  400;
    font-style: normal;
    background-color: #292C30;
    color: #d5e0e7;
}

:root{
    color: #d5e0e7;
}

.icon-link, .popover-link, .undecorated-link{
    text-decoration: none;
}

#user-info-container {
    display: flex;
    align-items: center;
}

#edit-content-btn {
    z-index: 10;
}

.big-edit-body{
    height: 30vh !important;
    overflow-y: scroll !important;
    resize: none !important;
}

.pdf-frame{
    border: none;
    width: 95vw;
    height: 85vh;
}

.solo-pic{
    height: 80vh;
}

.solo-pic img{
    max-width: 90vw;
    max-height: 70vh;
}

.dropdown-row p, .dropdown-row h1, .dropdown-row h2, .dropdown-row h3, .dropdown-row h4, .dropdown-row h5, .dropdown-row h6{
    color: black;
}

.bold-row {
    font-weight: bold;
}

.dropdown-menu li {
    position: relative;
    cursor: pointer;
}

.badge-pointer{
    cursor: pointer;
}

.info-link{
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

#info-modal p{
    color: black;
}

.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}

.dropdown-submenu {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow wrapping */
    max-height: 90vh; /* Prevent overflow beyond screen height */
    overflow-y: auto; /* Add vertical scrolling if necessary */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    position: relative; /* Ensure proper positioning */
}

.dropdown-menu .dropdown-submenu-left {
    right: 100%;
    left: auto;
}
.dropdown-menu > li:hover > .dropdown-submenu {
    display: block;
}

.dt-scroll-headInner {
    box-sizing: content-box !important;
    padding-right: 0px !important; /* Typical scrollbar width, adjust if needed */
    width: 100% !important;
    background-color: #d5e0e7 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3) !important;
    border-style: solid !important;
    box-sizing: border-box !important;
    box-shadow: inset 0 0 0 9999px var(
        --bs-table-bg-state, var(
            --bs-table-bg-typoe, var(
                --bs-table-accent-bg
            )
        )
    ) !important;
}

.species-preview-container {
    width: 100px;           
    height: 100px;          
    overflow: hidden;
    position: relative;
    display: inline-block;
}

.species-preview {
    width: 100%;
    height: 166.67%;       /* 100/60 = 1.6667, so show only top 60% */
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Species Detail Page Layout */
.species-detail-page {
    padding: 2rem;
    border-radius: 8px;
}

.species-detail-title {
    letter-spacing: 2px;
}

.species-info-card-header {
    font-size: 1.2rem;
    font-weight: bold;
}

.species-section-title {
    font-weight: bold;
    border-bottom: 2px solid #1976d2;
    margin-top: 2rem;
}

.species-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.species-image {
    max-height: 300px;
    max-width: 100%;
    object-fit: contain;
}

.class-detail-page {
    padding: 2rem;
    border-radius: 8px;
}
.class-detail-title {
    letter-spacing: 2px;
}
.class-info-card-header {
    font-size: 1.2rem;
}
.class-section-title, .class-features-card h3, .class-flavor-text h3 {
    border-bottom: 2px solid #1976d2;
    margin-bottom: 1rem;
}

.class-flavor-text {
    font-size: 1rem;
}

.class-flavor-wrap {
    overflow: hidden; /* helps contain the float */
}
.class-image-float {
    float: left; /* or right, depending on your preference */
    margin: 0 2rem 1rem 0;
    max-width: 320px;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .class-image-float {
        float: none;
        display: block;
        margin: 0 auto 1rem auto;
        max-width: 100%;
    }
}

.monster-block {
    display: block;
    background-color: #f8f9fa; /* Light background for readability */
    border: 2px solid #007acc; /* Blue border */
    border-radius: 8px;
    padding: 20px; /* Increase padding for better spacing */
    margin: 20px 0; /* Add margin for separation */
    font-family: "Arial", sans-serif;
    color: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.monster-block h2 {
    font-size: 1.6em; /* Slightly larger font size */
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px; /* Increase spacing below the title */
    color: #007acc; /* Blue color for emphasis */
}

.monster-block p {
    margin: 6px 0; /* Increase spacing between paragraphs */
    line-height: 1.6; /* Improve readability */
}

.monster-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0; /* Increase spacing above and below the table */
}

.monster-block table th,
.monster-block table td {
    border: none; /* Remove borders */
    padding: 8px; /* Increase padding for better spacing */
    text-align: center;
    font-size: 0.9em; /* Slightly smaller font for compactness */
}

.monster-block table th {
    font-weight: bold; /* Bold headers */
    color: #007acc; /* Blue color for emphasis */
}

.monster-block hr {
    border: none;
    border-top: 1px solid #007acc;
    margin: 12px 0; /* Increase spacing above and below the divider */
}

.monster-block h3 {
    font-size: 1.3em; /* Slightly larger font size */
    font-weight: bold;
    margin-top: 16px;
    color: #007acc; /* Blue color for emphasis */
}

.monster-block table th {
    text-align: center; /* Center the headers */
    font-weight: bold; /* Make headers bold */
    color: #007acc; /* Blue color for emphasis */
    padding: 8px; /* Add padding for spacing */
}

.monster-block table td {
    text-align: center; /* Align content to the left */
    padding: 8px; /* Add padding for spacing */
    font-size: 0.9em; /* Slightly smaller font for compactness */
}

div.dt-scroll-body thead tr th {
    text-align: center; /* Center the text in table headers */
}

/* Wrapper for dynamically generated tables */
.custom-table-wrapper table {
    border-collapse: collapse;
}

.custom-table-wrapper table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
    color: black;
}

.custom-table-wrapper table tbody tr:nth-child(even) {
    background-color: #e9e9e9;
    color: black;
}

.custom-table-wrapper table td, 
.custom-table-wrapper table th {
    padding: 0.5rem 1.5rem;
    text-align: left;
    border: none;
}

.custom-table-wrapper table thead tr th{
    background-color: #b3e5fc;
    color: black;
    font-weight: bold;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid #1976d2;
}

.background-detail-page h3, .background-detail-page p{
    margin-left: 0;
}

.container-fluidish{
    width: 98%;
}