Testinghh / style.css
GarGerry's picture
Update style.css
08fa787 verified
raw
history blame
1.69 kB
/* General body styling */
body {
font-family: 'Arial', sans-serif;
background-color: #001d57; /* Dark blue background */
color: #ffffff; /* White text */
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
/* Card container */
.currency-converter {
background-color: #ffffff;
color: #001d57;
border-radius: 15px;
padding: 20px 25px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
max-width: 400px;
width: 100%;
}
/* Header styling */
.currency-converter h1 {
font-size: 24px;
margin-bottom: 10px;
text-align: center;
}
/* Input and select fields */
.currency-converter input,
.currency-converter select {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 10px;
font-size: 16px;
}
/* Swap button styling */
#swapButton {
background-color: #eaf3ff;
border: none;
border-radius: 50%;
padding: 10px;
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
margin: 10px auto;
cursor: pointer;
}
#swapButton:hover {
background-color: #d3e6ff;
}
#swapButton img {
width: 20px;
height: 20px;
}
/* Convert button */
.currency-converter button {
width: 100%;
background-color: #007bff;
border: none;
color: white;
padding: 10px;
border-radius: 10px;
font-size: 16px;
cursor: pointer;
}
.currency-converter button:hover {
background-color: #0056b3;
}
/* Result styling */
#result {
margin-top: 20px;
font-size: 18px;
font-weight: bold;
text-align: center;
}
/* Footer */
footer {
margin-top: 20px;
font-size: 12px;
text-align: center;
color: rgba(255, 255, 255, 0.7);
}