.button-submit:focus,
.button-again:focus {
  outline: none;
}

.button-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px;
  padding: 2px 5px 4px 7px;
  font-size: 1rem;
  background-color: #38383800;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  bottom: 20px;
  right: 15px; 
  transform: translate(50%, 50%);
  transform: rotate(45deg);
}

.button-submit:hover {
  border-radius: 5px;
}

.button {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #50CDDD;
  box-shadow: 0px 0px 8px #0084F9;
  position: absolute;
  cursor: pointer;
  bottom: 10px;
  right: -35px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #2F9EBB;
}

.mic-icon {
  width: 17px;
  height: 15px;
  fill: #1E2D70;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.button:hover::before {
  content: "E dikton vetëm zërin shqip";
  white-space: nowrap;
  position: absolute;
  top: -1px;
  left: 35px;
  background-color: #d8d8d8bd;
  color: #000000;
  border-radius: 4px;
  font-size: 11px;
  padding: 4px;
}

#delayed {
  animation-delay: 1.5s;
}

#circlein.active {
  background-color: #ff0000; /* Change the background color to indicate active state */
  color: #ffffff; /* Change the text color to white for better visibility */
  /* Add any other styles to customize the active button appearance */
}


.button-resubmit {
  position: absolute;
  top: 700px;
  left: 1257px;
  background-color: rgba(37, 37, 37, 0.89);
  color: #fff;
  border: none;
  padding: 8px 8px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  box-shadow: 0px 0px 2px #8a8a8a;
  transition: transform 0.3s ease; 
}

.sidebar.active + .button-resubmit {
  transform: translateX(20px); /* Move the button to the left when the sidebar is active */
}


.button-resubmit:hover {
  background-color: #454545;
}

.button-resubmit:focus {
  outline: none;
  background-color: #6b6b6b;
  box-shadow: 0px 0px 4px #e1e1e1;
}


.button-resubmit:hover::before {
  content: "Rigjeneroni pergjigjen";
  display: inline-block;
  position: absolute;
  background-color: #d8d8d8bd;
  margin-top:-90px;
  color: #000000;
  padding: 4px;
  border-radius: 4px;
  font-size: 11px;
}

@keyframes rotateInCircle {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rotating-icon {
  animation: none; /* No animation by default */

}
.rotating-icon.rotating {
  animation: rotateInCircle 1.5s linear infinite;
  transform-origin: center;
}


/* Mobile Styles */
@media (max-width: 768px) {


.button-submit {
  right: -18px;
  font-size:0.1rem;
  border-radius: 5px;
  padding:6px;
  margin-bottom:5px;
}

.button-remove {
  font-size: 14px;
}

.button {
display: none;
}

.button-resubmit {
  position: absolute;
  left:0;
  margin-left:265px;
  margin-top: 56px;

}


.rotating-icon.rotating {
  animation: rotateInCircle 1.5s linear infinite;
  transform-origin: center;
}

.button-resubmit:hover::before {
  content: "Rigjeneroni pergjigjen";
  display: inline-block;
  position: absolute;
  margin-top:90px;
  right:20px;
}


.speech-button {
  border: none;
  outline: none;
  left:-17px;
  top: auto;
  padding: 20px 7px 1px 7px;
  border-radius: 20px;
  background-color: #e2e2e2;
  cursor: pointer;
  position: static;
}


.speech-button i {
  font-size: 12px;
  padding: 5px 2px 5px 2px;
}

.download-button {
  border-radius: 30px;
  top:auto;
  position: absolute;
  left:-15px;
}

.mic-icon {
  width: 18px;
  height: 18px;
}

.button {
  width: 28px;
  height: 28px;
}

.delete-button {
  margin-top: 10px;
  margin-left:200px; 
  border-radius: 4px;
  position: static;
}

}
.speech-button {
background-color: #e2e2e2;
border-radius: 20px;
padding: 1px 7px 1px 7px;
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3);
margin-left:75px;
margin-top:-47.5px;
position: absolute;
margin-bottom: 0;
}

.speech-button:hover {
background-color: #ededed;
}

.speech-button i {
color: #070707;
padding-right:4px;
font-size: 15px;
}

.speech-button.active {
  background-color: #bbbbbb;
}


.speech-button:hover::before {
  content: "Dëgjo përgjigjen me zë shqip";
  display: inline-block;
  position: absolute;
  bottom:-70px;
  left: -25px;
  background-color: #d8d8d8bd;
  color: #000000;
  padding: 3px;
  z-index: 99999;
  border-radius: 4px;
  font-size: 11px;
  width: 80px;
}

.download-button {
  border-radius: 30px;
  margin-top:-45px;
  position: absolute;
  margin-left:117px;
}

.download-button i{
font-size: 15px;
}


.download-button:hover::before {
  content: "Shkarko përgjigjen si audio";
  display: inline-block;
  position: absolute;
  bottom:-70px;
  left: -20px;
  background-color: #d8d8d8bd;
  color: #000000;
  padding: 3px;
  z-index: 99999;
  border-radius: 4px;
  font-size: 11px;
  width: 80px;
}

.delete-button {
  position: absolute; /* Position the button relative to its parent container */
  top: 15px; /* Position it at the top */
  left: 370px; /* Position it at the right */
  background-color: rgba(27, 27, 27, 0.89);
  color: white;
  border: none;
  padding: 2px 9px 2px 9px;
  border-radius: 50px;
}

.delete-button:hover {
  background-color: rgb(225, 0, 0);
}

.delete-button:hover::before {
  content: "Fshije këtë pyetje";
  display: inline-block;
  position: absolute;
  bottom: -67px;
  right:2px;
  background-color: #babababd;
  color: #000000;
  padding: 5px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  width:80px;
  z-index: 99999;
}