body {
    background-color: #131721;
    color: #ffffff;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

    background-image: url('../images/backgrounds/side.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(6px) brightness(.8);
    transform: scale(1.05);
}

@media (min-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

.nav-link {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .9rem;
    margin-left: 10px;
    color: #ffffff;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: rgb(255, 208, 187);
}

.card-img {
    height: 200px;
    object-fit: cover;
}

.recent-img {
    height: 280px;
    width: 100%;
    object-fit: cover;
}

.carousel-item {
    overflow: hidden;
}

.carousel-img {
    height: 500px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
}

.carousel-item:hover .carousel-img {
    transform: scale(1.05);
}

.carousel-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(19, 23, 33, 0.9));
    padding: 5rem 3rem 3rem 3rem;
}

.article-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.article-text,
.article-text h1,
.article-text h2,
.article-text h3,
.article-text h4,
.article-text h5,
.article-text h6,
.article-text li {
    color: #ffffff !important;
}

.article-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-text h1 {
    font-weight: bold;
    margin-bottom: 2rem;
}

.article-text h3 {
    font-weight: bold;
    margin-bottom: 2rem;
}

.article-text h5 {
    font-weight: light;
    margin-top: 2rem;
}

.article-text h6 {
    font-weight: light;
    margin-top: 0;
}

.article-text ul {
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.article-text li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.article-text blockquote {
    color: #ffffff !important;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-left: 4px solid #ffffff;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.citation-link {
    font-size: 0.75em;
    vertical-align: super; 
    text-decoration: none;  
    color: #a0a0a0;
    margin-left: 2px;
    transition: color 0.2s;
}

.citation-link:hover {
    color: #ffffff; 
    text-decoration: underline;
}

.reference-section h5 {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 1rem;
}

.reference-section ol {
    color: #d0d0d0;
    font-size: 0.9rem;
    padding-left: 1.5rem;
}

.reference-section li {
    margin-bottom: 0.5rem;
}

.wiki-tooltip {
    position: relative;
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
    color: #aebfce;
}

.wiki-tooltip .wiki-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    
    width: 250px;
    background-color: #ffffff;
    color: #333;
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    
    transition: opacity 0.3s, visibility 0.3s;
}

.wiki-tooltip .wiki-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.wiki-tooltip:hover .wiki-content {
    visibility: visible;
    opacity: 1;
}