*{
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 95%;
  vertical-align: text-bottom;
  background: transparent;
  user-select: none; /* supported by Chrome and Opera. DISABLE TEXT SELECT */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
}


#overlayRotate {
  display: block; /* Hidden by default */
  touch-action: manipulation;
}

#rotate{
  display:none;
  position: fixed;
  z-index: 2;
  left: 0;
  top:0;
  height: 100%;
  width: 100%;
  margin: auto;
  overflow: auto;
}
#rotate img{
  display: block;
  height: 50%;
  margin: auto;
  transform: translate(0%,50%);
}

b{
  vertical-align: bottom;
}

i{
  vertical-align: bottom;
  font-size: 75%;
}

html. body{
  touch-action: manipulation;
}

body{
  opacity: 1;
  transition: 1s opacity;
  background: rgb(240,240,240);
  margin: 0px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 0.8rem;
}

#body{}

  body.fade-out {
    opacity: 0;
    transition: none;
  }

  header{
    margin: 0;
    position: relative;
    width: 100%;
    z-index: 200;
    background-color: white;
    height: 8vh;
    box-shadow: 1px 1px 1px 1px rgba(0,0,0,.1);
  }

  header a{
    text-decoration: none;
  }

#fr select{
  /* MENU COLOR */
  /* background-color: rgba(180, 180 , 180 , 1) */
}

  #headContainer{
    display: inline-flex;
    flex-direction: row;
    /* align-items: flex-end; */
    align-items: center;
    width: 100%;
    justify-content: space-around;
    /* transform: translate(0, 80%); */
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    /* margin: 0.5vh; */
    /* margin-top: 1vh; */
    margin-top: 1%;
  }

  #title{
    flex-grow: 0.8;
    text-align: center;
    letter-spacing: .1rem;
    font-size: 115%;
    /* transform: translate(0, -20%); */
  }

  #links {
    padding-bottom: 0.8em;
  }

  /* INSTA GRAYSCALE */
  #links img{
    transition: 0.3s;
    -webkit-filter: grayscale(1) opacity(.6);
    filter: grayscale(1) opacity(.6);
  }

  #links img:hover{
    transition: 0.4s;
    -webkit-filter: grayscale(0) opacity(1);
    filter: grayscale(0) opacity(.9);
  }

  #email{
    transition: 0.4s;
    color: grey;
    font-size: 100%
  }

  #email:hover{
    transition: 0.4s;
    color: rgb(205, 72, 107);
  }

  #instaHome{
    display: none;
  }

  nav{
    margin-top: 12em;
    margin-bottom: 6em;
    display: block;
    text-align: center;
  }

  nav div{
    display: inline-block;
    border: 1.5px solid rgba(0,0,0,.15);
    box-shadow: 0px 6px 0px rgba(0,0,0,.2);
    margin: 0.1em; /*espace entre les  boutons */
    border-radius: 10px;
    width: 10em;  /* Largueur du bouton */
    height: 8.3em;  /* hauteur du bouton */
    text-decoration: none;
    /* color: rgba(0,0,0,1);
    background: black; */
  }

  #home{
    margin-left: 2vw;
  }

  #modalBtn{
    margin-right: 2vw;
    vertical-align: bottom;
    width:28;
    height:28;
  }

  #modalBtn:hover{
    cursor: pointer;
  }

  /* ? anim

  /* #modalBtn img{
  border-radius: 50%;
  animation-duration: 0.8s;
  animation-name: slidein;
  animation-iteration-count: 19;
  animation-direction: alternate;
  filter: grayscale(100%) brightness(70%) contrast(2);
}

@keyframes slidein {
from {
filter: grayscale(0%) brightness(100%) contrast(1);
}
to {
filter: grayscale(100%) brightness(100%) contrast(2);
}
} */

.modal{
  display: none;
  position: fixed;
  z-index: 1;      /*plan 1 = premier plan */
  left:0;
  top: 3em;
  height: 100%;
  width: 100%;
  overflow: auto;
  animation-name:modalopen;
  animation-duration:0.8s;
  background-color: rgba(0,0,0,0.5)
}

.modal-content{
  background-color: white;
  margin: 4% 30%;   /* Place du texte */
  border-radius: 4px;
  padding: 2em;
  padding-bottom: 1em;
  box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2), 0 7px 20px 0 rgba(0,0,0,0.2);
  font-size: 1.2rem;
  font-weight: 550;
  text-align: justify;
  animation-name:modalopen;
  animation-duration:0.8s;
  line-height: 1.8em;
}

#paypal{
  text-align: center;
}

#mobileCopyright{
  display: none;
}



