* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  overflow: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Light Mode Colors */
.containerField {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  color: #333;
  transition: background 0.5s ease, color 0.5s ease;
  position: relative;
}

/* Dark Mode Colors */
.containerField.dark-mode {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #f5f7fa;
}

/* Logo Container */
.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.logo {
  font-size: 36px;
  font-weight: bold;
  color: #6a5acd;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: float 3s infinite ease-in-out;
}

.dark-mode .logo {
  color: #8e44ad;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.mainFiled {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  gap: 20px;
}

/* Input Section - Centered Initially */
.input-container {
  display: flex;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid #ddd;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  border-radius: 12px;
  transition: all 0.5s ease;
}

.dark-mode .input-container {
  background: rgba(52, 73, 94, 0.9);
  border-top: 1px solid #444;
}

/* Input Section - Move to Bottom on Focus */
.input-container.focused {
  top: auto;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  border-radius: 12px;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  to {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
}

#inputSection {
  width: 100%;
  padding: 15px;
  border: 2px solid #6a5acd;
  border-radius: 12px;
  background: #ffffff;
  font-size: 16px;
  color: #333;
  outline: none;
  transition: background 0.5s ease, border-color 0.5s ease,
    color 0.5s ease;
}

.dark-mode #inputSection {
  background: #34495e;
  color: #f5f7fa;
  border-color: #8e44ad;
}

#inputSection::placeholder {
  color: #6a5acd;
  opacity: 0.7;
  transition: color 0.5s ease;
}

.dark-mode #inputSection::placeholder {
  color: #a8a8ff;
}

#askButton {
  padding: 15px 30px;
  border: 2px solid #6a5acd;
  border-radius: 12px;
  background: #6a5acd;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease,
    border-color 0.5s ease;
}

.dark-mode #askButton {
  background: #8e44ad;
  border-color: #8e44ad;
}

#askButton:hover {
  background: #5a4fcf;
  transform: scale(1.05);
}

.dark-mode #askButton:hover {
  background: #9b59b6;
}

#askButton:active {
  transform: scale(0.95);
}

#toggleMode {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  border: 2px solid #6a5acd;
  border-radius: 12px;
  background: #6a5acd;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease,
    border-color 0.5s ease;
}

.dark-mode #toggleMode {
  background: #8e44ad;
  border-color: #8e44ad;
}

#toggleMode:hover {
  background: #5a4fcf;
  transform: scale(1.05);
}

.dark-mode #toggleMode:hover {
  background: #9b59b6;
}

.responseSection {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 120px; /* Add padding to avoid overlap with input section */
  border-radius: 12px;
  background: #ffffff;
  color: #333;
  transition: background 0.5s ease, color 0.5s ease;
  font-family: "Courier New", Courier, monospace; /* Monospace font for better readability */
  line-height: 1.6; /* Improve readability */
  margin-top: 80px; /* Add margin to avoid overlapping with the logo */
}

.dark-mode .responseSection {
  background: #34495e;
  color: #f5f7fa;
}

/* Odd and Even Response Styling */
.odd {
  background-color: #f2f2f2; /* Light gray for odd responses */
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.dark-mode .odd {
  background-color: #2c3e50; /* Darker background for odd responses in dark mode */
}

.even {
  background-color: transparent; /* Transparent for even responses */
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}
/* Add footer styling */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid #ddd;
  font-family: "Arial", sans-serif;
  font-size: 14px;
  color: #333;
  z-index: 1000;
}

.dark-mode footer {
  background-color: rgba(52, 73, 94, 0.9);
  color: #f5f7fa;
  border-top: 1px solid #444;
}

/* Add margin to the input container to avoid overlap with the footer */
.input-container {
  margin-bottom: 60px; /* Added margin to create space above the footer */
}