body {
  background: rgb(0, 0, 0);
  font-family: "Varela", sans-serif;
  display: flex;
  justify-self: center;
}

main {
    z-index: 3;
    color: white;
}
content {
    padding: 2rem;
    background-color: rgb(0 0 0 / 50%);  
    
    /* desktop only */
    display: grid;
    grid-template-columns: 0.5fr 0.5fr;
    justify-items: center;
    grid-column-gap: 1rem;

}

.column {
  width: 100%;
}

a, a:visited {
    color: white;
    font-weight: bold;
}

a.soft, a.soft:visited {
    font-weight: normal;
}

article {
    background-color: #9400d32e;
    width: 100%;
    
    /*
    width: calc(100% - 2rem);
    padding: 1rem;
    aspect-ratio: 4 / 3;
    */
    display: inline-block;
    padding: 1rem;

    background-color: #9400d32e;
    width: calc(100% - 2rem);
    display: block;
    padding: 1rem;
    margin-bottom: 1rem;
  }

.audioPlayer {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
/*
.audioPlayer {
    width: 500px;
    height: 300px;
    background-image: url('content/tempete_4.jpg');
    background-size: cover;
    position: relative;
}

.audioPlayer audio{
  position: absolute;
  bottom: 0;
  width: 100%
}
*/
h1 {
    font-size: inherit;
    padding:0;
    margin:0;
}

h2 {
    margin:0;
    margin-bottom: 1rem;
}

p.intro {
    margin: 0;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    background-color: rgb(0 0 0 / 50%);
}

.glitch {
    color: white;
    font-size: 5vw;
    position: relative;    
    margin: 0 auto;
    line-height: 4rem;
    font-family: "Slackside One", cursive;
    font-weight: 400;
    font-style: normal;
    padding: 2rem;
    background: linear-gradient(to bottom, black, rgba(0, 0, 0, 50%));
}

@media (max-width: 900px) {
    content {
        display: flex;
        flex-direction: column;
    }
    article {
      background-color: #9400d32e;
      width: calc(100% - 2rem);
      display: block;
      padding: 1rem;
      margin-bottom: 1rem;
    }

    article ul {
      list-style-type: none;
      padding:0;
    }

    article ul li {
      padding-top: 1rem;
    }

    article ul li:first-of-type {
      padding-top:0;
    }
}

@media (max-width: 1250px) {
    .glitch {
        font-size: 7vw;
    }
}

@keyframes noise-anim {
  0% {
    clip-path: inset(40% 0 61% 0);
  }
  20% {
    clip-path: inset(92% 0 1% 0);
  }
  40% {
    clip-path: inset(43% 0 1% 0);
  }
  60% {
    clip-path: inset(25% 0 58% 0);
  }
  80% {
    clip-path: inset(54% 0 7% 0);
  }
  100% {
    clip-path: inset(58% 0 43% 0);
  }
}
/*
@keyframes noise-anim {
  $steps: 20;
  @for $i from 0 through $steps {
    #{percentage($i*(1/$steps))} {
      $top: random(100);
      $bottom: random(101 - $top);
      $topWithPercent: $top * 1%;
      $bottomWithPercent: $bottom * 1%;
      clip-path: inset(#{$topWithPercent} 0 #{$bottomWithPercent} 0);
    }
  }
}
*/
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: calc(2rem + 2px);
  text-shadow: -1px 0 red;
  top: 2rem;
  color: white;
  background: black;
  overflow: hidden;
  animation: noise-anim 1s infinite linear alternate-reverse;
      font-weight: bold;
    line-height: 4rem;
}

@keyframes noise-anim-2 {
  0% {
    clip-path: inset(50% 0 69% 0);
  }
  20% {
    clip-path: inset(12% 0 20% 0);
  }
  40% {
    clip-path: inset(22% 0 1% 0);
  }
  60% {
    clip-path: inset(86% 0 6% 0);
  }
  80% {
    clip-path: inset(42% 0 45% 0);
  }
  100% {
    clip-path: inset(95% 0 42% 0);
  }
}
/*
@keyframes noise-anim-2 {
  $steps: 20;
  @for $i from 0 through $steps {
    #{percentage($i*(1/$steps))} {
      $top: random(100);
      $bottom: random(101 - $top);
      $topWithPercent: $top * 1%;
      $bottomWithPercent: $bottom * 1%;
      clip-path: inset(#{$topWithPercent} 0 #{$bottomWithPercent} 0);
    }
  }
}
*/
.glitch::before {
  content: attr(data-text);
  position: absolute;
  left: calc(2rem - 2px);
  text-shadow: 1px 0 blue;
  top: 2rem;
  color: white;
  background: black;
  overflow: hidden;
  animation: noise-anim-2 15s infinite linear alternate-reverse;
      font-weight: bold;
    line-height: 4rem;
}