
body {
  background-color: black;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;          
}

header {
  width: 100%;
  background-color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
  box-sizing: border-box;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 2px solid white;
  padding: 20px 22px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 30px;
  color: white;
  
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 400% 400%;
  animation: rgbBackground 6s linear infinite;

  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
  font-family: "Aldrich";
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

h1:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes rgbBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.rainbow-mode{
    animation: rainbow 5s linear infinite;
}

@keyframes rainbow{
    0%{background:#ff0000;}
    16%{background:#ff8000;}
    33%{background:#ffff00;}
    50%{background:#00ff00;}
    66%{background:#00bfff;}
    83%{background:#8a2be2;}
    100%{background:#ff0000;}
}
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}
nav a {
  border: 2px solid white;
  font-family: "Pixelify Sans", sans-serif;
  text-decoration: none;
  color: white;
  padding: 11px 12px;
  border-radius: 15px;
  font-weight: bold;
  background-color: black;
  font-size: 15px;
  box-shadow: 0 0 8px rgba(218, 100, 100, 0.1);
  transition: transform 0.2s, background 0.2s;
}


nav a:hover {
  text-decoration: underline;
  transform: translateY(-2px);
}


main{

width:90%;

max-width:1000px;

margin:40px auto;

}


#suggestions{

display:flex;

flex-wrap:wrap;

justify-content:center;

gap:12px;

margin-bottom:20px;

}

.suggestion{

padding:12px 18px;

background:#111;

color:white;

border:2px solid white;

border-radius:12px;

cursor:pointer;

font-family:"Pixelify Sans",sans-serif;

transition:.3s;

}

.suggestion:hover{

background:white;

color:black;

transform:scale(1.05);

}

#chatBox{

height:500px;

overflow-y:auto;

background:#111;
color: white;
border: 2px solid white;
border-radius: 15px;
font-family: "Pixelify Sans";
padding:20px;

box-shadow:0 0 20px rgba(0,255,255,.2);

}

.botMessage{

background:#1c1c1c;
font-family: "Pixelify Sans", sans-serif;
border: 2px solid white;
padding:16px;

margin-bottom:15px;

border-radius:15px;

width:75%;

line-height:1.7;

animation:fadeIn .3s;

}

.userMessage{

background:rgb(0, 0, 0);

color:white;

padding:16px;

margin-left:auto;

margin-bottom:15px;
 border: 2px solid white;
  padding: 20px 22px;
  border-radius: 15px;
  font-weight: bold;

width:75%;

line-height:1.7;

animation:fadeIn .3s;

}

#inputArea{

display:flex;

gap:15px;

margin-top:25px;

}

#userInput{

flex:1;

padding:15px;

background:#111;

color:white;

border:2px solid white;

border-radius:12px;

font-size:16px;

font-family:"Pixelify Sans",sans-serif;

outline:none;

}

#userInput:focus{

box-shadow:0 0 12px white;

}


#sendButton,
#clearButton{

padding:15px 24px;

background:#111;

color:white;

  border: 2px solid white;
  padding: 20px 22px;
  border-radius: 15px;
  font-weight: bold;

cursor:pointer;

font-family:"Pixelify Sans",sans-serif;

transition:.3s;

}

#sendButton:hover,
#clearButton:hover{

background:white;


color:black;

transform:scale(1.05);

}


#typingIndicator{

display:none;

margin-top:15px;

font-style:italic;

color:white;

animation:pulse 1s infinite;

}


::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-thumb{

background:white;

border-radius:10px;

}

::-webkit-scrollbar-track{

background:#111;

}


@keyframes fadeIn{

from{

opacity:0;

transform:translateY(15px);

}

to{

opacity:1;

transform:translateY(0);

}

}

@keyframes pulse{

0%{

opacity:.3;

}

50%{

opacity:1;

}

100%{

opacity:.3;

}

}


@media(max-width:768px){

#inputArea{

flex-direction:column;

}

.botMessage,
.userMessage{

width:90%;

}

nav a{

display:block;

margin:10px auto;

}

}