/* BubbleShoot.css */

:root {
  --emojiSize: 26px;
}

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 */
    background-color: rgba(128, 128, 128, 0.5);
}



#divMain {
  margin: 0px;
  padding: 0px;
}

#divPanel {
  margin: 0px;
  border-radius: 10px;
  padding: 10px;
  background: gray;
  color: white;
}


/***********************************************/




.menuHautContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.menuHautTuile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  background-color: rgba(128, 128, 128, 0.5);
  min-width: 40px;
  height: 30px;
  border-radius: 5px;
}

.monOmbre {
  color: white;
  background-color: rgba(128, 128, 128, 0.5);
}

#gameContainer {
    width: 400px;
    height: 400px;
    position: relative;
    border: 5px solid white;
    border-radius: 5px;
    background: radial-gradient(circle at 200px 100px,#FFFFFF,#DDDDDD, #BBBBBB);
    /*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: 32px;
  height: 500px;
  left: 184px;
  top: -100px;
  opacity: 0.2;
  background-color: black;
  transform-origin: center calc(100% - 16px);
  position: absolute;
  border-radius: 16px;
  transition: opacity 2s ease;
  box-sizing: border-box;
  border: 6px solid black;
}

#angleIndicatorRebond {
  width: 32px;
  height: 500px;
  left: -100px;
  top: 100px;
  opacity: 0.1;
  background-color: black;
  transform-origin: center calc(100% - 16px);
  position: absolute;
  border-radius: 16px;
  transition: opacity 2s ease;
  box-sizing: border-box;
  border: 6px solid black;
}

.grid-cell {
    position: absolute;
    display: flex;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    font-size: var(--emojiSize);
    /*color: transparent;*/
    background: radial-gradient(circle at 10px 10px,red, black);
    border-radius: 50%;
    padding: 0;
    margin: 0;
    opacity: 1;
    user-select: none;
    transition: top .8s ease,left .5s ease, opacity 1s ease;
}
@keyframes blocTouched {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
    }
    100% {
        transform: scale(1);
    }
}
.blocTouched {
    animation: blocTouched .1s forwards;
}
@keyframes colorSelect {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(0.8);
  }
  75% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.colorSelect {
  animation: colorSelect .75s forwards;
}


.marked {
  /* Classe utilisée pour marquer, sans impact visuel */
}


.ball {
  position: absolute;
  width: 32px;
  height: 32px;
  top: calc(400px - 32px);
  left: calc(200px - 16px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--emojiSize);
  background: radial-gradient(circle at 10px 10px, darkgrey, black);
  border-radius: 50%;
  transition: bottom 0s ease, left 0s ease, opacity 1s ease;
  
}
.ballExplose {
  animation: scaleAndFade .3s forwards;
}
@keyframes scaleAndFade {
    0% {
        transform: scale(1);
        opacity: 1;
        background: white;
    }
    25% {
        transform: scale(3);
        opacity: 1;
        background: yellow;
    }
    50% {
        transform: scale(2);
        opacity: 1;
        background: orange;
    }
    75% {
        transform: scale(3);
        opacity: 1;
        background: red;
    }
    100% {
        transform: scale(1);
        opacity: 0;
        background: radial-gradient(circle at 10px 10px, darkgrey, black);
    }
}

#menuBallContainer {
  width: 320px;
  height: 32px;
  position: relative;
  padding: 0px;
  margin: 0px;
  background: radial-gradient(circle at 100px 10px,#FFFFFF,#DDDDDD, #BBBBBB);
  border-radius: 5px;
}

.ballDemoContainer{
  width: 400px;
  height: 32px;
  position: relative;
  border-radius: 5px;
  border: 5px solid white;
  background-color: rgba(128, 128, 128, 0.5);
  padding: 0;
  margin: 0;
  user-select: none; /* pas de sélection sur PC */
  overflow: hidden;
}

#divDemoCache {
  top: -2px;
  width: 24px;
  height: 34px;
  position: relative;
  background-color: white;
  --mask: radial-gradient(16px at right,#0000 97%,#000) 50%/ 100% 32px;
  -webkit-mask: var(--mask);
          mask: var(--mask);
}
#divDemoCacheBis {
  position: relative;
  top: -64px;
  left: 172px;
  width: 42px;
  height: 64px;
  background-color: white;
  --mask: radial-gradient(32px at left,#0000 97%,#000) 50%/ 100% 64px;
  -webkit-mask: var(--mask);
          mask: var(--mask);
}
.ballDemo {
  position: absolute;
  font-size: 18px;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  font-size: var(--emojiSize);
  background: radial-gradient(circle at 10px 10px, darkgrey, black);
  border-radius: 50%;
  transition: left 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
#divNextIndicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 32px;
  border-left: 1px solid white;
  border-right: 1px solid white;
  background-color: black;
  transition: left 1s ease;
}

