@font-face {
    font-family: NK27;
    src: url(../sources/font/NK57.otf);
}

body {
    margin: 0;
    background-color: white;
    overflow: hidden;
    font-family: NK27;
    scrollbar-width: thin;
    scrollbar-color: black white;
}

button {
  background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

button:hover {
  cursor: pointer;
}

main {
  display: none;
}

.winbutton {
  font-size: 1.2em;
  box-shadow: rgba(0, 0, 0, 0.3) 5px 5px;
  padding: 0 10px;
  margin: 5px 0;
  border: solid black 2px;
  box-sizing: border-box;
  background-color: white;
}

#loadingScreen {
  position: absolute;
}

#loadingScreen h1 {
  position: absolute;

  font-size: 1em;
}

/* ------------------------------- */

#main {
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#backgroundImg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: contrast(1000%);
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#backgroundImg img {
  image-rendering: pixelated;
}


#content1 h1 {
  width: fit-content;
  margin: auto;
  text-align: center;
}

#titre {
  font-size: 3em;
}

.underline:after {
  content: '';
  background-color: white;
  height: 100%;
  display: block;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  z-index: -1;
}

.underline {
  position: relative;
}

#content1 button {
  display: block;
  margin-right: auto;
  margin-left: auto;
  margin-top: 5vh;
  font-size: 2em;
  box-shadow: rgba(0, 0, 0, 0.3) 10px 10px;
}



/* #content1 button:active {
  transform: translate(6px, 6px);
  box-shadow: rgba(0, 0, 0, 0.3) 4px 4px;
} */

/* ------------------------------ */

.page {
  min-width: 300px;
  position: absolute;
  display: none;
  background-color: white;
  border: solid black 2px;
  box-shadow: 20px 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.header {
  width: 100%;
  height: 31px;
  border: solid black 2px;
  box-sizing: border-box;
  user-select: none;
}

.header:hover {
  cursor: pointer;
}

.header h1 {
  width: fit-content;
  font-size: 1em;
  display: inline;
}

.removeButton {
  float: right;
  vertical-align: middle;
  height: 25px;
  aspect-ratio: 1/1;
  margin: 1px;
  margin-left: 10px;
  border: solid black 1px;
}

.removeButton img {
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
  z-index: -1;
  image-rendering: pixelated;
}

.removeButton:active {
  box-shadow: inset 2px 2px rgba(0, 0, 0, 0.3);
}

.removeButton:not(:hover) {
  box-shadow: none;
}

.index {
  position: absolute;
  width: 100%;
  height: 100%;
}

.pageContent {
  padding: 10px;
}

/* -------------------------------- */

#introContent {
  width: 60vh;
  max-width: 700px;
}

#introSelectors {
  display: inline-block;
}

#playerSelector {
  position: relative;
  width: 100px;
  height: 100px;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  border: solid black 2px;
  box-shadow: rgba(0, 0, 0, 0.3) 10px 8px;
}

#playerSelector img {
  image-rendering: pixelated;
  width: 100%;
  height: 100%;
  user-select: none;
}

#playerSelector button {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
}

/* ----------------------------------- */

#perfPage {
  width: 50vh;
  max-width: 600px;
}

#perfContent h1 {
  font-size: 1.5em;
  margin: 0;
}

#perfText {
  height: 60vh;
  max-height: 800px;
  overflow: auto;
  border: solid 2px black;
  box-shadow: inset -3px -3px rgba(0, 0, 0, 0.3);
}

#perfText p {
  margin: 0;
  font-size: 0.8em;
}

#audioPerf {
  margin: 10px;
}

#audioPerf audio {
  width: 100%;
}

/* ------------------------------ */

#playerContent {
  height: 600px;
  width: 750px;
}

canvas {
  image-rendering: pixelated;
}

#p5_loading {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#p5_loading img {
  width: 10%;
  image-rendering: pixelated;
}

#p5_loading p {
  letter-spacing: -0.08em;
}

/* ------------------------------- */

#cassettesContainer {
  position: absolute;
  display: none;
  border: none;
  box-shadow: none;
}

.cassettes {
  height: 150px;
  position: absolute;
  border: solid black 2px;
  font-size: 0.7em;
  background-color: white;
  user-select: none;
  padding: 5px;
  box-shadow: -10px 10px rgba(0, 0, 0, 0.3);
}

.cassettes:hover {
  cursor: pointer;
  transform: translate(20px, 0);
}

.cassettes:active {
  transform: translate(20px, 10px);
}

.Cassetteheader {
  width: 100%;
  height: 15px;
  border: solid black 2px;
  box-sizing: border-box;
  user-select: none;
}

.cassettes img {
  height: calc(100% - 15px);
  image-rendering: pixelated;
  user-select: none;
}

/* ----------------------------------------- */

#definitionContent {
  width: 600px;
  height: 75vh;
  max-height: 900px;
  overflow: scroll;
}

#definitionContainer {
  min-height: 0px;
  max-height: 100%;
  box-sizing: border-box;

}

#definitionContainer h1 {
  margin: auto;
  margin-top: 20px;
  font-size: 1em;
}

#definitionContainer p {
  margin: auto;
  font-size: 0.7em;
  text-indent: 50px;
}

#definitionContainer li {
  font-size: 0.7em;
  font-style: italic;
  list-style-type: none;
}

#definitionContainer sup {
  font-style: normal;
}

#definitionContainer img {
  margin-top: 20px;
  filter: grayscale(100%);
  max-width: 100%;
  image-rendering: pixelated;
}

/* -------------------------------------------------------- */

#pdf {
  font-size: 0.7em;
  color: black;
}