@font-face {
  font-family: 'saira_condensedthin';
  src: url('../ui/font/sairacondensed-thin-webfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+000-5FF;
}

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0;
}

:root {
  --backg: #1c1b22;
  --clr: snow;
}

body {
  background: var(--backg);
  color: var(--clr);
  font-family: 'saira_condensedthin', sans-serif;
}

main {
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  height: 100vh;
  scroll-behavior: smooth;
}

section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  height: 100vh;
}

.ticks {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 50vw;
  place-content:inherit;
}

.text {
  font-size: clamp(1.5rem, 8vw - 1.5rem, 2rem);
  padding: .8em;
  width: 50vw;
  hyphens: auto;
  margin-block:1rem;
  text-align: justify;
}

.retour_accueil {
  position: absolute;
  bottom: .8em;
  right: .8em;
  padding: .5em .8em;
  border: 1px solid var(--clr);
  border-radius: 8%;
  color: var(--clr);
  background: #000000a8;
}

.ticks>span {
  background: linear-gradient(165deg,
      rgba(255, 255, 255, 1) 0%,
      rgb(220, 220, 220) 40%,
      rgb(170, 170, 170) 98%,
      rgb(10, 10, 10) 100%);
  margin: 0 10px;
  position: relative;
  /*filter: contrast(28);*/
  /*filter:url(#gold);*/
  mix-blend-mode: plus-lighter;
}

.ticks>span:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  box-shadow: 0 -10px 20px 20px #ffffff40 inset,
    0 -5px 15px 10px #ffffff50 inset, 0 -2px 5px #ffffff80 inset,
    0 -3px 2px #ffffffbb inset, 0 2px 0px #ffffff, 0 2px 3px #ffffff,
    0 5px 5px #ffffff90, 0 10px 15px #ffffff60, 0 10px 20px 20px #ffffff40;
  filter: blur(3px);
}

@media only screen and (max-width:1024px) {
  section {
    height: fit-content;
    flex-flow: column wrap;
  }

  .text {
    width: fit-content;
  }
}

@media only screen and (max-width:437px) and (orientation:portrait) {
  .ticks {
    width: 90vw;
  }

}
