* {
	margin: 0;
	padding: 0;

	font-family: "Open Sans", sans-serif;
	scroll-behavior: smooth;
	word-wrap: break-word;
}

/* background for the home page */
.bg {
	background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url(../images/background.jpg);
	background-repeat: no-repeat;
	position: relative;
	background-size: cover;
	background-position: top;
}

body {
	position: relative;
	min-height: 100vh;
	z-index: -10;
}

/* all content execept the footer */
.content {
	/* adds some padding to add some space between footer and content */
	padding-bottom: 8rem;
	background-color: white;
}

/* navbar */
nav {
	top: 0;
	width: 100%;
	position: fixed;
	height: 6rem;
	background-size: cover;
	background-position: top;
}

nav:not(.nav-home) {
	border-bottom: 20px solid #68a063;
	background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url(../images/background.jpg);
}

.nav__items {
	list-style-type: none;
	padding: 2.5rem 2.5rem 2.5rem 0;
}

.nav__logo {
	margin-bottom: 1rem;
	float: left;
}

.nav__logo img {
	width: 200px;
	height: auto;
	color: #68a063;
	padding: 1rem 0 1rem 2rem;
}

#hamburger {
	padding: 0.5rem;
	border-radius: 0 2px 0 0;
	width: 2rem;
	height: auto;
	margin: 1.5rem 2rem 0 0;
	float: right;
	color: #303030;
}

.nav__items {
	background-color: #68a063;
	padding: 0 0 20px 0;
	display: none;
	clear: left;
}

.nav-home .nav__items {
	padding-top: 20px;
}

.nav--active .nav__items {
	display: block;
}

.nav__items li {
	padding: 5px 0;
}

.nav__items li.active {
	background-color: #3c873a;
}

.nav__items li a {
	width: 100%;
	display: block;
	padding: 0 40px;
	text-decoration: none;
	color: black;
}

/* general elements */
p {
	margin-top: 1rem;
	line-height: 1.6053;
}

article a {
	color: #68a063;
	text-decoration: underline;
}

/* Sperate style for links within the page */
.groups-list a {
	text-decoration-style: dotted;
}

a:hover {
	color: #a7bbec;
	transition: 0.5s ease;
}

ul,
ol {
	padding-left: 2rem;
	list-style-position: outside;
}

/* ul elements nested in another list */
.nested-list {
	padding-left: 3rem;
}

article {
	margin: 6rem auto 0 auto;
	padding: 4rem 0;
	width: 85%;
}

section {
	margin-top: 2rem;
}

/* Used as a position to scroll to using the links within a page */
.anchor {
	position: relative;
	visibility: hidden;
	display: block;
	top: -9rem;
}

/* styling for the home page */
.title--home {
	position: absolute;
	bottom: 43%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.h1-page {
	font-size: 1.5em;
}

.h2-page {
	font-size: 1.15em;
}

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

.home-page {
	position: absolute;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);

	z-index: -1;
}

.home-btn {
	border: 1px solid #68a063;
	color: #68a063;
	text-decoration: none;
	transition: 0.6s ease;
	background-color: transparent;
	font-size: 1rem;
	margin-bottom: 1rem;
}

.home-btn a {
	padding: 2rem;
	display: block;
	text-decoration: none;
	text-align: center;
}

.home-btn a:hover {
	background-color: #68a063;
	color: #000;
}

.h1-home {
	color: #68a063;
	font-size: 5em;
	text-align: center;

	margin-bottom: 2rem;
}

/* in-line code snippets and code blocks */
code {
	font-family: Consolas, "courier new";
	background-color: #e3e3e3;
	border-radius: 3px;
}

.code-block {
	background-color: #303030;
	padding: 5px 8px;
	border-radius: 3px;
}

.code-block code {
	color: white;
	background-color: transparent;
	padding: 2px;
	font-size: 0.9em;

	line-height: 1;
}

/* image styling */
figure {
	overflow-x: auto;
}

figure img {
	margin: 2rem auto;
	display: block;
	max-width: 1000px;
	width: 621px;
	height: auto;
}

/* styling for the table */
.table-container {
	overflow-x: auto;
}

table {
	border-collapse: collapse;
	margin: 0 auto;
}

table th,
table td {
	padding: 0.45rem;
	text-align: left;
	border-right: 1px dotted white;
}

table th {
	padding: 0.2em;
	padding-right: 0.4em;
}

table a {
	color: black;
}

tbody tr:nth-child(odd) {
	background-color: #68a063;
}

tbody tr:nth-child(even) {
	background-color: white;
}

/* styling for the footer */
footer {
	background-color: #303030;
	margin: auto;
	padding: 40px 20px;
	display: flex;
	justify-content:center;
	align-content: center;
	flex-wrap: wrap-reverse;
	color:#ddd
}

.footer-home{
	top: 100vh;
	position: relative;
}

.footer--extra-space{
	top:10vh;
	position: relative;
}

footer p {
	padding: 0 1em;
}

.copyright {
	font-size: 1rem;
}

footer a {
	color: inherit;
}

footer #darkmode-button {
	margin-top: 1rem;
	padding: 0.25em 0.5em;
}

