/* ========== BUTTONS ================ */

.rotationbutton {
	background-color: #d8ffd8;
	border: 2px solid #4CAF50;
	border-radius: 8px;
}

.rotationbutton:hover {
	background-color: #a0ffa0;
}

.resetbutton {
	background-color: #f0f0f0;
	border: 1px solid gray;
	border-radius: 8px;
}

.resetbutton:hover {
	background-color: black;
	color: white;
}

/* ========== CHECKBOXES ================
/* FROM https://www.w3schools.com/howto/howto_css_custom_checkbox.asp */

/* HTML
<label class="container">One
  <input type="checkbox" checked="checked">
  <span class="checkmark"></span>
</label>
*/

/* The container */
.container {
    display: block; /* NEW LINE FOR EACH CONTAINER */
    position: relative;
    padding-left: 22px;
   /* margin-bottom: 12px; */
    cursor: pointer;
    /* font-size: 22px; */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* border: 1px solid red; */
}

/* Hide the browser's default checkbox */
.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 12px;
    width: 12px;
    background-color: #fff;
		border: 2px solid #999
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a dark gray background */
.container input:checked ~ .checkmark {
    background-color: #222;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
    left: 4px;
    top: 0px;
    width: 2px;
    height: 7px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* ========== RADIO BUTTONS ================

/*
<h1>Custom Radio Buttons</h1>
<label class="rcontainer">One
  <input type="radio" checked="checked" name="radio">
  <span class="rcheckmark"></span><!-- CREATES BUTTON -->
</label>
*/

/* The container */
.rcontainer {
    /*display: block;*/
    position: relative;
    padding-left: 21px;
    margin-bottom: 12px;
    cursor: pointer;
    /*font-size: 22px;*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /*border: 1px solid red;*/

		color: #00c800;
		font-weight: bold; /* 700 is normal; 900 is thicker but has no effect for this font */
		font-size: 120%;
}

/* works
.rcontainer:hover {
}
*/


/* Hide the browser's default radio button */
.rcontainer input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.rcheckmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 14px;
    width: 14px;
    background-color: #fff;
    border-radius: 50%;
    border: 2px solid #0d0;
}

/* On mouse-over, add a grey background color */
.rcontainer:hover input ~ .rcheckmark {
    background-color: #bfb;
}

/* When the radio button is checked, add a GREEN background */
.rcontainer input:checked ~ .rcheckmark {
    background-color: #00e000;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.rcheckmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.rcontainer input:checked ~ .rcheckmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.rcontainer .rcheckmark:after {
 	top: 4px;
	left: 4px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: white;
}

