:root
{
    --menu-background: #1a1a1a;
    --menu-text: #fff;
    --content-background: #252525;
    --light-content-background: #363636;
    --content-text: #fff;
	--accent-colour: #ff4081;
    --accent-colour-hover: #cc3367;
    --grey-text: #a5a5a5;
    --very-light-content-background: #424242;
    --green: #40ff5e;
    --yellow: #ffd600;
    --red: #ff5e40;
    --glow-box-shadow: 0 0 0 2px var(--accent-colour);
}

/*
@media (prefers-color-scheme: light)
{

    :root
    {
        --menu-background: #fffcfd;
        --menu-text: #1a1a1a;
        --content-background: #fff7f9;
        --light-content-background: #fff2f5;
        --very-light-content-background: #ffeef2;
        --content-text: #1a1a1a;
        --accent-colour: #ff4081;
        --accent-colour-hover: #cc3367;
        --grey-text: #5A5A5A;
        --green: #40ff5e;
        --yellow: #ffd600;
        --red: #ff5e40;
    }

}*/




/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeUp
{

	0%
	{
		opacity: 0;
		transform: translateY(10px);
	}

	100%
	{
		opacity: 1;
		transform: translateY(0);
	}

}

[data-animation-name="fadeUp"]
{
	opacity: 0;
}

[data-animation-name="fadeUp"].animate
{
	animation: fadeUp 400ms ease-in-out 1 forwards;
}

@keyframes fadeDown
{

    0%
    {
        opacity: 0;
        transform: translateY(-10px);
    }

    100%
    {
        opacity: 1;
        transform: translateY(0);
    }

}

[data-animation-name="fadeDown"]
{
    opacity: 0;
}

[data-animation-name="fadeDown"].animate
{
    animation: fadeDown 400ms ease-in-out 1 forwards;
}

@keyframes fadeRight
{

    0%
    {
        opacity: 0;
        transform: translateX(-10px);
    }

    100%
    {
        opacity: 1;
        transform: translateX(0);
    }

}

@media only screen and (max-width: 950px)
{

    [data-animation-name="fadeRight"]
    {
        opacity: 0;
    }
    
    [data-animation-name="fadeRight"].animate
    {
        animation: fadeRight 400ms ease-in-out 1 forwards;
    }

}




/* ==========================================================================
   TOP LEVEL PAGE ELEMENTS
   ========================================================================== */

html
{
    font-size: 62.5%;
    min-height: 100%;
}

html.scroll-disabled
{
    overflow: hidden;
}

*
{
	box-sizing: border-box;
}

::-webkit-scrollbar
{
    height: 15px;
    width: 15px;
}

::-webkit-scrollbar-track
{
    background: var(--light-content-background);
}

::-webkit-scrollbar-thumb
{
    background: var(--menu-background);
    border-radius: 3px;
}

body
{
    background: var(--content-background);
	color: var(--content-text);
	font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: 1.6rem;
    font-weight: 400;
    height: 100%;
	line-height: 1;
	margin: 0;
	text-size-adjust: none;
}

.container
{
	margin: 0 auto;
	max-width: 160rem;
	padding: 6rem 2rem;
	width: 98%;
}

@media only screen and (max-width: 680px)
{

    .container
    {
        padding: 4rem 2rem;
    }

}

@media only screen and (max-width: 480px)
{

	.container
	{
		width: 100%;
	}

}

.container.animate
{
	animation-delay: 400ms;
}




/* ==========================================================================
   GENERIC PAGE ELEMENTS
   ========================================================================== */

::selection
{
	background: var(--accent-colour-hover);;
	color: #fff;
}

a
{
    text-decoration: none;
}

a:hover
{
	text-decoration: none;
}

h1
{
    font-size: 10rem;
}

h1,
h2,
h3
{
    font-family: "Francois One", sans-serif;
    font-weight: 400;
    letter-spacing: -2px;
    line-height: 1.1;
    margin: 0 0 2rem;
    text-transform: uppercase;
}

h2
{
    font-size: 6rem;
}

h3
{
    font-size: 4rem;
}

