CurrencyConverter5 / style.css
GarGerry's picture
Update style.css
228c131 verified
raw
history blame
2.42 kB
/* Global Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
box-sizing: border-box;
}
/* Navbar */
.navbar {
background-color: #004d00; /* Dark Green */
padding: 10px 20px;
display: flex;
justify-content: flex-start;
align-items: center;
position: fixed;
width: 100%;
top: 0;
left: 0;
}
.logo img {
height: 40px;
}
/* Headline */
.headline {
margin-top: 70px;
text-align: center;
background-color: #004d00; /* Dark Green */
color: white;
padding: 20px;
}
.headline h1 {
margin: 0;
font-size: 36px;
}
.headline p {
font-size: 18px;
}
/* Main Content */
.content {
margin: 40px auto;
max-width: 600px;
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.currency-box,
.currency-group,
.steps {
margin-bottom: 15px;
}
.currency-box label,
.currency-group label,
.steps h3 {
font-weight: bold;
display: block;
margin-bottom: 5px;
}
.currency-box input,
.currency-group select,
.currency-box button {
width: 100%;
padding: 10px;
margin: 5px 0;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
.currency-group select,
.currency-box input {
width: 100%;
}
.swap-btn {
font-size: 24px;
cursor: pointer;
padding: 10px;
background-color: #004d00;
border: none;
border-radius: 50%;
color: white;
display: flex;
justify-content: center;
align-items: center;
}
.converter-container button {
background-color: #004d00;
color: white;
border: none;
padding: 15px;
border-radius: 5px;
width: 100%;
cursor: pointer;
}
.steps {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.step {
background-color: #f0f0f0;
padding: 15px;
margin: 10px;
border-radius: 5px;
width: 30%;
text-align: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Footer */
.footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
margin-top: 40px;
}
/* Responsive Design */
@media (max-width: 768px) {
.steps {
flex-direction: column;
}
.step {
width: 100%;
}
}
/* How to use box alignment */
.how-to-use .steps {
display: block;
margin-top: 20px;
}