/* Gaya umum untuk semua elemen */ * { margin: 0; padding: 0; box-sizing: border-box; } /* Gaya untuk body */ body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #F3F4F9, #C9D6E3); display: flex; justify-content: center; align-items: center; height: 100vh; color: #333; position: relative; } /* Gaya untuk container utama */ .container { background: #ffffff; border-radius: 15px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); padding: 40px; width: 100%; max-width: 600px; text-align: center; position: relative; margin: 0 20px; } /* Gaya untuk header */ header { background-color: black; /* Latar belakang hitam */ color: white; /* Teks berwarna putih */ padding: 20px 0; /* Menambahkan padding atas dan bawah */ text-align: center; /* Menyelaraskan teks di tengah */ font-size: 24px; /* Ukuran font header */ font-weight: bold; text-transform: uppercase; /* Membuat teks menjadi huruf besar */ } /* Gaya untuk judul utama */ h1 { font-size: 2rem; margin-bottom: 20px; color: #2D3A3A; font-weight: 600; } /* Gaya untuk input dan select */ input, select { padding: 12px; margin: 10px 0; width: 100%; font-size: 16px; border-radius: 8px; border: 1px solid #E0E0E0; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; appearance: none; /* Menghapus tampilan default dropdown */ -webkit-appearance: none; /* Untuk Safari */ -moz-appearance: none; /* Untuk Firefox */ background-color: #fff; color: #555; } input:focus, select:focus { border: 1px solid #4CAF50; outline: none; box-shadow: 0 0 8px rgba(0, 180, 50, 0.2); } /* Gaya untuk selector mata uang */ .currency-selectors { display: flex; justify-content: center; align-items: center; gap: 10px; } span { font-size: 18px; font-weight: 500; color: #555; } /* Gaya untuk tombol konversi */ button { padding: 12px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 8px; width: 100%; font-size: 18px; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease; } button:hover { background-color: #45a049; } /* Gaya untuk hasil konversi */ #result { margin-top: 20px; font-size: 20px; font-weight: bold; color: #333; background-color: #f4f4f4; padding: 15px; border-radius: 8px; text-transform: uppercase; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } /* Watermark dengan Copyright (di footer) */ body::after { content: "© 2025 Teggar Eka Mustaqim Sitanggang"; font-size: 16px; font-weight: 400; color: white; background-color: black; position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: -1; opacity: 0.5; pointer-events: none; user-select: none; letter-spacing: 2px; text-transform: uppercase; padding: 5px 10px; border-radius: 5px; } /* Gaya untuk footer */ footer { background-color: black; color: white; text-align: center; padding: 10px 0; font-size: 16px; position: relative; margin-top: 20px; } /* Responsif untuk Mobile */ @media (max-width: 768px) { .container { padding: 30px; max-width: 100%; } h1 { font-size: 1.5rem; } input, select { font-size: 14px; } button { font-size: 16px; } } /* Responsif untuk tampilan yang lebih besar (Tablet ke atas) */ @media (min-width: 769px) { .container { max-width: 700px; } h1 { font-size: 2.5rem; } input, select { font-size: 18px; } button { font-size: 20px; } }