GarGerry's picture
Update style.css
366fbf0 verified
raw
history blame
4.5 kB
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
overflow-x: hidden; /* Prevent horizontal scroll */
}
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #006400; /* Green */
padding: 10px 20px;
display: flex;
justify-content: flex-start;
align-items: center;
}
.navbar .logo img {
height: 40px;
}
.headline {
text-align: center;
background-color: #004d00; /* Dark Green */
color: white;
padding: 50px 20px;
margin-top: 60px;
}
.headline h1 {
font-size: 36px;
font-weight: bold;
}
.headline p {
font-size: 18px;
}
.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;
box-sizing: border-box;
}
.currency-box {
margin: 10px 0;
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-start; /* Align left */
}
.currency-box label {
font-weight: bold;
font-size: 16px;
margin-bottom: 5px;
}
.currency-box input {
padding: 15px;
font-size: 16px;
width: 100%;
max-width: 400px;
border-radius: 8px;
border: 1px solid #ccc;
box-sizing: border-box;
}
.currency-select {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px; /* Tambahkan jarak antar elemen */
width: 100%;
margin: 20px 0;
flex-wrap: wrap;
}
.currency-group {
display: flex;
flex-direction: column;
flex-grow: 1;
max-width: 300px; /* Lebar maksimum untuk dropdown */
}
.currency-group label {
font-weight: bold;
font-size: 16px;
margin-bottom: 5px;
}
.currency-group select {
padding: 15px; /* Sesuaikan padding */
font-size: 16px;
width: 100%;
border-radius: 8px;
border: 1px solid #ccc;
box-sizing: border-box;
}
#swap-btn {
background-color: #006400; /* Dark Green */
color: white;
cursor: pointer;
padding: 12px 20px;
border-radius: 50%; /* Make it round */
border: none;
font-size: 20px;
margin: 10px 0;
height: 50px;
width: 50px;
display: flex;
justify-content: center;
align-items: center;
}
#swap-btn i {
font-size: 24px;
}
#swap-btn:hover {
background-color: #004d00;
}
#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 {
font-size: 18px;
margin-top: 20px;
}
.how-to-use {
background-color: #004d00; /* Dark Green */
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 {
display: flex;
flex-direction: row; /* Default horizontal */
justify-content: center;
margin-top: 20px;
flex-wrap: wrap;
gap: 20px; /* Tambahkan jarak antar kotak */
}
.step {
background-color: #e0e0e0;
padding: 20px;
margin: 10px;
flex: 1 1 300px; /* Ukuran fleksibel dengan lebar minimum */
border-radius: 8px;
text-align: center;
}
.step h3 {
font-weight: bold;
}
.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 screen and (max-width: 768px) {
.currency-select {
flex-direction: column; /* Ubah jadi vertikal */
align-items: center;
}
.steps {
flex-direction: column; /* Kotak menjadi vertikal */
align-items: center; /* Tengah untuk tampilan mobile */
}
.currency-group {
max-width: 100%; /* Lebar penuh untuk mode mobile */
}
}
@media screen and (max-width: 480px) {
.currency-box input,
.currency-select select,
.currency-select button {
width: 100%;
}
.steps {
gap: 15px; /* Kurangi jarak antar kotak di layar kecil */
}
}