/* style sheet linked to all pages on the website */

/* changes the font type and size, background color, margins, and padding */
body
{
	font-family: arial, sans-serif;
	font-size: 22px;
	background-color: #E9FFE6;
	margin-left: 25%;
	margin-right: 25%;
	margin-top: 0px;
	padding-top: 0px;
}
/* styles the header of each page*/ 
.header
{
	background-color: #3D7334;
	color: white;
	text-align: center;
	margin-left: -50%;
	margin-right: -50%;
	margin-top: -29px;
	margin-bottom: 18px;
	height: 60px;
}

/* makes the h1 line height (used in the header) taller */
h1
{
	line-height: 60px;
}

/* styles the logout button, which appears in the header whenever the user is signed in */
.logout-button
{
	position: absolute;
	top: 2px;
	right: 2px;
	height: 56px;
	font-size: 16px;
	margin: 0px;
	border: none;
	background-color: #3D7334;
	font-family: arial, sans-serif;
	color: #CCCCCC;
	cursor: pointer;
}

/* changes text color of the button when the user hovers over it */
.logout-button:hover
{
	color: white;
}

/* changes style of the button along with .input-button, and .input-button:hover */
/* centers teh button */
.button-container
{
	text-align: center;
}

/* changes the appearance of the button */
.input-button
{
  	border: 1px solid #BBBBBB;
	width: 150px;
	font-family: arial, sans-serif;
	font-size: 16px;
	color: black;
	padding-top: 12px;
	padding-bottom: 12px;
 	margin: 4px 2px;
	cursor: pointer;
}

/* changes background color of the button when the user hovers over it */
.input-button:hover
{
	background-color: #CCCCCC;
}

/* table styling inspired by https://www.w3schools.com/html/tryit.asp?filename=tryhtml_table_intro */
table
{
	border-collapse: collapse;
	width: 100%;
	margin-bottom: 10px;
}

/* styles the rows */
td, th 
{
 	border: 1px solid black;
 	text-align: left;
 	padding: 8px;
}

/* changes the padding of the profile column */
.profile-column
{
	padding: 0px;
}

/* makes it so the color alternates between white and greenish-gray */
tr:nth-child(even) 
{
 	background-color: #DDEEDD;
}

/* The following styling for radios was taken from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_custom_radio */
/* The container */
.radio-container {
 	display: block;
 	position: relative;
 	padding-left: 35px;
 	margin-bottom: 12px;
 	cursor: pointer;
 	-webkit-user-select: none;
 	-moz-user-select: none;
 	-ms-user-select: none;
 	user-select: none;
}

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

/* Create a custom radio button */
.dot {
 	position: absolute;
 	top: 0;
 	left: 0;
 	height: 24px;
 	width: 24px;
 	background-color: white;
 	border-radius: 50%;
 	border: 1px solid #BBBBBB;
}

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

/* When the radio button is checked, add a blue background */
.radio-container input:checked ~ .dot {
 	background-color: #2196F3;
 	border: none;
 	height: 26px;
 	width: 26px;
}

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

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

/* Style the indicator (dot/circle) */
.radio-container .dot:after {
 	top: 9px;
	left: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}



/* The following styling for checkboxes was taken from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_custom_checkbox */
/* The container */
.checkbox-container {
 	display: block;
 	position: relative;
 	margin-top: -12px;
 	cursor: pointer;
 	-webkit-user-select: none;
 	-moz-user-select: none;
 	-ms-user-select: none;
 	user-select: none;
}

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

/* Create a custom checkbox */
.checkmark {
 	position: absolute;
 	top: 0;
 	left: 0;
 	height: 25px;
 	width: 25px;
 	border: 1px solid #BBBBBB;
 	background-color: white;
}

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

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
 	background-color: #2196F3;
 	border: none;
 	height: 27px;
 	width: 27px;
}

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

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

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