body {
  margin: 0px;
  padding: 0;
  box-sizing: 0;
}

.top-header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #aabaec8b;
  padding: 10px 35px;
  margin-top: -2%;
}

.connect-button {
  background-color: white;
  border-radius: 5px;
  box-shadow: #dae4ff 0px 4px 0px 0px;
  padding: 15px 10px;
  background-repeat: no-repeat;
  /* box-sizing: border-box; */
  width: 150px;
  height: 40px;
  color: #000;
  border: none;
  font-size: 15px;
  transition: all .3s ease-in-out;
  z-index: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  outline: none;
  cursor: pointer;
  margin-left: 30px;
  margin-top: 10px;
  text-align: center;
}


.connect-button::before {
  content: "";
  background-color: #7191F5;
  width: 0;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: width 700ms ease-in-out;
  display: inline-block;
}

.connect-button:hover::before {
  width: 100%;
}

.logo-center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}



.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  overflow-y: auto;
  font-family: Arial, Helvetica, sans-serif;

}

.popup-content {
  background-color: #fff;
  margin: 0 auto;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 850px;
}

.close {
  position: relative;
  top: -10px;
  left: 800px;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  font-size: 30px;
}

.close:hover {
  color: #000;
}

#contactForm {
  display: grid;
  gap: 15px;
  margin-left: 50px;
  margin-top: 20px;
}

.flex {
  display: flex;
  width: 93%;
  gap: 30px;
}

#input-text,
input[type="email"] {
  width: 90%;
  padding: 8px;
  border: none;
  border-bottom: 1px solid #ccc;
}

#input-text,
input[type="email"]:focus {
  outline: none;
}

input::placeholder {
  /* color: #04AA6D;  */
}

label {
  font-size: 12px;
}

select {
  height: 40px;
}

option {
  border-radius: 0px;
}

.message {
  resize: none;
  height: 100px;
  overflow-y: auto;
  width: 91%;
  padding: 5px;
  border-radius: 5px;
}

.message:focus {
  outline: none;
}

.form-submit-button {
  background-color: #000;
  color: #fff;
  padding: 10px 11px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  width: 90%;
}

.form-submit-button:hover {
  background-color: rgb(37, 36, 36);
}

.container {
  display: block;
  position: relative;
  padding-left: 28px;
  padding-right: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 14px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.container a {
  text-decoration: none;
  margin-left: 10px;
}

.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  display: none;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
}

.container:hover input~.checkmark {
  background-color: #ccc;
}

.container input:checked~.checkmark {
  background-color: #2196f3;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.container input:checked~.checkmark:after {
  display: block;
}

.container .checkmark:after {
  left: 7px;
  top: 2px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.scribble {
  margin-top: -12px;
}

.hero-1 {
  margin: 20px 50px;
  overflow: hidden;
}

.record-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rounded-circle {
  width: 9rem;
  height: 9rem;
  background-color: #FFFFFF;
  border-radius: 50%;

  background-image: url('./microphone.png');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}


.text-and-buttons {
  display: flex;
  flex-direction: column;
}

.header-text {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  color: white;
  font-family: "Urbanist", sans-serif;
}

.description-text {
  font-size: 1rem;
  text-transform: capitalize;
  color: #ffff;
  margin: 10px 5px;

}

.button-group {
  display: flex;
  gap: 10px;
}


#startRecording,
#stopRecording,
#refresh {
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;

}

.record-btn {
  background-color: #1D976C;

}

.record-btn i {
  gap: 5px;
}


.stop-btn {
  background-color: red;
  color: white;
  padding: 10px 15px;

}

.reset-btn {
  background-color: #2768FF;
  color: white;
  padding: 10px 15px;

}


.record-section h1 {
  color: black;
  font-size: 35px;
  line-height: 50px;
  margin-top: 50px;
}

.record-section span {
  color: #43b3a6;
}




/* Container styling */
.result-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  height: auto;
  position: relative;
}

/* Message display */
.message-display {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Current message pair styling */
.message-pair {
  display: none;
  animation: fadeEffect 0.5s;
}

.message-pair.active {
  display: block;
}

@keyframes fadeEffect {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

.pair-indicator {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: #6b7280;
}

/* Transcription styling */
.transcription {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.transcription-label,
.generated-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.transcription-label {
  color: #3b82f6;
}

.transcription-text {
  background-color: #eff6ff;
  border-left: 3px solid #3b82f6;
  padding: 1rem;
  border-radius: 4px;
  line-height: 1.5;
}

/* Generated text styling */
.generated-label {
  color: #10b981;
}

.generated-text {
  background-color: #ecfdf5;
  border-left: 3px solid #10b981;
  padding: 1rem;
  border-radius: 4px;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Navigation controls */
.nav-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
}





/* Pagination indicator */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 5px;
}

.page-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e5e7eb;
  cursor: pointer;
  transition: background-color 0.3s;
}

.page-dot.active {
  background-color: #3b82f6;
}




#startRecording:disabled {
  cursor: not-allowed;
}

#stopRecording:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(213, 205, 205, 0.282);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: none;
}

.loader-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: none;
}



.loader {
  border: 5px solid #949090;
  border-top: 5px solid #43b3a6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


.container3 {
  align-items: center;
  background-color: white;
  width: 30%;
  text-align: center;
  height: 170px;
  margin-top: 10px;
  margin-right: 100px;
  border: 1px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  overflow-x: auto;
}

.audio-icon {
  height: 30px;
  width: 30px;
  fill: #43b3a6;
}

.container3 h4 {
  margin: 0;
  margin-top: 20px;
  font-size: 25px;
  color: black;
}

audio {
  display: block;
  width: 100%;
}

.Audio-player {
  background-color: #f2f2f2;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  width: 300px;
  margin: 0 auto;
}


::-webkit-scrollbar {
  height: 10px;
  width: 1px;
}

::-webkit-scrollbar-track {
  background: #FFFFFF;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
  width: 50px;
}