/* BallsBlocks.css */
body {
    font-family: Arial;
    text-align: center;
    padding: 0px;
    display: flex;
    justify-content: center; /* Centrage horizontal */
    /*align-items: center;     /* Centrage vertical */
    margin: 0px;               /* Supprime les marges par défaut */
}
#divMain {
  margin: 0px;
  padding: 0px;
}

#divPanel {
  margin: 0px;
  border-radius: 10px;
  padding: 10px;
  background: gray;
  color: white;
}

#menuButton {
  background-color: lightcoral;
  cursor: pointer;
  padding: 2px;
}
#btnNew {
  background-color: lightsalmon;
  cursor: pointer;
  padding: 2px;
  display: none;
}
#btnRestart {
  background-color: lightgreen;
  cursor: pointer;
  padding: 2px;
}
#btnParams {
  background-color: lightpink;
  cursor: pointer;
  padding: 2px;
}

#gameContainer {
    width: 400px;
    height: 400px;
    position: relative;
    background-color: darkgreen;
    /*display: flex;
    grid-template-columns: repeat(10, 40px);
    grid-template-rows: repeat(10, 40px);*/
    padding: 0;
    margin: 0;
    user-select: none; /* pas de sélection sur PC */
    overflow: hidden; /* pas de scroll sur mobile */
}
#angleIndicator {
  width: 14px;
  height: 100px;
  left: -195px;
  top: -280px;
  opacity: 0.5;
  background: linear-gradient(to top, blue, #EEE);
  transform-origin: center bottom;
  position: absolute;
  border-radius: 10px;
  transition: opacity 1s ease;
}

.obstacle {
    position: absolute;
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: white;
    background-color: #AA4A44;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,.5) 5px, rgba(255,255,255,.5) 10px);
    border: none;
    border-radius: 10px;
    padding: 0;
    margin: 0;
    opacity: 1;
    user-select: none;
    transition: top .5s ease, opacity 1s ease;
}

.bunker {
  position: absolute;
  display: flex;
  box-shadow: inset 0px 0px 20px 0px darkgreen;
  width: 100px;
  height: 100px;
  background-color: #A88F59;
  padding: 0;
  margin: 0;
  opacity: 1;
  user-select: none;
}
.water {
  position: absolute;
  display: flex;
  box-shadow: inset 0px 0px 8px 0px darkgreen;
  width: 100px;
  height: 100px;
  background-color: blue;
  border: none;
  border-radius: 5px;
  padding: 0;
  margin: 0;
  opacity: 1;
  user-select: none;
}
.white {
  position: absolute;
  display: flex;
  width: 100px;
  height: 100px;
  background-color: lightgray;
  box-shadow: inset 0px 0px 20px 0px darkgreen;
  border: none;
  border-radius: 0px;
  padding: 0;
  margin: 0;
  opacity: 1;
  user-select: none;
}
#divViseur {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid black;
  color: black;
  left: -300px;
  top: -100px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  transition: opacity .5s ease;
}

#divTrou {
  position: absolute;
  left: -300px;
  top: -300px;
  width: 20px;
  height: 20px;
  background: radial-gradient(black, lightgreen);
  border-radius: 50%;
  padding: 0;
  margin: 0;
  transition: scale .5s ease;
}

#divBalle {
    position: absolute;
    left: -100px;
    top: -100px;
    width: 14px;
    height: 14px;
    background: radial-gradient(white, darkgrey);
    border-radius: 50%;
    padding: 0;
    margin: 0;  
    transition: scale .2s ease, opacity .2s ease;
}


#divStart {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid lightgrey;
  color: lightgrey;
  border-radius: 5px;
  left: 400px;
  top: 400px;
  padding: 0px;
  height: 60px;
  width: 60px;
  border-style: dashed dashed dashed dashed;
}
#divFinish {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: -20px;
  border: 2px solid black;
  color: black;
  background-color: green;
  opacity: .5;
  border-radius: 5px;
  left: 400px;
  top: 400px;
  padding: 0px;
  height: 90px;
  width: 90px;
  border-style: dashed dashed dashed dashed;
}



#launchButton {
    width: 400px;
    height: 50px;
    background-color: lightblue;
    border: 0px;
    font-size: 20px;
    cursor: pointer;
}


/***********************************************************
***********************************************************/

#divContainerParams{

  left: 50%;
  transform: translateX(-50%);
  top: -600px; /* 30px; */

  position: absolute;
  transition: top 1s ease;

  --r: 10px; /* radius of circles */
  width: 400px;
  height: 250px;
  aspect-ratio: 1;
  padding: calc(1.5*var(--r));
  background: rgb(248, 135, 242);
  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;
}

/***********************************************************
      _ _     _                 
 _ __(_) |__ | |__   ___  _ __  
| '__| | '_ \| '_ \ / _ \| '_ \ 
| |  | | |_) | |_) | (_) | | | |
|_|  |_|_.__/|_.__/ \___/|_| |_|
************************************************************/

