/* ============================================
   Classic Windows 3D / Chicago Theme
   Inspired by Windows 95 / Windows 98 UI
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    background-color: #c0c0c0;
    margin: 8px;
    padding: 0;
    font-size: 13px;
    color: #000000;
}

.no_warp {
    display: inline-block;
}

/* ============================================
   Classic Windows 3D Raised Frame
   Used on div.frame elements (index page)
   ============================================ */
.frame {
    border: 1px solid #808080;
    box-shadow:
        inset 1px 1px 0 #FFFFFF,
        inset -1px -1px 0 #000000;
    background-color: #c0c0c0;
    padding: 8px 8px;
    margin: 8px 0px;
    width: auto;
    overflow: auto;
}

/* ============================================
   Classic Windows 3D Sunken Frame
   Used for code / pre blocks inside sections
   ============================================ */
.frame_sunken {
    border: 1px solid #808080;
    box-shadow:
        inset 1px 1px 0 #000000,
        inset -1px -1px 0 #FFFFFF;
    background-color: #eeeeee;
    padding: 8px;
    overflow: auto;
}

.invisable {
    display: none;
}

.hideable-btn {
    display: block;
    background-color: #c0c0c0;
    outline: 1px solid #000000;
    border: 2px outset #ffffff;
    padding: 2px 6px;
    font-size: 13px;
    cursor: pointer;
}

.hideable-btn:active {
    border-style: inset;
    border-color: #808080;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 95%;
    height: auto;
    padding: 2px;
}

.centered {
    text-align: center;
    margin: 0;
    color: #000080;
}

.flash-animation {
    background-color: rgba(0, 255, 0, 0.5);
    animation: flash 2s ease-in-out infinite;
}

@keyframes flash {
    0%, 100% {
        background-color: rgba(0, 255, 0, 0);
    }
    50% {
        background-color: rgba(0, 255, 0, 0.5);
    }
}

/* ============================================
   Section — Classic Windows 3D Raised Border
   The primary content container on every page
   ============================================ */
section {
    /* Outer bevel */
    border: 1px solid #808080;
    /* Inner bevel: top-left = white (highlight), bottom-right = black (shadow) */
    box-shadow:
        inset 1px 1px 0 #FFFFFF,
        inset -1px -1px 0 #000000;
    background-color: #c0c0c0;
    margin: 6px 2px 8px 2px;
    padding: 0;
}

/* ============================================
   Section Title — Windows Title Bar Style
   Sticky, with classic gradient-like gray
   ============================================ */
.section-title {
    position: sticky;
    top: 0;

    margin: 0;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    background-color: #000060;

    /* 3D sunken border inside the title bar */
    border: 1px solid #808080;
    box-shadow:
        inset 1px 1px 0 #FFFFFF,
        inset -1px -1px 0 #000000;

    z-index: 10;
    line-height: 1.4;
}

/* ============================================
   Section Content Area
   ============================================ */
.section_content {
    padding: 8px 8px;
    overflow: auto;
}

/* ============================================
   Pre / Code Blocks — Sunken 3D Effect
   ============================================ */
.section_content pre {
    border: 1px solid #808080;
    box-shadow:
        inset 1px 1px 0 #000000,
        inset -1px -1px 0 #FFFFFF;
    background-color: #eeeeee;
    padding: 8px;
    overflow: auto;
    margin: 8px 0;
}

/* ============================================
   Tables — Classic Windows 3D Raised Border
   ============================================ */
table {
    border: 1px solid #808080;
    box-shadow:
        inset 1px 1px 0 #FFFFFF,
        inset -1px -1px 0 #000000;
    background-color: #c0c0c0;
    border-collapse: separate;
    border-spacing: 1px;
}

th {
    background-color: #c0c0c0;
    border: 1px solid #808080;
    box-shadow:
        inset 1px 1px 0 #FFFFFF,
        inset -1px -1px 0 #000000;
    padding: 4px 8px;
    font-weight: bold;
}

td {
    background-color: #eeeeee;
    border: 1px solid #808080;
    padding: 4px 8px;
}

/* ============================================
   Buttons — Classic Windows 3D Raised Style
   ============================================ */
button {
    background-color: #c0c0c0;
    outline: 1px solid #000000;
    border: 2px outset #ffffff;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    padding: 2px 12px;
    margin: 2px 0px;
    font-size: 13px;
    cursor: pointer;
}

button:hover {
    background-color: #d4d4d4;
}

button:active {
    background-color: #c0c0c0;
    border: 2px inset #808080;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
}

/* ============================================
   Catalog (Table of Contents) — Windows Dialog Style
   ============================================ */
.catalog-button {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    background-color: #c0c0c0;
    padding: 6px 8px;
    max-height: 100%;
    overflow-y: auto;

    /* 3D raised border */
    border: 1px solid #808080;
    box-shadow:
        inset 1px 1px 0 #FFFFFF,
        inset -1px -1px 0 #000000;

    font-size: 13px;
    cursor: default;
}

.catalog-list {
    display: none;
    flex-direction: column;
    width: fit-content;
    background-color: #c0c0c0;
    padding: 4px 0;
}

.catalog-list a {
    display: block;
    padding: 3px 12px;
    text-decoration: none;
    color: #000000;
}

.catalog-list a:hover {
    background-color: #000080;
    color: #ffffff;
}

.catalog-button:hover .catalog-list {
    display: flex;
}

/* ============================================
   Image Descriptions
   ============================================ */
.img_desc {
    color: #000080;
    text-align: center;
    margin: 4px 0;
}

/* ============================================
   Links
   ============================================ */
a {
    color: #000080;
    text-decoration: underline;
}

a:visited {
    color: #800080;
}

/* ============================================
   Horizontal Rule — Classic 3D Etched Style
   ============================================ */
hr {
    border: none;
    height: 2px;
    background-color: #808080;
    box-shadow:
        0 1px 0 #FFFFFF,
        inset 0 1px 0 #FFFFFF;
    margin: 8px 0;
}

/* ============================================
   Headings (outside sections, e.g. index page)
   ============================================ */
h1 {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

h3 {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
}
