/* General body styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    box-sizing: border-box;
}

/* Container for the converter */
.converter-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

h1 {
    color: #5c67f2;
    text-align: center;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    background-color: #5c67f2;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #4a54e1;
}

/* Styles for output display */
#output p {
    font-size: 16px;
    color: #444;
    margin-top: 10px;
}

#binaryOutput, #hexOutput {
    font-weight: bold;
    word-wrap: break-word; /* Ensure long outputs wrap properly */
}

/* Styling for download button */
#download-button {
    background-color: #4CAF50; /* Green */
    margin-top: 20px;
}

#download-button:hover {
    background-color: #45a049; /* Darker green */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .converter-container {
        width: 95%;
        padding: 10px;
    }

    input, select, button {
        font-size: 14px;
    }
}
