.telugu-soundboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px auto;
  max-width: 800px;
}

.telugu-soundboard-wrapper {
  text-align: center;
  margin: 20px auto;
}

.telugu-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: #f0f0f0;
  color: #d72e30;
  border-radius: 12px;
  cursor: pointer;
  font-size: 2.3rem;
  position: relative;
  font-weight: 500;
}

.telugu-phrase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: #f0f0f0;
  color: #d72e30;
  border-radius: 12px;
  cursor: pointer;
  font-size: 2.3rem;
  position: relative;
  font-weight: 500;
}

.telugu-phrase-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.telugu-letter:hover {
  font-weight: 600;
  background: #d72e30;
  color: #fff;
  font-size: 2.5rem;
}

.telugu-phrase:hover {
  font-weight: 600;
  background: #d72e30;
  color: #fff;
  font-size: 2.5rem;
}

.play-icon {
  margin-right: 8px;
}

.play-icon-img {
  height: 25px;
  width: auto; /* maintains aspect ratio */
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
}

.telugu-tooltip {
  position: relative;
  cursor: help;
  background: #f0f0f0;
  background: #ffffff;
  border-bottom: 1px dotted #555;
  border: 1px dotted #383636;
  border: 2px solid #e91313;
}

.telugu-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%; /* Position above the element */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.telugu-tooltip:hover::after {
  opacity: 1;
}

.telugu-tooltip::after {
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(5px);
}
.telugu-tooltip:hover::after {
  transform: translateX(-50%) translateY(0);
}
