:root {
  --m: 1rem;
  --b: 1px;
  --color: black;
  --colorMirror: black;
}

@font-face {
  font-family: Machina;
  font-weight: medium;
  src: url("NeueMachina-Ultralight.otf") format("opentype");
}

@font-face {
  font-family: Machina;
  font-weight: bold;
  src: url("NeueMachina-Regular.otf") format("opentype");
}

* {
  box-sizing: border-box;
}

html {
  font-size: 1vw;
}

body {
  font-family: Machina, sans-serif;
  overflow-x: hidden;
}

.placement-left {
  --color: blue;
  --colorMirror: orange;
}

.placement-right {
  --color: orange;
  --colorMirror: blue;
}

/* ----------------------------------------------- Main */
svg {
  position: absolute;
  top: 0px;
}

h2 {
  font-size: 1.5rem;
  color: var(--color);
  font-weight: bold;
}

h1 {
  color: var(--color);
}

.linkTitle {
  display: inline;
}

h3 {
  font-size: 5rem;
  font-weight: bold;
}

.bold {
  font-weight: bold;
}

ul {}

li {
  margin-left: 1em;
}

li::before {
  content: "—";
  position: absolute;
  margin-left: -1em;
}

a,
a:visited,
a:hover {
  color: var(--colorMirror);
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  font-style: italic;
}

.exergue {
  font-size: 1rem;
}

.homeExergue {
  font-size: 1rem;
  margin-left: 48%;
  padding-left: calc(3*var(--m));
  bottom: calc(1*var(--m));
  position: absolute;
}

strong {
  font-weight: bold;
}

/* ----------------------------------------------- Canvas */
#canvasBg {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 15;
  opacity:1;
  transition: opacity 0.25s;
}

#canvasDrawings {
  width: 1000px;
  height: 1000px;
}

/* ----------------------------------------------- Header */
#header {
  top: 0px;
  position: fixed;
  width: 100%;
  background-color: white;
  padding: calc(2 * var(--m));
  font-size: 1rem;
  z-index: 10;
  font-size: 1rem;
  height: calc(5 * var(--m) + 1rem);
}

/* ----------------------------------------------- Menu */
#main,
#menu {
  width: 100%;
  padding: calc(2 * var(--m));
}

#main {
  font-size: 2.75rem;
}

#menu {
  position: fixed;
  background-color: white;
  z-index: 9;
  transition: transform 0.5s;
  transform: translate(0, -100%);
  font-size: 2rem;
}

#menu.open {
  transition: transform 0.5s;
  transform: translate(0, 0%);
}

.column {
  width: 50%;
  float: left;
  position: relative;
}

.column:nth-child(1) {
  padding-right: calc(2 * var(--m));
}

.column:nth-child(2) {
  padding-left: calc(2 * var(--m));
}

/* ----------------------------------------------- Menu */
.title {
  float: left;
  font-size: 1.5rem;
  width: 80%;
}

.bars,
.cross {
  font-size: 2rem;
  font-weight: bold;
  float: right;
  position: relative;
  transform: translate(0, -0.75rem);
  cursor: pointer;
}

.cross {
  font-size: 2.2rem;
  transform: translate(0, -0.85rem);
  display: none;
}

.bars:before {
  left: 0px;
  top: -0.2em;
  position: absolute;
  content: "-";
  transform-origin: center;
}

.bars:after {
  left: 0px;
  top: 0.2em;
  position: absolute;
  content: "-";
  transform-origin: center;
}

.open .bars {
  display: none;
}

.open .cross {
  display: block;
}

