body { font-family: Arial, sans-serif; margin: 0; padding: 0; box-sizing: border-box; overflow-x: hidden; /* Prevent horizontal scroll */ background-color: #004d00; /* Hijau tua */ background-color: white; } .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: #004d00; /* Dark Green */ 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: flex-start; gap: 20; /* Tambahkan jarak antar elemen */ width: 100%; margin: 20px 0; flex-wrap: wrap; } .currency-group { display: flex; flex-direction: column; flex-grow: 1; width : 100%; 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; border-radius: 50%; /* Make it round */ border: none; font-size: 20px; margin: 10px 0; height: 50px; width: 50px; display: block; justify-content: center; align-items: center; } /* Mode Mobile */ @media screen and (max-width: 768px) { .currency-select { flex-direction: column; /* Ubah jadi vertikal */ align-items: center; } #swap-btn { transform: rotate(180deg); /* Rotate arrow to vertical */ width: 50px; /* Ensure button size stays the same */ height: 50px; } .currency-group select, .currency-box input { width: 100%; /* Sesuaikan lebar dropdown dan input untuk mobile */ } } /* Mode Web */ @media screen and (min-width: 769px) { .currency-select { flex-direction: row; /* Horizontal untuk mode web */ align-items: center; } #swap-btn { transform: rotate(90deg); /* Keep arrow horizontal */ width: 50px; height: 50px; } .currency-group select { width: auto; /* Sesuaikan lebar dropdown untuk web */ } .currency-box input { width: auto; /* Sesuaikan lebar input untuk web */ } } #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: white; color: black; 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; }