/* Resetting and global styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #D9E4EC, #F5F7FA); /* Soft gradient background */ display: flex; justify-content: center; align-items: center; height: 100vh; color: #333; position: relative; } /* Container styles for the content */ .container { background: #ffffff; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Soft shadow for elevation */ padding: 40px; width: 100%; max-width: 600px; text-align: center; margin: 0 20px; } /* Header section */ header { border-bottom: 2px solid #333; /* Header border */ padding-bottom: 15px; margin-bottom: 20px; } /* Form styles */ 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; } input:focus, select:focus { border: 1px solid #4CAF50; outline: none; box-shadow: 0 0 8px rgba(0, 180, 50, 0.2); } /* Styling for currency selectors */ .currency-selectors { display: flex; justify-content: center; align-items: center; gap: 10px; } span { font-size: 18px; font-weight: 500; color: #555; } /* Button styles */ 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; } /* Result box styles */ #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); } /* Footer section styles */ footer { border-top: 2px solid #333; /* Footer border */ padding-top: 15px; margin-top: 20px; } /* Responsiveness for mobile screens */ @media (max-width: 768px) { .container { padding: 30px; max-width: 100%; } h1 { font-size: 1.5rem; } input, select { font-size: 14px; } button { font-size: 16px; } } /* Responsiveness for larger screens */ @media (min-width: 769px) { .container { max-width: 700px; } h1 { font-size: 2.5rem; } input, select { font-size: 18px; } button { font-size: 20px; } }