.rel {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.rel p {
  width: 85%;
}

.clock {
  text-align: right;
  position: absolute;
  right: 0px;
  top: 0px;
}

.leftClock {
  color: blue;
  font-weight: bold;
}

.rightClock {
  color: orange;
  font-weight: bold;
}

.deco-middle {
  background:
    linear-gradient(black, black) 0% 0% / var(--b) 100%,
    linear-gradient(black, black) 100% 0% / var(--b) 100%,
    linear-gradient(black, black) 0% 0% / calc(50% - var(--m)) var(--b),
    linear-gradient(black, black) 100% 0% / calc(50% - var(--m)) var(--b),
    linear-gradient(black, black) calc(50% - var(--m)) 0% / var(--b) var(--m),
    linear-gradient(black, black) calc(50% - var(--m)) 100% / var(--b) var(--m),
    linear-gradient(black, black) 0% 100% / calc(50% - var(--m)) var(--b),
    linear-gradient(black, black) 100% 100% / calc(50% - var(--m)) var(--b),
    linear-gradient(black, black) calc(50% + var(--m)) 0% / var(--b) var(--m),
    linear-gradient(black, black) calc(50% + var(--m)) 100% / var(--b) var(--m),
    white;
  background-repeat: no-repeat;
}

.deco-left {
  background:
    linear-gradient(black, black) 0% 0% / var(--b) 100%,
    linear-gradient(black, black) 0% 0% / calc(100%) var(--b),
    linear-gradient(black, black) calc(100%) 0% / var(--b) var(--m),
    linear-gradient(black, black) 0% 100% / calc(100%) var(--b),
    linear-gradient(black, black) calc(100%) 100% / var(--b) var(--m),
    white;
  background-repeat: no-repeat;
}

.deco-right {
  background:
    linear-gradient(black, black) 100% 0% / var(--b) 100%,
    linear-gradient(black, black) 0% 0% / 100% var(--b),
    linear-gradient(black, black) 0% 100% / 100% var(--b),
    linear-gradient(black, black) 0% 0% / var(--b) var(--m),
    linear-gradient(black, black) 0% 100% / var(--b) var(--m),
    white;
  background-repeat: no-repeat;
}

.line {
  /* margin-bottom: var(--m); */
}
#sliderValue{
  position:absolute;
  font-size: 1rem;
  text-align: center;
  transform: translate(-50%,0);
}

#sliderContainer{
  padding-left: var(--m);
  padding-bottom: var(--m);
}

.slidecontainer {
  position: relative;
  /* width: calc(50%)-calc(var(--m)); /* Width of the outside container */ */
  padding-left: 0;
}
/* The slider itself */
.slider {
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 100%; /* Full-width */
  height: 1px; /* Specified height */
  margin: 0;
  background: black; /* Grey background */
  outline: none; /* Remove outline */
  opacity: 1; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
}
.slider::before
{
    content:"";
    background: black;
    position: absolute;
    left: var(--m);
    height: var(--m);
    width: 1px;
    transform: translate(0,-50%);
}
.slider::after
{
    content:"";
    background: black;
    position: absolute;
    right: 0;
    height: var(--m);
    width: 1px;
    transform: translate(0,-50%);
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  border-radius:  calc(var(--m)*0.5);
  width: calc(var(--m)*0.5); /* Set a specific slider handle width */
  height: calc(var(--m)*0.5);/* Slider handle height */
  background: black; /* Green background */
  cursor: grab; /* Cursor on hover */
  stroke:none;
}

.slider::-moz-range-thumb {
  border-radius: calc(var(--m)*0.5);
  width: calc(var(--m)*0.5); /* Set a specific slider handle width */
  height: calc(var(--m)*0.5); /* Slider handle height */
  background: black; /* Green background */
  cursor: grab; /* Cursor on hover */
  stroke:none;
}

.box {
  padding: calc(1 * var(--m));
  /* margin-top: calc(2 * var(--m)); */
  padding-bottom: calc(3*var(--m));
  position: relative;
}

.box:first-child {
  /* margin-top: 0px; */
}

.placement-left .box {
  width: 90%;
}

.placement-right .box {
  width: 90%;
  margin-left: 10%;
}

.minHeight {
  min-height: calc(100vh - calc(calc(8 * var(--m)) + 1rem));
}

.minHeight2 {
  min-height: calc(100vh - calc(calc(12 * var(--m)) + 1rem));
}

.box::after,
.line:after {
  clear: both;
  content: "";
  display: table;
}

.leftBox {
  position: relative;
  padding: calc(2 * var(--m));
  top: 0px;
  left: 0px;
  background-color: red;
  margin-right: calc(50% + var(--m));
}

