/* Basic layout */ body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #121212; color: white; display: flex; justify-content: center; align-items: flex-start; height: 100vh; overflow-y: auto; /* Allow scrolling */ } .container { width: 100%; max-width: 800px; background-color: #1e1e1e; border-radius: 10px; padding: 20px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); margin-top: 20px; overflow: hidden; /* Ensure content does not overflow container */ } header { display: flex; flex-direction: column; align-items: center; padding-bottom: 20px; text-align: center; border-bottom: 1px solid #ddd; } header .logo img { width: 50px; } header h1 { font-size: 24px; color: white; } header p { color: #a1a1a1; font-size: 14px; } /* Content section */ .content { overflow-y: auto; /* Allow scroll if content overflows */ max-height: 500px; padding: 20px; } .converter input, .converter select { padding: 10px; width: 100%; margin-bottom: 10px; border-radius: 5px; border: 1px solid #ddd; } button { background-color: #4CAF50; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; margin-top: 10px; } button:hover { background-color: #45a049; } button#swap-btn { background-color: transparent; border: 1px solid #4CAF50; padding: 8px; color: #4CAF50; cursor: pointer; } button#swap-btn:hover { background-color: #4CAF50; color: white; } /* Footer styling */ footer { text-align: center; margin-top: 20px; font-size: 0.9em; color: #a1a1a1; } footer a { color: #4CAF50; text-decoration: none; } footer a:hover { text-decoration: underline; } #result { margin-top: 20px; font-size: 1.2em; }