Spaces:
Running

project1 / style.css
rid2244's picture
Create style.css
d07806d verified
Raw History Blame Contribute Delete
2.15 kB
/* Base Style Overhauls */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f8f9fa;
color: #333;
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Global Navbar Styling */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #1e293b;
padding: 1rem 2rem;
color: #fff;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: #38bdf8;
}
.nav-links a {
color: #cbd5e1;
text-decoration: none;
margin-left: 1.5rem;
padding: 0.5rem;
transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
color: #38bdf8;
border-bottom: 2px solid #38bdf8;
}
/* Structural Components */
.hero, .content-section {
max-width: 800px;
margin: 3rem auto;
padding: 2rem;
background: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
h1, h2, h3 {
margin-bottom: 1rem;
color: #0f172a;
}
p, ul {
margin-bottom: 1.5rem;
line-height: 1.6;
}
/* Button & Form UI elements */
button {
background-color: #2563eb;
color: white;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
}
button:hover {
background-color: #1d4ed8;
}
.output-box {
margin-top: 1rem;
padding: 1rem;
border-radius: 4px;
background-color: #f1f5f9;
}
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}
.card {
background: #f1f5f9;
padding: 1rem;
border-radius: 6px;
border-left: 4px solid #2563eb;
}
form {
display: flex;
flex-direction: column;
}
label {
margin-bottom: 0.5rem;
font-weight: 600;
}
input, textarea {
margin-bottom: 1rem;
padding: 0.5rem;
border: 1px solid #ccc;
border-radius: 4px;
}
/* Universal Footer */
footer {
margin-top: auto;
background-color: #0f172a;
color: #94a3b8;
text-align: center;
padding: 1rem;
font-size: 0.9rem;
}