#changeBall {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: top;
  top: 334px;
  left: 150px;
  width: 100px;
  height: 100px;
  background-color: rgba(173, 216, 230, 0.2); /* lightblue with 50% transparency */
  border: 10px solid rgba(126, 126, 126, 0.9); /* black with 50% transparency */
  font-size: 12px;
  padding: 0px;
  margin: 0px;
  cursor: pointer;
  border-radius: 50%;
}


#divMessage {
  position: absolute;
  top: 0px;
  left: 214px;
  width: 188px;
  height: 32px;
  padding: 0px;
  font-size: 12px;
  background-color: rgba(128, 128, 128, 0.5);

    /* Flexbox properties to center content vertically */
    display: flex;
    align-items: center;
    justify-content: center; /* Optional: To center horizontally as well */
}


.ballInText {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 10px 10px, darkgrey, black);
  border-radius: 50%;
}




#menuButton {
  width: 50px;
  height: 40px;
  background-color: darkred;
  color: white;
  cursor: pointer;
  
  --r: 5px; /* radius of circles */
  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;
}

#angleMoins {
  width: 50px;
  height: 50px;
  background-color: lightblue;
  border: 0px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 10px;
}
#anglePlus {
  width: 50px;
  height: 50px;
  background-color: lightblue;
  border: 0px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 10px;
}
#launchButton {
    width: 280px;
    height: 50px;
    background-color: lightblue;
    border: 0px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 10px;
}

#sound {
  cursor: pointer;
  font-size: 20px;
  text-align: center;
  border-radius: 50%;
  border: 4px solid white;
  background-color: lightgray;
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 1000;
  width: 30px;
  height: 30px;
}

#zoomIn {
  cursor: pointer;
  font-size: 20px;
  text-align: center;
  border-radius: 50%;
  border: 4px solid white;
  background-color: lightgray;
  position: fixed;
  bottom: 10px;
  right: 50px;
  z-index: 1000;
  width: 30px;
  height: 30px;
}
#fullScreen {
  cursor: pointer;
  font-size: 20px;
  text-align: center;
  border-radius: 50%;
  border: 4px solid white;
  background-color: lightgray;
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
  width: 30px;
  height: 30px;
}


/***********************************************************
***********************************************************/

#divColorsLeft {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  background: radial-gradient(circle at 200px 100px,#FFFFFF,#DDDDDD, #BBBBBB);
  border: 2px solid white; /* Bordure verte */
  border-radius: 5px;
  width: 400px;
  font-size: 20px;
}

#divStats {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: radial-gradient(circle at 200px 100px,#FFFFFF,#DDDDDD, #BBBBBB);
  border: 2px solid white; /* Bordure verte */
  border-radius: 5px;
}

/*************************/


