body {
  box-sizing: border-box;
  font-family: "schoolbell", cursive;
  background-color: #121212;
  color: #e0e0e0;
  display: flex;
  height: 100svh;
  width: 100vw;
  margin: 0;
  font-size: 16px;
  overflow: hidden; /* Prevent body from scrolling */
  letter-spacing: 0.1em;
}

.sidebar {
  width: 250px;
  background-color: #1e1e1e;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  font-size: 14px;
  overflow-y: auto; /* Enable vertical scrolling */
  position: relative; /* Added for positioning menu-icon */
  border-right: solid 1px #333;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Add transform and opacity for smooth slide animation */
}

a {
  text-decoration: none;
  color: #00be8e;
}

a:hover {
  color: #55ffd5;
}

#intro {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #121212;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensures it stays on top */
  animation: fadeOut 1s 1.5s forwards; /* Fades out after 3 seconds */
}

.intro-logo {
  width: 150px;
  height: 150px;
  animation: spin 3s linear;
}

.intro-text {
  color: #00bf8f;
  font-size: 50px;
  margin-top: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Hide scrollbar for WebKit browsers */
.sidebar::-webkit-scrollbar {
  width: 0;
  background: transparent; /* Optional: just make scrollbar invisible */
}

/* Hide scrollbar for Firefox */
.sidebar {
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for IE and Edge */
.sidebar {
  -ms-overflow-style: none; /* IE and Edge */
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  padding: 15px 20px;
  cursor: pointer;
}

.sidebar li:hover {
  background-color: #333;
}

.green-item {
  color: #00bf8f;
}

.main-container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.header {
  background-color: transparent;
  color: #e0e0e0;
  padding: 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
}

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

.header h1 {
  margin: 0;
  font-size: 24px;
}

.header .arrow {
  margin-left: 10px;
  font-size: 24px;
  cursor: pointer;
}

.chat-window {
  box-sizing: border-box;
  flex: 1;
  height: 80%;
  padding: 5% 18%;
  overflow-y: auto; /* Enable vertical scrolling */
  display: flex;
  flex-direction: column;
  font-size: 18px;
  background-color: #121212;
}

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

.chat-message.user {
  justify-content: flex-end;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ccc;
  margin-right: 10px;
  background-size: cover;
  background-position: center;
}

.bot-avatar {
  background-image: url("image/chatgpt-logo.png");
}

.user-avatar {
  background-image: url("image/ape.png");
}

.message {
  max-width: 70%;
  padding: 10px;
  border-radius: 10px;
  background-color: #1e1e1e;
  color: #e0e0e0;
}

.chat-message.user .message {
  background-color: #333;
}

.footer {
  display: flex;
  padding: 10px 18%;
  background-color: transparent;
  border-top: non;
}

.input-box {
  flex: 1;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 5px;
  margin-right: 10px;
  font-size: 20px;
  font-family: "schoolbell", cursive;
  background-color: #333;
  color: #e0e0e0;
}

.input-box:focus {
  outline: none;
}

.send-button {
  padding: 10px 15px;
  border: none;
  background-color: #00be8e;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 20px;
  font-family: "schoolbell", cursive;
}

.send-button:hover {
  background-color: #0056b3;
}

@keyframes blink {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

.loading {
  display: inline-block;
}

.loading span {
  animation: blink 1.4s infinite both;
  background-color: #007bff;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin: 0 1px;
  width: 8px;
}

.loading span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading span:nth-child(3) {
  animation-delay: 0.4s;
}

.burger-btn {
  display: none;
  border: none;
  background-color: transparent;
  color: #00be8e;
  transform: rotate(90deg); /* Rotate 90 degrees */
  letter-spacing: 0.1em;
  margin-right: 1em;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    height: 100vh;
    width: 50vw; /* Adjust width for smaller screens */
    transform: translateX(-100%); /* Initially hide sidebar */
    opacity: 0; /* Initially hide sidebar */
  }

  .sidebar.open {
    transform: translateX(0); /* Slide in when open */
    opacity: 1; /* Make sidebar visible when open */
  }

  .burger-btn {
    display: flex; /* Show burger button on mobile */
  }

  .chat-window {
    padding: 10px;
    font-size: 16px;
  }

  .footer {
    padding: 5px;
  }

  .input-box {
    font-size: 16px;
  }

  .send-button {
    font-size: 16px;
  }

  .sidebar ul {
    display: none; /* Hide sidebar items */
  }

  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 4px 0;
    transition: all 0.3s ease;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 70vw; /* Adjust width for very small screens */
  }

  .header h1 {
    font-size: 18px;
  }

  .chat-window {
    padding: 5%;
    font-size: 14px;
  }

  .footer {
    padding: 5px;
  }

  .input-box {
    font-size: 14px;
  }

  .send-button {
    font-size: 14px;
  }
}

.sidebar ul {
  display: block; /* Show sidebar items */
}

.sidebar {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Smooth slide transition */
}
