:root {
    --button-color: #47426c;
    --navigation-color: #f6f1ed;
    --list-indent: 2.2em; /* width reserved for one level of marker */
}

body {
    font-family: Arial, sans-serif;
    color: black;
    background-color: white;
    margin: 0;
    
}

header h1 {
    font-weight: bold;
    margin-bottom: 30px;
    padding: 20px;
}

h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping */
    
}

.left-column {
    flex: 1;
    padding-right: 20px;
    border-right: 1px solid #cccccc;
    padding: 20px;
}

.right-column {
    flex: 1;
    padding: 20px;
}

.video-container {
    /* Responsive 16:9 box */
    max-width: 100%;
    background: #000;            /* optional: black background for letterboxing */
    
}

.image-container {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.image-container figure {
    /* keep figure sizing flexible and aligned */
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.image-container img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border: 1px solid #ccc;
    display: block;
}

/* Prefer aspect-ratio when supported (cleaner, no padding hack) */
@supports (aspect-ratio: 16/9) {
    .video-container {
        padding-top: 0;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .video-container iframe {
        top: 0;
        left: 0;
        aspect-ratio: 16 / 9;  
        border: 0;
    }
}

.video-container iframe {
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;   
    border: 0;
}



.inline-svg {
    width: 1.3em;
    height: 1.3em;
    vertical-align: -0.3em;    
}

.inline-svg-upsidedown {
    width: 1.3em;
    height: 1.3em;
    vertical-align: -0.3em;   
    transform: rotate(180deg);
}

.navigation {
    display: flex;
    margin-top: 30px;
    text-align: right;
    background-color: var(--navigation-color);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.next-button {
    background-color: var(--button-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;   
    margin-left: auto; 
}

.previous-button {
    background-color: var(--button-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;    
}

.image-annotation {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    line-height: 1.2;
}

/* Small-screen adjustments */
@media (max-width: 600px) {
    .container {
        flex-direction: column; /* Stack columns vertically */
    }
    .left-column {
        border-right: none; /* Remove the border on small screens */
        padding-right: 0; /* Remove padding on small screens */
    }
    .navigation {
        margin-top: 130px;
    }
    .image-container {
        gap: 0.5rem;
    }
    .image-annotation {
        font-size: 0.85rem;
    }
}

/* Replace list counter rules with hanging-indent layout for ordered lists */
ol {
  counter-reset: item;
  list-style: none;        /* hide default numbers so our generated markers are used */
  padding-left: 0;        /* remove browser default so we control spacing */
  margin-left: 0;
}

/* Reset counters on nested ordered lists so numbering restarts per level */
ol ol,
ol ol ol {
  counter-reset: item;
}

ol li {
  display: block;
  position: relative;               /* allow absolute-positioned marker */
  padding-left: var(--list-indent); /* space reserved for the counter/marker */
  margin: 0 0 0.6em 0;
  text-align: left;
}

ol > li:before {
  content: counters(item, ".") ". ";
  counter-increment: item;
  position: absolute;
  left: 0;
  width: calc(var(--list-indent) - 0.2em);
  text-align: right;
}

/* Preserve indentation for nested ordered lists (levels 2 and 3) */
ol ol li {
  padding-left: calc(var(--list-indent) * 2);
}
ol ol li:before {
  width: calc(var(--list-indent) * 2 - 0.2em);
}

ol ol ol li {
  padding-left: calc(var(--list-indent) * 3);
}
ol ol ol li:before {
  width: calc(var(--list-indent) * 3 - 0.2em);
}

.left-column .card-link {
    margin-bottom: 24px;
}

.card {
    min-height: unset;
}

.warning-list {
    list-style-type: disc !important; /* Ensure bullet points are displayed */
    list-style-position: outside;    /* Ensure bullets are outside the content box */
    margin-left: 20px;               /* Add space to the left */
    padding-left: 40px;              /* Ensure enough space for bullets */
}