/* HTML: <div class="rounded-tab"></div> */
.rounded-tab {
  --r: 25px; /* control the radius */

  line-height: 1.8; /* control the height */
  padding-inline: .5em;
  border-inline: var(--r) solid #0000;
  border-radius: calc(2*var(--r)) calc(2*var(--r)) 0 0/var(--r);
  mask: 
    radial-gradient(var(--r) at var(--r) 0,#0000 98%,#000 101%)
      calc(-1*var(--r)) 100%/100% var(--r) repeat-x,
    conic-gradient(#000 0 0) padding-box;
  background: #bd5532 border-box; /* border-box is needed for a gradient coloration */
  width: fit-content;
}

/* HTML: <div class="rounded-tab"></div> */
.rounded-tab-left {
  --r: 25px; /* control the radius */

  line-height: 1.8; /* control the height */
  padding-inline: .5em;
  border-right: var(--r) solid #0000;
  border-radius: var(--r) calc(2*var(--r)) 0 0/var(--r);
  mask:  
    radial-gradient(var(--r) at 100% 0,#0000 98%,#000 101%) 
     100% 100%/var(--r) var(--r) no-repeat, 
    conic-gradient(#000 0 0) padding-box;
  background: #bd5532 border-box; /* border-box is needed for a gradient coloration */
  width: fit-content;
}

/* HTML: <div class="rounded-tab"></div> */
.rounded-tab-right {
  --r: 25px; /* control the radius */

  line-height: 1.8; /* control the height */
  padding-inline: .5em;
  border-left: var(--r) solid #0000;
  border-radius: calc(2*var(--r)) var(--r) 0 0/var(--r) var(--r) 0 0;
  mask: 
    radial-gradient(var(--r) at 0 0,#0000 98%,#000 101%) 
     0 100%/var(--r) var(--r) no-repeat, 
    conic-gradient(#000 0 0) padding-box;
  background: #bd5532 border-box; /* border-box is needed for a gradient coloration */
  width: fit-content;
}









.tabs {
  display: flex;
  justify-content: center;
}

.tab {
  font-size: 16px;
  user-select: none;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  border: 3px solid #fff;
  border-bottom: none;
  --r: 8px; /* control the radius */

  line-height: 2; /* control the height */
  padding-inline: .4em;
  border-inline: var(--r) solid #0000;
  border-radius: calc(2*var(--r)) calc(2*var(--r)) 0 0/var(--r);
  mask: 
    radial-gradient(var(--r) at var(--r) 0,#0000 98%,#000 101%)
      calc(-1*var(--r)) 100%/100% var(--r) repeat-x,
    conic-gradient(#000 0 0) padding-box;
  background: rgb(185, 0, 0) border-box; /* border-box is needed for a gradient coloration */
  width: fit-content;
}
.tab.active {
  background-color: #fff;
  color: darkred;
  font-weight: bold;
}
.panels {
  margin-top: 0px;
}
.panel {
  align-items: center;
  display: none;
  height: 350px;
  padding: 5px;
  padding-top: 10px;
  border: 3px solid white;
  border-radius: 8px;
  flex-direction: column;
  font-size: 14px;
}
.panel.active {
  display: flex;
}

.divNoAlign {
  font-size: 12px;
  line-height: 250%;
}
.divLeftAlign {
  font-size: 12px;
  text-align: right;
  line-height: 250%;
}



.rubrikContainer {
  position: relative;
  width: 100%;
  padding: 0px;
  margin: 0px;
  border: 2px solid white; /* Bordure verte */
  border-radius: 10px; /* Bordure arrondie */
}

.rubrikText {
  position: absolute;
  top: -12px;
  left: 20px;  
  background-color: darkred;
  padding: 0 5px;
  color: white; /* Couleur du texte correspondant à la bordure */
  font-size: 14px;
  font-weight: bold;
}

.rubrikContent {
  width: 100%;
  padding: 0px;
  margin-top: 10px; /* Espace entre le texte et le contenu */
  margin-left: 0px;
  margin-right: 0px;
  font-size: 12px;
  text-align: right;
  line-height: 250%;
}




/***********************************************************
                         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="ribbon">Your text content</div> */
/* HTML: <div class="scalloped-box"></div> */
.ribbonMenu {
  --r: 10px; /* radius of circles */
  width: 360px;
  height: 560px;
  left: 50%;
  transform: translateX(-50%);
  overflow-y: auto; /* Défilement vertical */
  top: -600px; /* 30px; */
  position: absolute;
  transition: top 2s ease;
  aspect-ratio: 1;
  padding: calc(1.5*var(--r));
  background: darkred;
  color: white;
  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;
    user-select: none;
  }
  .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;
  }

input[type='number']::-webkit-inner-spin-button, 
input[type='number']::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}
#btnModeLevel {
  cursor: pointer;
  font-size: 20px;

  padding: 30px;
  text-align: center;

  border-radius: 10px;
  color: white;
  background-color: grey;
  border-width: 5px;
  border-color: black;
}
#lvlNumber {
  font-size: 16px;
  padding: 5px;
  text-align: center;

  width: 40px;
  border-radius: 10px;
  color: white;
  background-color: grey;
  border-width: 5px;
  border-color: black;
}
.lvlBtn {
  align-items: center;
  justify-content: center;
  font-size: 20px;
  width: 40px;
  border-radius: 10px;
  color: white;
  background-color: grey;
}

.rangeConfig {
  width: 70%;
}
.rangeConfigSmall {
  width: 35%;
}
.rangeConfigTiny {
  width: 20%;
}


#btnModeInfinite {
  cursor: pointer;
  font-size: 20px;
  width: 200px;
  border-radius: 10px;
  color: white;
  background-color: darkcyan;
}


/************************************************************
.%%%%%....%%%%...%%..%%...%%%%...%%%%%%.
.%%..%%..%%..%%..%%%.%%..%%......%%.....
.%%%%%...%%%%%%..%%.%%%..%%.%%%..%%%%...
.%%..%%..%%..%%..%%..%%..%%..%%..%%.....
.%%..%%..%%..%%..%%..%%...%%%%...%%%%%%.
........................................
************************************************************/
  .rangeStyle {
    position: relative;
    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;
  }