/*Algemene zaken maar ook de header en de footer*/

/*ERG algemene zaken */
* {
  box-sizing: border-box;
}

:root{

--vebred: #ff4f2c;
--vebreddark: #B2371E;
--vebredrgb: 240 81 51;
--vebgrey: #aba19b;
--expertblue: #0a006d;
--expertbluergb: 10 0 109;
--dev: #E8E0F2; /*voor de ontwikkelomgeving*/
--paperbeige: #f2e3d3;
--paperbeigelight: #FCF9F6;

text-rendering: optimizeLegibility;
text-size-adjust: 100%;
unicode-bidi: isolate;
-webkit-font-smoothing: antialiased;
-webkit-locale: auto;

}

a {text-decoration: none;}
a:hover {text-decoration: underline;}
main a {color: var(--vebred);}
main a[target="_blank"]::after
{content : url("../images/external-link.svg");
 display:inline-block;
 padding-left: 1ch;
 text-decoration: none;
 color: #333;
 font-size: 0.4rem;
 transform: translateY(2px);
}


li.error {display: none !important;}

body {
    background-color: var(--paperbeigelight);
    margin: 0;
    font-family: "Public Sans", sans-serif;
    
}

html {
    scroll-padding-top: 130px;
    scroll-behavior: smooth;
}

main {
    padding: 1em;
    
}

h1, h2 {
    color: var(--vebred);
    font-family: "Bricolage Grotesque", serif;
    font-weight: 600;
}

pre {background-color: var(--dev)}

section, hgroup, pre {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 4em;
    margin-top: 2em;
   
}

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

li {
    
    line-height: 1.3em;
}


/*back top top*/
#myBtn {
  /*display: none; /* Hidden by default */
  opacity : 0;
  position: fixed; /* Fixed/sticky position */
  bottom: 1em; /* Place the button at the bottom of the page */
  right: 1em; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color:var(--vebred); /* Set a background color */
  color: white; /*Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  text-align: center;
  border-radius: 40%; /* Rounded corners */
  corner-shape: squircle;
  font-size: 1.8em; /* Increase font size */
  width : 1.5em;
  height: 1.5em;
  transition: opacity 0.6s ease-out, transform 1.2s ease-out;
   @media (min-width: 1200px) {
        display: none;}
}


code {background-color: var(--paperbeige);
    display:inline-block;
    margin-top: 2px;
}


/*HEADER*/

header {
  background-color:var(--paperbeige);
  padding-left: 1em;
  padding-right: 1em;
  position: sticky;
  top: 0;
  z-index:100;
  margin:0;
    
}

#header-content{
    display: flex;
    max-width: 1000px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding:0em 0em; 
    box-sizing: border-box;
    margin: 0 auto;
    
   
}


#site-algemeen {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    

}


#site-algemeen > *:not(:last-child) {
    border-right: 1px solid var(--expertblue);
    padding-right: 0.75em;
}

.logo {
  height: clamp(1.5rem, 4vw, 3rem);
  width: auto;
}



p#site-title
{   
  
font-family: "Bricolage Grotesque", sans-serif;
font-size: clamp(2rem, 4vw, 3rem);
margin: 0.6em 0.6em 0.6em 0.2em;
font-weight: 600;
color: var(--expertblue);
display: inline-block;

}

p#site-title:after {
    content: "Medieval Manuscripts in Flemish Collections";
    color: black;
    display: block;
    font-size: 0.3em;
    font-weight: normal;
    position: absolute;
}


menu {list-style-type: none;}

menu#groot {
    
    font-family: "Bricolage Grotesque", serif;
   font-weight: 600;
   
/* als het scherm kleiner wordt dan 700 px */
    @media (max-width: 799px) {display:none}
}

menu > li  a  {
 text-decoration: None;
color: var(--expertblue);
  }

menu#groot > li {
display: inline-block;
line-height:1.5em;
padding: 0.5em;

}


/*klein menu */
details#burger_nav {
    display: None;
    margin-right:1em;
    @media (max-width: 800px) {display:block}
}


details#burger_nav > summary {list-style: none; cursor: pointer;}
details#burger_nav > summary::-webkit-details-marker { display: none; }
details#burger_nav > summary::marker { display: none ,  content: "" }



details#burger_nav > menu {
    position: absolute;
    z-index: 99;
    background-color: var(--paperbeigelight);
    width:100vw;
    left: 0;
    border-bottom: 1px solid  var(--vebred);
    text-transform: uppercase;
    text-decoration: None;
    li {
        line-height:2em;
        }
    }




