#form {

    --sans-font: sans-serif;
    --bg: #fff;
    --accent-bg: #f5f7ff;
    --text: #212121;
    --text-light: #585858;
    --border: #212121; 
    --accent: #0d47a1;
    --accent-light: #90caf9;
    --disabled: #efefef;

    /* Dark theme (disabled because it doesn't play nice with PayPal IFrames) */
    @media (prefers-color-scheme: dark) {
	--bg: #fff;
	--accent-bg: #f5f7ff;
	--text: #212121;
	--text-light: #585858;
	--border: #212121;     /* d8dae1; */
	--accent: #0d47a1;
	--accent-light: #90caf9;
	--disabled: #efefef;
    } 

    color: var(--text);
    background: var(--bg);
    font-family: var(--sans-font);
    margin: 0 auto;
    max-width: 45rem;
    padding: 0 0.5rem;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
    
    a button,
    button,
    [role="button"],
    input::file-selector-button,
    input[type="submit"],
    input[type="reset"],
    input[type="button"] {
	border: none;
	border-radius: 5px;
	background: var(--accent);
	font-size: 1rem;
	color: var(--bg);
	padding: 0.7rem 0.9rem;
	margin: 0.5rem 0.5rem 0.5rem 0.5rem;
	transition: 0.4s;
    }
    
    button[disabled] {
	cursor: default;
	opacity: 0.5;
	cursor: not-allowed;
    }
    
    input:disabled,
    textarea:disabled,
    select:disabled {
	cursor: not-allowed;
	background-color: var(--disabled);
    }
    
    input[type="range"] {
	padding: 0;
    }
    
    button:focus,
    button:enabled:hover,
    [role="button"]:focus,
    [role="button"]:not([aria-disabled="true"]):hover,
    input[type="submit"]:focus,
    input[type="submit"]:enabled:hover,
    input[type="reset"]:focus,
    input[type="reset"]:enabled:hover,
    input[type="button"]:focus,
    input[type="button"]:enabled:hover,
    input[type="checkbox"]:focus,
    input[type="checkbox"]:enabled:hover,
    input[type="radio"]:focus,
    input[type="radio"]:enabled:hover {
	opacity: 0.8;
	cursor: pointer;
    }
    
    textarea,
    select,
    input {
	font-size: inherit;
	font-family: inherit;
	padding: 0.5rem;
	margin-bottom: 0.5rem;
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 5px;
	box-shadow: none;
	box-sizing: border-box;
	width: 60%;
    }
    
    select[multiple] {
	background-image: none !important;
    }
    
    /* checkbox and radio button style */
    input[type="checkbox"],
    input[type="radio"] {
	vertical-align: bottom;
	position: relative;
    }

    /* Make the textarea wider than other inputs */
    textarea {
	width: 80%;
    }
    
    /* Makes input fields wider on smaller screens */
    @media only screen and (max-width: 720px) {
	textarea,
	select,
	input {
	    width: 100%;
	}
    }

    /* Ensures the checkbox and radio inputs do not have a set width like other input fields */
    input[type="checkbox"],
    input[type="radio"] {
	width: auto;
	transform: scale(1.2);
    }
    
    /* do not show border around file selector button */
    input[type="file"] {
	border: 0;
    }
    
    /* Without this any HTML using <fieldset> shows ugly borders and has additional padding/margin. (Issue #3) */
    fieldset {
	border: 0;
	padding: 0;
	margin: 0;
    }
}
