/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ======== DON'T CHANGE ANYTHING ABOVE THIS LINE ======== */



/* MY STYLESHEET STARTS HERE*/
/* General */
:root {
  --font-color: #0a0a0a;
  --bg-color: #f5f5f5;
}
[data-theme="dark"] {
    --font-color: #f5f5f5;
    --bg-color: #0a0a0a;
}
body {
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 1.1em;
	line-height: 1.5;
	background-color: var(--bg-color);
	color: var(--font-color);
	padding: 1em;
}
h1, h2, h3, h4, h5 {
	font-family: 'Roboto Mono', monospace;
}
/* Links */
a, a:link, a:visited, a:hover, a:active, a:focus {
	display: block;
	text-decoration: none;
	color: var(--font-color);
}
main div:first-child p a {
	text-decoration: underline;
	display: inline-block;
}

/* Dark-light mode */
.theme-switch-wrapper {
  display: flex;
  justify-content: end;
}
.theme-switch-wrapper em {
	margin-left: 10px;
	padding-top: 3px;
}
.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}
.theme-switch input {
  display:none;
}
.slider {
  background-color: #0a0a0a;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}
.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
}
#about .slider:before {
  background-color: #478bff;
}
#coursework .slider:before {
  background-color: #478bff;
}
#work .slider:before, #casestudy .slider:before {
  background-color: #ff6666;
}
input:checked + .slider {
  background-color: #f5f5f5;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider.round {
  border-radius: 15px;
}
.slider.round:before {
  border-radius: 50%;
}

/* - - WORK PAGE- - */
/*header*/
header p {
	font-size: 1.9em;
	text-align: center;
	color: #0a0a0a;
	background-color: #478bff;
	border-radius: 50%;
	width: 70px;
	margin: 0 auto;
	margin-top: .7em;
}
header p a, header p a:link, header p a:visited, header p a:hover, header p a:active, header p a:focus {
	color: #0a0a0a;
}
header h1 {
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	font-weight: 500;
	text-align: center;
	font-size: 1.9em;
}
header nav {
	text-align: center;
	margin: 1em 0;
	font-size: 1.2em;
}
header nav ul li {
	margin-top: .5em;
	margin-bottom:.3em;
	color: #ff6666;
	font-weight: 500;
}
header nav a, header nav a:link, header nav a:visited {
	display: block;
	color: #fafafa;
	background-color: #0a0a0a;
	padding: .5em;
	margin-bottom: .3em;
	text-decoration: none;
	border-radius: 5px;
}
header nav a:hover, header nav a:active, header nav a:focus {
	color: var(--font-color);
	background-color: var(--bg-color);
}

/* Work Page - Index */
main {
	margin-bottom: 2em;
}
main div:first-child {
	margin-bottom: 1em;
}
main div:first-child p {
	background-color: #ff6666;
	padding: .8em .5em;
	color: #0a0a0a;
} /*Introduction paragraph*/
main div h2 {
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	color: var(--font-color);
	padding-left: .2em;
	font-size: 2.5em;
	margin-bottom: -24px;
}
section {
	background-color: #0a0a0a;
	color: #f5f5f5;
	margin-bottom: 1.8em;
	border-style: solid;
	border-width: 2px;
  border-color: #ff6666;
	border-radius: 15px;
}
section img {
	width: 100%;
	height: auto;
	background-color: #ff6666;
	border-radius: 15px 15px 0 0;
}
section div {
	padding: .5em;
}
section a, section a:link, section a:visited {
	background-color: #ff6666;
	width: 150px;
	padding: .3em;
	margin-top: .5em;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
	border-radius: 15px;
}
section a:hover, section a:active, section a:focus {
	background-color: #f5f5f5;
	color: #ff6666;
}
section h3 {
	font-family: 'Roboto Mono', monospace;
	font-size: 1.4em;
	text-align: center;
	margin-bottom: .3em;
	line-height: 1.2;
}
section p {
	text-align: center;
	font-weight: 300;
}

/*Case Study page*/
#casestudy main a {
	display: inline-block;
	text-decoration: underline;
}
#casestudy main p, #casestudy main ul {
	padding-bottom: .7em;
}
#casestudy main div:first-child h2 + p {
	padding-bottom: .1em;
}
#casestudy main h3 {
	font-size: 1.4em;
}
#casestudy main h4 {
	font-size: 1.15em;
}
#casestudy main ul {
	list-style: circle;
	list-style-position: inside;
}
#casestudy main div {
	margin-bottom: 1.2em;
}
#casestudy main img {
	width: 100%;
	height: auto;
	margin-top: .5em;
	margin-bottom: .5em;
}
em {
	font-weight: 500;
}

/* Coursework Page */
#coursework header nav ul li {
	color: #478bff;
}
#coursework main {
	margin-top: 1em;
}
#coursework main div:first-child p {
	background-color: #478bff;
}
#coursework main h3, #about main h3 {
	font-size: 1.4em;
	padding-top: .8em;
}
#coursework main h4 {
	font-size: 1.2em;
	padding-top: .5em;
}
#coursework main div {
	display: block;
}
#coursework main div:first-child + div a:hover {
	color: #478bff;
}
#coursework div ul {
	display: flex;
	flex-wrap: wrap;
	column-gap: 20px;
	justify-content: center;
}
#coursework div ul li a{
  color: #478bff;
}
#coursework div ul li a:hover{
  text-decoration: line-through;
}
#coursework main dl dt a {
	font-size: 1.1em;
	font-weight: 500;
	text-decoration: underline;
}
#coursework main dl + a {
	color: #478bff;
	width: 175px;
	margin-top: .5em;
}
#coursework footer a {
	color: #478bff;
	text-decoration: underline;
	font-size: 1.3em;
}
#coursework main svg {
	width: 30px;
	float: left;
	margin-top: 22px;
	margin-right: 12px;
}
#coursework main dd a {
	text-decoration: underline;
	display: inline-block;
}

