Test / style.css
Farhad9849's picture
Update style.css
2f81b19
raw
history blame
1.54 kB
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f4f4f4;
}
header {
background-color: #007bff;
color: #fff;
padding: 20px 0;
text-align: center;
}
header h1 {
font-size: 2.5rem;
}
nav ul {
list-style: none;
padding-top: 10px;
}
nav ul li {
display: inline;
margin-right: 20px;
}
nav ul li a {
color: #fff;
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease-in-out;
}
nav ul li a:hover {
color: #ffc107;
}
section {
margin: 20px 0;
padding: 20px;
background: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
section h2 {
color: #007bff;
margin-bottom: 10px;
}
footer {
background-color: #343a40;
color: #fff;
text-align: center;
padding: 10px 0;
margin-top: 20px;
}
/* Contact Form Styles */
#contact-form {
max-width: 500px;
margin: auto;
}
#contact-form label {
display: block;
margin: 10px 0 5px;
}
#contact-form input, #contact-form textarea {
width: 100%;
padding: 8px;
margin-bottom: 10px;
border: 1px solid #ccc;
}
#contact-form button {
display: block;
width: 100%;
padding: 10px;
background-color: #28a745;
color: white;
border: none;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
}
#contact-form button:hover {
background-color: #218838;
}