MyWebsite / style.css
CBMARMY's picture
Update style.css
e81b6e7 verified
body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
background-color: #0e0e0e;
color: #ffffff;
line-height: 1.6;
}
header {
background-color: #111;
padding: 20px;
text-align: center;
position: sticky;
top: 0;
z-index: 10;
}
header h1 {
margin: 0;
font-size: 2.8em;
}
nav {
margin-top: 10px;
}
nav a {
color: #ccc;
text-decoration: none;
margin: 0 12px;
font-weight: bold;
}
nav a:hover {
color: #00ccff;
}
#hero {
position: relative;
}
#hero img {
width: 100%;
height: auto;
display: block;
filter: brightness(0.8);
}
.hero-text {
position: absolute;
bottom: 30px;
left: 40px;
color: #fff;
background: rgba(0, 0, 0, 0.6);
padding: 20px;
border-radius: 10px;
}
section {
padding: 60px 20px;
text-align: center;
}
section ul {
list-style: none;
padding: 0;
margin-top: 20px;
}
section ul li {
margin: 10px 0;
font-size: 1.1em;
}
h2 {
font-size: 2em;
margin-bottom: 15px;
}
a {
color: #00ccff;
}
footer {
background-color: #111;
padding: 20px;
text-align: center;
font-size: 0.9em;
color: #888;
}