 body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  background: rgb(214, 248, 255);
  background: linear-gradient(90deg, rgba(214, 248, 255, 1) 0%, rgba(255, 235, 223, 1) 100%);
  font-family: 'REM', sans-serif;
  overflow-x: hidden;
  width: 100%;
 }
 html{
   overflow-x: hidden;
  width: 100%;
 }

h1 {
    position: absolute;
    top: 1%;
    left: 3%;
    color: #bdbdbd;
    text-transform: uppercase;
    font-size: 5.2em;
    text-align: center;
    background: -webkit-linear-gradient(#d6f8ff, #ffebdf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-size: 200%;
    -webkit-background-origin: border-box;
    padding: 12px;
    margin-top: .3em;
}

 h1 i {
  font-style: initial;
  font-size: .3em;
  display: block;
  line-height: .3em;
 }

 #preview {
  width: 300px;
  height: 300px;
  display: none;
 }

#canvas {
    height: calc(100vh - 20px);
    width: calc(100vw - 20px);
    object-fit: cover;
    border-radius: 33px;
    background-color: #202124;
}

 body:not(#stats):before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 9999;
  background-image: url(images/scanning.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 250px;
  filter: invert(1);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .3;
 }

 body.pop-open:before {
  display: none
 }

.qr-popup {
    display: none;
    position: fixed;
    padding: 4vh 2vw;
    background: rgb(214, 248, 255);
    background: linear-gradient(90deg, rgb(214 248 255 / 50%) 0%, rgb(255 235 223 / 50%) 100%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(13.5px);
    -webkit-backdrop-filter: blur(13.5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 29px;
    color: black;
    text-transform: uppercase;
    height: calc(90vh - 20px);
    width: calc(95% - 20px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
#popup p {
        padding: 1.5em;
    border-radius: 19px;
    border: 1px solid #ecf2f0;
    background: rgb(0 0 0 / 5%);
    width: 70%;
    overflow: hidden;
}
 #popup a {
  color: #ecf2f0;
  text-decoration: none;
  line-height: 1.5em;
  font-size: 1em;
 }
 #popup a span {
 
  font-size: 1.5em;
  font-weight: bold;
 }
 .popup-content {
  margin-bottom: 10px;
  overflow: auto;
  /* margin: 15% 0; */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
 }

 .popup-content::-webkit-scrollbar {
  width: 0;
  background: transparent;
  /* rendre transparent */
 }

 /* Pour cacher la barre de défilement pour IE et Edge */
 .popup-content {
  -ms-overflow-style: none;
  /* IE et Edge */
  scrollbar-width: none;
  /* Firefox */
 }

 .popup-content h2,
 .popup-content h3 {
  background: -webkit-linear-gradient(#d6f8ff, #ffebdf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-background-size: 200%;
  -webkit-background-origin: border-box;
 }

 .popup-content h3 {
  margin-bottom: 0;
  padding-bottom: 0;
 }

 .popup-content p,
 #legal a {
  color: #ffffff;
 }

 .popup-close {
    display: block;
    /* width: 100%; */
    text-align: right;
    cursor: pointer;
    position: absolute;
    top: .2em;
    right: .5em;
    font-size: 3em;
    color: #ecf2f0;
}

 #legal {
  width: 80%;
  margin: auto;
  max-width: 680px;
 }
 #legal h2{
  font-size: 1.8em
 }
#app-footer {
    position: absolute;
    bottom: 3%;
    right: 4%;
    color: #bdbdbd;
    text-transform: uppercase;
    font-size: .9em;
    font-weight: 600;
    width: 93%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

 #app-footer>div {
  background: -webkit-linear-gradient(#d6f8ff, #ffebdf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-background-size: 200%;
  -webkit-background-origin: border-box;
 }

 #legals {
  cursor: pointer
 }

 #likeButton * {
  color: #bdbdbd;
  font-size: 1.2em;
 }

 #likeButton {
  background: transparent;
  border: none;
  cursor: pointer;
  background: -webkit-linear-gradient(#d6f8ff, #ffebdf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-background-size: 200%;
  -webkit-background-origin: border-box;
 }
 @media screen and (max-width: 780px) {
 .qr-popup {   
    width: calc(94% - 20px);
}
 }
 @media screen and (max-width: 620px) {
   body:not(#stats):before {
    background-size: 120px;
  }
  #app-footer>div {
    
    font-size: .8em;
    margin-right: 1em;
}
#likeButton {
    
    margin-left: 0.5em;
}
h1 {
   
    font-size: 4.2em;

}
 }
@media screen and (max-width: 480px) {
 .qr-popup {   
    width: calc(93% - 20px);
}
 }
 @media screen and (max-width: 300px) {
 .qr-popup {   
    width: calc(92% - 20px);
}
 }
  @media screen and (max-height: 600px) {
 .qr-popup {   
    height: calc(89vh - 20px);
}
 }