/*
 * MIT License
 * 
 * Copyright (c) 2016 Mitesh Shah
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

/* Derived from: Sakura.css v1.5.1
 * ================
 * Minimal css theme.
 * Project: https://github.com/oxalorg/sakura/
 */

/*
 * Note: sakura.css redefines 1rem, and uses media queries based on px, whereas we want to
 * use the browser-default definition of 1rem (either 16px or a value chosen by the
 * user) and use media queries based on rem (better for accessibility).
 * See: https://www.joshwcomeau.com/css/surprising-truth-about-pixels-and-accessibility/
 */

/* Body */
html {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body {
	font-size: 1.1rem;
	line-height: 1.6;
	color: #4a4a4a;
	background-color: #f9f9f9;
}

/* Shrink all text on small mobile screens */
@media (max-width: 24rem) {
	body {
		font-size: 1.0rem;
	}
}
@media (max-width: 19rem) {
	body {
		font-size: 0.9rem;
	}
}
@media (max-width: 15rem) {
	body {
		font-size: 0.8rem;
	}
}

h6, .h6 {
	line-height: 1.1;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	font-weight: 700;
	margin-top: 1.4rem;
	margin-bottom: 0.9rem;
	padding-top: 0.5rem;
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-word;
}

h6, .h6 {
	font-size: 1em;
}

code {
	font-size: 0.9em;
	padding: 0 0.5em;
	background-color: #f1f1f1;
	white-space: pre-wrap;
}


textarea {
	width: 100%;
}

textarea, select, input {
	color: #4a4a4a;
	padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
	margin-bottom: 10px;
	background-color: #f1f1f1;
	border: 1px solid #f1f1f1;
	border-radius: 4px;
	box-shadow: none;
	box-sizing: border-box;
}
textarea:focus, select:focus, input:focus {
	border: 1px solid #1d7484;
	outline: 0;
}

input[type=checkbox]:focus {
	outline: 1px dotted #1d7484;
}

label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 600;
}
