/****************************/
/********* ALL SITE *********/
/****************************/

@font-face {
  font-family: "ApfelGrotezk";
  src: url("fonts/ApfelGrotezk-Regular.woff") format("woff"),
    url("fonts/ApfelGrotezk-Regular.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  --primary-orange: #ea4f2b;
  --primary-violet: #8048b7;
  --primary-kahki: #a99f89;

  margin: 0;
  height: 100vh;
  display: grid;
  grid-template-areas: ' h h h' 'l c r' 'f f f';
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 2.5em 1fr 2.5em;

  font-family: 'ApfelGrotezk', sans-serif;
  font-size: 16px;
}

a {
  color: #1c1c1c;
}

sup#fn54, sup#fn38, sup#fn66 {
  word-break: break-word;
}

#intro sup a {
  color: #f0f0f0;
}

h1, h3 {
  padding-bottom: 0.5em;
}

/************* LAYOUT COMPUTER *****************/
/*buttons*/
.center-buttons {
  --left-color: var(--primary-orange);
  --right-color: var(--primary-violet);

  grid-area: c;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  background-image: linear-gradient(to right,var(--left-color) 0% 50%, var(--right-color) 50% 100%);
}

.center-buttons.colophon {
  --right-color: var(--primary-kahki);
}

.center-buttons > button {
  position: relative;
  z-index: 9999;
  outline: thin solid lightgrey;
}

/*padding to be moved to the sub stuff */
.main-column-left {
  grid-area: l;
  position: relative;
  background: var(--primary-orange);
}

.main-column-right {
  position: relative;
  grid-area: r;
  background: var(--primary-violet);
}

.main-column-right .scroller {
  position: absolute;
  overflow-y: scroll;
  inset: 0;
}

body:has(#colophondiv.active) .center-buttons {
  --right-color: var(--primary-kahki);
}

#colophon {
  position: fixed;
  right: 0;
  bottom: 3em;
  right: 0.5em;
  width: 7em;
  z-index: 99999;
  color: black;
}

#colophondiv {
  display: none;
  background: var(--primary-kahki);
  padding: 2em 5.5em 4em 2.5em;
  line-height: 1.5em;
}

#colophondiv.active {
  display: block;
}

#colophon img {
  width: 100%;
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
  transition: transform 0.5s;
}

#colophon img:hover {
  transform: rotate(45deg);
}

#colophon img:hover {
  cursor: pointer;
}


nav {
  display: flex;
  justify-content: space-between;
  padding-inline: 1em;
  background: #f0f0f0;
}

nav.top {
  grid-area: h;
}

nav.bottom {
  grid-area: f;
}

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

.name-elements li {
  width: 70%;
  margin: 0 auto;
  padding: 5% 0;
}

.nav-button {
  display: block;
  padding: 0.25em;
  text-align: center;
  min-width: 8em;
}

.nav-button:hover {
  color: #8048b7;
}

.librarian-names, .file-names {
  text-decoration: none;
  padding-inline: 0.3em;
  color: #1c1c1c;
}

.librarian-names:hover, .file-names:hover {
  color: #8048b7;
  cursor: pointer;
}

.mobile-pdf {
  display: none;
}

/**********************************/
/* container for names and files */
/********************************/

/***********************/
/* Block list of names*/
/*********************/
#listofpeople {
  --_padding: 0.25em;
  padding-inline-start: var(--_padding);
  padding-block-start: var(--_padding);
}

/***********************/
/* Block list of files*/
/*********************/
#listoffiles {
  overflow: hidden;
}

.file-names-container {
  /*IE 9 */
  -ms-transform: rotate(-90deg) translate(-78%, 0%);
  /*Safari */
  -webkit-transform: rotate(-90deg) translate(-78%, 0%);
  /*Standard syntax */
  transform: rotate(-90deg) translate(-0%, 0%);
  transform-origin: top left;
  height: 50vw;
  width: calc(50vh - 2em);
  overflow-y: scroll;
  overflow-x: hidden;
  position: absolute;
  left: 0;
  top: 100%;
}

/**************/
/* SCROLLBARS*/
/*************/


/* The emerging W3C standard
that is currently Firefox-only */
* {
  scrollbar-width: thin;
  scrollbar-color: #1c1c1c #1c1c1c;
}

