/* 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;
}
* {
	box-sizing: border-box;
}

/* End of reset */

:root {
	--light-pink: #d697aa;
    --black: #000000;
	--link-hover: #06002aa0;
	--white: #ffffff;
	--bg-colour: #efd4dc;
	--deep-pink: #9f3f60;
	--dark-mode-pink: #000a4d;
	--dark-mode-purple: #06002a;
	/* #06002a */
}

/* ---------- General Layout ---------- */

html {
	scroll-behavior: smooth;
	padding-bottom: .5em;
}
body {
    font-family: sans-serif;
    color: var(--black);
    background-color: var(--bg-colour);
	transition: background-color 300ms ease-in-out;
    overflow-x: hidden;
	margin-bottom: 1em;
	width: 100%;
}
footer {
    width: 100vw;
	height: auto;
	margin-top: 2em;
	clear: both;
}

/* ---------- Design ---------- */
/* Prevents overflow */
/* img {
	max-width: 100%;
} */

/* ---------- Mobile Menu ---------- */

nav[aria-label="primary-navigation"] li a {
	display: block;
    padding: 2em;
	text-align: left;
    text-decoration: none;
	position: relative;
	color: var(--white);
	background-color: var(--link-hover);
}
nav[aria-label="primary-navigation"] a, footer nav a, .intro a {
	box-shadow: inset 0 0 0 0 #9f3f60;
	margin: 0 -.25rem;
	padding: 0 .25rem;
	transition: color .6s ease-in-out, box-shadow .6s ease-in-out;
}
nav[aria-label="primary-navigation"] a:hover, footer nav a:hover, .intro a:hover {
	box-shadow: inset 160px 0 0 0 #9f3f60;
	color: var(--white);
}
/* menu toggle */
#menu-toggle {
	display: none;
}
.toggle {
	display: inline-block;
	width: auto;
	margin: 0 0 1em 1.5em;
	position: relative;
	padding-top: 3em;
	line-height: 1;
	clear: both;
}
nav .toggle:hover, nav .toggle:active, nav .toggle:focus {
	cursor: pointer;
}
/* Shows menu */
#menu-toggle + .toggle + ul {
	display: none;
}
/* Hides menu */
#menu-toggle:checked + .toggle + ul {
	display: block;
}
/* Hamburger icon */
.toggle [class*='line-'] {
	background: var(--black);
	display: block;
	border-radius: 3px;
	height: 3px;
	width: 26px;
	margin: 0 0 6px 10px;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .2s ease all;
	-moz-transition: .2s ease all;
	-o-transition: .2s ease all;
	transition: .2s ease all;
}
/* Hover for hamburger/X icon */
.toggle:hover [class*='line-'] {
	background: var(--deep-pink);
}
/* Top line angles downwards when clicked */
#menu-toggle:checked + .toggle .line-top {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
	-webkit-transform-origin: 0 0;
	-moz-transform-origin: 0 0;
	-o-transform-origin: 0 0;
	transform-origin: 0 0;
}
/* Hides middle line when changing to X */
#menu-toggle:checked + .toggle .line-mid {
	opacity: 0;
}
/* Bottom line angles upwards when clicked */
#menu-toggle:checked + .toggle .line-bot {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
	-webkit-transform-origin: 0 90%;
	-moz-transform-origin: 0 90%;
	-o-transform-origin: 0 90%;
	transform-origin: 0 90%;
}
footer nav {
	padding: 2em;
}
footer ul li {
	padding-top: 1em;
}

/* ---------- Typography ---------- */

h1, h3 {
    font-family: 'Caveat', Cursive;
}
h1 {
	display: flex;
	margin: 0 auto;
	justify-content: center;
	color: var(--link-hover);
	font-size: min(9vw, 60px);
    padding: 16px 0 0 0;
	clear: both;
	text-decoration: 3px underline;
	text-decoration-color: var(--light-pink);
}
h2 {
	text-align: center;
	width: 100%;
	color: var(--link-hover);
	display: flex;
	justify-content: center;
	font-size: min(7vw, 30px);
	padding: 52px 0 52px 0;
	margin: 0 auto;
}
h3 {
	padding: 2em 0 0 0;
	font-size: min(15vw, 30px);
	margin: 0 0 0 .3em;
	color: var(--link-hover);
}
p {
	font-size: min(10vw, 17px);
	line-height: 1.5;
	margin: 1em;
	width: min(80vw, 600px);
	clear: both;
}
footer p {
	display: flex;
	justify-content: center;
	margin: 0 auto;
	padding: .5em 0 .5em 0;
	font-size: .8em;
	clear: both;
	width: 100%;
}

