/* La propriété CSS box-sizing définit la façon dont la hauteur et la largeur totale d'un élément est calculée  */
* {box-sizing:initial;}

html {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    background: black;
}

/* Affichage du titre de la page*/
h1 {
    color: #fff;
    font-size: 35px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
}

/* Classe permettant de masquer un DIV */
div > .hide {
    display: none;  
}

footer {
    position: absolute;
    color: #fff;
    bottom: 0;
    width: 100%;
    height: 3.0rem;
}

select:not(.grp-boutons .boutons) {
    background: #2F4F4F;
    color: #fff;
    width: 48px;
    height: 48px;
    font-size: 16px;
    border-radius: .6rem;
    /* border: 1px solid #354e4e; */
    text-align: center;
}

select:hover {
    background-color: #8d4e0b;
  }

/* ################################################################################################################ */
/* #####                                          DECLARATION DES CLASSES                                     ##### */
/* ################################################################################################################ */

/* Classe permettant la construction de la page.
Cette classe permet également de prioriser l'affichage des "DIV" avec la propriété z-index */
.page {
    position: relative;
    pointer-events: none; 
    opacity: 0.4;
}

/* Classe permettant de définir le contenu d'une fenêtre modale */
.modal {
    display: flex;
    z-index: 50;
    justify-content: center;
    align-content: center;
    margin:auto;
}

/* Elements d'une fenêtre modale accueil */
.item_modal_accueil {
    z-index: 99;
    stop-opacity: 1;
    position: absolute;
    background-color:#ff9800;
    border-radius: 10px;
    /* margin:0; */
    top: 250px;
    width: 800px;
    height: 50px;    
    padding: 5px;
    align-items: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
    line-height: 50px;
    color: whitesmoke;
}

/* Elements d'une fenêtre modale */
.item_modal_decompte {
    z-index: 99;
    font-family:Arial, Helvetica, sans-serif;
    position: absolute;
    top: 50px;
    width: 120px;
    height: 120px;    
    font-size: 100px;
    align-items: center;
    color:whitesmoke;
}

/* Elements d'une fenêtre modale */
.item_modal {
    z-index: 99;
    position: absolute;
    background-color:#2F4F4F;
    border-radius: 10px;
    margin:0;
    top: 100px;
    width: 380px;
    height: 250px;    
    padding: 10px;
    align-items: center;
}

/* Gestion des options du Quizz */
.options {
    justify-content: center;
    flex-flow: column wrap;
    align-content: center;
    display: none;
    height: 150px;
    width: 160px;
    z-index: 2;
    margin:auto;
}

.options > div {
    height: 30px;
    width: auto;      
    padding: 10px;
    background-color: cornflowerblue;
    align-items: center;
}


/* Classe permettant de définir un Conteneur principal hébergeant un ou plusieurs éléments sur la largeur de la page (Les éléments sont définis par la classe .item*/
.container {
    display: flex;
    z-index: 1;
    width:100%;
    height:115px;
}

/* Classe délémitant la zone d'affichage de l'aide */
.container_aide {
    /* border: 1px solid blanchedalmond; */
    display: flex;
    z-index: 1;
    width:100%;
    height:70px;
}

/* Classe délémitant la zone d'affichage du clavier du Piano */
.container_keyboard {
    /* border: 1px solid blanchedalmond; */
    display: flex;
    z-index: 1;
    width:100%;
    height:250px;
}

/* Classe délémitant la zone d'affichage de la fenetre modale des options */
.container_options {
    display: flex;
    z-index: 1;
    width:100%;
    height:40px;
}

/* Classe permettant de définir plusieurs zones à l'intérieur d'un conteneur (classe "Conteneur") */
.item {
    /* border: 1px solid blanchedalmond; */
    font-size: 30px;
    margin-top: 5px;
    color: #fff;
    width: 25%;
}

.item_keyboard {
    /* border: 1px solid blanchedalmond; */
}

