.keymapPanel { position: fixed; /* Position the panel at the top */ top: 0; left: 50%; transform: translateX(-50%); z-index: 1000; /* Make sure the panel is above other elements */ background-color: #f1f1f1; border: 2px solid #333; padding: 10px; border-radius: 10px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; width: 20px; /* Adjust the width to suit your layout */ box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); } .keyButton { width: 50px; height: 50px; background-color: #f1f1f1; border: 2px solid #333; border-radius: 5px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease; } .keyButton:hover { background-color: #333; color: #fff; } .keyInfo { margin-top: 10px; font-size: 16px; font-weight: bold; color: #333; background-color: #f8f8f8; border: 2px solid #333; padding: 5px; border-radius: 5px; }