/* ---------- Specific Typography ---------- */

.home footer p {
	font-size: .8em;
	clear: both;
}
.home p {
	font-size: min(10vw, 17px);
	line-height: 1.5;
	margin: 0;
}
/* Paragraphs within grid section */
.grid-container section p,
.grid-container-js section p {
	width: min(70vw, 350px);
	padding: .3em 0 1.3em 0;
	margin: 0 auto;
	justify-content: center;
	font-size: min(7vw, 17px);
}
.home h2 {
	display: flex;
	justify-content: center;
	margin: 0 auto;
	font-size: min(3.5vw, 20px);
	padding: 2em 0 1em 0;
	color: var(--white-hover);
}
/* .brand-design h3, .projects h3 {
	justify-content: left;
	font-size: min(7vw, 40px);
	padding: 20px 0 8px 35px;
	width: 400px;
} */
/* .brand-design section p, .projects section p, .projects p, .about p {
	width: min(80vw, 550px);
	padding: 8px 0 8px 35px;
	justify-content: left;
	font-size: min(7vw, 17px);
} */
.about div {
	padding-top: 2em;
}
.about div p {
	margin: 0 auto;
}
/* .projects p, .brand-design p {
	margin: 1em 0 0 2.7em;
} */
.site-map a {
	display: flex;
	clear: both;
	margin: 2.5em 0 0 2.9em;
}
.site-map a:first-of-type {
	padding-top: 1em;
}

/* ---------- Links ---------- */

/* Etsy link in photography card */
.grid-container p>a {
	color: var(--white);
	text-decoration: underline;
}
.grid-container p>a:hover {
	text-decoration: underline;
	color: var(--bg-colour);
	background-color: var(--dark-mode-pink);
}
h1 a:active {
	color: var(--black);
}
/* h4 links in featured work */
.home a h4 {
	color: var(--white);
}
a h4:hover {
	text-decoration: underline;
}
/* Etsy link */
.etsy {
	width: 250px;
}
/* Explore futher links in featured work */
section p~a {
	display: flex;
	background-color: var(--bg-colour);
	padding: 1em;
	margin: 0 auto;
	justify-content: center;
	width: 150px;
	border-radius: 5px;
	transition: .4s ease-in-out;
}
section p~a:hover {
	background-color: var(--link-hover);
	color: var(--white-hover);
}
footer a {
	color: var(--black);
}
footer a:hover {
	color: var(--white);
}
.back-to-top-link {
	-webkit-transform: scale(2);
    -moz-transform: scale(2);
    -ms-transform: scale(2);
    -o-transform: scale(2);
    transform: scale(2);
	float: right;
}

a {
    color: var(--black);
    text-decoration: none;
	padding: 8px 0 8px 35px;
}

.projects a {
	display: flex;
	margin: 0;
	justify-content: center;
	padding: 0;
}
/* a:visited {

} */
/* a:focus {
    
} */
/* a:active {
    color: #4a00ea;
} */

.back-to-top-link {
    /* Layout */
    display: flex;
    justify-content: center;
    margin: .5em 2em;
    padding: .15em;
    /* Design */
    background-color: var(--deep-pink);
    color: var(--white);
    border-radius: 6px;
    cursor: pointer;
    width: 1.5em;
	height: 1.5em;
    transition: .4s ease-in-out;
	clear: both;
	box-shadow: 5px 0 20px rgba(210, 51, 144, 0.4);
}
.back-to-top-link:hover {
	background-color: var(--link-hover);
	color: var(--light-pink);
}
.projects a:hover {
	text-decoration: underline;
}

/* ---------- Images ---------- */

img {
	display: flex;
	margin: 0 auto;
	width: min(80vw, 600px);
	height: auto;
	box-shadow: 0 0 20px rgba(220, 90, 166, 0.4);
}
.grid-container img:hover {
	border: 1.5px solid var(--link-hover);
}
.about img {
	width: min(60vw, 400px);
	height: auto;
	margin-top: 8em;
	margin-bottom: 2em;
	border-radius: 10px;
}
/* .projects img, .brand-design img {
	width: min(20vw, 60px);
	height: auto;
	box-shadow: none;
} */
/* .projects-contact img {
	width: min(70vw, 500px);
	height: auto;
	box-shadow: none;
	border-radius: 10px;
} */

/* ---------- JavaScript Designs ---------- */

