body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    margin: 0;
    font-family: sans-serif;
}
#chatbox {
    height: 100vh;
    width: 100vw;
    max-height: 84vh;
    min-width: 100vw;
    padding-bottom: 19vh;
    margin-top: -1vh;
    overflow-y: auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    transition: 0.5s ease-in-out;
    background-color: transparent;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #1f2937;
  }
  
  /* WebKit scrollbar styling */
  #chatbox::-webkit-scrollbar-track {
    background-color: #1f2937;
    border-radius: 10px;
  }
  
  #chatbox::-webkit-scrollbar-thumb {
    background-color: #3b82f6;
    border-radius: 10px;
    border: 2px solid #1f2937;
  }
  
  #chatbox::-webkit-scrollbar-thumb:hover {
    background-color: #2563eb;
  }
  
  #chatbox::-webkit-scrollbar {
    width: 6px;
  }
  
  /* Hide scrollbar visually but keep scroll functionality */
  #chatbox.no-scrollbar {
    scrollbar-width: none; /* Firefox */
  }
  
  #chatbox.no-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }  

.container{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.body {
    height: 100vh;
    place-self: center;
    display: none;
    justify-content: center;
    width: 100vw;
    align-items: center;
    background: #000;
    overflow: hidden;
    position: relative;
    z-index: 30;
}
.container{
    position: absolute;
    top: 20%;
    height: 60%;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
}
@media (min-width: 1024px) {
    .container{
        position: absolute;
        top: 20%;
        height: 60%;
        width: 55vw;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 30;
    }
}
.circle{
    position: absolute;
    cursor: pointer;
    background: transparent;
    width: calc(var(--i) * 2.5vmin);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid #0000ff;
    transform-style: preserve-3d;
    transform: rotateX(70deg) translateZ(50px);
    animation: animate 3s ease-in-out calc(var(--i) * 0.10s) infinite;
    box-shadow: 0 0 15px #666;
    z-index: 30;
}
@keyframes animate{
    0%, 100%{
        transform: rotateX(70deg) translateZ(50px) translateY(0);
        filter: hue-rotate(0);
    }
    50%{
        transform: rotateX(70deg) translateZ(50px) translateY(-50vmin);
        filter: hue-rotate(360deg);
    }
}
/* General styles for .input-section */
.input-section {
    position: fixed;
    bottom: 0;
    width: 100vw !important;
    background-color: #4b5563;
    padding: 7px 10px 0px 10px;
    border-radius: 20px 20px 0px 0px;
    transition: transform 0.3s ease-in-out;
    z-index: 17;
    left: 0;
    right: 0; /* This ensures the element is horizontally centered */
}

/* Specific styles for screens wider than 1024px */
@media (min-width: 1024px) {
    .input-section {
        width: 60vw !important; /* Set the width of the input section */
        margin: 0 auto !important; /* Centers the input section */
    }

    .input-section.focused {
        transform: translateY(-10px); /* Moves the input section up when focused */
    }
}


.icon-active {
    color: #3b82f6 !important;
    transition: color 0.3s ease-in-out;
}
#comicons{
    font-size: 120%;
}

.user-message {
    background-color:#4b5563;
    color: #fff;
    padding: 12px;
    margin: 8px 0;
    border-radius: 20px 20px 0 20px;
    display: grid;
    max-width: 50%;
    min-width: 10%;
    width: fit-content;
    justify-self: right;
    cursor: default;
    align-self: flex-end;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.ai-message {
    background-color:transparent;
    color: #fff;
    padding: 12px;
    border-radius: 20px;
    max-width: 98%;
    min-width: 15%;
    max-height:300000000000vh;
    cursor: default;
    place-self: center;
    width: fit-content;
    word-wrap: break-word;
    overflow-wrap: break-word;
    align-self: flex-start;
}

@media (min-width: 1024px) {
    .ai-message {
        background-color: transparent;
        max-height:300000000000vh;
        color: #fff;
        padding: 12px;
        border-radius: 20px;
        box-shadow:2px 2px 2px #999;
        max-width: 80%;
        min-width: 15%;
        cursor: default;
        place-self: center;
        width: fit-content;
        word-wrap: break-word;
        overflow-wrap: break-word;
        align-self: flex-start;
    }
}
@media (min-width: 1024px) {
    .loading {
        display: flex;
        align-items: center;
        justify-content:left;
        margin-top: 9px;
        margin-left: 12vw;
    } 
}
.loading {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-top: 9px;
}

.loading span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background-color: #3b82f6;
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}
.loading span:nth-child(2) {
    animation-delay: 0.2s;
}
.loading span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}
#userInput {
    padding: 8px 10px;
    background: #4b5563;
    outline: none;
    width: 98%;
    overflow-y: auto;
    margin-bottom: 7vh;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #1f2937;
}
#userInput::-webkit-scrollbar-track {
    background-color: #1f2937;
    border-radius: 10px;
}
#userInput::-webkit-scrollbar-thumb {
    background-color: #3b82f6;
    border-radius: 10px;
    border: 2px solid #1f2937;
}
#userInput::-webkit-scrollbar-thumb:hover {
    background-color: #2563eb;
}
#userInput::-webkit-scrollbar {
    width: 6px;
}

