CurrencyConverter5 / style.css
GarGerry's picture
Update style.css
4f6b6be verified
raw
history blame
2.61 kB
/* General Styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #1b5e20; /* Dark Green */
color: white;
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Navbar */
#navbar {
background-color: #2c6e1f; /* Dark Green */
padding: 20px;
text-align: center;
}
#navbar h1 {
margin: 0;
}
#navbar p {
margin: 5px 0;
}
/* Headline */
#headline {
background-color: #2c6e1f; /* Dark Green */
padding: 30px;
text-align: center;
}
#headline h2 {
margin: 0;
}
#headline p {
margin: 10px 0;
}
/* Currency Converter Section */
#converter {
background-color: white;
color: #333;
padding: 30px;
}
.currency-container {
display: flex;
flex-direction: column;
gap: 20px;
}
.currency-input {
display: flex;
flex-direction: column;
}
.currency-input label {
font-size: 16px;
margin-bottom: 8px;
}
.currency-input input,
.currency-input select {
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 8px;
}
/* Swap Button */
#swap-btn {
background-color: #4CAF50; /* Green */
border: none;
padding: 12px;
color: white;
cursor: pointer;
font-size: 20px;
border-radius: 50%;
margin: 10px auto;
display: block;
width: 50px;
height: 50px;
}
#swap-btn:hover {
background-color: #45a049;
}
/* Convert Button */
#convert-btn {
background-color: #4CAF50;
color: white;
padding: 15px;
font-size: 16px;
border: none;
border-radius: 8px;
cursor: pointer;
width: 100%;
}
#convert-btn:hover {
background-color: #45a049;
}
/* Result Section */
#result {
margin-top: 20px;
font-size: 1.5em;
color: #333;
text-align: center;
}
/* Step-by-Step Guide */
#how-to {
background-color: #2c6e1f; /* Dark Green */
padding: 30px;
color: white;
text-align: center;
}
.steps {
display: flex;
justify-content: space-around;
gap: 20px;
}
.step {
width: 30%;
}
.step h4 {
font-weight: bold;
margin: 10px 0;
}
.step-box {
background-color: #cccccc; /* Light Gray */
padding: 20px;
border-radius: 8px;
}
/* Footer */
footer {
background-color: #555;
color: white;
text-align: center;
padding: 10px;
}
footer a {
color: #4CAF50;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
/* Responsiveness */
@media (max-width: 600px) {
.steps {
flex-direction: column;
gap: 10px;
}
.step {
width: 100%;
}
}