html, body {
    font-family: Arial, serif;
    background-color: #f9f9fb;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: rgb(62, 64, 89);
    color: #fff;
    padding: 20px;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

section {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-top: 20px;
    color: #2d3e50;
    text-align: left;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li::before {
    content: "• ";
    color: #2d3e50;
    font-weight: bold;
}

.note {
    background: #eef6ff;
    border-left: 4px solid rgb(62, 64, 89);
    padding: 10px;
    margin: 15px 0;
}

.noteCode {
    background: lightgrey;
    border-left: 4px solid #1e2124;
    padding: 10px;
    text-align: left;
    font-family: 'Times New Roman', Times, serif;
    margin: 15px 0;
}

.noteCodeWithScrollbar {
    background: lightgrey;
    border-left: 4px solid #1e2124;
    text-align: left;
    font-family: 'Times New Roman', Times, serif;
    margin: 15px 0;
    overflow-x: scroll;
}

p.centered {
    text-align: center;
}

p {
    text-align: justify;
}

li.dotted {
    border-bottom: 1px dotted #000;
    padding: 4px 0;
}

.card-footer {
    text-align: right;
    color: gray;
    margin-bottom: 0;
    font-size: 0.85em;
}

/*Affected Areas - List in a row not in columns*/
.areas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.area {
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}


/* Image */


img {
    max-width: 96%;
    /*96 bec of img2 (2*49=96%)*/
    height: auto;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #ccc;
    border-radius: 8px;
}

.img2 {
    width: 48%;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #ccc;
    border-radius: 8px;
}


img.rn-img {
    cursor: zoom-in;
}

#rnLightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

#rnLightbox.open {
    display: flex;
}

#rnLightbox img {
    max-width: 95vw;
    max-height: 90vh;
    cursor: zoom-out;
}


/* Sidebar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 12%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid lightgray;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


nav li {
    margin: 8px 0;
}

nav a {
    text-decoration: none;
    color: rgb(62, 64, 89);
}

nav.show {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1400px) {
    nav.show {
        opacity: 0 !important;
        pointer-events: none !important;
    }
}


/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

table tr {
    transition: background 0.2s ease;
}

table tr.oddrow {
    background: #fafafa;
}

table tr.evenrow {
    background: #f0f0f0;
}

table tr:hover {
    background: #e4e4e4;
}

table td {
    padding: 10px 12px;
    border-bottom: 1px solid #dcdcdc;
    vertical-align: top;
}

table td.key {
    font-weight: bold;
    color: #444;
    width: 120px;
}

table td.type {
    color: #666;
    width: 140px;
}

table td .text {
    display: block;
    color: #333;
    line-height: 1.4;
}

/* Highlighther */
a {
    color: #0645ad;
    cursor: pointer;
    text-decoration: underline;
}

a:hover {
    color: #0b0080;
}

pre.highlight {
    outline: 3px solid orange;
    outline-offset: 4px;
    animation: fadeBorder 6s ease forwards;
}

.highlight {
    outline: 3px solid orange;
    outline-offset: 4px;
    animation: fadeBorder 6s ease forwards;
}

@keyframes fadeBorder {
    0% {
        outline-color: orange;
    }
    100% {
        outline-color: transparent;
    }
}