
/* Mirador red: rgba(240, 52, 52, 1) 
 * Elias green: rgb(223, 236, 222)
 * GF yellow: #ffdb5a
 * 
 *  */
:root {
  --timeline-bg: rgb(223, 236, 222);
  --year-bg: rgba(240, 52, 52, 1);
  --size-squares: 30px;
  --timeline-content-bg: rgba(192, 192, 192, 0.1);
  --mirador-red: rgba(240, 52, 52, 1) ;
}

.hidden {
    display: none !important;
    
}

#backToTop {
  position: fixed;
  bottom: 20px;       /* Distance from the bottom of the viewport */
  right: 20px;        /* Distance from the right of the viewport */
  padding: 10px 15px;
  font-size: 16px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none;      /* Hidden by default, will show on scroll */
  z-index: 1000;      /* Stay on top of other elements */
}

#backToTop:hover {
  background-color: #555;
}


#introduction {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
} 

#introduction h1 {
    margin-top: 0;
}

#introduction .content {
    width: 57rem;
    margin-right: auto;
}

#introduction p{
    margin-top:1rem;
    line-height: 1.3rem;
    letter-spacing: 0.030rem;
}

#introduction p em{
    font-weight: bold
}

#introduction img {
    height: 7vw;
    margin-left: 1rem;
}


#history {
  position: relative;
  display: flex;
}


#miradorContainer {
  position: sticky;
  top: 2vw; /* Align with #timeline's margin-top */
  left: calc(50% + 22.5% + 2rem); /* 50% + half of 45% + gap */
  transform: translateX(-9%);
  width: 42%;
  height: 39vw;
}

#timeline {
  position: relative;
  width: 55%;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.5s ease, transform 0.5s ease;
}

.timelineLine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  background-color: var(--timeline-bg);
  transform: translateX(+4%);
  z-index: 1;

}

.timelineContent {
    position: relative;
    display: flex;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background-color: var(--timeline-content-bg);
    border-radius: 1rem;
    line-height: 1.5rem;

}

.timelineContent.facs {
    cursor: pointer;    
}

.timelineContent .detailHead {
    font-weight: bold;
}
.timelineContent div {
    margin-left: 1rem;
    margin-right: 1rem;
    width: -webkit-fill-available;
}



.timelineContent img{
    height: 10rem;
    margin-top: auto;
    margin-bottom: auto;
    border: solid 5px white;
}

.timelineContent .comparable {
    margin-left: 1rem;
    font-style: italic;
    font-size: small;
}

.timelineItem {
    display:flex;

}

.timelineItem:nth-of-type(odd) .timelineContent {
   width: 50%;
   justify-content: end;
   padding-right: 5rem;
   
}

.timelineItem:nth-of-type(even) .timelineContent.facs:hover {
   transform: translateX(3px);
}

.timelineItem:nth-of-type(odd) .timelineContent.facs:hover {
   transform: translateX(-1px);
}

.timelineItem:nth-of-type(even) .timelineContent {
    padding-left: 5rem;
    width: 50%;
}

.timelineItem:nth-of-type(even) .timelineFillerLeft{
    min-width: 50%;
}

.timelineItem:nth-of-type(odd) .timelineFillerRight{
    min-width: 50%;
}

/* Even = right side */
.timelineItem:nth-of-type(even) .timelineContent::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3rem;
  height: 6px;
  background-color:var(--timeline-bg);
  transform: translateY(-50%);
}


/* Odd = left side */
.timelineItem:nth-of-type(odd) .timelineContent::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 3rem;
  height: 6px;
  background-color: var(--timeline-bg);
  transform: translateY(-50%);
}

.timelineItem:nth-of-type(even) .timelineContent::after {
  content: "";
  position: absolute;
  top: 50%;
  font-size: 1.5rem;
  line-height: 1.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  width:  var(--size-squares);
  height:  var(--size-squares);
  background-color:var(--timeline-bg);
  transform: translate(159%, -50%);
  z-index: 4;
  cursor: pointer;
}


.timelineItem:nth-of-type(even) .timelineContent.clicked::after {
  content: "-" !important;
}


.timelineItem:nth-of-type(odd) .timelineContent.facs::after {
      content: "+";
}

.timelineItem:nth-of-type(even) .timelineContent.facs::after {
      content: "+";
}

.timelineItem:nth-of-type(odd) .timelineContent::after {
  content: "";
  position: absolute;
  font-size: 1.5rem;
  line-height: 1.95rem;
  top: 50%;
  right: 0;
  width: var(--size-squares);
  height:  var(--size-squares);
  background-color: var(--timeline-bg);
  transform: translate(-150%, -50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}



.timelineItem:nth-of-type(odd) .timelineContent.clicked::after {
  content: "-" !important;

}


 span {
    display: flex;
    align-items:center;
    justify-content: center;
    z-index: 2;
    position: relative
}

 h3 {
   font-size: 1.2rem;
    line-height: 1.95rem;
    font-weight: 700;
    background-color: white;
 
    padding: 0.3rem;
    font-family: "Fira Sans", sans-serif;
   
    min-width: 6rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
 
.miradorFooter {
    position: fixed;
    margin-top: 97%;

    width: 90%;
    z-index: 500;
    display:flex;
    justify-content: flex-end;
    margin-left: 5rem;
    align-items: center;
}

.miradorFooter p {
    margin-left: 0.5rem;
    font-style: italic;
}

.miradorFooter img {
    width: 2.5rem;
    padding: 0.3rem;
    border-radius: 5rem;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
}


 
 

/*    Mirador CSS changes    */

div.mirador-osd-info{
    background-color: rgba(255, 255, 255, 0.6);
}
/* 
div.mirador-osd-navigation {
    display: none ;
}
 *  */

.mirador1 {
    background: transparent !important;
}

.mirador-workspace-viewport div.MuiToolbar-root {
    border-top: 2px solid #ff1700 !important;
}

/* 

div.mirador-workspace-viewport {
    padding-left: 0;
}
 */
button.mirador-window-maximize {
    display: none;
}

nav.mirador-workspace-control-panel {
    background: white;
}

div.mirador2 {
    display: none;
}

 button[title="Volledig scherm"], button[aria-label="Ga naar venster"], button[title="Workspace instellingen"], button[title="Workspace opties"], button.mirador-add-resource-button  {
    display: none;
}

.MuiList-root > li.MuiListItem-root:hover {
    border-left: 4px solid rgba(240, 52, 52, 1);
}

div.mirador-companion-area-left, div.MuiDrawer-root, button.MuiIconButton-root[aria-label="Toon zijbalk"] {
    display:none;
}

nav[aria-label='Workspace navigation']{
    display:none;
}

.mosaic-preview .mosaic-window-body {
    background: transparent;
}








