|
|
|
body { |
|
font-family: Arial, sans-serif; |
|
margin: 0; |
|
padding: 0; |
|
background-color: #1b5e20; |
|
color: white; |
|
display: flex; |
|
justify-content: center; |
|
align-items: flex-start; |
|
height: 100vh; |
|
overflow-y: auto; |
|
} |
|
|
|
|
|
.container { |
|
width: 100%; |
|
max-width: 800px; |
|
background-color: #fafafa; |
|
border-radius: 30px; |
|
padding: 30px; |
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
|
margin-top: 20px; |
|
min-height: 600px; |
|
} |
|
|
|
|
|
header { |
|
text-align: center; |
|
margin-bottom: 20px; |
|
} |
|
|
|
header h1 { |
|
font-size: 32px; |
|
color: #4CAF50; |
|
margin: 10px 0; |
|
} |
|
|
|
header p { |
|
color: #777; |
|
font-size: 16px; |
|
} |
|
|
|
|
|
.currency-container { |
|
display: flex; |
|
flex-direction: column; |
|
gap: 20px; |
|
} |
|
|
|
|
|
.currency-input { |
|
display: flex; |
|
flex-direction: column; |
|
width: 100%; |
|
} |
|
|
|
|
|
.currency-labels { |
|
display: flex; |
|
flex-direction: column; |
|
align-items: stretch; |
|
margin-bottom: 15px; |
|
} |
|
|
|
.currency-labels label { |
|
font-size: 16px; |
|
color: #333; |
|
display: block; |
|
} |
|
|
|
|
|
input, select { |
|
padding: 15px; |
|
width: 100%; |
|
max-width: 100%; |
|
margin-bottom: 20px; |
|
border-radius: 8px; |
|
border: 1px solid #ddd; |
|
background-color: #f5f5f5; |
|
color: #333; |
|
} |
|
|
|
|
|
button#swap-btn { |
|
background-color: #4CAF50; |
|
border: none; |
|
padding: 12px; |
|
color: white; |
|
cursor: pointer; |
|
font-size: 20px; |
|
border-radius: 50%; |
|
margin: 10px auto; |
|
display: block; |
|
width: 50px; |
|
height: 50px; |
|
} |
|
|
|
button#swap-btn:hover { |
|
background-color: #45a049; |
|
} |
|
|
|
|
|
select { |
|
-webkit-appearance: none; |
|
-moz-appearance: none; |
|
appearance: none; |
|
padding-right: 30px; |
|
background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-down-fill" viewBox="0 0 16 16%3E%3Cpath d="M3.646 5.646a.5.5 0 0 1 .708 0L8 9.293l3.646-3.647a.5.5 0 1 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 0-.708z"/%3E%3C/svg%3E'); |
|
background-position: right 10px center; |
|
background-repeat: no-repeat; |
|
background-size: 12px; |
|
} |
|
|
|
|
|
button#convert-btn { |
|
background-color: #4CAF50; |
|
color: white; |
|
padding: 15px; |
|
font-size: 16px; |
|
border: none; |
|
border-radius: 8px; |
|
cursor: pointer; |
|
width: 100%; |
|
margin-top: 20px; |
|
} |
|
|
|
button#convert-btn:hover { |
|
background-color: #45a049; |
|
} |
|
|
|
|
|
footer { |
|
text-align: center; |
|
margin-top: 20px; |
|
font-size: 0.9em; |
|
color: #777; |
|
} |
|
|
|
footer a { |
|
color: #4CAF50; |
|
text-decoration: none; |
|
} |
|
|
|
footer a:hover { |
|
text-decoration: underline; |
|
} |
|
|
|
#result { |
|
margin-top: 20px; |
|
font-size: 1.5em; |
|
color: #333; |
|
text-align: center; |
|
} |
|
|
|
|
|
@media (max-width: 600px) { |
|
.container { |
|
width: 90%; |
|
padding: 15px; |
|
} |
|
|
|
header h1 { |
|
font-size: 24px; |
|
} |
|
|
|
header p { |
|
font-size: 14px; |
|
} |
|
|
|
input, select, button { |
|
padding: 12px; |
|
font-size: 14px; |
|
} |
|
|
|
button#swap-btn { |
|
width: 45px; |
|
height: 45px; |
|
} |
|
} |
|
|
|
|
|
@media (min-width: 601px) and (max-width: 900px) { |
|
.container { |
|
width: 80%; |
|
padding: 20px; |
|
} |
|
|
|
header h1 { |
|
font-size: 28px; |
|
} |
|
|
|
input, select, button { |
|
padding: 14px; |
|
} |
|
} |
|
|
|
|
|
@media (min-width: 901px) { |
|
.container { |
|
width: 70%; |
|
padding: 30px; |
|
} |
|
|
|
header h1 { |
|
font-size: 32px; |
|
} |
|
} |
|
|