@import url(https://cdn.jsdelivr.net/gh/bitmaks/cm-web-fonts@latest/font/Classical%20Serif%20Italic/cmun-classical-serif-italic.css);
:root {
    scroll-behavior: smooth;
    --font-sans: Arial, Helvetica, sans-serif;
    --font-fam-italic: "Computer Modern Classical Serif Italic";
    


    font-family: "Computer Modern Serif";
    font-size: 18px;
}

.light-mode {
    --icon-filter: none;
    --reverse-icon-filter: invert(1);
    --primary: #6681a4;
    --secondary: #ced1f1;
    
    --shadow: rgba(124, 124, 124, 0.452);
    --main-shadow: rgba(124, 124, 124, 0.452);

    --text-col: black;
    --inv-text-col: white;
    
    --bg-col: rgb(251, 249, 245);
    
    --hover-col: #fcfcfc;
    --nav-bar-item-col: #ececec;
    
    --border-primary-col: #383838;
    --border-secondary-col: #bbb;
    
    --normal-link: #6681a4;
    --visited-link: #a46666;
    --hover-link: #4b473d;
    --input-col: #eee;

    --details-col-offset: 0.02;
}

.dark-mode {
    --icon-filter: invert(1);
    --reverse-icon-filter: none;
    --primary: #6681a4;
    --secondary: #333a53;
    
    --shadow: rgba(17, 17, 17, 0.493);
    --main-shadow: rgba(130, 130, 130, 0.608);

    --text-col: white;
    --inv-text-col: black;
    
    --bg-col: rgb(16, 16, 16);
    
    --hover-col: #181717;
    --nav-bar-item-col: #333;

    --border-primary-col: #383838;
    --border-secondary-col: #bbb;

    --normal-link: #bdc5d3;
    --visited-link: #d9c2c2;
    --hover-link: #eeede5;

    --input-col: #585858;

    --details-col-offset: 0.06;
}


a:link {
  color: var(--normal-link); /* onvisited */
}

a:visited {
  color: var(--visited-link); /* visited, zachter zodat het niet vloekt */
}

a:hover {
  color: var(--hover-link); /* duidelijk bij hover */
}

a:active {
  opacity: 0.3;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-no-style:link , .link-no-style:visited, .link-no-style:hover, .link-no-style:active {
  color: var(--text-col);
  text-decoration: none;
  font-style: normal !important;
  font-family:unset;
}

main details[open] {
    box-shadow: 4px 4px 5px var(--shadow), -4px 4px 5px var(--shadow), 0px -2px 5px var(--shadow);
    background-color: rgba(0, 0, 0, var(--details-col-offset));
    border-radius: 3px; 
    border: 1px solid var(--border-primary-col);
    box-sizing: border-box;
}

input[type='text'] , input[type='number'], textarea {
    background-color: var(--bg-col);
    color: var(--text-col);
    border: 1px solid var(--border-secondary-col);
    border-radius: 4px;
}


img {
  border-width: 3px;
  border-color: var(--border-secondary-col);
  border-style: double;
  box-sizing: border-box;
  max-width: 100%;
}



figcaption {
    width: 100%;
    font-weight: bold;
}

.figure-right {
    float: right;
    margin: 0 0 1rem 1rem;   /* ruimte links en onder */
}

.figure-left {
    float: left;
    margin: 0 1rem 1rem 0;   /* ruimte links en onder */
}

.figure-right img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}


button, select {
    background-color: var(--input-col) !important;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    color: var(--text-col) !important;
}

button:hover, select:hover, summary:hover {
    opacity: 0.7;
    cursor: pointer;
}

button:active, summary:active {
    opacity: 0.3;
}


details {
    padding-left: 15px;
}


header {
    background-color: var(--header-bg-col);
    border-bottom: var(--border-primary-col);
    border-style: solid;
    border-width: 0px;
    border-bottom-width: 1px;
    width: 100%;
    margin: 0;
    margin-bottom: 1rem;
    padding: 0;
}

aside {
    padding: 1rem;
    position:static;
}

main h1 {
    margin-top: 0;
    padding: 0;
}

aside h3 {
  margin-top: 0;
}

.layout {
  overflow: unset;
}

a {
    font-family: var(--font-fam-italic);
}

body {
    color: var(--text-col);
    display: flex;
    flex-direction: column;   /* verticaal */
    min-height: 100vh;
    margin: 0;
    background-color: var(--bg-col);
}

main {
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 3px;
}

fieldset {
  border-radius: 3px;
}

fieldset > p, fieldset > ul {
    margin: 0;
}

/*LAYOUT*/



.both-sides {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 768px minmax(0, 1fr);
    gap: 1rem;
    flex: 1;
    margin: auto;
    padding: 0; 
    width: 75%;         
}

.both-sides > main {
   border-left: 1px solid var(--border-secondary-col);
   border-right: 1px solid var(--border-secondary-col);
   box-shadow: 1px 0px 4px var(--main-shadow), -1px 0px 4px var(--main-shadow);

}

.no-sides-on-mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 768px minmax(0, 1fr);
    gap: 1rem;
    flex: 1;
    margin: auto;
    padding: 0; 
    width: 100%;  
}

