@font-face {
  font-family: 'Trade Gothic LT';
  src: url('./assets/fonts/TradeGothicLTStd-BdCn20.woff2') format('woff2'),
      url('./assets/fonts/TradeGothicLTStd-BdCn20.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

* {
  user-select: none;
}

html, body, canvas{
  width  : 100%;
  height : 100%;
  margin : 0;
  overflow: hidden;
  background: #E5E5E5;
  font-family: 'Trade Gothic LT';
}

canvas {
  position: absolute;
  top : 0;
  left : 0;

  cursor: -webkit-grab;
}

canvas:active {

  cursor: -webkit-grabbing;
}

#hd-canvas {
  pointer-events : none;
}

/* .dg {
  display: none;
} */

.colors {
  position: absolute;
  bottom : 30px;
  text-align: center;
  padding:0;
  display: none;
}


.colors ul{
  list-style-type : none;
  padding: 0
}


.colors li {
  display : inline-block;
}


.colors li a{
  color: inherit;
}

.colors li a div {
  width  : 80px;
  height : 80px;
}

.colors li a span.outer {
  transition: width .2s, height .2s, border-width .2s;
  width : 0px;
  height : 0px;
  border-radius: 100%;
  border: solid 12px;
  display : inline-block;
  position:  relative;
  top: 40px;
  transform: translateY(-50%);
}


.colors li a:hover span.outer {
  width : 30px;
  height : 30px;
  border-width: 2px;
}


.colors li.selected a span.outer {
  width : 80px;
  height : 80px;
  border-width: 1px;
}


.colors li a span.inner {
  position:  absolute;
  top: 50%;
  left: 50%;
  transform: translate( -50%,-50% );

  transition: border-width .2s;
  border-radius: 100%;
  border: solid;
  width : 0px;
  height : 0px;
  border-width: 0px;
}

.colors li.selected a span.inner {
  border-width: 20px;
}

.loader {
  z-index: 5;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #E5E5E5;
  opacity: 1;
  pointer-events: none;
}

.logo {
  display: block;
  position: absolute;
  top: 70px;
  left: 80px;
  width: 140px;
  height: auto;
  z-index: 5;
  opacity: 0;
}

.infos {
  position: absolute;
  bottom: 80px;
  left: 240px;
  width: 300px;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
}

.infos .progress {
  position: absolute;
}

.infos .progress .progress-bar {
  width: 190px;
  height: 1px;
  background-color: #3d3d3d;
  transform: scaleX(0);
  transform-origin: left center;
  margin-top: 10px;
}

.infos .progress .progress-bar-bg {
  content: '';
  background-color: #cecece;
  width: 100%;
  height: 1px;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
}

.infos .swoosh {
  display: block;
  width: 80px;
  height: auto;
  margin-top: 55px;
}

.infos .lines.animating span {
  animation: lines-bar 1s ease-in-out infinite;
}

.infos .lines {
  position: relative;
  width: 140px;
  height: 7px;
  overflow: hidden;
  opacity: 0;
}

.infos .lines span {
  position: absolute;
  display: inline-block;
  width: 100%;
  height: 1px;
  transform: translate3d(-92%, 0, 0) !important;
}

.infos .lines span:nth-child(1) {
  top: 0;
  animation-delay: 0.01s;
  background: linear-gradient(-90deg, #a8241f, #b09c7c);
}

.infos .lines span:nth-child(2) {
  top: 3px;
  animation-delay: 0.1s;
  background: linear-gradient(-90deg, #8d8d8d, #a8241f);
}

.infos .lines span:nth-child(3) {
  top: 6px;
  animation-delay: 0.2s;
  background: linear-gradient(-90deg, #b09c7c, #8d8d8d);
}

@keyframes lines-bar {
  from {
    transform: translate3d(-100%, 0, 0);
  }

  to {
    transform: translate3d(100%, 0, 0);
  }
}

.infos .text {
  margin-bottom: 20px;
  opacity: 0;
  visibility: hidden;
}

.infos .text,
.loader,
.progress {
  transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.infos .text.hide,
.loader.hide,
.progress.hide {
  opacity: 0 !important;
}

.infos .circle {
  position: absolute;
  width: 85px;
  height: 85px;
  transform: translate3d(0, 0, 0) rotate(-90deg);
  top: -5px;
  right: 0;
  cursor: pointer;
  opacity: 0;
}

.infos .circle .circles {
  transform: scale(0.8);
  transform-origin: center center;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.infos .circle.recalibrating .circles,
.infos .circle.recalibrated .circles {
  transform: scale(1);
}

.infos .circle.recalibrating .bg {
  stroke-width: 4px;
}

.infos .circle svg {
  overflow: visible;
  box-shadow: 0px 0px 10000px transparent;
}

.infos .circle circle {
  stroke-miterlimit: 10;
  fill: none;
}

.infos .circle .bg {
  stroke: #dcdcdc;
  stroke-width: 2px;
  transition: stroke-width 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.infos .circle .circle-progress {
  stroke: #3e3e3e;
  stroke-width: 4px;
  stroke-dasharray: 368.22;
  stroke-dashoffset: 368.22;
}

.infos .circle .arrow {
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center center;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.infos .circle.recalibrating .arrow,
.infos .circle.recalibrated .arrow,
.infos .circle:hover .arrow {
  transform: translateY(50%) rotate(90deg);
}

.infos .circle .arrow .arrow-line {
  stroke-width: 2px;
  stroke: #3e3e3e;
  fill: none;
}

@keyframes load {
  to {
    background-position: 0 -1904px;
  }
}


.spot {
  position: absolute;
  top: 70px;
  right: 265px;
  opacity: 0;
  transition: 1s ease;
}

.spot.active {
  opacity: 1;
}

.spot .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  position: relative;
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 3px;
}

.spot .dot div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background-color: #3d3d3d;
  transition: all .5s ease-in; 
}

.spot .dot .pulse {
  background-color: transparent;
  border: 1px solid #3d3d3d;
  box-sizing: border-box;
  transform: scale(1);
  opacity: 1;
  transition: all 0s ease-in; 
}

.spot .dot .pulse.active {
  transform: scale(2);
  opacity: 0;
  transition: all 1s ease; 
}

.timeline {
  text-transform: uppercase;
  width: 200px;
  position: absolute;
  right: 80px;
  top: 180px;
  height: calc(100% - 360px);
  opacity: 0;
  transition: 1s ease;
  pointer-events: none;
}

.timeline.active {
  opacity: 1;
}

.timeline >div {
  position: absolute;
  width: 100%;
}

.timeline >div span {
  opacity: 1;
  transition: opacity 1s ease .5s; 
  will-change: opacity;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
}

.timeline >div.disabled span {
  opacity: .1;
}

.timeline .middle {
  top: 50%;
  transform: translate(0, -50%);
}

.timeline .bottom {
  bottom: 0;
}

.timeline .line {
  width: 1px;
  position: absolute;
  height: 26%;
  top: 13.5%;
  background-color: #3d3d3d21;
  overflow: hidden;
}

.timeline .line .inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform-origin: top;
  transform: translate(0, -20%) scale(.6);
  transition: all 0s ease;
}

.timeline .line .inner.active {
  opacity: 1;
  transform: translate(0, 100%) scale(1);
  transition: opacity .5s ease, transform .8s ease-in-out .2s;
}

.timeline .line.second {
    top: 57.5%;
}

/*
 ----------------------  Paysage (Desktop)
*/
@media screen and (min-aspect-ratio: 1/1) {
  
  .colors {
    position: absolute;
    bottom : 45%;
    left: 10%;
    text-align: center;
    padding:0;
  }


  .colors ul{
    transform: translateY( 50% );
    width: 10px;
  }


  .colors li {
    display : block;
  }

}

/*
 ----------------------  Portrait
*/
@media screen and (max-aspect-ratio: 1/1) {

  .colors {
    width: 100%;
    position: absolute;
    bottom : 30px;
    text-align: center;
    padding:0;
  }


  .colors ul{

  }

  .colors li {
    display : inline-block;
  }
  
  .colors li a span.outer {
    top: 15px;
    transform: translateY(50%);
  }


}













@media (max-width: 700px), (max-height: 700px) {
  .colors li a div {
    width  : 40px;
    height : 40px;
  }

  .colors li.selected a span.inner {
    border-width: 10px;
  }



.colors li a:hover span.outer {
  width : 15px;
  height : 15px;
  border-width: 2px;
}


.colors li.selected a span.outer {
  width : 40px;
  height : 40px;
}

.colors li a span.outer {
  border: solid 8px;
}




}