/*groot menu*/
details#sub-nav-names > menu {
    position: absolute;
    top: 5em;
    z-index: 99;
    background-color: var(--paperbeigelight);
    padding: 0;
    margin: 0;
    list-style-position: inside;
    border: 1px solid  var(--vebgrey);
    box-shadow: 2px 2px 5px #E6E6E6, 0px 0px 0px #E6E6E6, 0px 0px 0px #E6E6E6;
    border-radius: 4px;
    
}

details#sub-nav-names > menu > li {
    margin: 0px;
    padding-left: 2ch;
    padding-right: 2ch;
    font-size: 0.9em;
    text-transform: uppercase;
    text-decoration: None;
    line-height:2.2em;
    transition: background-color 0.6s ease;
    &:hover {
        background-color: var(--paperbeige);
        text-decoration: None;
        }
    }



hgroup > p {
    margin-top:0;
}

h1 {margin-bottom: 0.2em;margin-top: 0em;}
.subtitle {margin-top:-0.4em;}

/*geef de datasource van iets weer*/
[data-source]::after {
    padding-left: 0.6ch;
    content: attr(data-source);
    color: DarkGray;
    font-size: 0.7em;
}


[data-icon]::before {
    padding-right: 0.6ch;
    display: inline-block;
    transform: translateY(2px);
}

/*voeg icon toe voor een ding*/
[data-icon="search"]::before {
    content: url("../images/search-white.svg");
}

/*voeg icon toe voor een ding*/
[data-icon="collective"]::before {
    content: url("../images/collective.svg");
}

/*voeg icon toe voor een ding*/
[data-icon="place"]::before {
    content: url("../images/place.svg");
}

/*voeg icon toe voor een ding*/
[data-icon="person"]::before {
    content: url("../images/person.svg");
}

/*voeg icon toe voor een ding*/
[data-icon="work"]::before {
    content: url("../images/work.svg");
}

/*voeg icon toe voor een ding*/
[data-icon="collection"]::before {
    content: url("../images/collection.svg");
}


/*de eerste sectie*/
#hero {
  display: flex;
  flex-direction: column;
   align-items: flex-start;
  gap: 1rem;
    & img {
        border-radius: 1em;
        max-width: 350px;
        }
     
    & #img-wrapper::after {
    display:block;
    
    padding-left: 0;   
    }
       
    }


@media (min-width: 700px) {
  #hero {
    flex-direction: row;
      }
    }











#serviceLinks {
    border-radius: 1em;
    margin: 4em auto;
    padding:1em;
    display: flex;
    gap: 0.5em;
    background-image:  url("../images/waving-owl.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-color: var(--paperbeige);
    background-size: contain;
    background-size: 9em auto;
    @media (max-width: 700px) {background-image:  None; flex-direction: column;}
}

#serviceLinks > a {
   font-family: "Bricolage Grotesque", serif;
   font-weight: 600;
  border-radius: 1.5em;
  background-color: var(--vebred);
  color: white;
  padding: 0.7em 1em;
  text-align: center;
    word-break: keep-all;
    transition: background-color 0.4s;
    &:hover {
     background-color: var(--vebreddark);
     text-decoration: none;
      @media (max-width: 700px) {display:block;}
}
}
#serviceLinks > a > svg {
    height: 1em;
    width: 1em;
    transform: translateY(0.1em);
}

#serviceLinks > a > svg path {
    stroke: currentColor;
    stroke-width: 2;
}

#permalink {
    
    cursor: pointer;
}

#permalink::before {
    content: 'pid: ';
    
}


#refresh:hover span {
  animation: spin 2s linear infinite;
  transition: font-size 0.2s ease;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
100% {
    transform: rotate(360deg);
  }
}


div#CopiedSign {color: var(--expertblue);
position: fixed;
z-index : 999;
text-align: center;
padding: 1em;
visibility: hidden;
background-color: rgba(255,255,255,0.7);
border-radius: 15px;
max-width: fit-content;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}


/*FOOTER*/
footer {background-color: var(--expertblue);
    width: 100%;
    color: white;
    padding: 1em;
    }
footer ul {
    flex: 1;
}
footer ul li:first-child {
    font-weight: bold;
}
footer img {height: 4em}
footer a {color: white;}
#footerCols {display: flex;
    @media (max-width: 700px){
    flex-direction: column;
}