/* .calculator-grid {
	display: grid;
	align-content: center;
	justify-content: center;
	min-height: 100vh;
	width: min(60vw, 300px);
	height: auto;
	grid-template-columns: repeat(4, 100px);
	grid-template-rows: minmax(100px, auto) repeat(5, 100px);
	border-radius: 10px;
	margin: 4em;
	margin: 0 auto;
}
.calculator-grid > button {
	cursor: pointer;
	font-size: 2rem;
	border: 1px solid rgb(213, 21, 104);
	outline: none;
	background-color: rgba(255, 255, 255, .75);
}
.calculator-grid > button:hover {
	background-color: rgba(255, 255, 255, .9);
}
.span-two {
	grid-column: span 2;
}
.output {
	grid-column: 1/-1;
	background-color: rgba(0, 0, 0, .75);
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	flex-direction: column;
	padding: 10px;
	word-wrap: break-word;
	word-break: break-all;
}
.output .previous-operand {
	color: rgba(255, 255, 255, .75);
	font-size: 1.5rem;
}
.output .current-operand {
	color: white;
	font-size: 2.5rem; */


/* To Do List */
/* #to-do-list {
	width: min(80%, 500px);
	max-width: 800px;
	height: auto;
	background-color: #e0b3b3;
	padding: 1.5em;
	margin: 0 auto;
	box-shadow: 3px 3px 7px 3px rgba(0,0,0,0.2);
	border-radius: 10px;
}
#to-do-list ol {
	list-style: decimal;
	font-size: 1em;
	font-weight: 400;
	padding: 1em;
	margin: 1.5rem 0;
}
#to-do-list li::marker {
	color: #370fba;
}
#to-do-list button {
	padding: 0.2rem 0.5rem 0.3rem;
	margin-top: 1em;
} */
/* only appears if JavaScript is unavailable */
noscript p { 
	color: #c00;
	margin: 0.8rem 0;
}

/* ---------- Grid Styling ---------- */

/* Home page text cards */
.grid-container section {
	color: var(--white);
	background-color: var(--deep-pink);
	height: auto;
	width: min(80vw, 400px);
	margin: 0 auto;
	padding-bottom: 1.5em;
	box-shadow: 5px 0 20px rgba(210, 51, 144, 0.4);
}
.brand-design section {
	height: auto;
	width: min(60vw, 300px);
	padding: 0 0 24px 40px;
	margin: 0 auto;
}
.grid-container a:hover {
	text-decoration: none;
}
/* .grid-container section:last-of-type, 
.grid-container-js section:last-of-type,
.brand-design section:last-of-type {
	margin-bottom: 3em;
} */
 /* ---------- Rounded Borders ---------- */
.grid-container section, .grid-container img, 
.grid-container-js section,
.brand-design section, .brand-design img {
	border-radius: 10px;
	margin-top: 2em;
}
.grid-container img {
	margin: 2em 0 2em 0 auto;
	width: min(80vw, 500px);
}
/* .brand-design img {
	margin: 2em 0 2em 0 auto;
	width: min(80vw, 500px);
	height: auto;
} */
/* About page - distance between paragraph and title */
.about div {
	padding-top: .5em;
}

/* ---------- Theme switchers ---------- */

.theme label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 5px;
	position: relative;
	float: right;
	margin: 1em 1em 0 0;
	cursor: pointer;
}
.theme input[type="checkbox"].toggle {
	opacity: 0;
	position: absolute;
	cursor: pointer;
}
.theme input[type="checkbox"].toggle + label {
	display: flex;
	align-items: center;
	position: relative;
	cursor: pointer;
}
/* Background tube */
.theme input[type="checkbox"].toggle + label::before {
	content: "";
	border-radius: 1em;
	margin-right: .25rem;
	transition: background-color 200ms ease-in-out;
	background-color: #5c8bf8;
	height: 27px;
	width: 45px;
	align-items: center;
	justify-content: space-between;
}
/* Ball */
.theme input[type="checkbox"].toggle + label::after {
	position: absolute;
	left: .5em;
	right: .5em;
	content: "";
	width: 1.2em;
	height: 1.2em;
	background-color: rgb(241, 217, 37);
	border-radius: 1em;
	transition: background-color 200ms ease-in-out, transform 200ms ease-in-out;
}
/* Accessible */
input[type="checkbox"].toggle:focus + label::before {
	outline: 2px solid var(--deep-pink);
}
/* Change background colour */
input[type="checkbox"].toggle:checked + label::before {
	background-color: #2e3a56;
}
/* Ball colour for light theme */
input[type="checkbox"].toggle:checked + label::after {
	transform: translateX(100%);
	background-color: rgb(255, 223, 172);
}

