body {
    font-family: Arial;
    text-align: center;
    padding: 0px;
    justify-content: center; /* Centrage horizontal */
    /*align-items: center;     /* Centrage vertical */
    margin: 0px;               /* Supprime les marges par défaut */
    background-image: url("wood.jpg");
    background-repeat: repeat;
    user-select: none;
}
#scorePanel {
    height: 100px;
    width: 400px;
    padding: 0px;
    background-color: black;
    border-radius: 20px;
    color: white;
}

.scoreNumber {
    font-family: 'DS-Digital', sans-serif;
    font-weight: 900;
    text-align: right;
    padding: 5px;
    font-size: 30px;
    width: 40px;
    background-color: #222222;
    border-radius: 5px;
    color: red;
    text-shadow:
        0 0 7px black,
        0 0 10px red,
        0 0 21px lightcoral
}
.blink_me {
    animation: blinker 1s linear infinite;
  }
  
  @keyframes blinker {
    50% {
      opacity: 0.5;
    }
  }
#swipeArea {
    width: 400px;
    height: 400px;
    /*border: 1px solid black;*/
    user-select: none;
}
/* Empêcher les clics sur les images */
.no-click {
    pointer-events: none;
}
.flechette {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /*background-color: blue;*/
    background: radial-gradient(circle at 50% 50%, black 0%, black 5%, blue 5%, blue 30%, yellow 30%, yellow 40%, blue 40%, blue 50%, yellow 50%, yellow 100%);

    --mask: radial-gradient(25px at 25px 25px,#0000 98%,#000) -25px -25px;
    -webkit-mask: var(--mask);
            mask: var(--mask);
  }

  #downPanel {
    height: 200px;
    width: 400px;
    padding: 0px;
    padding-top: 20px;
    background-color: black;
    border-radius: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    }
  #powerContainer {
    height: 30px;
    width: 350px;
    padding: 0px;
    text-align: left;
    border-radius: 10px;
    background-image: linear-gradient(to right, red, orange,yellow, green, yellow,orange,red,darkred,rgb(80, 0, 0));
  }
  #powerValue {
    position: absolute;
    font-size: 10px;
    left: -100px;
    top: 502px;
    transition: left 0.5s ease;
}
  #powerBar {
    position: absolute;
    font-size: 16px;
    width: 2px;
    height: 30px;
    left: -100px;
    top: 515px;
    border: 5px solid white;
    border-radius: 5px;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: left 0.5s ease;
}
#powerLabel {
    font-size: 16px;
    
}

#angleColor {
    /*border: 1px solid white;*/
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-image: conic-gradient(
        from 180deg at 50% 50%, 
        darkred 0deg, 
        red 45deg, 
        orange 90deg, 
        yellow 135deg, 
        green 180deg, 
        yellow 225deg, 
        orange 270deg, 
        red 315deg, 
        darkred 360deg
    );
    
}
#angleBar {
    position: absolute;
    width: 3px;
    height: 55px;
    left: 199px;
    top: 580px;
    background-color: white;
    transform-origin: bottom center;
}


#mode {
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    border: 4px solid yellow;
    background-color: lightgray;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    width: 30px;
    height: 30px;
}

#score {
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  border: 4px solid darkgreen;
  background-color: lightgreen;
  position: fixed;
  bottom: 60px;
  right: 10px;
  z-index: 1000;
  width: 30px;
  height: 30px;
}

#sound {
    cursor: pointer;
    font-size: 20px;
    text-align: left;
    border-radius: 50%;
    border: 4px solid white;
    background-color: lightgray;
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    width: 30px;
    height: 30px;
}



#divScore {

  left: 50%;
  transform: translateX(-50%);
  top: -600px; /* 30px; */
  overflow-y: auto; /* Ajoute une barre de défilement uniquement si nécessaire */
  position: absolute;
  transition: top 1s ease;
  color: white;
  --r: 10px; /* radius of circles */
  width: 380px;
  height: 450px;
  aspect-ratio: 1;
  padding: calc(1.5*var(--r));
  background: darkgreen;
  mask: 
    linear-gradient(#000 0 0) no-repeat
     50%/calc(100% - 2*var(--r)) calc(100% - 2*var(--r)), 
    radial-gradient(farthest-side,#000 97%,#0000) 
     0 0/calc(2*var(--r)) calc(2*var(--r)) round;
}



/* CSS */
.button-3 {
  appearance: none;
  background-color: #2ea44f;
  border: 1px solid rgba(27, 31, 35, .15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 6px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
}

.button-3:focus:not(:focus-visible):not(.focus-visible) {
  box-shadow: none;
  outline: none;
}

.button-3:hover {
  background-color: #2c974b;
}

.button-3:focus {
  box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
  outline: none;
}

.button-3:disabled {
  background-color: #94d3a2;
  border-color: rgba(27, 31, 35, .1);
  color: rgba(255, 255, 255, .8);
  cursor: default;
}

.button-3:active {
  background-color: #298e46;
  box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}



#scoreTable {
  color: white;
}

#log {
    font-size: 10px;
    width: 400px;
    background-color: lightgray;
}


/***********************************************************
                         SNACKBAR
************************************************************/

#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -170px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
  }
  
  #snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
  }
  
  @-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
  }
  
  @keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
  }
  
  @-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
  }
  
  @keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
  }
  


  /* HTML: <div class="loader"></div> */
.loader {
  display: none;
  position: fixed;
  top: 100px;
  left: 0px;

  width: 304px;
  aspect-ratio: 1;
  border: 48px solid transparent;
  border-radius: 50%;

  transform: rotate(45deg);
}
.loader::before {
  content: "";
  position: absolute;
  inset: -48px;
  border-radius: 50%;
  border: 48px solid #514b82;
  animation: l18 2s infinite linear;
}
@keyframes l18 {
    0%   {clip-path:polygon(50% 50%,0 0,0    0,0    0   ,0    0   ,0    0   )}
    25%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0   ,100% 0   ,100% 0   )}
    50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
    75%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0    100%,0    100%)}
    100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0    100%,0    0   )}
}