/* Global styles */
body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #ffffff;
  color: #333333;
}

.intro-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.messages-container {
  padding: 16px;
  height: calc(80vh - 120px);
  overflow-y: auto;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
}

.input-container {
  padding: 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Add a scrollbar to the messages container */
.messages-container::-webkit-scrollbar {
  width: 8px;
}

.messages-container::-webkit-scrollbar-thumb {
  background-color: #b3b3b3;
  border-radius: 4px;
}

.user-message,
.review-message-updated {
  padding: 8px;
  margin-bottom: 16px;
  max-width: 100%;
  word-wrap: break-word;
  text-align: left;
}

.user-message {
  color: #4caf50;
}

.review-message-updated {
  color: #333333;
}

audio::-webkit-media-controls-mute-button {
  display: none;
}

audio::-webkit-media-controls-time-remaining-display {
  display: none;
}

audio::-webkit-media-controls-volume-slider {
  display: none;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  #recordButton {
    font-size: 14px;
    padding: 10px 20px;
    width: 80%;
  }

  #recordedAudio {
    width: 80%;
  }
}

.chat-review-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 90vh;
  padding: 16px;
  box-sizing: border-box;
}

h1 {
  margin-bottom: 20px;
  color: #333333;
}

/* Record button styles */
#recordButton {
  width: 200px;
  font-size: 18px;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  background-color: #4caf50;
  color: #fff;
  text-align: center;
  cursor: pointer;
  user-select: none;
  outline: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

#recordButton:hover {
  background-color: #388e3c;
}

#recordButton:active {
  background-color: #2e7d32;
}

/* Audio element styles */
#recordedAudio {
  display: none;
  margin-right: 16px;
  height: 60px;
  width: 200px;
  border-radius: 5px;
}

.button-dimmed {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* edit button styles */
.edit-btn {
  position: relative;
  font-size: 12px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background-color: rgba(244, 67, 54, 0.4);
  color: #fff;
  text-align: center;
  cursor: pointer;
  user-select: none;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  
  margin-right: 10px;
  width: 70px;
}
  
.edit-btn:hover {
  background-color: rgba(211, 47, 47, 0.6);
}
  
.edit-btn:active {
  background-color: rgba(198, 40, 40, 0.8);
}

/* new container styles */
.edit-buttons-container {
  display: flex;
  /* flex-direction: column; */
  flex-direction: row;
  align-items: flex-start;
  margin-top: 10px;
  
}
  
  /* select */
  select {
  font-family: "Arial", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  padding: 10px 15px;
  border-radius: 5px;
  width: 100%;
  max-width: 300px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, border-color 0.3s;
  }
  
  select:hover {
  background-color: #ffffff;
  border-color: #999;
  }
  
  select:focus {
  border-color: #007BFF;
  }
  
  select::-ms-expand {
  display: none;
  }
  
  .spinner-container {
  display: flex;
  justify-content: center;
  }
  
  .spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 4px solid rgba(0, 0, 0, 0.2);
  border-top-color: #333333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 10px;
  }
  
  @keyframes spin {
  to {
  transform: rotate(360deg);
  }
  }
  
  #final_message {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding-left: 30px; /* Adjust this value to your desired left padding /
  padding-right: 30px; / Adjust this value to your desired right padding */
  }
  
  iframe#ad-iframe {
  border: none; /* Remove border /
  width: 100%;
  height: 200px;
  overflow: hidden;
  / Hide scrollbars if any */
  }
  
  #practice-again-button {
  font-size: 16px;
  padding: 15px 30px;
  border: none;
  border-radius: 3px;
  background-color: #4caf50;
  color: #fff;
  text-align: center;
  cursor: pointer;
  user-select: none;
  outline: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  }
  
  #practice-again-button:hover {
  background-color: #388e3c;
  }
  
  #practice-again-button:active {
  background-color: #2e7d32;
  }