/* Dark mode styling */

body.dark {
	background-color: var(--dark-mode-purple);
	transition: background-color 300ms ease-in-out;
	color: var(--bg-colour)
}
.dark h1 {
	color: var(--bg-colour);
}
.dark h2 {
	color: var(--bg-colour);
}
.dark h3 {
	color: var(--bg-colour);
}
.dark nav a {
	color: var(--white);
}
.dark .projects a {
    color: var(--bg-colour);
    text-decoration: none;
}
/* Nav */
.dark nav[aria-label="primary-navigation"] li a {
	background-color: var(--deep-pink);
	color: var(--white);
}
.dark nav[aria-label="primary-navigation"] a:hover {
	box-shadow: inset 160px 0 0 0 #d697aa;
	color: var(--black);
}
/* Burger menu */
.dark .toggle [class*='line-'] {
	background-color: var(--deep-pink);
}
.dark .toggle:hover [class*='line-'] {
	background-color: var(--light-pink);
}
/* Arrow */
.dark .back-to-top-link:hover {
	color: var(--black);
	background-color: var(--light-pink);
}
.dark h1 {
	text-decoration-color: var(--deep-pink);
}
.dark input[type="checkbox"].toggle:focus + label::before {
	outline: 2px solid white;
}
.dark .site-map a {
	color: var(--white);
}

/* ---------- Media Queries ---------- */

/* Larger screens */
@media all and (min-width: 1100px) {
	/* Grid */
	.grid-container, .grid-container-js {
		display: grid;
		grid-gap: 50px;
		grid-template-columns: repeat(2, 1fr);
		max-width: 300px;
		margin: 0 auto;
		justify-content: center;
	}
	/* .brand-design {
		display: grid;
		grid-gap: 60px;
		grid-template-columns: repeat(2, 1fr);
		max-width: 1000px;
		justify-content: left;
		align-items: left;
	} */
	/* .brand {
		padding: 32px 0 0 55px;
	} */
	.about {
		display: grid;
		margin: 0 auto;
		justify-content: center;
		grid-template-columns: repeat(2, 1fr);
	}
	/* .grid-container section, .grid-container-js section, .grid-container a {
		margin: 0 auto;
	}
	.grid-container img {
		margin: 0;
	} */
    /* show/hide mobile menu during desktop view*/	
	#menu-toggle + .toggle + ul, #menu-toggle:checked + .toggle + ul {
		display: block;
	}	
	#menu-toggle + .toggle, #menu-toggle:checked + .toggle {
		display: none;
	}
	nav[aria-label="primary-navigation"] {
		padding-top: .5em;
	}
	/* Position of nav */
    nav[aria-label="primary-navigation"] ul {
        display: flex;
		margin: 0 auto;
		justify-content: center;
        padding: 1em;
        font-size: min(7vw, 18px);
        width: 15.3em;
		margin-top: 1em;
    }
    /* Makes nav bar horizontal */
	nav[aria-label="primary-navigation"] ul li {
		display: inline;
        padding: .2em;
	}
	/* Design of button links */
	nav[aria-label="primary-navigation"] li a {
		margin: 0 auto;
		padding: .7em;
		display: inline-block;
		text-align: center;
		position: relative;
		color: var(--black);
		background-color: var(--light-pink);
		border-radius: 5px;
		color: var(--black);
	}
    footer ul {
        display: flex;
        justify-content: center;
    }
	/* footer ul, footer nav, footer p {
		width: 25em;
	} */
    footer ul li {
        padding: 1em;
		width: 8em;
		text-align: center;
    }
	footer nav {
		padding-bottom: 0;
	}
	.grid-container section:last-of-type,
	.grid-container-js section:last-of-type {
		margin-bottom: 0;
	}
	.back-to-top-link {
		/* Layout */
		display: flex;
		justify-content: center;
		margin: .5em 2em;
		padding: .15em;
		/* Design */
		background-color: var(--deep-pink);
		color: var(--white);
		border-radius: 6px;
		cursor: pointer;
		width: 1.5em;
		height: 1.5em;
		transition: .4s ease-in-out;
	}
	img {
		display: flex;
		margin: 0 auto;
		width: min(80vw, 600px);
		height: auto;
		box-shadow: 0 0 20px rgba(220, 90, 166, 0.4);
	}
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
    scroll-behavior: auto;
    }
    *,  *::before,  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    }
}