:root {
    --primary-orange: #ff7f00;
    --text-dark: #333333;
    --bg-light: #f9f9f9;
    --border-color: #ddd;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Exo', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-container {
    background: #ffffff;
    max-width: 1170px;
    width: 100%;
    padding: 40px;
}

h1 {
    font-family: 'Exo', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #000;
}

.converter-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .converter-box {
        flex-direction: row;
        align-items: center;
    }
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* Slight rounded corners for inputs */
    font-family: 'Pontano Sans', sans-serif;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.controls {
    display: flex;
    flex-direction: column;
    /* Stack buttons vertically */
    justify-content: center;
    gap: 15px;
    /* Space between buttons */
}

button#convert-btn,
button#reset-btn,
button#binary-convert-btn,
button#binary-reset-btn {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 15px 30px;
    font-family: 'Exo', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    border-radius: 4px;
    width: 100%;
    /* Ensure buttons are same width if container constrains */
}

button#convert-btn:hover,
button#reset-btn:hover,
button#binary-convert-btn:hover,
button#binary-reset-btn:hover {
    background-color: #e67300;
}