/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  color: #8e6ccd;
}
h1.text-4xl {
    background: linear-gradient(to right, #f8fc2a, #e7ed71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mt-4.text-slate-600.text-lg {
    color: #bfdff5 !important;
}


/* Section with Background */
#search {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Video Background 
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -2;
}*/

/* Dark overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Main content */
.content {
  z-index: 1;
}

.content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Input & Button */
.input-group {
  margin-bottom: 1rem;
}
input[type="text"] {
  padding: 10px;
  width: 250px;
  border: none;
  border-radius: 5px;
  margin-right: 10px;
}
button {
  padding: 10px 20px;
  border: none;
  background-color: #00b894;
  color: rgb(148, 126, 227);
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}
button:hover {
  background-color: #019875;
}

/* Result section */
#error {
  color: #ff7675;
  display: none;
}
#stockData {
  margin-top: 1rem;
  background-color: #6cda5b1a;
  padding: 1rem;
  border-radius: 10px;
  display: none;
}
.py-16 {
  color: #dfe7ee; /* your desired font color */
}

/* Or more specific: */
 .py-16 h2 {
  color: #cbd5f7; /* e.g., a blue */
}

.py-16 p {
  color: white; /* e.g., slate gray */
}
.py-12{
    border-radius: 1rem; /* rounded-2xl */
  background: linear-gradient(
    to bottom right,
    #c0d8f9, /* blue-50 */
    #b0d1fb, /* blue-100 */
    #98c2f7  /* blue-200 */
  );
  padding: 1.5rem; /* p-6 */
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3),
              0 4px 6px -2px rgba(59, 130, 246, 0.2); /* shadow-xl */
  color: #1e293b; /* text-slate-900 */
  border: 1px solid #bfdbfe; /* border-blue-100 */
  transition: box-shadow 0.3s ease;
}

.hero{
    
  position:fixed;
  top:0;
  left:0;
  height:100vh;
  width:100vw;
  background-image:url("https://i.makeagif.com/media/8-27-2022/4ofl_j.gif");
  background-size: 120% ;
  background-position:center;
  background-repeat:no-repeat;
  z-index: -1; /* Make sure it's behind all other content */
  background-attachment: fixed; /*  Keeps image fixed on scroll */
}

/* Base News Card Styles (Dark Theme - Sky Blue Gradient to match other cards) */
#newsContainer a {
  background: linear-gradient(to bottom right, #bae6fd, #7dd3fc) !important;
  border: 1px solid #cbd5e1 !important;
  transition: all 0.3s ease;
}

#newsContainer a:hover {
  background: linear-gradient(to bottom right, #e0f2fe, #bae6fd) !important;
  border-color: #0ea5a4 !important;
  transform: translateY(-2px);
}

#newsContainer a h4 {
  color: #0f172a !important;
}

#newsContainer a p {
  color: #334155 !important;
}

#newsContainer a div {
  color: #475569 !important;
}

/* Light Theme Overrides */
body.light-theme .hero {
  background-image: none !important;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

body.light-theme {
  color: #334155 !important;
}

body.light-theme h1, 
body.light-theme h2,
body.light-theme h3 {
  color: #0f172a !important;
}

body.light-theme h1.text-4xl {
  background: linear-gradient(to right, #0d9488, #0ea5a9) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.light-theme .py-16 {
  color: #334155 !important;
}

body.light-theme .py-16 h2 {
  color: #0f172a !important;
}

body.light-theme .py-16 p {
  color: #475569 !important;
}

body.light-theme .navlink {
  color: #334155 !important;
}

body.light-theme .navlink:hover {
  color: white !important;
}

body.light-theme .navlink.active {
  color: white !important;
}

body.light-theme .mt-4.text-slate-600.text-lg {
  color: #475569 !important;
}

body.light-theme .card {
  background: linear-gradient(to bottom right, #ffffff, #f1f5f9) !important;
  border: 1px solid #cbd5e1 !important;
}

body.light-theme .card div {
  color: #0f172a !important;
}

body.light-theme .cardPrice {
  color: #0ea5a4 !important;
}

body.light-theme .text-slate-300 {
  color: #64748b !important;
}

body.light-theme #about {
  background: linear-gradient(to bottom right, #f8fafc, #f1f5f9) !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme #news a {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-color: #cbd5e1 !important;
  background-image: none !important;
}

body.light-theme #news a:hover {
  border-color: #0ea5a4 !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

body.light-theme #news h4 {
  color: #0f172a !important;
}

body.light-theme #news p {
  color: #475569 !important;
}

body.light-theme #news div {
  color: #64748b !important;
}

/* Sticky Nav theme toggle & settings toggle default styles (dark theme) */
#themeToggle {
  color: #f1f5f9 !important;
  border-color: rgba(241, 245, 249, 0.2) !important;
}

#themeToggle:hover {
  color: white !important;
}

/* Light Theme overrides for sticky nav buttons */
body.light-theme #themeToggle {
  color: #334155 !important;
  border-color: rgba(51, 65, 85, 0.2) !important;
}

body.light-theme #themeToggle:hover {
  color: white !important;
}

body.light-theme #settingsToggle {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  background-image: none !important;
}

body.light-theme #settingsToggle:hover {
  background-color: #0ea5a4 !important;
  color: white !important;
}