/* Hexadecimal to CSS rgb() Tool
 * ----------------------------- */

.hexadecimal-to-css-rgb-tool {
    max-width: 480px;
}

.hexadecimal-to-css-rgb-tool__input-area {
    margin-bottom: 2rem;
}

.hexadecimal-to-css-rgb-tool__input-area label {
    display: block;
    margin-bottom: 0.5rem;
}

.hexadecimal-to-css-rgb-tool__input {
    display: block;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-family: monospace;
    font-size: 1rem;
    border: 1px solid #333;
}

.hexadecimal-to-css-rgb-tool__convert-button {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.hexadecimal-to-css-rgb-tool__result-area {
    margin-bottom: 2rem;
}

.hexadecimal-to-css-rgb-tool__result-area[data-show="no"] {
    display: none;
}

.hexadecimal-to-css-rgb-tool__result {
    font-family: monospace;
    font-size: 1.125rem;
    min-height: 1.5em;
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
    box-sizing: border-box;
}

.hexadecimal-to-css-rgb-tool__result[data-show="no"] {
    display: none;
}

.hexadecimal-to-css-rgb-tool__error {
    color: #a00;
    margin: 0 0 0.75rem;
}

.hexadecimal-to-css-rgb-tool__error[data-show="no"] {
    display: none;
}

.hexadecimal-to-css-rgb-tool__swatch {
    width: 96px;
    height: 96px;
    border: 1px solid #333;
    box-sizing: border-box;
}

.hexadecimal-to-css-rgb-tool__swatch[data-show="no"] {
    display: none;
}