.rightBox {
  position: relative;
  padding: calc(2 * var(--m));
  top: 0px;
  right: 0px;
  background-color: red;
  margin-left: calc(50% + var(--m));
}

.textRight {
  text-align: right;
}

/* ----------------------------------------------- Other */
.noPointerEvents {
  pointer-events: none;
}

#hidden {
  display: none;
}

.artisteImage {
  display: inline-block;
  width: 100%;
}

.artisteImageContainer a {
  color: var(--color);
}

span {
  overflow-wrap: break-word;
}


.space {
  margin-top: calc(2 * var(--m));
}

.space p {
  padding-top: calc(var(--m));
}

.section {
  margin-top: calc(2 * var(--m));
}

.doubleSection {
  margin-top: calc(5 * var(--m));
}

.artisteLegend {
  width: 100%;
  float: right;
  font-size: 1.5rem;
}

.artworkImageContainer {
  /* margin-top: calc(2*var(--m)); */
}

.artisteImageContainer {}

.artworkImage {
  display: inline-block;
  width: 100%;
}

.artworkLegend {
  font-size: 1.5rem;
}

.instructionImage {
  display: inline-block;
  width: 100%;
  height: 16vw;
  object-fit: cover;
}

.imageGalleryTitle {
  font-size: 1.5rem;
  width: 70%;
}

.gutter {
  column-gap: calc(2*var(--m));
  row-gap: calc(2*var(--m));
}

.rightAlign {
  text-align: right;
}

.half {
  width: 50%;
}

.listImage {
  object-fit: cover;
  width: 100%;
  height: 16vw;
}

.bigger {
  cursor: zoom-in;
}

.bigger-open {
  left: 0px;
  top: 0px;
  position: fixed;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  cursor: not-allowed;
  cursor: zoom-out;
  background-color: rgba(0, 0, 0, 0.666666);
  z-index: 100;
}

.vimeo {
  width: 100%;
  box-sizing: border-box;
  background-color: black;
}

iframe {
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
}


.caption {
  color: white;
  display: block;
  position: fixed;
  bottom: 1rem;
  left: 1.5rem;
  z-index: 100;
  transform: rotate(-90deg);
  transform-origin: bottom left;
}

.orange {
  color: orange;
}

.blue {
  color: blue;
}

.black {
  color: black;
}

.light {
  font-weight: normal;
}

/* ----------------------------------------------- Paths */
.pathNode {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 1rem;
  color: gray;
}

.pathNode a {
  color: black;
}

.pathNode div {
  position: absolute;
  transform: translate(-50%, 50%);
  white-space: nowrap;
  cursor: default;
  text-align: center;
}

.pathNode div::after {
  color: black;
  content: "•";
  position: absolute;
  left: 50%;
  top: -100%;
  transform: translate(-50%, -20%);
}

.pathNode--short div::after {
  color: black;
  content: "•";
  position: absolute;
  left: 50%;
  top: -70%;
  transform: translate(-50%, -20%);
}


.paths {
  display: none;
}

.bottom {
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 100%;
  /* padding: calc(1 * var(--m)); */
  pointer-events: none;
  padding-left: calc(1 * var(--m));
  padding-right: calc(1 * var(--m));
}

#leftNodeHover {
  color: blue;
  font-weight: bold;
}

#rightNodeHover {
  color: orange;
  font-weight: bold;
}

/* ----------------------------------------------- Archive */
.archiveContainer {
  top: 0;
  position: absolute;
  display: block;
  width: 100vw;
  height: 100vh;
  z-index: 20;
}

.backgroundOverlay {
  top: 0;
  position: fixed;
  display: block;
  width: 100vw;
  height: 100vh;
  background-color: black;
  opacity: 0.8;
  z-index: 2;
}

.archive {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  opacity: 1;
  flex-direction: column;
}

.archive__img {
  /* position: absolute; */
  z-index: 20;
  max-width: 80vw;
  max-height: 80vh;
}

.archive__sound {
  /* position: absolute; */
  z-index: 20;
  max-width: 80vw;
  max-height: 80vh;
}

.archive__video {
  /* position: absolute; */
  z-index: 20;
  max-width: 80vw;
  max-height: 80vh;
  left: auto;
  top: auto;
}

