ishmeet-yo's picture
Update static/style.css
bf8d320 verified
/* Base reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Page background */
body {
min-height: 100vh;
background: radial-gradient(circle at top, #1b1b2f, #0f0f1a);
font-family: "Inter", sans-serif;
color: #e6e6f0;
}
/* Main container */
.container {
max-width: 850px;
margin: 60px auto;
padding: 40px;
}
/* Title */
h1 {
font-family: "Playfair Display", serif;
font-size: 3rem;
text-align: center;
color: #f5d78e;
letter-spacing: 1px;
}
.subtitle {
text-align: center;
margin-top: 10px;
margin-bottom: 40px;
color: #c7c7d9;
}
/* Form */
form {
display: flex;
gap: 12px;
margin-bottom: 30px;
}
input {
flex: 1;
padding: 14px 16px;
border-radius: 10px;
border: none;
font-size: 1rem;
outline: none;
background: #111122;
color: #fff;
}
input::placeholder {
color: #8f8fa8;
}
button {
padding: 14px 24px;
border-radius: 10px;
border: none;
font-size: 1rem;
cursor: pointer;
background: linear-gradient(135deg, #f5d78e, #caa64b);
color: #1a1a1a;
font-weight: 500;
}
button:hover {
opacity: 0.9;
}
/* Current answer box */
.answer-box {
margin-bottom: 30px;
padding: 20px;
border-radius: 14px;
background: rgba(20, 20, 40, 0.85);
border-left: 4px solid #f5d78e;
}
/* History */
.history {
margin-top: 40px;
}
.history h2 {
font-family: "Playfair Display", serif;
color: #f5d78e;
margin-bottom: 20px;
}
/* History cards */
.history-item {
background: rgba(10, 10, 25, 0.85);
border-radius: 14px;
padding: 20px;
margin-bottom: 18px;
border-left: 3px solid rgba(245, 215, 142, 0.6);
box-shadow: inset 0 0 16px rgba(255, 215, 100, 0.04);
animation: fadeIn 0.4s ease;
}
.history-question {
font-weight: 500;
color: #f5d78e;
margin-bottom: 10px;
}
.history-answer {
font-size: 0.95rem;
line-height: 1.6;
color: #e6e6f0;
}
/* Footer */
.footer {
margin-top: 50px;
text-align: center;
font-size: 0.85rem;
color: #9a9ab3;
}
.footer span {
color: #f5d78e;
}
/* Animation */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}