label
{
    display: block;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

p
{
    font-size: 1.8rem;
	line-height: 1.5;
	margin: 0 0 2rem;
}

@media only screen and (max-width: 680px)
{

    p
    {
        font-size: 1.6rem;
    }

}

p:not(:last-child):not(:has(+ p, + ul))
{
    margin-bottom: 4rem;
}

ul
{
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

ul li
{
    line-height: 1.5;
    margin-bottom: 1rem;
    padding-left: 3rem;
    position: relative;
}

ul li::before
{
    color: var(--accent-colour);
    content: ".";
    font-family: "Francois One", sans-serif;
    font-size: 6rem;
    left: 0;
    line-height: 0;
    position: absolute;
    top: -.5rem;
}

#loading-screen
{
	background: var(--content-background);
	height: 100vh;
	left: 0;
	position: fixed;
	top: 0;
	width: 100vw;
	z-index: 101;
}

.button
{
	-webkit-appearance: none;
    appearance: none;
    background-color: var(--accent-colour);
    border: none;
	border-radius: 3px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
	font-family: "Francois One", sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    padding: 1.4rem 2.4rem;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
    white-space: nowrap;
}

.button:focus
{
    outline: none;
}

.button:hover,
.button:focus
{
    box-shadow: var(--glow-box-shadow);
}

.button:not(.close-button):not(#menu-button)::before,
.button:not(.close-button):not(#menu-button)::after
{
    font-family: bootstrap-icons;
    font-size: 1.6rem;
}

.button:not(.close-button):not(#menu-button)::after
{
    content: "\f285";
    margin-left: .5rem;
}

.button.back,
.button--back
{
    background: var(--light-content-background);
    color: #fff;
}

.button.back:not(.close-button):not(#menu-button)::before,
.button--back:not(.close-button):not(#menu-button)::before
{
    content: "\f284";
    margin-right: .5rem;
}

.button.back:not(.close-button):not(#menu-button)::after,
.button--back:not(.close-button):not(#menu-button)::after
{
    content: "";
}

#main a:not(.button),
.main a:not(.button)
{
	border-bottom: 2px solid var(--accent-colour);
	color: var(--content-text);
	padding-bottom: 1px;
	transition: color 200ms ease-in-out;
}

@media only screen and (pointer: fine)
{

	#main a:hover:not(.button),
    .main a:hover:not(.button)
	{
		color: var(--accent-colour);
	}

}

body:not([data-current-section="hire-me"]) .grecaptcha-badge
{
	visibility: hidden !important;
}

.grid
{
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 4rem;
}

@media only screen and (max-width: 900px)
{

    .grid
    {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media only screen and (max-width: 540px)
{

    .grid
    {
        grid-template-columns: repeat(1, 1fr);
    }

}

.grid.two-columns
{
    grid-template-columns: repeat(2, 1fr);
}

@media only screen and (max-width: 900px)
{

    .grid.two-columns
    {
        grid-template-columns: repeat(1, 1fr);
    }

}

.grid .grid-item.full-width
{
    grid-column: 1 / -1;
}

html.no-js .lazy
{
    display: none;
}

.panel
{
    background-color: var(--light-content-background);
    border-left: 6px solid var(--accent-colour);
    border-radius: 5px;
    padding: 4rem;
}

@media only screen and (max-width: 680px)
{

    .panel
    {
        padding: 2rem;
    }

}

.section
{
	display: none;
}

html.no-js .section:not(#home)
{
    padding-top: 120px;
}

html.no-js .section,
.section.shown
{
	display: block;
}

.section-heading 
{
    margin-bottom: 4.8rem;
}

.screenshot-link
{
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.screenshot-link img
{
    aspect-ratio: 3/2;
    border: 1px solid #4a4a4a;
    border-left: 6px solid var(--accent-colour);
    border-radius: 5px;
    height: auto;
    transition: all 200ms ease-in-out;
    width: 100%;
}

.screenshot-link img.lazy
{
    border: none;
}

@media only screen and (pointer: fine)
{

    .screenshot-link:hover img
    {
        box-shadow: 2px 2px 10px 0 rgba(0, 0, 0, 0.3);
    }

    html.no-js .screenshot-link:hover img
	{
	    box-shadow: none;
		transform: none;
	}

}

.select-box,
.text-box
{
    -moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
    background-color: var(--light-content-background);
	border: none;
	border-radius: 5px;
    color: var(--content-text);
	font-family: inherit;
	font-size: 2.2rem;
	padding: 1.6rem;
	transition: border-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
	width: 100%;
}

@media only screen and (max-width: 680px)
{

    .select-box,
    .text-box
    {
        font-size: 1.8rem;
    }

}

.select-box:active,
.select-box:focus,
.text-box:active,
.text-box:focus
{
	box-shadow: var(--glow-box-shadow);
	outline: none;
}

.text-box
{
    border-left: 6px solid var(--accent-colour);
    display: block;
}

.text-box::placeholder
{
    color: #8e8e8e;
}




/* ==========================================================================
   MENU BAR
   ========================================================================== */

#menu-bar,
.menu-bar
{
	background: var(--menu-background);
    position: sticky;
    top: 0;
    z-index: 100;
}

#menu-bar.animate,
.menu-bar.animate
{
    animation-delay: 200ms;
}

#menu-bar .container,
.menu-bar__container
{
    align-items: center;
    display: flex;
    padding-bottom: 2rem;
    padding-top: 2rem;
}

#masthead,
.menu-bar__masthead
{
    align-items: center;
    display: flex;
}

#logo-container,
.masthead__logo-container
{
    margin-right: 1.4rem;
    overflow: hidden;
}

#masthead a,
.menu-bar__masthead a
{
    color: var(--content-text);
}

#logo,
.masthead__logo
{
    display: block;
	height: auto;
	width: 60px;
}

@media only screen and (max-width: 680px)
{

    #logo,
    .masthead__logo
    {
        width: 40px;
    }

}

@media only screen and (max-width: 680px)
{

    #site-title,
    .masthead__site-title
    {
        font-size: 2rem;
    }

}

#site-title p,
.site-title__item
{
    color: var(--content-text);
    float: left;
    font-family: "Francois One", sans-serif;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0;
    text-decoration: none;
	text-transform: uppercase;
}

#site-title p + p,
.site-title__item + .site-title__item
{
    padding-left: 1rem;
}

#site-title p + p a,
.site-title__item + .site-title__item a
{
    color: #7c7c7c;
}

#site-title p + p::before,
.site-title__item + .site-title__item::before
{
    content: "/";
    margin-right: 1rem;
}

#menu-button
{
	background: transparent;
    color: #fff;
	display: none;
    margin-left: auto;
	outline: none;
    padding: 0;
}

#menu-button::before
{
    -webkit-font-smoothing: antialiased;
    color: #fff;
	content: "\f479";
    font-family: bootstrap-icons;
	font-size: 4rem;
	display: inline-block;
    text-rendering: auto;
	transition: transform 200ms ease-in-out;
}

#menu-button:focus,
#menu-button:hover
{
    box-shadow: none;
}

#menu,
.menu-bar__menu
{
    display: flex;
    flex-flow: row;
	list-style: none;
	margin: 0;
    margin-left: auto;
	padding: 0;
}

#menu li,
.menu__menu-item
{
    line-height: 1;
    margin-bottom: 0;
    margin-left: 1rem;
    padding: 0;
}

#menu li::before,
.menu__menu-item::before
{
    content: "";
}

#menu li a,
.menu__menu-item .menu-item__menu-link
{
	display: block;
    color: var(--menu-text);
	font-family: "Francois One", sans-serif;
    font-size: 2rem;
    margin: 1.5rem 1.5rem 0;
    padding-bottom: 2rem;
	text-transform: uppercase;
	transition: box-shadow 200ms ease-in-out;
}

@media only screen and (min-width: 951px)
{

	#menu li.selected a
	{
        box-shadow: inset 0 -4px 0 0 var(--accent-colour);
	}

}

#menu li a .bi
{
    font-size: 1.6rem;
    line-height: 1;
    margin-left: .5rem;
    vertical-align: top;
}

@media only screen and (max-width: 950px)
{

	#menu-button
	{
		display: block;
	}

    #menu-bar.menu-open #menu-button::before
    {
        content: "\f62a";
        transform: rotate(90deg);
    }

	#menu
	{
		background: var(--content-background);
		box-shadow: none;
        flex-flow: column;
		left: 0;
        height: 100vh;
		opacity: 0;
		padding: 2rem;
		position: fixed;
		top: 79px;
		transition: all 100ms ease-out;
		visibility: hidden;
		width: 100vw;
	}

	#menu-bar.menu-open #menu
	{
		opacity: 1;
		visibility: visible;
	}

	#menu li
	{
		margin-left: 0;
	}

	#menu li a
	{
		font-size: 3rem;
		padding-left: 0;
        padding-right: 0;
	}

    #menu li a[data-animation-name="fadeRight"]
    {
        animation-delay: 150ms;
    }

}

@media only screen and (max-width: 680px)
{

    #menu
    {
        top: 8.7rem;
    }

}




/* ==========================================================================
   FOOTER
   ========================================================================== */

#footer p
{
    color: var(--grey-text);
    font-size: 1.4rem;
}

#footer a
{
    color: var(--grey-text);
    text-decoration: underline;
}