/**
 * Dev Maritime — Content Protector
 * Disables text selection via CSS
 */

/* Disable text selection on all elements except form fields */
body *:not(input):not(textarea):not([contenteditable]) {
    -webkit-user-select: none !important;
    -moz-user-select:    none !important;
    -ms-user-select:     none !important;
    user-select:         none !important;
}

/* Disable image dragging */
img {
    -webkit-user-drag: none;
    user-drag:         none;
    pointer-events:    none;
}

/* Re-enable pointer events on links and buttons */
a, button, input, textarea, select, label, [role="button"] {
    pointer-events: auto !important;
}

/* Disable highlight color */
::selection {
    background: transparent !important;
    color: inherit !important;
}
::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}