.only-main {
    display: grid;
    grid-template-columns: 768px;
    gap: 1rem;
    flex: 1;
    margin: auto;
    padding: 0; 
    width: 768px;         
}
.only-main > aside {
  display: none;
}

.aside-left-middle-screen {
  display: none;
}

.hr-aside-extra-info {
  display: none;
}

@media (max-width: 1800px) {
  .both-sides {
    grid-template-columns: minmax(0, 1fr) 768px;     
    grid-template-rows: auto auto;   
  }
  .aside-left-middle-screen {
    display: block;
  }
  .aside-right {
    display: none;
  }
  .hr-aside-extra-info {
    display: block;
  }
}



@media (max-width: 900px) {
  .layout {
    margin: 0;
    width: 100% !important;
    grid-template-columns: 100% !important;
  }
  .aside-right {
    display: none;
  }
  .aside-left-middle-screen {
    display: none;
  }
}

@media (max-width: 1380px) {
  .both-sides {
    grid-template-columns: 768px;  
    width: 768px;      
  }
  main, aside {
    width: min(768px, 100%);
    box-sizing: border-box;
  }
  .no-sides-on-mobile {
    grid-template-columns: 100fr;
    width: 100%;
    
  }
  .no-sides-on-mobile > main {
    margin: auto;
  }
  .no-sides-on-mobile > aside {
    display: none;
  }
}

@media (max-width: 1380px) {
  /*aside {
    opacity: 0;
    padding: 0px;
  }
  aside > * {
    width: 0px;
    display: none;
    padding: 0px;
  }*/
}


/* main content */
main {
  flex: 1;                  /* neemt resterende ruimte */
  padding: 1rem;
  height: fit-content;
}

/* footer */
footer, header {
  text-align: center;

}
footer {
    margin-top: 1rem;
    border-top: var(--border-primary-col);
    border-style: solid;
    border-width: 0px;
    border-top-width: 1px;
}

/*--------------WISKUNDE-------------*/

.verhoudings-tabel {
  border-collapse: collapse; /* Zorgt dat borders samenkomen */
}

.verhoudings-tabel td {
  border-left: 1px solid var(--border-primary-col); /* Alleen linker- en bovenranden zichtbaar */
  border-top: 1px solid var(--border-primary-col);
  padding: 8px;
}

/* Verwijder de buitenste randen door eerste rij en eerste kolom te negeren */
.verhoudings-tabel tr:first-child td {
  border-top: none;
}

.verhoudings-tabel td:first-child {
  border-left: none;
}

.box {
    border: 1px solid var(--border-primary-col);
    border-radius: 4px;
    box-sizing: border-box;
    padding: 0.5rem;
}