:root {
        --beige: 31 54.4% 88.8%;
        --blauw: 246 100% 21%;
        --oranje: 10 100% 58.6%;
        --expertblue: #0a006d;
        --icon-year: url("img/icon-year.svg")
        }

a {
    text-decoration: none;
}

html {
    scroll-padding-top: 100px;
}

a svg {
  vertical-align: middle; /* optioneel, voor nette uitlijning */
    text-decoration: none;
     text-decoration-skip-ink: none;
   
}


        
    body {
    margin:0;
    font-family: 'Public Sans';
    }
    p {
        padding-left: 1.2em;
        padding-right: 1.2em;
        }

    header {
        position: sticky;
        background-color:white;
        
        
        top:0em;
        z-index: 5;
        display: flex;
           
        justify-content: space-between;
        flex-wrap: wrap;
        
        container-type: inline-size; /* of size */
        container-name: header;


    }
    
    .animated {
  position: relative;       /* nodig voor pseudo-element */
  text-decoration: none;    /* verwijdert standaard onderstreping */
  color: hsl(var(--blauw));
}

.animated::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;                /* onderkant van de tekst */
  width: 0;                  /* startpunt breedte */
  height: 2px;               /* dikte van de lijn */
  background-color: hsl(var(--blauw));
  transition: width 0.3s ease; /* animatie bij hover */
}

.animated:hover::after {
  width: 100%;               /* lijn groeit naar volledige breedte */
}

    header * {
        
        margin-bottom:0;
    }
    