#linkButton:hover {
    background: #1D4ED8;
    transition: 0.4s ease-in-out;
    transform: rotateY(360deg);
}
#web:hover {
    transition: 0.4s ease-in-out;
    background: #1D4ED8;
}
#web:hover #globe {
    transition: 0.4s ease-in-out;
    transform: rotateY(360deg);
}
#chatbox:empty {
    display: none;
}
#logo, #nav, #web, #logo2 {
    cursor: pointer;
}
#logo2, #logo{
color:#1D4ED8;
}
#logo, #logo2 {
    border:.2px solid #fff;
    outline:none;
    border-radius:50%;
    padding:5px;
    margin-top:1vh;
}
#logo:hover, #nav:hover {
    transition: 0.8s ease-in-out;
    transform: scale(1.3);
    color:#1D4ED8;
}
#sendButton, #linkButton, #nav, #web {
    outline:none;
    border:none;
}
#name {
    margin-top:1vh;
}
#nav {
   font-weight:bold;
    margin-top:1vh;
    transition: transform 0.6s ease-in-out, color 0.3s ease-in-out;
}
#policyPopup, #supportPopup {
    cursor: default;
}
#navbar {
    position: fixed;
    top: 0;
    right: -80%;
    width: 55%;
    height: 100vh;
    background: #1a202c;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.5s ease-in-out;
    z-index: 20;
}
#navbar.active {
    right: 0;
}
@media (min-width: 1024px) {
    #navbar {
        width: 25%;
    }
}
#cancelNav {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}
#cancelNav:hover {
    color: #3b82f6;
}
#empty {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100vw;
    text-align: center;
    top: 50%;
    left: 50%;
    margin-top: -9vh;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 15;
}
#logo3 {
    font-size: 100px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    padding: 17px;
    place-self: center;
    z-index: 15;
}
@media (min-width: 1024px) {
    #logo3 {
        font-size: 300px;
    }
}
#logo3:hover {
    animation: shake 600ms ease-in-out;
    transform: scale(1.05);
    color:#1D4ED8;
}
@keyframes shake {
    0%{rotate: -360deg;}
    25%{rotate: 25deg;}

50%{rotate: -25deg;}
    75%{rotate: 25deg;}
    100%{rotate: 360deg;}
}
#greetings {
    font-size: 30px;
    font-weight: 600;
    cursor: default;
    color: #fff;
    z-index: 30;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
}
#messagelawn {
    font-size: 20px;
    z-index: 30;
    font-weight: 300;
    cursor: default;
    color: #999; 
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
}
#sendButton {
    border-radius: 50%;
    color: #fff;
}
#sendButton:hover {
    transition: 0.4s ease-in-out;
    transform: scale(1.3) rotate(360deg);
}
#nav.active {
    transform: rotateY(360deg);
    color: #3b82f6 !important;
}
#nav:hover{
    color: #3b82f6;
}
#refresh {
    background: #4b5563;
    border-radius: 25px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    padding: 7px;
    font-weight: 500;
}
#refresh:hover {
    transition: .8s ease-in-out;
    padding: 12px;
    background: #2563eb;
    color: #1e293b;
}
/* Typing animation */
@keyframes typing {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Apply the animation to the greeting text */
.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #fff; /* Cursor effect */
    width: 0;
    animation: typing 3s steps(30) 1s forwards; /* Adjust the duration and steps */
}
.ai-message {
    font-family: Arial, sans-serif; /* for normal text */
  }
  
  pre code {
    font-family: 'Courier New', monospace; /* for code blocks */
  }
  .markdown-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.95em;
    background-color:#111827;
}
.markdown-table th,
.markdown-table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}
.markdown-table thead {
    background-color: #d1d1d1;
    font-weight: bold;
}
.ai-message a{
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    background: none;
    box-shadow: none !important;
}
#a{
    color: #4b5563;
    background: none;
}
#micButton{
font-size: 17px;
border:none;
outline:none;
}
   /* Overlay background */
    .custom-alert-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: none; /* hidden by default */
      z-index: 9999;
    }

    /* Alert box (centered) */
    .custom-alert-box {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      background: #0f172a;
      padding: 20px;
      border-radius: 12px;
      width: 320px;
      text-align: center;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
      font-family: sans-serif;
      animation: fadeIn 0.3s ease;
    }

    /* Message */
    .custom-alert-message {
      margin-bottom: 15px;
      font-size: 16px;
      color: #fff;
    }

    /* Button */
    .custom-alert-button {
      background: #3b82f6;
      color: white;
      padding: 8px 16px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      transition: background 0.2s ease;
    }

    .custom-alert-button:hover {
      background: #6484ed;
        scale:1.5;
    }

    @keyframes fadeIn {
      from {opacity: 0; transform: translate(-50%, -50%) scale(0.9);}
      to {opacity: 1; transform: translate(-50%, -50%) scale(1);}
    }
