html {
	--backgroundColor: #0f1118;
	--secondaryBackground: #14161f;
	--headerBackground: #0f1111;
	--limeGreen: #ABFE53;
	--blue: #5378FC;

	--footerHeight: 55px;

	background-color: var(--backgroundColor);
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body {
	position: relative;
	margin: 0;
	padding: 0;
	width: 100vw;
	--footerExclusionArea: calc(var(--footerHeight) + 5vh);
	min-height: calc(100vh - var(--footerExclusionArea));
	padding-bottom: var(--footerExclusionArea);
}

header {
	width: 100vw;
	--headerHeight: 60px;
	height: var(--headerHeight);
	background-color: var(--headerBackground);
	border-bottom: 1px solid #333;
	display: flex;
	justify-content: space-between;
}

nav {
	width: 50%;
	height: var(--headerHeight);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	font-family: Play;
	margin-right: 60px;
}

.namebar {
	height: 100%;
	width: 50%;
}

.namebar a {
	--logoWidth: 35px;
	height: var(--logoWidth);
	width: var(--logoWidth);
	margin: 12.5px 30px;
	display: block;

	transition: 0.3s;
}

.namebar a:hover {
	background-color: #eee;

	border-radius: 500px;
	padding: 6px 6px;
	margin: 6.5px 24px;
	box-shadow: 0 0 4px #ddd,
			0 0 8px #ddd;
}
 
.logo {
	width: var(--logoWidth);
	height: var(--logoWidth);
	margin: 0;

	transition: 0.3s;
}

a {
	text-decoration: none;
}

nav .links {
	display: flex;
}

.navlink {
	color: #eee;
	font-size: 1.6em;
	margin: 0 23px;

	transition: 0.3s;
}

.navlink:hover {
	color: #333;

	background: #ddd;
    box-shadow: 0 0 7px #ddd,
                0 0 15px #ddd;

	padding: 3px 5px;
	margin: 0 18px;
	border-radius: 5px;
}

.toggle-wrapper {
	--iconSize: 25px;
	--sunSize: 26.5px;
	--iconChange: 3px;
	
	display: flex;
	align-items: center;
	margin-right: 30px;
	width: fit-content;
}

.toggle-wrapper img {
	transition: 0.25s;
}

.toggle-wrapper .moon {
	width: calc(var(--iconSize) + var(--iconChange));
}

.toggle-wrapper .sun {
	width: calc(var(--sunSize) - var(--iconChange) + 2px);
}

.mode-toggle {
	--sliderWidth: 45px;
	--sliderHeight: 10px;
	
	width: var(--sliderWidth);
	height: var(--sliderHeight);
	background-color: #333;
	cursor: pointer;
	border-radius: 500px;
	margin: 0 20px;

	transition: 0.25s;
}

.mode-toggle .slide {
	--size: calc(var(--sliderHeight) * 2);
	
	position: relative;
	border-radius: 500px;
	background-color: #777;
	width: var(--size);
	height: var(--size);

	transform: translate(-25%, -25%);

	transition: 0.25s;
}

/* Main */

main {
	width: 100vw;
	margin-top: 6vh;
}

main section {
	display: flex;
	justify-content: space-evenly;
	margin: 11vh 0;
	width: 100%;
}
main section:last-of-type {
	margin-bottom: 8vh;
}

main section > img {
	position: relative;
	
	width: 230px;
	height: min-content;
	margin-top: 15px;
	object-fit: contain;
	border-radius: 17px;
}

main .sectiontext {
	transform: translate(-5vw, 0);
	display: flex;
	flex-direction: column;
	overflow: visible;
}

.reversesection {
	width: 100%;
}

.reversesection .sectiontext {
	transform: translate(5vw, 0);
}

.reversesection .sectiontext p {
	text-align: right;
}

.reversesection .button {
	align-self: flex-end;
	margin: 8px 10px 8px 0;
	transition: background-color 0.35s, color 0.35s, padding 0.35s, margin 0.35s;
}

.reversesection .button:hover {
	margin: 8px 0 8px 0;
}

.reversesection .bluebutton:hover {
	margin-right: 3px;
}

main .sectiontext p {
	color: #eee;
	font-family: Play;
	font-size: 2em;
	max-width: 40vw;
	margin: 15px 0;
}

.button {
	background-color: transparent;
	text-decoration: none;
	color: var(--limeGreen);
	font-size: 1.4em;
	font-family: 'Chakra Petch', Play;
	border-radius: 100px;
	border-style: solid;
	border: 1px solid var(--limeGreen);
	padding: 7px 16px;
	margin: 8px 0 8px 10px;
	width: fit-content;

	transition: background-color 0.35s, color 0.35s, padding 0.35s;
}

.button:hover {
	background-color: var(--limeGreen);
	color: var(--backgroundColor);
	--widthToExpandButton: 10px;
	padding: 7px 26px 7px 16px;
}

.buttonarrow {
	transform: translate(0, 0);
	display: inline-block;
	transition: transform 0.35s;
}

.button:hover .buttonarrow {
	transform: translate(var(--widthToExpandButton), 0);
}

.bluebutton {
	border: 1px solid var(--blue);
	color: var(--blue);
	font-size: 1.2em;
}

.bluebutton:hover {
	background-color: var(--blue);
	--widthToExpandBlueButton: 7px;
	padding: 7px 23px 7px 16px;
}

.bluebutton:hover .buttonarrow {
	transform: translate(var(--widthToExpandBlueButton), 0);
}

.bold {
	font-weight: bold;
}

h1 {
	color: #e1e1e1;
	font-family: Play;
	font-size: 5em;
	margin-top: 0;
	text-align: center;
}

.portfolio-section {
	display: block;
	text-align: center;
}

.portfolio-section h2 {
	color: #e1e1e1;
	font-family: Play;
	font-size: 3em;
	margin: 0 7vw 1.7vh;
}

.portfolio-section p {
	color: #eee;
	font-family: Play;
	font-size: 1.6em;
	margin: 0 7vw;
}

h3 {
	color: #eee;
	font-family: Play;
	font-size: 2em;
	margin-left: 13vw;
}

footer {
	border-top: 1px solid #333;
	width: 100vw;
	height: var(--footerHeight);
	display: flex;
	flex-basis: 50%;
	justify-content: space-between;
	align-items: center;
	background-color: #0f1111;

	position: absolute;
	bottom: 0;
}

footer p {
	color: #eee;
	font-family: Play;
	margin:  0 0 0 30px;
	font-size: 1.4em;
}

.socials {
	margin-right: 30px;
	display: flex;
	align-items: center;
	justify-content: space-around;
}

.socials a {
	--logoHeight: 35px;
	height: var(--logoHeight);
	margin: 0 15px;
}

.socials a img {
	height: var(--logoHeight);
	filter: brightness(100%);

	transition: filter 0.3s;
}

.socials a:hover img {
	filter: brightness(60%);
}