.modal-content p{
  text-decoration: none;
  /* text-align: center; */
}

.modal-content a{
  text-decoration: none;
}

.modal-content img{
  padding-top: 1em;
}

@keyframes modalopen{
  from {opacity: 0}
  to {opacity: 1}
}

#intro{
  text-align: center;
  margin-bottom: 1em;
}

.closeBtn{
  color: #bbb;
  font-size: 2.5em;
  text-align: center;
}

.closeBtn:hover{
  color:#000;
  text-decoration: none;
  cursor: pointer;
}
.chord{
  background-color: rgba(255, 255, 255, 1);
  /* animation: pulse 0.1s linear infinite; */
}

.chordName{                                            /*grossir si joué? pareil ou aue deg? Grossir Grid en smooth?*/
  font-family: 'Titillium Web', sans-serif;
  font-size: 2em;
  /* font-weight: bold; */
  margin: 0px;
  position: relative;
  top: 48%;
  transform: translate(0,-60%);
  text-align: center;
  color: rgba(0,0,0,0);    /*Init Transparent*/
}

.degreeName{
  font-family: 'Bitter', serif;
  color: grey;
  font-size: 1.1em;
  margin: 0px;
  position: relative;
  top: 30%;    /*Deg down*/
  text-align: center;
}

select{
  text-align-last: center;
  letter-spacing: .1rem;
  border: 1px solid rgba(0,0,0,.1);
  width: auto;
  border-radius: .5em;
  padding: 0.5em 1.6em .5em 2em;
  font-weight: 500;
}

select:hover {
  transition: all 0.3s ease-in-out;
  box-shadow: 0 3px 6px 0 rgba(0,0,0,0.1);
}

#script1{    /* menu fr */
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.4em;
  display: block;
  margin: 0 auto;
  margin-left: : 0;
}

#script2{ /* menu eng */
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.4em;
  display: block;
  margin: 0 auto;
  margin-left: : 0;
}

@keyframes major {
  0% {
    background: #e6b2c6;
  }
  50% {
    background: #EDC9D7;
  }
  100% {
    background: #e6b2c6;
  }
}

@keyframes minor {
  0% {
    background: #BFD7F7;
  }
  50% {
    background: #D2E3F9;
  }
  100% {
    background: #BFD7F7;
  }
}

@keyframes mb5 {
  0% {
    background: #B1E6B4;
  }
  50% {
    background: #D0F0D2;
  }
  100% {
    background: #B1E6B4;
  }
}

@keyframes M7 {
  0% {
    background: #e6b2e0;
  }
  50% {
    background: #F0D0EC;
  }
  100% {
    background: #e6b2e0;
  }
}

@keyframes m7 {
  0% {
    background: #C4BFF7;
  }
  50% {
    background: #E4E2FB;
  }
  100% {
    background: #C4BFF7;
  }
}

@keyframes dom7 {
  0% {
    background: #e6b8b2;
  }
  50% {
    background: #EDCDC9;
  }
  100% {
    background: #e6b8b2;
  }
}

@keyframes sdim {
  0% {
    background: #b1e6cf;
  }
  50% {
    background: #DFF5EB;
  }
  100% {
    background: #b1e6cf;
  }
}

#I,
#IV,
#V{
  /* background: rgba(255, 211, 182, 0.3); */
  transition: background-color .11s ease;
}

#II,
#III,
#VI{
  /* background: rgba(220, 237, 193, 0.3); */
  transition: background-color .11s ease;
}

#VII {
  /* background: rgba(168, 230, 244, 0.3); */
  transition: background-color .11s ease;
}

#manualSelector{
  display:none;
}

#tonality{
  font-family: 'Acme', sans-serif;
  font-size: 2em;
  color: black;
  text-align: center;
  margin: 0.5em;
}

.controls{
  margin-top: 1em;
  margin-bottom: 1em;
  border: 1px solid rgba(0,0,0,.10);
  background-color: #f4f4f4;
}

.controls p{
  margin: 0.3em;
  text-align:left;
}

.keys{
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.30);
  background-color: white;
}

.overlay{
  display: none;
}

footer{
  position: fixed; /* Set the navbar to fixed position */
  text-align: center;
  width: 100%; /* Full width */
  bottom: 8em;
  padding-bottom: 1em;
  height: 1em;
  font-family: 'Titillium Web', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: grey;
  letter-spacing: .1rem;
}

footer a{
  text-decoration: none;
  color: inherit;
}

#preview{
  display: none;
}

