@font-face {
  font-family: "Yellow Ginger";
  src: url('../fonts/Yellow Ginger.ttf') format("truetype");
}

#bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

#bg canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  background:  #76d17e;
  color: rgb(29, 29, 29);
  overflow: hidden;
}

#title {
  font-family: 'Yellow Ginger', Verdana, Tahoma;
  font-size: 4em;
  text-align: center;
  margin-top: 50px;
  color: rgb(218, 217, 217);
}

#subtitle {
  font-family: "Lobster", sans-serif;
  font-size: 2em;
  text-align: center;
  margin-top: 10px;
  color: rgb(192, 180, 180);
}

.squished {
  transform: scaleX(0);
}

#appointmentsContainer {
  height: 100%;
  margin-top: 82px;
  overflow-y: scroll;
  overflow-y: hidden;
  padding-bottom: 400px;
}

#leftContainer {
  position: fixed;
  top: 0;
  background: #171717;
  height: 100%;
  width: 300px;
  transition: transform 0.5s ease;
  transform-origin: left;
  z-index: 1;
}

.leftbarButton {
  cursor: pointer;
  height: 27px;
  width: 27px;
  border: none;
  z-index: 1;
}

#closeLeftbar {
  position: fixed;
  top: 7px;
  left: 8px;
  background: transparent;
  background-image: url('/static/images/sidebar.png');
  background-size: cover;
  background-repeat: no-repeat;
}

#newAppointment {
  position: fixed;
  top: 7px;
  left: 47px;
  background: transparent;
  background-image: url('/static/images/newChat.png');
  background-size: cover;
  background-repeat: no-repeat;
}

#chatContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: auto;
  margin-top: 20px;
  width: 100%;
  height: calc(100vh - 132px);
  max-width: 775px;
}

#chatArea {
  flex-grow: 1;
  margin-bottom: 40px;
  max-height: calc(85vh - 220px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y proximity;
}

#chatArea > div > div:last-child {
  scroll-snap-align: end;
}

#chatArea::-webkit-scrollbar {
  width: 12px;
}

#chatArea::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#chatArea::-webkit-scrollbar-thumb {
  background: #888;
}

#chatArea::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#chatArea::-webkit-scrollbar-button {
  display: none;
}

#chatInput {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  flex: 1;
  margin-right: 15px;
  border: none;
  outline: none;
  padding: 10px;
  background: #2F2F2F;
  color: white;
  font-size: 16px;
  border-radius: 20px;
  resize: none;
  min-height: 20px;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.5;
  box-sizing: border-box;
}

#chatInputContainer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 70%;
  max-width: 800px;
  min-height: 50px;
  max-height: 250px;
  padding: 15px;
  background: #2F2F2F;
  border-top: 1px solid #171717;
  border-radius: 30px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: height 0.2s ease;
  bottom: 15px;
}

#leftbarTitle {
  font-family: "Lobster", sans-serif;
  position: fixed;
  margin-left: 7px;
  margin-top: 50px;
  font-size: 28px;
  color: white;
}

.appointment {
  width: 200px;
  height: 43px;
  background: #ffffff;
  border-radius: 500px;
  margin-left: 10%;
  line-height: 40px;
  padding-left: 15px;
  padding-right: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-bottom: 13px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.date {
  font-family: "Lobster", sans-serif;
  font-size: 20px;
  color: #5e5e5e;
  margin-left: 15px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.appointment:hover {
  transform: scale(1.03);
}

.aiResponseContainer {
  margin-top: 15px;
  display: flex;
  width: 100%;
}

.aiPfp {
  width: 50px;
  border-radius: 100%;
  margin-left: 5px;
  margin-top: 5px;
  margin-right: 5px;
}


.aiTextContainer {
  padding-right: 15px;
  padding-left: 15px;
  word-wrap: break-word;
  width: fit-content;
  line-height: 23px;
  margin-right: 70px;
  margin-left: 5px;
  background: #2f2f2f;
  color: white;
  border-radius: 30px;
}

.userPfpContainer {

}

.userPfp {
  height: 40px;
  width: 40px;
  border-radius: 100%;
  margin-left: 5px;
  margin-top: 4px;
  margin-right: 5px;
  margin-bottom: 4px;
}

.userImg {
  max-height: 100px;
  max-width: 100px;
  width: auto;
  height: auto;
  object-fit: contain; /* This preserves aspect ratio */
}


.userResponseContainer {
  margin-top: 15px;
  display: flex;
  width: 100%;
  justify-content: right;
}

.userTextContainer {
  padding-top: 16px;
  padding-right: 15px;
  padding-left: 15px;
  padding-bottom: 16px;
  word-wrap: normal;
  width: fit-content;
  line-height: 23px;
  float: right;
  margin-left: 70px;
  margin-right: 5px;
  background: #5e5e5e;
  color: white;
  border-radius: 30px;
}

#fileUpload {
  height: 35px;
  width: 35px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background-image: url('/static/images/fileUpload.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-color: transparent;
  margin-right: 15px; /* Space between file upload and send button */
  margin-bottom: 5px;
}


#imagePreviewContainer {
  display: flex;
  align-items: center; /* Center images vertically */
  margin-right: 15px; /* Spacing from the file upload button */
  gap: 10px; /* Space between multiple images */
}

.imagePreview {
  display: inline-flex;
  align-items: center;
  position: relative; /* Add this to help position the button */
}


.imagePreview img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-right: 10px; /* Reduce from 55px to 10px */
}

.imagePreview button {
  background: transparent;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 25px;
  height: 25px;
  font-size: 16px;
  position: absolute; /* Position the button relative to preview container */
  right: 15px; /* Adjust this value to control spacing from right edge */
  top: 20%;
  transform: translateY(-50%);
}


#enterResponse {
  height: 35px;
  width: 35px;
  border: none;
  margin-bottom: 5px;
  border-radius: 50%;
  cursor: pointer;
  background-image: url('/static/images/upArrow.png');
  background-size: 75%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 775px) {
  #enterResponse {
    right: 12px;
  }
}

.language-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: #2f2f2f;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.language-switcher .globe-icon {
  font-size: 18px;
  color: white;
  padding-bottom: 2px;
}

#languageDropdown {
  position: absolute;
  opacity: 0;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  color: white;
  background-color: #2f2f2f;
  cursor: pointer;
}

#languageDropdown option {
  background-color: #2f2f2f;
  color: white;
}