nav, #branding {
    display:flex;
    align-items: center;
    margin:1em;

}


    
    a.langSelect {padding-left: 1ch;
        display: inline-block;
        color: hsl(var(--blauw));
        
        &:hover {color: hsl(var(--oranje));}
    } 
    


    div#deletetag {
        
        
        background-color:hsl(var(--beige));
        width:100%;
        padding:1em;
        
    }
    
    div#deletetag a:hover svg
    
    {animation: wiggle 0.3s ease-in-out infinite;}
    
    div#deletetag a 
    {
        
    display: inline-block;       /* maakt de link block-level */
    text-align: center;   /* optioneel, tekst centreren */
    font-variant: small-caps;
    border-radius: 0.7em;
    border: 5px solid hsl(var(--oranje));
    background-color: hsl(var(--oranje) / 0.3 );
    padding:0.7em;
    text-decoration: none;
    font-size:1.5em;
    
    color: hsl(var(--oranje));
    }
    
    div#deletetag a svg
    {
        padding-right:0.2em;
        vertical-align: middle;
        font-size: 2em;
    

    }
    
    #cardcount {
    font-size: 0.7em;
    padding-left: 1ch;
        &:before {content: '\00D7';}
    }
    
    picture
    {
        
        padding-right: 1em;
        border-right : 1px solid var(--expertblue);
    }

    .logo img {
        
        height: clamp(2rem, 4vw, 3rem);
        width: auto;
    }
    
    
    .logocredits{
        overflow:hidden;
        font-size:90%;
    }

    icon-tag, icon-list, icon-info {
        font-size:2em;
        color:hsl(var(--blauw));


        }
    icon-bio {
        font-size:1em;
        color: black;
    }    
    
    .icon {
        background-color:white;
        color: hsl(var(--blauw));
    }
    
    details#language-switcher {position: relative;

    }

    summary::marker{
        color: hsl(var(--blauw));
    }
    
    
    
    
    .bio-from-wikipedia  summary{
        
        
        
        list-style: none;
    }
    
    menu {
        list-style-type: none;
        position: absolute;
        transform: translate(-1.6em,-0.9em)


    }

    .menu[open] {
        display: block;
    }


    main#cards {
        padding:3em 1em 3em 1em;
        display: grid;
        gap:3em;
        grid-template-columns: repeat(auto-fit, minmax(400px, 2fr));
        justify-content: center;
        background-color : hsl(var(--beige));

    }
    article.card {
        position: relative;
        max-width: 600px;
        display:flex;
        flex-direction: column;
        background-color: white;
        justify-content: space-between;
        padding :0em;
        transition: box-shadow 0.5s;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.15);
        &:hover
        {
            /*box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3), 0 14px 28px 0 rgba(0, 0, 0, 0.25);*/
          box-shadow: 0 12px 20px 0 rgba(0, 0, 0, 0.5), 0 16px 30px 0 rgba(0, 0, 0, 0.4);

        }
    }


    div.card-top{
        position: relative;
        cursor: pointer;

    }



    img.thumb {
    width: 100%;
    height: auto;
    display:block;
    object-fit: cover;
    height:300px;


    }
    div.printerdetails{
        background-color:rgba(255,255,255, 0.4);
        box-sizing: border-box;
        position: absolute;
        top: 0em;
        z-index:2;
        width: 100%;
        padding:0em 1em 0em 1em;
        backdrop-filter: blur(3px);
        
    
    }
    
    div.printerdetails h2 {
        margin-block: 0.2em;
       
    }
    
    div.printerdetails p {
       padding: 0;
       margin-top: 0;
       
    }
    
    h1, h2 {
       font-family: 'Bricolage Grotesque';
        color: hsl(var(--blauw));
        
    }
    h1 {
   margin: 0;
      font-size: clamp(2rem, 4vw, 3rem);
      margin-left:0.4em;
        
    

    }
    p#subtitle {margin-top:0; color:hsl(var(--blauw));}

    

    
    h2{
    
    font-size: 2em;
    
    color: hsl(var(--blauw));
    }
    
    
    
    div#intro, div#outro, div#sub-outro{
        background-color: white;
        padding: 1.2em;
        margin-bottom: 2em; margin-top: 2em;
        max-width: 75ch;
    }


    p.leefdata {
        padding-top: 0;
        margin-top:0;
    & span:first-child::after {
        content : " - "
        }
    }
    .pmdetails {
        
    }
    
    .pmdetails li {
    margin-bottom: 0.3em;    
    }
    
    li.bio-from-wikipedia  {
        
       list-style-image: url("img/person-plus-black.svg");
    }
    
    li.bio-from-wikipedia summary {
       cursor: pointer;
    }
    li.bio-from-wikipedia summary:hover {
       text-decoration: underline;
    }
    
    
    .biotext {
        padding-left: 0;
        text-align: justify;
        padding-right: 2em;
        
    }
    
    li.year {
        text-transform: capitalize;
       
         list-style-image: url("img/icon-year-black.svg");
    }
    li.tag {
        text-transform: capitalize;
        
         list-style-image: url("img/icon-tag-black.svg");
        & a {color: black
            
            }
        & a:hover {text-decoration: underline;
            
            }     
        & a:after {
            content: ", ";
            margin-right: 1ch;
            text-decoration:None;
             display: inline-block;
            }
        & a:last-child::after{
            content : "";
        }
    }
    div.card-bottom{


        width: 100%;

        background-color: hsl(var(--blauw));
        box-sizing: border-box;
        padding: 1.3em 1em 1.3em 0.7em;
    & a {padding:0.3em;

        margin-left: 0.5em;
    border-radius: 1em;
    color: hsl(var(--beige));
        text-decoration: none;
    border: 2px solid hsl(var(--beige));}

    & a:hover {padding:0.3em;
        margin-left: 0.5em;
        border-radius: 1em;
        background-color:hsl(var(--beige));
        color: hsl(var(--blauw));
        border: 2px solid hsl(var(--beige));}
    }
    
dialog#imageDialog {
  max-width: 84vw;   /* maximaal 90% van de schermbreedte */
  max-height: 80vh;  /* maximaal 90% van de schermhoogte */
    border-radius: 1em;
    border-width: 1px;
    overflow: visible;
    margin-left:auto;
    margin-right:auto;
  
}

