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; padding: 10px 20px; display: flex; justify-content: flex-start; align-items: center; } .navbar .logo img { height: 40px; } .headline { text-align: center; background-color: #004d00; 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; } .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: center; align-items: center; width: 100%; margin: 20px 0; flex-wrap: wrap; } .currency-group { display: flex; flex-direction: column; margin: 10px; flex-grow: 1; width: 100%; max-width: 180px; } .currency-group label { font-weight: bold; font-size: 16px; } .currency-group select { padding: 10px; font-size: 16px; width: 100%; border-radius: 8px; border: 1px solid #ccc; box-sizing: border-box; } #swap-btn { background-color: #006400; color: white; cursor: pointer; padding: 12px 20px; border-radius: 50%; border: none; font-size: 20px; margin: 10px; 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; 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; justify-content: center; margin-top: 20px; flex-wrap: wrap; gap: 20px; } .step { background-color: #e0e0e0; padding: 20px; margin: 10px; width: 300px; 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; } .currency-group { width: 100%; max-width: 200px; } .steps { flex-direction: column; } .currency-box input, .currency-select select, .currency-select button { width: 100%; } .currency-select button { margin: 10px 0; } } @media screen and (max-width: 480px) { .currency-box input, .currency-select select, .currency-select button { width: 100%; } }