.archive__message {
  /* position: absolute; */
  max-width: 60vw;
  max-height: 80vh;
  padding: calc(2*var(--m));
  font-size: 2em;
  background-color: white;
  z-index: 20;
}

.archive__message p {
  padding-top: calc(2*var(--m));
}
.textMessage{
  overflow-y: scroll;
}
.textMessage p{
    padding-top: calc(1*var(--m));
}


.buttonContainer {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  width: 100vw;
  padding: calc(4*var(--m));
  top: 0;
}

.button {
  box-sizing: border-box;
  height: 5vw;
  width: 5vw;
  color:white;
  font-size:2rem;

  position: absolute;
  z-index: 20;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content:space-around;
  cursor: pointer;
}

.button:hover {
  font-style: italic;
}


.leftButton {
  left: calc(4*var(--m));
}

.rightButton {
  right: calc(4*var(--m));
}

.closeButtonContainer {
  /* position: absolute; */
  display: flex;
  align-items: center;
  justify-content:center;
  height: calc(2 * var(--m) + 1rem);
  width: 100%;
  /* top: 0px; */
}

.closeButton {
  opacity: 1;
  /* position: absolute; */
  z-index: 20;
  height: 5vw;
  width: 5vw;
  font-size: 2rem;
  color:white;
  display: flex;
  align-items: center;
  justify-content:space-around;
  cursor: pointer;
}

.closeButton:hover {
  font-style: italic;
}


@media only screen and (orientation:portrait) {
  :root {
    --m: 0.5rem;
  }

  html {
    font-size: 2vw;
  }

  .artworkImage {
    display: inline-block;
    width: 100%;
  }

  .artworkLegend {
    width: 100%;
    float: left;
  }

  .listImage {
    height: 60vw;
  }

  .imageGalleryTitle {
    font-size: 2rem;
  }

  .r-full {
    width: 100%;
  }

  .bars,
  .cross {
    font-size: 4rem;
  }

  /* p {
    font-size: 2rem;
  } */
  .title {
    font-size: 1.6rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* p {
    font-size: 2rem;
  } */
  .artworkLegend {
    font-size: 2rem;
  }

  .artisteLegend {
    font-size: 2rem;
  }

  #header {
    height: calc(8 * var(--m) + 1rem);
  }

  #menu {
    padding: calc(2 * var(--m));
  }

  .linkTitle {
    display: block;
  }

  .minHeight {
    /* min-height: calc(100vh - calc(calc(14 * var(--m)) + 1rem)); */
    min-height: calc(100vh - calc(calc(12 * var(--m)) + 1rem));
  }

  .minHeight2 {
    min-height: calc(100vh - calc(calc(20 * var(--m)) + 1rem));
  }

  .section {
    /* margin-top: calc(8 * var(--m)); */
    margin-top: calc(16 * var(--m));
  }

  .space {
    margin-top: calc(4 * var(--m));
    /* margin-top: calc(16 * var(--m)); */
  }

  .space p {
    padding-top: calc(2*var(--m));
  }

  .doubleSection {
    /* margin-top: calc(12 * var(--m)); */
    margin-top: calc(8 * var(--m));
  }

  .pathNode {
    font-size: 2rem;
  }

  .exergue {
    font-size: 1.8rem;
  }

  .homeExergue {
    font-size: 1.5rem;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    bottom: calc(1*var(--m));
    position: relative;
  }
  #sliderValue{
    font-size: 1.5rem;
    transform: translate(-50%,-50%);
    display:none;
  }
  /* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
  .slider::-webkit-slider-thumb {
    border-radius:  calc(2*var(--m));
    width: calc(2*var(--m)); /* Set a specific slider handle width */
    height: calc(2*var(--m));/* Slider handle height */
  }

  .slider::-moz-range-thumb {
    border-radius: calc(2*var(--m));
    width: calc(2*var(--m)); /* Set a specific slider handle width */
    height: calc(2*var(--m)); /* Slider handle height */
  }
  .button{
    font-size: 4rem;
  }
  .closeButton{
    font-size: 4rem;
    height:10vw;
  }
  .archive__message {
    /* position: absolute; */
    max-width: 80vw;
  }

}
