MedhaCodes's picture
Update static/style.css
19502b9 verified
/* ---------- GLOBAL STYLES ---------- */
body {
font-family: 'Poppins', sans-serif;
background: linear-gradient(to bottom right, #bfdbfe, #a5b4fc);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
/* ---------- CARD CONTAINER ---------- */
.container {
background: rgba(255, 255, 255, 0.9);
border-radius: 35px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
backdrop-filter: blur(10px);
border: 1px solid rgba(147, 197, 253, 0.3);
padding: 2rem;
}
/* ---------- INPUT AREA ---------- */
textarea {
border-radius: 30px;
border: 1px solid #c7d2fe;
background-color: #eef2ff;
padding: 1rem 1.25rem;
font-size: 1.05rem;
color: #1e293b;
width: 100%;
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.05);
resize: vertical;
transition: all 0.25s ease;
}
textarea:focus {
outline: none;
border-color: #6366f1;
background-color: #e0e7ff;
box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}
/* ---------- BUTTON ---------- */
button {
font-weight: 700;
border: none;
border-radius: 30px;
background: linear-gradient(90deg, #2563eb, #7c3aed, #9333ea);
color: white;
padding: 1rem;
width: 100%;
font-size: 1.15rem;
letter-spacing: 0.5px;
box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
transition: all 0.3s ease;
}
button:hover {
transform: scale(1.03);
box-shadow: 0 8px 18px rgba(99, 102, 241, 0.4);
background: linear-gradient(90deg, #3b82f6, #8b5cf6, #a855f7);
}
/* ---------- ANSWER BOX ---------- */
#answer-box {
background: linear-gradient(to bottom right, #eef2ff, #e0f2fe);
border: 1px solid #c7d2fe;
border-radius: 30px;
padding: 1.25rem;
font-size: 1.05rem;
color: #1e293b;
max-height: 350px;
overflow-y: auto;
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}
/* ---------- HISTORY BOX ---------- */
#history-list {
max-height: 200px;
overflow-y: auto;
}
#history-list li {
background: linear-gradient(to right, #e0e7ff, #f3e8ff);
padding: 0.9rem 1.2rem;
border-radius: 20px;
cursor: pointer;
transition: all 0.25s ease;
font-weight: 500;
}
#history-list li:hover {
transform: scale(1.03);
background: linear-gradient(to right, #c7d2fe, #ddd6fe);
}
/* ---------- SCROLLBAR ---------- */
#answer-box::-webkit-scrollbar,
#history-list::-webkit-scrollbar {
width: 8px;
}
#answer-box::-webkit-scrollbar-thumb,
#history-list::-webkit-scrollbar-thumb {
background-color: rgba(99, 102, 241, 0.6);
border-radius: 6px;
}
/* ---------- TYPING EFFECT ---------- */
.typing {
border-right: 3px solid #6366f1;
white-space: nowrap;
overflow: hidden;
animation: typing 3s steps(40, end), blink 0.8s infinite;
}
@keyframes typing {
from { width: 0; }
to { width: 100%; }
}
@keyframes blink {
50% { border-color: transparent; }
}
/* ---------- SHIMMER LOADING ---------- */
.shimmer {
background: linear-gradient(
100deg,
rgba(255,255,255,0) 20%,
rgba(255,255,255,0.6) 50%,
rgba(255,255,255,0) 80%
);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
height: 80px;
border-radius: 25px;
margin-bottom: 10px;
}
@keyframes shimmer {
100% { background-position: -200% 0; }
}
/* ---------- TITLES ---------- */
h1, h2 {
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
textarea, button {
font-size: 1rem;
}
h1 {
font-size: 1.9rem;
}
h2 {
font-size: 1.4rem;
}
}