.item_option {
    /* border: 1px solid blanchedalmond; */
    margin-top: 10px;
    margin-left: 5px;
    text-align: left;
    color:#fff;
    font-size: large;
    width: 75%;
}

.item_option_etat {
    /* border: 1px solid blanchedalmond; */
    margin-top: 12px;
    width: 25%;
}

/* Classe défénissant les propriétés de la police principale pour l'affichage du compteur, de l'accord et de l'horloge (cf. html) */
.accord {
    text-align: center;
    font-size: 80px;
    color: #fff;
    width: 50%;
}

.accord_time {
    padding-top: 22px;
    text-align: center;
    font-size: 35px;
    color: #fff;  
}

/* Classe défénissant les propriétés de la police principale pour l'affichage de l'aide sur l'accord (cf. html) */
.aide {
    text-align: center;
    /* font-size: 80px; */
    color: #fff;
    width: 50%;
}


/* ############################# CLASSES PERMETTANT L'AFFICHAGE DES BOUTONS ####################################### */

.zone-boutons {
    position: fixed; 
    height: 40px;
    width:100%;
    bottom:50px;
}

.grp-boutons .boutons {
    background-color: #2F4F4F; /* Green */
    border: 1px solid #354e4e;
    color: white;
    padding: 12px 40px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: .5rem;
} 

.grp-boutons .boutons:hover {
    background-color: #ff9800;
  }

.grp-boutons-modal .boutons-modal {
    background-color: #ff9800; /* Green */
    border: 1px solid #354e4e;
    color: white;
    padding: 12px 40px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: .5rem;
} 

.grp-boutons-modal .boutons-modal:hover {
    background-color: #ff990088;
  }

 .FermerAccueil {
    margin-right: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 50px;
    cursor: pointer;
    transition: 0.3s;
}


/* ############################# CLASSES PERMETTANT LA CONSTRUCTION DU CLAVIER ####################################### */

.keys {
    background-color: black;
    display: block;
    width: 100%;
    height: 250px; /*350px*/
    max-width: 1000px;
    position: relative;
    margin: auto;
    }

.key {
    position: relative;
    border: 2px solid black;
    border-radius: .5rem;
    transition: all .07s ease;
    display: block;
    box-sizing: border-box;
    z-index: 0;
    }

.key:not(.sharp) {
    float: left;
    width: 7.04%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);    
}

.key.sharp {
    position: absolute;
    width: 3.52%;
    height: 57%;
    background: #000;
    color: #eee;
    z-index: 50;
}

.key.chords {
    float: left;
    width: 7.04%;
    height: 100%;
    background: #2F4F4F;    
 }      

 .key.chordsharp {
    position: absolute;
    width: 3.52%;
    height: 60%;
    background: #2F4F4F;
    color: #eee;
    top: 0;
    z-index: 50;
  }

.hints {
    color:#000;
    display: block;
    width: 100%;
    opacity: 1;
    position: absolute;
    bottom: 0px;
    transition: opacity .3s ease-out;
    font-size: 18px;
  }

.hintsA {
    color:#000;
    display: block;
    width: 100%;
    opacity: 1;
    position: absolute;
    bottom: 20px;
    transition: opacity .3s ease-out;
    font-size: 18px;
}

.key[data-key="DO#"] {
    left: 5.25%;
}
.key[data-key="RE#"] {
    left: 12.25%;
}
.key[data-key="FA#"] {
    left: 26.3%;
}
.key[data-key="SOL#"] {
    left: 33.3%;
}
.key[data-key="LA#"] {
    left: 40.5%;
}
.key[data-key="DO#8"] {
    left: 54.5%;
}
.key[data-key="RE#8"] {
    left: 61.47%;
}
.key[data-key="FA#8"] {
    left: 75.7%;
}
.key[data-key="SOL#8"] {
    left: 82.8%;
}
.key[data-key="LA#8"] {
    left: 89.8%;
}