body {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
       background-color: rgb(52, 53, 65);
}

@font-face {
    font-family: 'grand_hotelregular';
    src: url('https://www.marouze.com/GAMES/DRUM_PAD/grandhotel-regular-webfont.woff2') format('woff2'),
         url('https://www.marouze.com/GAMES/DRUM_PAD/grandhotel-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

header {
    width: 100%;
    text-align: center;
    margin-top: -30px;
    margin-bottom: -30px;
}

h1{
    font-family: 'grand_hotelregular';
    font-size: 3em;
    color: #fff;
}

.row {
    display: flex;
    margin-left: 10px; /* Ajout de marge négative pour compenser la marge globale */
    margin-right: 10px; /* Ajout de marge négative pour compenser la marge globale */
}

.sample-pad {
    height: 80px;
    width: 80px;
    margin: 10px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    font-size: 0.8em;
    color: white;
    text-align: right; /* Alignement horizontal à droite */
    line-height: 140px; /* Alignement vertical au centre */
    padding-right:5px;
}

.pad-row1 {
    background-color: #3498db;/* Bleu vif   */
}

.pad-row2 {
    background-color: #e74c3c;/* Rouge vif   */
}

.pad-row3 {
    background-color: #2ecc71;/* Vert emeraude   */
}

.pad-row4 {
    background-color: #f39c12;/* Jaune orange   */
}

.pad-row5 {
    background-color: #9b59b6;/* Violet   */
}

.pad-row6 {
    background-color: #1abc9c;/* Turquoise   */
}

.sample-pad:hover {
    filter: brightness(1.4);
}

.sample-pad button {
    display: none;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Ajoutez cette règle pour masquer le texte sur les écrans mobiles */
@media screen and (max-width: 767px) {

    header {
    width: 100%;
    text-align: center;
    margin-top: -90px;
    margin-bottom: -100px;
}

h1{
    font-family: 'grand_hotelregular';
    font-size: 3em;
}

    
    .sample-pad {
            height: 70px;
    width: 70px;
       color: transparent; /* Pour masquer les lettre du clavier sur les écrans mobiles */

    }

.hide {
       display: none;
    }

.row {
       margin-right: 10px;
       margin-left: 10px;
          height: 70px; /* Ajout de la hauteur spécifiée */
         margin-top: -100px;
           margin-bottom: -100px;
    }
    
    .sample-pad button {
    display: none;
}
}