@import url('https://fonts.googleapis.com/css2?family=Doto:wght@700..900&display=swap');

body {
  font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
/* From Uiverse.io by csemszepp */ 
  --s: 37px;
  --c: #0000, #f7c600 0.5deg 119.5deg, #0000 120deg;
  --g1: conic-gradient(from 60deg at 56.25% calc(425% / 6), var(--c));
  --g2: conic-gradient(from 180deg at 43.75% calc(425% / 6), var(--c));
  --g3: conic-gradient(from -60deg at 50% calc(175% / 12), var(--c));
  background: var(--g1), var(--g1) var(--s) calc(1.73 * var(--s)), var(--g2),
    var(--g2) var(--s) calc(1.73 * var(--s)), var(--g3) var(--s) 0,
    var(--g3) 0 calc(1.73 * var(--s)) #c89e09;
  background-size: calc(2 * var(--s)) calc(3.46 * var(--s));
}

.chat-container {
  width: 600px;
  height: 600px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 8px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background-color: #f7c600;
    padding: 15px;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Arial', sans-serif;
}

#language-selector {
  background-color: #e6b800;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-left: auto;
  transition: background-color 0.3s ease;
}

.chat-header {
  background-color: #f7c600;
  padding: 20px;
  color: white;
  font-size: 30px;
  display: flex;
  justify-content: space-between; 
  align-items: center; 
  font-family: 'Doto';
}

.header-title {
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
  font-size: 1.5em;
}

.pollinations-logo {
  width: 50px;  
  height: 50px;
  margin-right: 20px;
  cursor: pointer;
  vertical-align: middle; 
}

.chat-header span {
  display: flex;
  align-items: center;
}

.chat-header .icon {
  font-size: 32px; 
}

.chat-messages {
  padding: 15px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.message.bot {
  flex-direction: row;
}

.message.user {
  flex-direction: row-reverse;
}

.message-content {
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 8px;
  max-width: 70%;
  word-wrap: break-word;
  display: flex;
  align-items: center;
}

.message .icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: gray;
  margin: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

.message.bot .icon {
  background-color: #f7c600;
}

.chat-input {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #f7f7f7;
  border-top: 1px solid #ddd;
}

.chat-input input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin-right: 10px;
}

.chat-input button {
  background-color: #f7c600;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #e6b800;
}

.typing-indicator {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 12px;
}

.typing-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #f7c600;
  animation: bounce 0.6s infinite alternate;
}

.typing-circle:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-circle:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

.download-button {
  width: 40px; 
  height: 40px;
  border-radius: 50%;
  background-color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-left: 30px; 
}

.download-button:hover {
  background-color: #999;
}

.download-button img {
  width: 25px;
  height: 25px;
}

.chat-input button#clear-btn {
  background-color: #c89e09; 
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
}

.chat-input button#clear-btn:hover {
  background-color: #ff4c3b; 
}

#language-selector {
  background-color: #e6b800;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Arial', sans-serif;
  outline: none;
  transition: background-color 0.3s ease;
  margin-left: 20px;
}

#language-selector option {
  color: #333;
  background-color: #fff;
  font-weight: normal;
}

#language-selector:hover,
#language-selector:focus {
  background-color: #e6b000;
  transform: scale(1.05);
}