/* About Page */
#about header nav ul li {
	color: #478bff;
}
#about main div:first-child + div {
	display:block;
}
#about main div:first-child p {
	background-color: #478bff;
}
#about main h3 {
	margin-bottom: .4em;
}
#about dt {
	font-weight: 500;
}
#about dd {
	margin-bottom: .8em;
}
/* Contact*/
#contact header nav ul li {
	color: #f2ca72;
}
#contact div:first-child + div {
	display:block;
}
#contact div .svg-icon {
	width: 2.5em;
	height: 2.5em;
	float: left;
	margin-top: -8px;
	margin-right: 1em;
}
#contact div h3 {
	margin-bottom: .4em;
	padding-top: 0;
	font-size: 1.2em;
}
#contact dl {
	margin-bottom: 1.5em;
}
#contact div:first-child + div a:hover {
	color: #478bff;
}
#contact a {
	width: 350px;
	text-decoration: underline;
}

/* Footer */
footer div {
	display: flex;
	justify-content: center;
}
footer p {
	font-size: .8em;
	text-align: center;
	margin-top: .7em;
}
/* SVG Icons - svgicons.sparkk.fr */
footer .svg-icon {
  width: 30px;
  height: 30px;
	margin-top: -5px;
}
.svg-icon path,
.svg-icon polygon,
.svg-icon rect {
  fill: var(--font-color);
}
.svg-icon circle {
  stroke: #090a0a;
  stroke-width: 1;
}

/* Error Page */
#error main div:first-child p {
	background-color: #e6814e;
	margin-bottom: 1em;
}
#error main div:first-child + div {
	margin-bottom: 2em;
}
#error main div a {
	display: inline-block;
	color: #e6814e;
	text-decoration: underline;
}

/* ----------- THREE DESIGN MINI WEBSITE - Done at the beginning of the year ------------ */
/*Layout*/
#three-designs {
  width: 80%;
	max-width: 960px;
	min-width: 320px;
	margin: 0 auto;
  background-color: #EDD4BA;
	font-family: 'Roboto', Arial, Helvetica, Time, sans-serif;
	font-weight: 300;
	font-size: 1em;
	line-height: 1.5;
	color:#573208;
}
#three-designs p {
  margin-top: .8em;
}
#three-designs footer {
  margin-top: 2em;
  margin-bottom: 2em;
	color: #CB8533;
  font-size: small;
}
/*Typography*/
#three-designs h1, #three-designs h2, #three-designs h3 {
  font-family: 'Anton', Arial, Helvetica, Time, sans-serif;
  margin-top: 0.8em;
}
#three-designs h1 {
  font-size: 2.5em;
  line-height: 1.1em;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-top: 1em;
}
#three-designs h2 {
  font-size: 1.8em;
}
#three-designs p + nav {
  margin-top: 2em;
}
#three-designs footer a {
  color: #CB8533;
  text-decoration: underline;
}
/*Navigation*/
#three-designs nav {
  text-align: center;
  background-color: #DCAB74;
  padding-bottom: 1em;
}
#three-designs ul a {
  padding: 8px;
}
#three-designs ul {
  display: flex;
  flex-wrap: wrap;
}
#three-designs ul li {
  flex: 1;
  margin-top: 1em;
}
#three-designs a {
  text-decoration: none;
}
#three-designs li a:link{
  color:#573208;
}
#three-designs li a:visited {
  color: #573208;
}
#three-Designsli a:hover {
  color: #DCAB74;
  background-color: #573208;
}
/*Images*/
#three-designs img {
  width: 50%;
	max-width: 960px;
	min-width: 320px;
}
#three-designs figure {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/*Corner designs*/
#grandma-knows-corner, #jurassic-corner {
  margin-bottom: .5em;
  padding: .7em;
  border-radius: 15px;
}
#jurassic-corner {
  background-color: #73d948;
}
#grandma-knows-corner {
  background-color: #f72334;
}
#grandma-knows-corner h4, #jurassic-corner h4 {
  font-size: 1.2em;
}
#grandma-knows-corner h4, #grandma-knows-corner p, #grandma-knows-corner a {
  color: #fff;
}
.reference-corner a {
  display: inline;
  text-decoration: underline;
}
#jurassic-corner p, #jurassic-corner h4 {
  color: #164701;
}

/*\/\/\/\/\/\/\/\/\/\/\/ MEDIA QUERIES \/\/\/\/\/\/\/\/\/\*/
@media (min-width: 600px) {
	body {
		max-width: 1000px;
		margin-right: auto;
		margin-left: auto;
	}
	header nav ul {
		display: flex;
		justify-content: center;
		column-gap: 10px;
		align-items: baseline;
	}
	main {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: .8em;
	}
	main div {
		grid-column: 1/3;
	}
	#coursework div ul {
		row-gap: .5em;
	}
	.gallery {
		display: flex;
		column-gap: 10px;
	} /*Case Study multi-images*/
	#jurassic-corner {
  margin-left: 30%;
  }
	#grandma-knows-corner {
  margin-right: 40%;
  }
}
@media (min-width: 900px) {
	main div:first-child p {
		font-size: 1.1em;
	}
}
