NEWS_SCRAPING / static /style.css
sakshi116's picture
Upload 5 files
0f779b0 verified
body {
font-family: 'Poppins', sans-serif;
background: radial-gradient(circle at top left, #0f2027, #203a43, #2c5364);
color: #fff;
margin: 0;
padding: 0;
min-height: 100vh;
}
header {
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
background: rgba(0, 0, 0, 0.5);
box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3);
}
.logo {
width: 50px;
margin-right: 10px;
}
.container {
max-width: 900px;
margin: 2rem auto;
padding: 1rem;
}
.input-card {
background: rgba(255, 255, 255, 0.1);
border-radius: 15px;
padding: 1rem;
backdrop-filter: blur(10px);
box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}
select,
button {
width: 100%;
padding: 10px;
margin: 10px 0;
border: none;
border-radius: 10px;
font-size: 1rem;
}
button {
background: cyan;
color: black;
cursor: pointer;
transition: all 0.3s;
}
button:hover {
background: #00ffcc;
transform: scale(1.05);
}
.news-results {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
margin-top: 2rem;
}
.news-card {
background: rgba(255, 255, 255, 0.1);
border-radius: 15px;
padding: 1rem;
cursor: pointer;
transition: transform 0.3s;
}
.news-card:hover {
transform: scale(1.05);
box-shadow: 0 0 15px cyan;
}
.popup {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
}
.popup.hidden {
display: none;
}
.popup-content {
background: #111;
border-radius: 15px;
padding: 2rem;
max-width: 600px;
text-align: center;
color: white;
}
.popup-content img {
width: 100%;
border-radius: 10px;
}
#closePopup {
position: absolute;
top: 15px;
right: 25px;
font-size: 1.5rem;
cursor: pointer;
}