/* Change primary theme color */
body {
    background-color: #ffffff; /* White background */
}

div.document {
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    color: #d32f2f; /* Dark Red */
}

a {
    color: #d32f2f; /* Red links */
}

a:hover {
    color: #ff5252; /* Lighter red on hover */
}

.wy-side-nav, .wy-nav-top {
    background-color: #b71c1c; /* Deep Red Sidebar */
}

/* Change the header and footer color */
.wy-side-nav, .wy-nav-top {
    background-color: #b71c1c !important;  /* Deep Red */
}

/* Change the footer color */
.wy-nav-bottom {
    background-color: #b71c1c !important;
}

/* Change the sidebar "Next topic" and "Quick search" button colors */
.wy-menu-vertical header, .wy-menu-vertical a {
    background-color: #d32f2f !important; /* Medium Red */
}

/* Change the text color for better contrast */
.wy-side-nav a, .wy-nav-top a, .wy-nav-bottom a {
    color: white !important;
}

/* Optional: Remove the blue borders */
.wy-side-nav, .wy-nav-top, .wy-nav-bottom {
    border: none !important;
}


/* Force the related navigation bar to be dark red */
div.related ul {
    background-color: #881624 !important;
    height: 100% !important;
    overflow: hidden !important;
    border-top: 1px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
}

/* Make the sidebar headers dark red */
div.sphinxsidebar h3, div.sphinxsidebar h4 {
    margin: 1em 0 0.5em 0;
    font-size: 1em;
    padding: 0.1em 0 0.1em 0.5em;
    color: white !important;  /* Keep text readable */
    border: 1px solid #881624 !important;
    background-color: #881624 !important;
}

/* ── Fork-me-on-GitHub ribbon ─────────────────────────────────────────────── */
/* A clipping wrapper fixed to the top-right corner of the viewport.           */
.forkme-ribbon-wrap {
    position: fixed;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;   /* let clicks pass through the transparent area */
}

.forkme-ribbon-wrap a {
    pointer-events: all;
    position: absolute;
    top: 34px;
    right: -38px;
    display: block;
    width: 168px;
    padding: 6px 0;
    background-color: #333333;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
    transition: background-color 0.2s ease;
}

.forkme-ribbon-wrap a:hover {
    background-color: #d32f2f !important;
    color: #ffffff !important;
}