/* HTML: <div class="ribbon">Your text content</div> */
/* HTML: <div class="scalloped-box"></div> */
.ribbonMenu {
  --r: 10px; /* radius of circles */
  width: 300px;
  height: 300px;
  left: 50%;
  transform: translateX(-50%);
  top: -600px; /* 30px; */
  position: absolute;
  transition: top .5s ease;
  aspect-ratio: 1;
  padding: calc(1.5*var(--r));
  background: darkred;
  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;
}


/* HTML: <div class="ribbon">Your text content</div> */
.ribbon {
    font-size: 20px;
    text-align: center;
    color: #fff;
    width:300px;
    left: 50%;
    transform: translateX(-50%);
    top: -400px; /* 30px; */
    position: absolute;
    transition: top 2s ease;
  }
  .ribbon {
    --s: 1.8em; /* the ribbon size */
    --d: .8em;  /* the depth */
    --c: .8em;  /* the cutout part */
    
    padding: 0 calc(var(--s) + .5em) var(--d);
    line-height: 1.8;
    background:
      conic-gradient(at left  var(--s) bottom var(--d),
       #0000 25%,#0008 0 37.5%,#0004 0) 0   /50% 100% no-repeat,
      conic-gradient(at right var(--s) bottom var(--d),
       #0004 62.5%,#0008 0 75%,#0000 0) 100%/50% 100% no-repeat;
    clip-path: polygon(0 var(--d), var(--s) var(--d),var(--s) 0,calc(100% - var(--s)) 0,calc(100% - var(--s)) var(--d),100% var(--d),calc(100% - var(--c)) calc(50% + var(--d)/2),100% 100%,calc(100% - var(--s) - var(--d)) 100%,calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),calc(var(--s) + var(--d)) calc(100% - var(--d)),calc(var(--s) + var(--d)) 100%,0 100%,var(--c) calc(50% + var(--d)/2));
    background-color: darkred; /* the main color */
    width:220px;
  }

#inputBtnStart {
  cursor: pointer;
  font-size: 20px;
  width: 200px;
  border-radius: 10px;
  color: white;
  background-color: darkblue;
}
#inputLvl {
  font-size: 20px;
  width: 40px;
  border-radius: 10px;
  color: white;
  background-color: darkblue;
}
#inputBtnRandom {
  cursor: pointer;
  font-size: 20px;
  width: 200px;
  border-radius: 10px;
  color: white;
  background-color: darkorange;
}
#inputCheckSound {
  cursor: pointer;
  font-size: 20px;
  border-radius: 10px;
  color: white;
  background-color: cyan;
}

/************************************************************
.%%%%%....%%%%...%%..%%...%%%%...%%%%%%.
.%%..%%..%%..%%..%%%.%%..%%......%%.....
.%%%%%...%%%%%%..%%.%%%..%%.%%%..%%%%...
.%%..%%..%%..%%..%%..%%..%%..%%..%%.....
.%%..%%..%%..%%..%%..%%...%%%%...%%%%%%.
........................................
************************************************************/
  .rangeStyle {
    width: 400px;
    -webkit-appearance: none;
    margin: 10px 0;
  }
  .rangeStyle:focus {
    outline: none;
  }
  .rangeStyle::-webkit-slider-runnable-track {
    width: 100%;
    height: 30px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 2px 2px 10px #50555C;
    background: #EEEEEE;

    border: 0px solid #000000;
  }
  .rangeStyle::-webkit-slider-thumb {
    box-shadow: 0px 0px 10px #000000;
    border: 0px solid #000000;
    height: 40px;
    width: 40px;
    border-radius: 50px;
    background: #529DE1;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -5px;
  }
  .rangeStyle:focus::-webkit-slider-runnable-track {
    background: #EEEEEE;
  }
  .rangeStyle::-moz-range-track {
    width: 100%;
    height: 30px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 2px 2px 10px #50555C;
    background: #EEEEEE;
    border-radius: 50px;
    border: 0px solid #000000;
  }
  .rangeStyle::-moz-range-thumb {
    box-shadow: 0px 0px 10px #000000;
    border: 0px solid #000000;
    height: 40px;
    width: 40px;
    border-radius: 50px;
    background: #529DE1;
    cursor: pointer;
  }
  .rangeStyle::-ms-track {
    width: 100%;
    height: 30px;
    cursor: pointer;
    animate: 0.2s;
    background: transparent;
    border-color: transparent;
    color: transparent;
  }
  .rangeStyle::-ms-fill-lower {
    background: #EEEEEE;
    border: 0px solid #000000;
    border-radius: 100px;
    box-shadow: 2px 2px 10px #50555C;
  }
  .rangeStyle::-ms-fill-upper {
    background: #EEEEEE;
    border: 0px solid #000000;
    border-radius: 100px;
    box-shadow: 2px 2px 10px #50555C;
  }
  .rangeStyle::-ms-thumb {
    margin-top: 1px;
    box-shadow: 0px 0px 10px #000000;
    border: 0px solid #000000;
    height: 40px;
    width: 40px;
    border-radius: 50px;
    background: #529DE1;
    cursor: pointer;
  }
  .rangeStyle:focus::-ms-fill-lower {
    background: #EEEEEE;
  }
  .rangeStyle:focus::-ms-fill-upper {
    background: #EEEEEE;
  }