Spaces:
Running
Running
/* Body style */ | |
body { | |
font-family: Arial, sans-serif; | |
margin: 0; | |
padding: 0; | |
background-color: #f4f4f4; | |
overflow-x: hidden; /* Prevent horizontal scroll */ | |
} | |
/* Navbar style */ | |
.navbar { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
background-color: #006400; | |
padding: 10px 20px; | |
display: flex; | |
justify-content: flex-start; | |
align-items: center; | |
z-index: 100; | |
} | |
.navbar .logo img { | |
height: 40px; | |
} | |
/* Headline Section */ | |
.headline { | |
text-align: center; | |
background-color: #004d00; | |
color: white; | |
padding: 50px 20px; | |
margin-top: 60px; | |
} | |
.headline h1 { | |
font-size: 36px; | |
font-weight: bold; | |
} | |
.headline p { | |
font-size: 18px; | |
} | |
/* Main content section */ | |
.content { | |
background-color: white; | |
padding: 40px 20px; | |
margin-top: 20px; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
.converter-container { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
width: 100%; | |
max-width: 800px; | |
margin: 0 auto; | |
padding: 30px; | |
border-radius: 12px; | |
border: 2px solid #ccc; | |
background-color: #f8f8f8; | |
} | |
/* Currency Input Boxes */ | |
.currency-box, .currency-select { | |
width: 100%; | |
margin: 15px 0; | |
display: flex; | |
flex-direction: column; | |
} | |
.currency-box label, .currency-group label { | |
font-weight: bold; | |
font-size: 16px; | |
margin-bottom: 5px; | |
} | |
.currency-box input, .currency-group select { | |
padding: 12px; | |
font-size: 16px; | |
width: 100%; | |
max-width: 400px; | |
border-radius: 8px; | |
border: 1px solid #ccc; | |
box-sizing: border-box; | |
} | |
/* Swap Button */ | |
#swap-btn { | |
background-color: #006400; | |
color: white; | |
cursor: pointer; | |
padding: 12px 20px; | |
border-radius: 50%; | |
border: none; | |
font-size: 20px; | |
margin: 10px; | |
height: 50px; | |
width: 50px; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
#swap-btn:hover { | |
background-color: #004d00; | |
} | |
/* Convert Button */ | |
#convert-btn { | |
background-color: #006400; | |
color: white; | |
cursor: pointer; | |
padding: 15px 30px; | |
font-size: 16px; | |
border: none; | |
border-radius: 8px; | |
width: 100%; | |
margin-top: 10px; | |
} | |
#convert-btn:hover { | |
background-color: #004d00; | |
} | |
/* Result display */ | |
#result { | |
font-size: 18px; | |
margin-top: 20px; | |
} | |
/* How to Use Section */ | |
.how-to-use { | |
background-color: #004d00; | |
color: white; | |
padding: 30px 20px; | |
margin-top: 20px; | |
text-align: center; | |
display: flex; | |
justify-content: center; | |
flex-direction: column; | |
} | |
.how-to-use h2 { | |
font-weight: bold; | |
margin-bottom: 20px; | |
} | |
/* Steps */ | |
.steps { | |
display: flex; | |
justify-content: center; | |
margin-top: 20px; | |
flex-wrap: wrap; | |
gap: 20px; | |
} | |
.step { | |
background-color: #e0e0e0; | |
padding: 20px; | |
margin: 10px; | |
width: 300px; | |
border-radius: 8px; | |
text-align: center; | |
} | |
.step h3 { | |
font-weight: bold; | |
} | |
/* Footer */ | |
.footer { | |
background-color: #666666; | |
color: white; | |
padding: 20px 0; | |
text-align: center; | |
margin-top: 40px; | |
border-top: 1px solid #fff; | |
} | |
.footer-content p { | |
margin: 5px 0; | |
} | |
/* Media Queries for responsiveness */ | |
@media screen and (max-width: 768px) { | |
.currency-select { | |
flex-direction: column; | |
} | |
.currency-group { | |
width: 100%; | |
max-width: 200px; | |
} | |
.steps { | |
flex-direction: column; | |
} | |
} | |
@media screen and (max-width: 480px) { | |
.currency-box input, | |
.currency-select select, | |
.currency-select button { | |
width: 100%; | |
} | |
} |