/* frontend/style.css */

body { 
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-image: url('kuvat/suomen-taustakuva1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  overflow: hidden;
}

.back-arrow {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  cursor: pointer;
}

.chat-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbox {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#sendBtn {
  margin-top: 10px;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  background-color: #0066cc;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.chat-history {
  overflow-y: auto;
  flex-grow: 1;
  margin: 15px 0;
  text-align: left;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.info-box {
  background-color: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 14px;
  min-height: 60px;
  max-height: 160px;
  overflow-y: auto;
}

.bottom-icons {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 16px;
}

.bottom-icons img {
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.bottom-icons img:hover {
  transform: scale(1.1);
}

/* Loader-animaatio: kolmen pisteen vuorottelu */
.loader {
  font-weight: bold;
  font-size: 1.2em;
  letter-spacing: 0.1em;
}

.new-convo-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background: #eee;
  cursor: pointer;
  z-index: 10;
}
.new-convo-btn:hover {
  background: #ddd;
}