@media screen and (max-width: 640px), screen and (min-device-width : 768px) and (max-device-width : 1024px) { /*/////////////////////////////////////*/

  #preview{
    display: none;
  }

  header{
    /* display: none; */
    height: 6.8vh;
  }

  :fullscreen header{
    margin-bottom: 10%;
  }

  #headContainer{
    font-size: 3vh;
    margin-top: 1vh;

  }

  #instaHome{
    display:inline-flex;
    margin-left: 2vw;
  }
  #title{
    font-size: 95%;
  }

  #home{
    display:none;
  }

  #title {
    letter-spacing: .2rem;
    /* vertical-align:middle; */
  }

  #modalBtn {
    padding-bottom: 0.14em;
    display: inline-block;
    vertical-align: middle;
  }
  #modalBtn img{
    display: inline-block;
    vertical-align: middle;
  }



  #rContainer{
    display: flex;
    flex-direction:row-reverse;
    justify-content: space-between;
  }

  #tonaMenu{
    padding-top: 0%;
    width: 100%;
    margin:0;
    margin-left: 1em;
    margin-top: 1.5vh;
  }



  #I{
    margin-top: 0%;
  }

  .modal-content{
    margin: 5% 0%;   /* Place du texte */
    border-radius: 4px;
    padding: 1em;
    padding-bottom: 1em;
    padding-left: 1em ;
    padding-right: 1em;
    box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2), 0 7px 20px 0 rgba(0,0,0,0.2);
    font-size: 2.7vh;
    font-weight: 550;
    text-align: justify;
    animation-name:modalopen;
    animation-duration:1s;
    line-height: 1.8em;
  }

  #intro{
    margin-bottom: 0.4em;
  }

  nav{
    display: flex;
    flex-direction: column;
    margin-top: 1.5vh;
    margin-bottom: 0;
    margin-right: 3vw;
    align-items:flex-end;
  }

  nav div {
    display: flex;
    flex-direction: column;
    width: 30vw;  /* Largueur du bouton */
    height: 9.5vh;  /* hauteur du bouton */
    margin: 0.7vh; /*espace entre les  boutons */
    box-shadow: 0px 6px 0px rgba(0,0,0,.2);
  }

  .chord{
    background-color: rgba(255, 255, 255, 1);
  }

  .chordName{                                            /*grossir si joué? pareil ou aue deg? Grossir Grid en smooth?*/
    font-size: 3.5vh;
  }

  .degreeName{
    top: 1em;    /*Deg down*/
    font-size: 1.8vh;
  }

  #script1{
    display: inline;
    font-size: 1.8em;
    border-radius: .4em;
  }

  #script2{
    display: inline;
    font-size: 1.8em;
    border-radius: .4em;
  }

  select{
    text-align-last: center;
    letter-spacing: .1rem;
    border: 1px solid rgba(0,0,0,.1);
    width: auto;
    border-radius: .1em;
    padding: 0.5em 0.5em .5em 1em;
    font-weight: 500;
    color: rgba(0,0,0,.6);
    //arrow disable
    /* -o-appearance: none;
    -ms-appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none; */
  }

  select::-ms-expand {
    display: none;
  }

  #manualSelector{
    display:flex;
    flex-direction:column;
    flex-wrap: wrap;

    /* margin-top: 5vh; */
    text-align: left;
    margin-bottom: 10vh;

  }

  #manualSelector div{
    font-family: 'Bitter', serif;
    width: 55vw;
    height: 10vh;
    font-size: 2.8vh;
  }

  #manualSelector p{
    position: relative;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);}

    #leftSide{
      display: flex;
      flex-direction:column;
      justify-content:space-between;
      margin-top: 0%;
      margin-left: 2vw;
    }

    .controls{
      display: none;
    }
    .button{
      background-color: rgba(255, 255, 255, 1);
    }
    .secButton{
      margin-top: none;
    }

    footer {
      display:none;
    }

    #hTona .overlay{
      width: 24vw;
    }
    #hTona7 .overlay{
      width: 24vw;
    }
    #secondaryDom .overlay{
      width: 24vw;
    }
    #secondaryDom7 .overlay{
      width: 24vw;
    }
    #expandedChords .overlay{
      width: 55vw;
    }

    .overlay{
      display: block;
      position: absolute;
      box-shadow: none;
      background-color: rgba(255,0,0,0);
      margin: 0;
      border: 0;
    }

    .doubleButton{
      display: flex;
      flex-direction:row;
      align-items: center;
      box-shadow: none;
      border: none;
      margin-top: 1vh;
    }

    #mobileCopyright{
      display: block;
      text-align: center;
      font-size: 1rem;
      padding-top: 0.5rem;
      padding-bottom: 2em;
    }
    #mobileCopyright a{
      vertical-align: top;
    }


    #eng2{}

    #fr2{}
