/* Hero */

.hero-content {
    text-align: center;
    position: absolute;
    top: 4rem;
    height: 9rem;
    align-items: center;
    display: flex;
    flex-flow: column;
    justify-content: center;
    }
.hero-content > h1 {
    color:white;
    font-weight:100;
    margin:0px;
    text-shadow: 2px 2px 6px #00174a;
}
.hero-content > .subtitle {
    color:white;
    margin:0px;
    position: relative;
    top: -1rem;
    font-size:175%;
    font-weight: 350;    
    text-shadow: 3px 3px 4px black;    
}


/* Table of content*/
.content-with-sidebar {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}


aside.page-toc {
    width: 250px;
    background: #f8f8f8;
    font-size: 0.7rem;
    position: sticky;
    top: 3rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 4px;
}

.page-toc ul {
    list-style: none;
    padding-left: 8px;
    margin: 0;
}
.page-toc > ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.page-toc a {
  text-decoration: none;
  color: #336699;
}

.container.grid-xl {
    max-width: max(80vw, 1296px);
    width: 100%;
}

.page-toc h4 {
    display: none;
}
.page-toc h5 {
    margin-top: 0;
}

#content {
  flex: 1;
  margin-left: .25rem;
  padding-left: 1.75rem;
  border-left: 1px solid lightgray;
}


/* Let titles and notices stand out */
#content > h1,
#content > h2,
#content > h3,
#content > h4,
#content > h5,
#content > h6,
#content > .sc-notice {
    margin-left: -1rem;
}

/* Put content on top on smartphones*/
@media (max-width: 960px) {
    .content-with-sidebar {
        flex-direction: column;
    }

    aside.page-toc {
        width: 100%;
        position: relative;
        top: unset;
        max-height: unset;
        padding: 1rem;
        margin-bottom: 1rem;
        order: -1; /* Zet het boven de content */
    }

    #content {
        padding-left: 0;
        border-left: unset;
        margin-left: 0;
    }

    table {
        width: 100%;
        table-layout: fixed;        
    }

    /* Let titles and notices not stand out, no place*/
    #content > h1,
    #content > h2,
    #content > h3,
    #content > h4,
    #content > h5,
    #content > h6,
    #content > .sc-notice {
        margin-left: 0rem;
    }  
}

@media screen and (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        display: none; /* Verberg de koprij */
    }
    tr {
        margin-bottom: 1rem;
        border: 1px solid #ccc;
    }
    td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    /* Je kunt hier eventueel met :before labels toevoegen */
}

/* For flex shortcode*/
.container .container {
    padding: 0;
}

#body-wrapper .container {
    padding-top: unset;
    padding-bottom: unset;
}

