/*
 * AD IT Systems color-only theme based on Reveal.js white.css
 *
 * This theme inherits all layout/typography from the upstream white theme
 * and only overrides color-related CSS custom properties.
 */
@import url("../vendor/reveal.js/dist/theme/white.css");

:root {
    /* Background and text colors */
    --r-background-color: #ffffff; /* keep white background */
    --r-main-color: #1f2430; /* near-black body text for contrast */

    /* Heading color */
    --r-heading-color: #003366; /* AD IT Systems primary blue */

    /* Link colors */
    --r-link-color: #003366; /* primary blue */
    --r-link-color-dark: #00264d; /* darker shade for visited/active contexts */
    --r-link-color-hover: #ff6a00; /* accent orange on hover */

    /* Text selection */
    --r-selection-background-color: rgba(255, 106, 0, 0.35); /* orange tint */
    --r-selection-color: #ffffff; /* white text */

    /* Overlay element colors (RGB triplets as expected by reveal) */
    --r-overlay-element-bg-color: 0, 0, 0; /* unchanged */
    --r-overlay-element-fg-color: 240, 240, 240; /* unchanged */
}

body:after {
    content: url(../assets/adit_logo.svg);
    position: fixed;
    bottom: 1.0em;
    right: 7.5em;
    /* Scale the logo down while keeping it anchored to the corner */
    transform: scale(0.2);
    transform-origin: bottom right;
}

/*
 * Compact tables (global)
 * Make tables fit on a single slide more reliably by reducing type size and
 * spacing, enabling wrapping, and preventing horizontal overflow.
 * Use `.table-normal` on a specific table to opt out.
 */
.reveal table {
    /* Slightly smaller text for tables to fit more content */
    font-size: 0.9em;
    line-height: 1.25;

    /* Ensure table does not overflow the slide horizontally */
    width: 100%;
    max-width: 100%;
    table-layout: fixed; /* Distribute columns evenly; works with wrapping */

    /* Show full grid lines between all cells */
    border-collapse: collapse;

    /* Center table within slide */
    margin-left: auto;
    margin-right: auto;
}

.reveal table th,
.reveal table td {
    padding: 0.3em 0.55em; /* tighter cell padding */
    vertical-align: top;

    /* Allow long content to wrap instead of overflowing */
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;

    /* Draw cell borders to show all lines */
    border: 1px solid #cfd8e6; /* subtle blue-gray grid */
}

/* Keep header cells visually distinct but compact */
.reveal table thead th {
    font-weight: 600;
    background-color: #e9f2ff; /* light blue header background */
}

/* Zebra striping for body rows (alternating colors) */
.reveal table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.reveal table tbody tr:nth-child(even) {
    background-color: #f5f9ff; /* very light blue */
}

.r-overlay {
    color: #000 !important;
}
