body {
  visibility: hidden;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-position: center center; /* new */
  background-size: cover; /* new */
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: background-image 2s ease;
  margin: 0;
  position: relative;
}

#head-container {
  position: absolute;
  top: 0;
  min-height: 40px;
  display: flex;
  width: 100%;
  background-color: #fff;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  justify-content: space-between; /* Space out items */
  align-items: center; /* Center items vertically */
}

/* Centered container for main header items */
.head-items {
  display: flex;
  gap: 20px; /* Space between center items */
  padding: 0px 10px;
}

/* Styling for individual items in the head container */
.head-item {
  color: #fff; 
  font-size: 16px;
}

.lang-links {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 10px;
}

/* Individual language link styling */
.lang-link {
  color: #fff; 
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
  line-height: 1;
}

#chat-container {
  display: flex;
  flex-direction: column;
  width: 98%;
  margin: 0 auto;
  border: 1px solid #ccc;
  background-color: #fff;
  background: rgba(0,0,0,0.5); /* new */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden; 
  margin-top: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) { /* Apply styles for larger screens (e.g., tablets, desktops) */
  #chat-container {
    width: 750px;        /* Fixed width for larger screens */
    max-width: 750px;    /* Ensure it doesn’t exceed specified width */
  }
  #foot-container {
    width: 750px;        /* Fixed width for larger screens */
    max-width: 750px;    /* Ensure it doesn’t exceed specified width */
  }
}

#audioPlayer {
  width: 250px;
  padding: 10px;
  float: left;
  border: none;
}

#chat-window {
  height: 500px;
  padding: 10px;
  overflow-y: auto;
  border-bottom: 1px solid #ccc;
}

#messages {
  display: flex;
  flex-direction: column;
}

.message {
  padding: 8px;
  margin: 4px 0;
  border-radius: 4px;
}

.user-message {
  align-self: flex-end;
  background-color: #007bff;
  color: #fff;
}

.user-notice {
  align-self: flex-end;
  background-color: #007bff;
  color: #fff;
}

.ai-message {
  align-self: flex-start;
  background-color: #e0e0e0;
  background: rgba(0,0,0,0.5); /* new */
  color: #fff; /* new */
  /* color: #000; */
}

.ai-notice {
  align-self: flex-start;
  background-color: #e0e0e0;
  background: rgba(0,0,0,0.5); /* new */
  color: #fff; /* new */
  /* color: #000; */
}

#user-input {
  width: calc(100% - 60px);
  padding: 11px;
  border: none;
  outline: none;
}

#button-container {
  display: flex;
  justify-content: space-between; /* Distribute space evenly between items */
  align-items: center; /* Align items vertically in the center */
  position: relative;
}

#send-button {
  width: 75px;
  height: 38px;
  border: none;
  border-radius: 5px; /* Rounded corners */
  background-color: #007bff;
  margin: 4px 2px; /* Small margins */
  color: #fff;
  font-size: 16px; /* Increase font size */
  cursor: pointer; 
}

.record-btn {   
  background-color: #32CD32; /* Tomato color */
  border: none; /* Remove borders */
  color: white; /* White text */
  height: 42px;
  text-align: center; /* Center the text */
  text-decoration: none; /* Remove underline */
  display: inline-block; /* Make the button inline */
  font-size: 16px; /* Increase font size */
  margin: 0px 2px; /* Small margins */
  margin-bottom: 4px;
  cursor: pointer; /* Pointer/hand icon */
  border-radius: 15px; /* Rounded corners */
  transition: background-color 0.3s ease; /* Smooth transition */ 
}

@media (hover: hover) {
  .record-btn:hover {
    background-color: #66d666; /* Lime Green on hover */
  }
  .recording:hover {
    background-color: #FF6347; /* Lime Green on hover */
    }
}

.recording {
  background-color: #FF4500; /* Darker tomato color when recording */
}



#foot-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 40px;
  background-color: #e0e0e0;
  background: rgba(0,0,0,0.5); /* new */
  color: #fff; /* new */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#foot-container span {
  margin: 0 4px;            /* Add margin to text elements to create space */
}