.copy-button-host {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.copy-table-btn.copy-in-heading {
    margin-left: auto;
    white-space: nowrap;
}



/* for img & images shortcode: figure in column has no margin */
.column > figure {
    margin: 0;
}

figcaption {
    font-style: italic;
    font-size: 90%;
    justify-self: center;
}

.container.images:not(.container .container.images) {
    margin-left: 3rem;
    margin-right: 1rem;
}

.container.images > .columns {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
/* 
.container.images > .columns > .column {
    border-right: 1px solid lightgray;
}

.container.images > .columns > .column:last-child {
    border-right: none;
} */

/* sm: until 600px */
@media (max-width: 600px) {
    .order-sm-1 {
        order: 1;
    }

    .order-sm-2 {
        order: 2;
    }

    .order-sm-3 {
        order: 3;
    }

    .order-sm-4 {
        order: 4;
    }

    .order-sm-5 {
        order: 5;
    }

    .order-sm-6 {
        order: 6;
    }
}

.centerimg {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 800px) {
    .container.images {
        margin-left: unset;
        margin-right: unset;
    }
    .container.images > .columns > .column {
        border-right: none;
    }    
}


/* sc-notice extensions */
.sc-notice.lesdoelen > div:first-child, 
.sc-notice.green > div:first-child 
{
    border-top: 30px solid #77C577;
    background: #E6F9E6;}

.sc-notice.lesdoelen > div:first-child:after {
    content: 'Lesdoelen';
}

.sc-notice.geleerd > div:first-child {
    border-top: 30px solid #6AB0DE;
    background: #E7F2FA;
}

.sc-notice.geleerd > div:first-child:after {
    content: 'Wat heb ik geleerd?';
}

.sc-notice.boek > div:first-child {
    border-top: 30px solid #F0B37E;
    background: #FFF2DB;
}

.sc-notice.boek > div:first-child:after {
    content: 'Zie boek ...';
}

.sc-notice-icon {
    font-size: 4rem;
}

/* Zet het icoon boven de andere div bij kleine schermen */
@media (max-width: 600px) {
    .sc-notice > .sc-notice-inner {
        flex-direction: column;
        align-items: center;
    }
    .sc-notice-icon {
        /* margin-bottom: 0.5rem; */
        margin-right: 0;
    }
}

.sc-notice > .sc-notice-inner {
    display: flex;
}



/* for tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(60, 60, 60, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    /* font-size: 1rem; */
}

th {
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #e0e0e0;
}

tr {
    transition: background 0.2s;
}

tbody tr:hover {
    background: #f0f7fa;
}

td {
    border-bottom: 1px solid #e0e0e0;
    color: #444;
}

tr:last-child td {
    border-bottom: none;
}


.strip {
    background: #f9f9f9;
}

/* for specialised notices shorcodes */
.notices.opdracht {
    border-left: 10px solid #5cb85c;
    background: #dff0d8;
    color: #3c763d;
}
.notices.vraag {
    border-left: 10px solid #337ab7;
    background: #d9edf7;
    color: #31708f;
}
.notices.opgelet {
    border-left: 10px solid #d9534f;
    background: #f2dede;
    color: #a94442;
}
.notices.info {
    border-left: 10px solid #6f42c1;
    background: #f3e8ff;
    color: #5a189a;
}
.notices.weetje {
    border-left: 10px solid #f0ad4e;
    background: #fcf8f2;
    color: #df8a13;
}
.notices.teal {
    border-left: 10px solid #20c997;
    background: #e6fcf5;
    color: #155724;
}
.notices.gray {
    border-left: 10px solid #6c757d;
    background: #f8f9fa;
    color: #343a40;
}
.notices.orange {
    border-left: 10px solid #f0ad4e;
    background: #fcf8e3;
    color: #8a6d3b;
}
.notices.pink {
    border-left: 10px solid #d63384;
    background: #f8d7da;
    color: #c82333;
}
.notices.dark {
    border-left: 10px solid #343a40;
    background: #e9ecef;
    color: #212529;
}

.notices table {
margin-right: 1em;
margin-bottom: 1em;
width: calc(100% - 1em);
}

/* Meer visueel verschil tussen headings */
h1 {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #000;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #111;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #222;
}

h4 {
  font-weight: 600;
  letter-spacing: 0px;
  color: #444;
  font-style: italic;
  font-size: 1.1rem;
}

h5 {
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #666;
  font-style: italic;
  font-size: 1rem;
}

/* Print visibility helpers */
.noprint {
    display: block;
}

.printonly {
    display: none;
}

@media print {
    .noprint {
        display: none !important;
    }
    .printonly {
        display: block !important;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        break-after: avoid;
    }
    h1 + div, h2 + div, h3 + div, h4 + div {
        page-break-before: avoid;
        break-before: avoid;
    }

    .header-fixed #header {
        position: static;
    }
    .hero-content > h1,
    .hero-content > .subtitle {
        text-shadow: unset;
    }

    .page-toc {
        display: none;
    }
    
    /* .page-toc ol li,
    .page-toc ul li {
        margin-top: 0 !important;
        line-height: unset;
    } */

    .sc-notice.lesdoelen {
        margin-top: 0 !important;
    }
}

/* Embed shortcode styles */
.embed-shortcode {
    width: 70%;
    aspect-ratio: 16 / 9;
}

.embed-container {
    position: relative;
}

.embed-breakout {
    position: absolute;
    top: -5px;
    right: 5px;
    z-index: 2;
    background: transparent;
    padding: 0;
    border: none;
    text-decoration: none;
    font-size: 2em;
    font-size: 2em;
    font-weight: 900;
    color: #000;
    text-shadow: 2px 2px 3px white;
    text-decoration: none;
}

.embed-breakout:visited {
    color: #000;
    text-decoration: none;
}

.embed-breakout:hover {
    text-decoration: none;
}



@media (max-width: 600px) {
    .embed-shortcode {
        width: 100%;
    }
}

.terminal-vibe {
    background-color: #f5f5f5;
    color: #19b049;
    font-family: Consolas, 'Roboto Mono', monospace;
    font-weight: bold;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    border: 1px solid #ccc;
    /* text-shadow: 0 0 2px #21c555; */
}

