/* Modifié le 09/11/2025 @E.G*/
html {
  height: 100%;
}

body {
  position: fixed;
  font-family: sans-serif;
  color: #2c3e50;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: default;
  user-select: none;
}

.notes {
  margin: auto;
  width: 800px;
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  text-align: center;
}

.note {
  font-size: 90px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
  padding-right: 30px;
  padding-left: 10px;
}

.note.active {
  color: #805cff;
  background: linear-gradient(15deg, #805cff 20%, #ffd691);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.notes-list {
  overflow: auto;
  overflow: -moz-scrollbars-none;
  white-space: nowrap;
  -ms-overflow-style: none;
  -webkit-mask-image: -webkit-linear-gradient(
    left,
    rgba(255, 255, 255, 0),
    #fff,
    rgba(255, 255, 255, 0)
  );
}

.notes-list::-webkit-scrollbar {
  display: none;
}

.note {
  -webkit-tap-highlight-color: transparent;
}

.note span {
  position: absolute;
  right: 0.25em;
  font-size: 40%;
  font-weight: normal;
}

.note-sharp {
  top: 0.3em;
}

/*Ajouté*/
.note.active .note-sharp {
  top: 0.3em;
  background: linear-gradient(15deg, #805cff 20%, #ffd691);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* */

.note-octave {
  bottom: 0.3em;
}

/*Ajouté*/
.note .note-latin{
  font-size: 20%;
  bottom: -5px;
  left: -10px;
}

.note.active .note-latin {  
  background: linear-gradient(15deg, #805cff 20%, #ffd691);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* */

/*Ajouté*/
.note.active .note-octave{
  bottom: 0.3em;
  background: linear-gradient(15deg, #805cff 20%, #ffd691);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* */

.frequency {
  font-size: 32px;
}

.frequency span {
  font-size: 50%;
  margin-left: 0.25em;
}

.meter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 50%;
  width: 400px;
  height: 33%;
  margin: 0 auto 5vh auto;
  background: radial-gradient(RGBA(255, 241, 198, 0.7),RGBA(200, 200, 200, 0)75%);
}

.meter-pointer {
  width: 2px;
  height: 100%;
  background: #2c3e50;
  border-radius: 20px;
  transform: rotate(45deg);
  transform-origin: bottom;
  transition: transform 0.5s;
  position: absolute;
  right: 50%;
  z-index: 11;
}

.meter-dot {
  width: 10px;
  height: 10px;
  background: #2c3e50;
  border-radius: 50%;
  position: absolute;
  bottom: -5px;
  right: 50%;
  margin-right: -4px;
}

.meter-scale {
  width: 1px;
  height: 100%;
  transform-origin: bottom;
  transition: transform 0.2s;
  box-sizing: border-box;
  border-top: 10px solid;
  border-radius: 20px;
  filter: blur(0.05px);
  position: absolute;
  right: 50%;
}

.meter-scale-strong {
  width: 2px;
  border-top-width: 20px;
  z-index: 10;
}

/*Ajouté*/
.meter-scale-strong--gauche,
.meter-scale-strong--droite{
  color: #b10000;
}

.meter-scale-strong--center {
  color: #00b100;
}
/* */

.frequency-bars {
  position: fixed;
  bottom: 0;
}

@media (max-width: 768px) {
  .meter {
    width: 60%;
  }

  .notes {
    width: 100%;
  }
}

/*Ajouté*/
@media (max-width: 450px) {
  .meter {
    width: 100%;
  }
    
  .widget#W-D,
  .widget#W-G{
    margin: 8px;
    padding: 5px;    
    box-shadow: 0px 5px 18px -8px rgba(228, 190, 102, 0.70);    
  } 
}
/* */

.swal-button {
  background: #2c3e50;
}

.widget{
    margin: 16px;
    padding: 8px;
    border: solid 1px rgb(255, 234, 171);
    border-radius: .80em;
    background: RGBA(255, 241, 198, 0.7);
    box-shadow: 0px 5px 30px -5px rgba(228, 190, 102, 0.70);    
}

#W-D{
    position: absolute;
    top: 0px;
    left: 0px
}

#W-G{
    position: absolute;
    top: 0px;
    right: 0px;
}

.infobulle{    
    margin: 0px 2px;
    padding: 0px 5px;
    font-size: 14px;
    color: rgba(128, 92, 255, 0.5);
    border: solid 1px rgba(128, 92, 255, 0.5);
    border-radius: 20px;
    background: none;
    cursor: help;  
    transition: 0.2s;
}

.infobulle:hover{
    color: rgba(128, 92, 255, 0.7);
    border: solid 1px rgba(128, 92, 255, 0.7);
}

.infobulle::after{
    content: "";
    position: absolute;
    left: 5px;
    top: 26px;
    margin: 2px;
    padding: 4px;
    font-size: 14px;
    color: rgba(128, 92, 255, 0.85);
    border: solid 1px rgba(128, 92, 255, 0.5);
    border-radius: .80em;
    background: #fefefe;
    cursor: help;
    visibility: hidden;
    opacity: 0%;
    transition: all 0.3s;
}

.infobulle:hover::after,
.infobulle:focus::after{
    visibility: visible;
    opacity: 100%;
}

/* Texte Infobulle */

#if-freq.infobulle::after{
    content: "Choisissez la fréquence de référence (La4/A4) qui servira à ajuster la hauteur de toutes les notes.";
}

#if-auto.infobulle::after{
    content: "Cochez pour activer la détection automatique des notes, si décochée, sélectionnez une note pour entendre sa sonorité.";
}

/**/

.a4 {
    display: inline;
}

.a4 span {
    color: #805cff;
    cursor: pointer;
}

.auto {
    cursor: pointer;
}

.auto input[type="checkbox"]{
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    top: 3px;
    margin: 0;
    height: 18px;
    width: 30px;
    border: 1px solid rgb(145, 114, 255); /*border: 1px solid rgb(128, 92, 255);*/
    border-radius: 20px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.auto input[type="checkbox"]:hover{
    border: 1px solid rgb(185, 165, 255);    
}

.auto input[type="checkbox"]:checked{        
    background: linear-gradient(15deg, #805cff, #ffd691);     
}

.auto input[type="checkbox"]::before{
    content: "";
    position: relative;
    top: 13%;
    left: 1px;
    margin: 0;
    display: block;
    height: 12px;
    width: 12px;
    border-radius: 20px;
    background-color: rgb(145, 114, 255);
    transition: all 0.15s ease-in-out;
}

.auto input[type="checkbox"]:hover::before{
    background-color: rgb(185, 165, 255);    
}

.auto input[type="checkbox"]:checked::before{       
    left: 53%;    
    background-color: #fff; 
}

.auto input[type="checkbox"]:hover:checked::before{       
    background-color: rgb(219, 209, 255); 
}

