.keyboard-container {
    position: relative;
    display: inline-block;
  }

.letter-box{
  animation: pulse 02s infinite ease-in-out;
  transition: transform 0.2s;
}
/* Stop animation on hover */
.letter-box:hover {
  animation-play-state: paused;
}
/* Keyframes for smooth scaling */
@keyframes pulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.01); }
  50% { transform: scale(1); }
  75% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
  .keyboard-container img {
    max-width: 100%; /* adjust as needed */
    height: auto;
    display: block;
  }
.tooltip > div {
    padding: 5px 20px 10px 20px;
    background: linear-gradient(90deg, #D54F4F 0%, #732424 100%);
    font-size: 18px;
    line-height: 1.2;
    border-radius: 7px;
    text-shadow: none;
    text-align: center;
    width: fit-content;
}
  /* Small overlay box with letter */
.letter-box {
    position: absolute;
    width: 3.9%;
    height: 7%;
    background-image: url( https://wordsmith.maliknabeel.com/wp-content/uploads/2025/08/Ellipse-14.webp);
    border: transparent;
    border-radius: 4px;
    cursor: pointer;
    background-size: 100% 100%;
    text-shadow: 1px 4px 4px rgba(0, 0, 0, 0.84);
    font-size: 2vw;
    font-weight: bold;
    line-height: 0;
    padding-bottom: 9px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
  /* Tooltip */
  .tooltip {
    position: absolute;
      top: 0%;            /* vertical reference = middle of parent */
  left: 45%;          /* place to the right of the letter */
  transform: translateY(-105%);  /* center vertically */
     display: none; 
    flex-direction: column;
    gap: 4px;
    color: #fff;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 10;
    height: 30;
}

  .letter-box:hover .tooltip,
.letter-box .tooltip:hover{
    display: flex;
  }
.tooltip {
	z-index:9;
}
.tooltip a:hover{
	color:#E6B742;
}
.tooltip::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 20px;
    left: 7px;
    top: unset;
    background-image: url(/wp-content/uploads/2025/08/Union-1.webp);
    bottom: -9px;
}
@media (min-width: 2000px){
	.letter-box {
    font-size: 1.3vw;
   
}
	}
@media (max-width: 767px){
	.letter-box {
    padding-bottom: 0px;
    font-size: 1.3vw;
   
		
	}
.tooltip > div {
    padding: 3px 15px 5px 15px;
    font-size: 10px;
    border-radius: 3px;
 
	}
.tooltip {
    gap: 3px;
}
}