dialog#imageDialog > h2 {
    margin-top: 0;
    padding-right: 2ch;
}
dialog#imageDialog > img{
max-width: 100%;    /* nooit breder dan de dialoogbox */
  max-height: 75vh;   /* nooit hoger dan de dialoogbox */
  height: auto;
  width: auto;
  display: block; 
  
    
}
 dialog form {
     display: inline;
 }
    
    dialog::backdrop {
  background: rgba(0, 0, 0, 0.5); /* half-transparant zwart */
}
    
    button:hover {cursor:pointer;
        
    }
    
    dialog button {
        background-color: hsl(var(--beige));
        position:absolute;
        top: -0.25em;
        right: -0.25em;
        font-size: 4em;
        /*border: 2px solid hsl(var(--blauw));*/
        border: none;
        outline: none;
        color: hsl(var(--oranje));
        
        cursor: pointer;
        border-radius: 50%;
        height: 0.9em;
        width: 0.9em;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        display: flex;              /* Flex container */
          justify-content: center;    /* Horizontaal centreren */
          align-items: center;  
          transition: all .2s ease-in-out;
    }
    dialog button:hover {
        transform: scale(1.2);
    }
    
    dialog button svg:hover
    {color:hsl(var(--oranje));
        
     animation: wiggle 0.3s ease-in-out infinite;
    }
 
footer #oranje {
    margin-top: 1em;
    padding: 2em;
    background-color: hsl(var(--oranje));
    color: hsl(var(--blauw));
}     
#meer{
    display: flex;
    gap: 2em;
    margin-bottom: 2em;
    }

footer #meer img {padding-top: 1em}

footer #initiatief {

    
    }
footer #meer ul {
    list-style-type: none;

    padding-left:0;

    }

footer #meer ul li:first-child
    {
    font-weight: bold;
    margin-bottom: 0.5em;
    }

/*
footer #oranje a {
    color : hsl(var(--blauw));
    
    text-decoration: none;
    &:hover {
    text-decoration: underline;
}
}
*/
footer #initiatief a {
    font-weight: bold;
}


footer #socials {
    margin-top:2em;
}
footer #socials a svg {
    color: hsl(var(--blauw));
    font-size: 2.2em;
    background-color: hsl(var(--oranje));
    
    }

#subfooter{
    margin-top: 3em;
    padding-top:1em;
    text-align:right;
    background-color:white;
    margin-bottom:4em;
    padding-right: 1em;
}
#subfooter img {
    padding-left:2em;
    height:5em;
    color:red;
    

}






 #printerspopover[popover], #tagspopover[popover]{
      max-height: 100%;          /* maximale hoogte relatief aan viewport */
      width: 35ch;
      margin: 0;
      overflow-y: auto;           /* verticale scroll bij overflow */
      /*padding: 1em;*/
      background-color: hsl(var(--oranje) / 0.9);
      transform: translateX(-100%);
      transition: transform 1s ease;
      display: block;
      z-index: 98;
      border: none;
      position: fixed;
      left: 0;
      top: 0;
      
     
    }

button.icon {
    border : none;
    cursor: pointer;

    &:hover {color: hsl(var(--oranje));}
}


button.popoverclose {
    background-color: transparent;
    position: sticky;
    display:inline-block;
    top:0.5em;
    right:0.5;
    left: 85%;
    z-index:99;
    color: white;
    font-size:3em;
    border: none;
    &:hover {
    animation: wiggle 0.3s ease-in-out infinite;
    cursor:pointer;
}
}

.popoverlist {
transform: translateY(-3em);
margin-left:-1em;
}

.popoverlist li {
    list-style-type: none;
    padding: 0.1em;
    margin:0.1em;
    }

.popoverlist a  {
    color:white;
    background-color: rgba(var(--vebred), 0.5);
}


#printerspopover:popover-open, #tagspopover:popover-open {
      transform: translateX(0);
      
      
    }


@keyframes fadein{
  0%{
    opacity:0;
  }
  100%{
    opacity:1;

  }
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