/* Works on Chrome/Edge/Safari */
*::-webkit-scrollbar {
  width: 12px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background-color: #1c1c1c;
  border-radius: 20px;
  border: 3px solid #1c1c1c;
}


/************************/

img.listed-images {
  width: 100%;
}

video.listed-videos {
  width: 100%;
}

audio.listed-audio {
  width: 100%;
}

object.listed-pdf {
  width: 100%;
  height: 70vh;
}

:where(button, span).active {
  color: #8048b7;
}

/************************/
/*BUTTONS AND INFO PAGES*/
/************************/

/*Buttons*/
button {
  border-radius: 0;
  border: 0;
  padding: 0;
  z-index: 2;
  background: #f0f0f0;
  font-size: inherit;
}

button:hover {
  cursor: pointer;
}

button:focus {
  outline: none;
}

button#listoffiles {
  position: fixed;
  left: 46.3%;
  top: 49%;
  transform: rotate(90deg);
  width: 6.4%;
  background: #8048b7;
}

button#listoffiles:hover {
  background: #f0f0f0 !important;
}

button#about {
  background: #f0f0f0;
  border-radius: 100%;
  padding: 2em 0.9em;
}

body:has(.insert.active) #about {
  background-color: var(--primary-orange);
}

button#about:hover,
button#reset:hover,
button#showall:hover,
button.download:hover {
  background: #ea4f2b !important;
  outline-color: #ea4f2b;
  cursor: pointer;
}

button#reset {
  border-radius: 100%;
  padding: 2em 1em;
}

button#showall {
  border-radius: 100%;
  padding: 2.05em 0.4em;
}

button.download {
  padding: 0.7em 0.7em;
  border-radius: 5px 21px 5px 21px;
}

/* INSERT */
#insert.active, #intro.active, #howto.active {
  display: block;
}

#insert, #intro, #howto {
  display: none;
  background: white;
  position: absolute;
  overflow-y: scroll;
  right: -2.4em;
  scroll-behavior: smooth;
}

#howto {
  left: 30%;
  top: 15%;
  bottom: 15%;
  z-index: 2;
}

#intro {
  background: var(--primary-kahki);
  left: 25%;
  top: 10%;
  bottom: 10%;
  z-index: 1;
}

#insert {
  left: 20%;
  top: 5%;
  bottom: 5%;
  z-index: 0;
}

#intro p, #howto p, #insert p {
  line-height: 1.5em;
}

#howto sup a, #insert sup a  {
  color: #a99f88;
}

#howto audio {
  width: 100%;
}

:where(#insert, #intro, #howto) article {
  padding: 1em 1em 1em 2em;
}

#closeintro, #closehowto, #closeinsert {
  cursor: pointer;
  position: sticky;
  top: 0.5em;
  font-weight: bold;
  padding: 0 0.15em 0.25em 0.15em;
  margin: 0.5em;
  font-size: 1.2em;
  color:  #020202;
  float: left;
}

#closehowto:hover, #closeinsert:hover {
  color: var(--primary-kahki);
}

#closeintro:hover {
  color: #f0f0f0;
}

span.method-label {
  text-transform: capitalize;
}

/* MOBILE STYLES */
@media screen and (max-width: 700px) {
  body {
    grid-template-rows: auto 80vh auto 80vh auto;
    grid-template-columns: 100vw;
    grid-template-areas: 'h' 'l' 'c' 'r' 'f';
  }

  .center-buttons {
    flex-direction: row;
    background-image: linear-gradient(to bottom,var(--left-color) 0% 50%, var(--right-color) 50% 100%);
  }

  /* center buttons */
  #insert, #howto, #intro {
    inset: 0.75em;
  }

  #intro {
    top: calc(7% + 0.75em);
  }

  #howto {
    top: calc(14% + 0.75em);
  }

  /* left column */
  .name-elements li {
    margin: 0;
    width: unset;
      padding-inline: 1em;
  }

  .file-names-container {
    height: 100vw;
    padding-left: 0.5em;
  }

  /* colophon */
  #colophon {
    width: 4rem;
    bottom: 1.5em;
  }

  #colophondiv {
    padding: 1em;
  }
}

/* For massive screens */
@media screen and (min-width: 1930px) {
  body {
    font-size: 24px;
  }
}
