
/* Typing Container */
.typing-container {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  /* height: 280px; */
  padding: 10px;
  background-color: #fff;
  overflow: hidden;
  position: relative;
}



.animation_head{
  margin: 40px 0 10px 0;  /* Reduce space below heading */
  text-align: left;
  font-size: 1.2em;
}

/* Typing Text */
.typing-text {
  white-space: pre-wrap;
  overflow-y: auto;
  height: 70%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
 
  
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.typing-text::-webkit-scrollbar {
  display: none;
}

/* Typing Animation Controls */
#controls {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  position: absolute;
  top: 10px;
  z-index: 2;
}

/* Button Styling */
.control-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid grey;
  transition: background-color 0.3s ease;
  font-size: 12px;
}

.control-btn:hover {
  background-color: #555;
}

/* Button Icons */
.play-icon::before {
  content: '▶';
}

.pause-icon::before {
  content: '⏸';
}

.char-icon::before {
  content: 'C';
}

.word-icon::before {
  content: 'W';
}

/* Disabled Button Style */
.control-btn.disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

/* Button Position Classes */
.right {
  right: 10px;
}

.center {
  left: 50%;
  transform: translateX(-50%);
}

.left {
  left: 10px;
}/* Speed Control Styling */
.speed-control {
  display: flex;
  align-items: center;
  width: 50px; /* Adjust width */
  height: 20px; /* Adjust height */
  border-radius: 15px; /* Rounded edges */
  border: 1px solid #ccc;
  background: #f9f9f9;
  font-family: Arial, sans-serif;
  overflow: hidden;
  position: relative;
  top: 5px;
}

/* Speed Buttons */
#speed-down-btn, #speed-up-btn {
  width: 20px;
  height: 20px;
  border: none;
  background: #eee;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease-in-out;
}

#speed-down-btn:hover, #speed-up-btn:hover {
  background: #ddd;
}

/* Rounded Corners */
#speed-down-btn {
  border-radius: 15px 0 0 15px;
}

#speed-up-btn {
  border-radius: 0 15px 15px 0;
}

/* Speed Display */
#speed-display {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  background: transparent;
  border: none;
  outline: none;
  pointer-events: none; /* Prevents editing */
}