footer select, footer button {
	width: fit-content;
	font-size: 0.9em;
}

footer .button-txt-size {
	width: 2em;
}


/* styles for darkmode */
.body--darkmode{
	background-color: #444;
}

.body--darkmode .content,
.body--darkmode tbody tr:nth-child(even) {
	background-color: #444;
	color: white;
}

.body--darkmode code {
	background-color: #303030;
}

.body--darkmode tr:nth-child(even) a {
	color: white;
}

.body--darkmode tbody tr:nth-child(odd) {
	color: black;
}

.body--darkmode table th,
.body--darkmode table td {
	border-color: #444;
}

/* Assessment CSS */
#assessment {
	font-size: 2em;
}

.assessment-questions .assessment-question {
	margin: 1rem 0 !important;
	width: 100%;

	padding: 1rem;
	border: 1px solid black;
	border-radius: 3px;
}

.assessment-questions .assessment-question h2 {
	font-size: 1.5em;
	font-weight: 300;

	margin-bottom: 1.5em;
}

.assessment-questions .assessment-question ul {
	list-style-type: none;
	padding: 0;
}

.assessment-questions .assessment-question ul li {
	border: 1px solid black;
	padding: 1rem;
	margin-bottom: 0.5rem;

	transition: background-color 0.25s;
}

.assessment-questions .assessment-question ul li:hover,
.assessment-questions .assessment-question ul li.selected {
	background-color: #333;
	color: white;
	
	cursor: pointer;
}

.assessment-questions .assessment-question ul li.answered-correctly {
	background-color: #68a063 !important;
	color: white;
}

.assessment-questions .assessment-question ul li.answered-incorrectly {
	background-color: indianred !important;
	color: white;
}

.body--darkmode .assessment-questions .assessment-question {
	border: 1px solid #ddd;
}

.body--darkmode .assessment-questions .assessment-question ul li {
	border: 1px solid white;
}

.body--darkmode .assessment-questions .assessment-question ul li:hover,
.body--darkmode .assessment-questions .assessment-question ul li.selected {
	background-color: #ddd;
	color: black;
}

.assessment-questions .assessment-question p {
	margin-bottom: 1rem;
}

.assessment-questions .assessment-question .check-btn {
	padding: 0.35rem 0.6rem;
	font-size: 1rem;
	color:#000;
	background: #68a063;
	border: none;
	font-weight: 500;
	outline: none;
	border-radius: 30px;
}

.assessment-questions .assessment-question .check-btn:hover {
	background: #356C33;
	cursor: pointer;
}

.assessment-questions .assessment-question input.correct {
	background-color: #68a063 !important;
}

.assessment-questions .assessment-question input.incorrect {
	background-color: indianred !important;
}

/* styles for regular navbar */
.nav--full #hamburger {
	display: none;
}

.nav--full .nav__items {
	display: block;
	float: right;
	list-style-type: none;
	background-color: transparent;
	clear: none;
	padding-top: 20px;
	color: #68a063;
}

.nav--full .nav__items li {
	display: inline-block;
}

.nav--full .nav__items li.active {
	background-color: transparent;
}

.nav--full .nav__items li a {
	text-decoration: none;
	width: inherit;
	color: inherit;
	padding: 0.5rem 2rem;
}

.nav--full .nav__items li a:hover {
	background-color: #68a063;
	color: #000;
	transition: 0.6s ease;
}

.nav--full .nav__items li.active a {
	background-color: #68a063;
	color: #000;
}

.source a{
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.border{
	width: 100%;
	height: 4px;
	background: #68a063;
}
footer button
{
	padding: 5px;
	font-size: 1rem;
	color:#000;
	background: #68a063;
	border: none;
	font-weight: 500;
	outline: none;
	border-radius: 30px;
	margin-left: 20px;
}

footer button:hover{
	background: #356C33;
	cursor: pointer;
}

footer section{
	width: 100%;
	text-align: center;
}

.darkmode-btn{
	margin-top: 1rem;
	padding: 18px 40px;
}
.custom-select{
	position: relative;
	width: auto;
	height: auto;
}
.selector__footer {
  	background-color: #68a063;
	border-radius: 5px;
	margin-left: 20px;
	font-size: 1rem;
	padding: 0 .5em;
}

.txt-Color-Div {
	width: 100%;
	padding: 10px 0 0 20px;
}

.bg-Color-Div{
	width: 100%;
	padding: 10px 0 0 20px;
}

footer h1{
	font-size: 2rem;
}

input[type="color"]{
	margin-left: 7px;
}



/* media query for tablet */
@media only screen and (min-width: 900px) {
	article {
		width: 69%; /* nice */
	}

	.buttons {
		display: flex;
	}

	.buttons > * {
		flex: 1;
		margin: 0 1rem;
	}

	figure img {
		width: 100%;
	}

	footer section{
		width: 28%;
		text-align: left;
	}
	.border{
		width: 100px;
	}
	
	.menu-block{
		margin-left: 3rem;
	}

	.footer-home{
		top: 80vh;
		position: relative;
	}
}

/* media query for desktop */
@media only screen and (min-width: 1200px) {

	article {
		width: 50%;
	}

	.home-page {
		top: 40%;
	}
}
