body { 
    background: #121212; 
    color: #eee; 
    font-family: sans-serif; 
    margin:0; 
    padding:0;
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    box-sizing: border-box;
    user-select: none;
  }
  
  #gridContainer{min-height: 36vh; left: 0; top: 0; border:none; overflow-x: scroll !important;}
  
  
  #gridWrapper {
    left: 0; top: 0;
    
    background: #1e1e1e;
    width: 100%;
    height: 70vmin; 
    border: none;
    display: block;
    
    flex-shrink: 0;
    overflow-x: scroll !important;
    overflow-y: hidden;
  }
  
  canvas {
    background: transparent;
    padding-top:0vw;
    padding-left:0;
    margin-left:0;
    width: 600;
    height: 70vmin; 
    border: none;
    display: block;
    flex-shrink: 0; 
    overflow-x: scroll !important;
  }
  
  
  
#midPanel{width:100vw; display:flex; flex-flow: row;}
  
#midPanel *{margin:0.1em;}
#sideBtn {
  position: relative;
  font-size: 5vh;
  border-radius: 10px ;
  width: 7vh;
  height: 6vh;
  aspect-ratio: 1;
  display: flex;
  justify-content: center; 
  align-items: center; 
  text-align: center;
}

  
#sideBtn2 {
  position: relative;
  
  font-size: 5vh;
  border-radius: 10px ;
  color: mediumvioletred;
  width: 7vh;
  height: 6vh;
  aspect-ratio: 1;

  display: flex; 
  justify-content: center; 
  align-items: center;
  text-align: center;
}

  
#copyColBtn,#pasteColBtn {
  position: relative;
  
  font-size: 3vh;
  font-weight: bold;
  border-radius: 10px ;
  color: dimgrey;
  width: 7vh;
  height: 6vh;
  aspect-ratio: 1;

  display: flex;
  justify-content: center; 
  align-items: center;
  text-align: center;
}


#InstrumentBtn {
  position: relative;
  
  font-size: 3vh;
  font-weight: bold;
  border-radius: 10px ;
  color: dimgrey;
  width: 7vh;
  height: 6vh;
  aspect-ratio: 1;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center; 
}

#trackControls{margin:1vh; display: flex; flex-flow: row;}
#trackControls *{ margin:0.1em; width:8vh; height:5vh; font-weight: bold;}

#trackList {
  display: flex;
  flex-flow: row;
  width:100%;
  overflow-x: scroll;
  }
  

  #tempoContainer { 
    width: 50vmin;
    margin: 0 auto 10px;
    text-align: left;
    flex-shrink: 0;
  }
  #virtualKeyboard {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%; 
    margin: 0 0 10px 0;
    height: 40vh; 
    overflow-y: auto;
    flex-grow: 0;
  }
  .keyBtn {
    padding: 10px 0;
    margin:5px;
    background: #333;
    border: 1px solid #555;
    border-radius: 10%;
    font-size: 6vw;
    text-align: center;
    cursor: pointer;
    user-select: none;
    color: #eee;
    transition: 0.1s;
  }
  .keyBtn:active { 
    background: #555; 
  }
  input[type=number] {
    background: #1e1e1e;
    color: #eee;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 3px 5px;
    width: 70px;
  }
  label { color: #eee; }

/* Estilo por defecto de los botones */
.trackBtn, #addTrackBtn {
    transition: background-color 0.3s ease;
    border-radius:5px;
}

/* Estilo para el botón activo */
.trackBtn.active {
    background-color: #b0e0e6; /* Celeste claro */
    border: 2px solid #5f9ea0; /* Un borde para resaltarlo más */
}

.inst-display-container {
    display: flex;
    justify-content: center;
    margin:5px;
    padding:0;
}

#instrumentDisplay {
  margin:0;
    border-radius: 5px;
    background-color: #b0e0e6;
    padding: 5px;
    color: black;
}