* {
	-webkit-tap-highlight-color: transparent;
}

input {
	outline: none;
}

hr {
	background-color: var(--text-color);
    width: 100%;
    height: 1px;
    border: none;
}

@font-face {
    font-family: 'Red Hat Display';
    src: url('RedHatDisplay.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
}

:root {
	--background-color: #fafafa;
	--inverted-background-color: #0c0c0c;
	--maxdeep-color: #fff;
	--text-color: #232323;
	--inverted-text-color: #fafafa;
	--primary-color: #00ab0a;
	--navbar-background: rgb(250 250 250 / 50%);
	--shadow-color: #232323;
	--input-color: #dadada;
	--contrast-button: #7a7a7a;
	--scrollthumb-color: #aaaaaa;
	color-scheme: light;
}

.dark-mode {
	--background-color: #0c0c0c;
	--inverted-background-color: #fafafa;
	--maxdeep-color: #000;
	--text-color: #fafafa;
	--inverted-text-color: #232323;
	--primary-color: #00ab0a;
	--navbar-background: rgb(12 12 12 / 50%);
	--shadow-color: #fafafa;
	--input-color: #434343;
	--contrast-button: #8c8c8c;
	--scrollthumb-color: #737373;
	color-scheme: dark;
}

body {
	background-color: var(--background-color);
	font-family: 'Red Hat Display';
	transition: background-color 0.3s ease;
}

#appcontainer {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translate(-50%, 0);
	height: 100dvh;
	max-width: 1200px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: start;
	color: var(--text-color);
	transition: all 0.3s ease;
}

#header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 5rem;
	user-select: none;
	transition: all 0.3s ease;
}

#logo {
	height: 100%;
	width: auto;
	user-select: none;
	user-drag: none;
}

#logotext {
	font-weight: 700;
	user-select: none;
}

#contentwrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: calc(100dvh - 5rem);
	width: 100%;
	flex-grow: 1;
	overflow-y: auto;
	scroll-behavior: smooth;
}

/* Firefox specific styles */
@supports (scrollbar-color: #888 #f1f1f1) {
    #contentwrapper {
        scrollbar-width: thin;
		scrollbar-color: var(--primary-color) var(--input-color);
    }
}

#contentwrapper::-webkit-scrollbar {
	width: 0.5rem;
}

#contentwrapper::-webkit-scrollbar-track {
	background: var(--input-color);
	border-radius: 10px;
}

#contentwrapper::-webkit-scrollbar-thumb {
	background: var(--scrollthumb-color);
	border-radius: 10px;
}

#contentwrapper::-webkit-scrollbar-thumb:hover {
	background: var(--primary-color);
}

#navbar {
    width: 3.7rem;
    max-height: calc(100dvh - 8rem);
    height: 100%;
    position: absolute;
    padding: 0.5rem 0;
    left: 1rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    transition: all 0.3s;
    overflow: hidden;
    background: var(--navbar-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    user-select: none;
    box-shadow: 0px 0px 3px var(--shadow-color);
    z-index: 3;
}

.navbar-hover {
    width: 10.3rem !important;
}

.navbuttons {
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: start;
	flex-grow: 1;
	width: 100%;
	overflow-x: hidden;
	overflow-y: scroll;
	-ms-overflow-style: none;
    scrollbar-width: none;
	margin: 0 0.5rem;
}

.navrow {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: start;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0.2rem 0.4rem;
    border-radius: 15px;
	margin: 0.1rem 0;
}

.navrow:hover {
	background-color: var(--primary-color);
	color: #fafafa;
	text-shadow: 0px 0px 2px #000;
}

.rowicon {
	width: 3rem;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: start;
}

.rowtext {
	width: 5.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

.navicon {
	font-size: 2rem;
	padding: 0.5rem 0;
}

.navicon-img {
	width: 2rem;
    height: 2rem;
    display: inline-block;
    vertical-align: middle;
    border-radius: 500px;
	object-fit: cover;
}

.navoptiontext {
	font-size: 1.4rem;
	margin: 0;
	word-break: break-word;
}

#loadingspinner {
	width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    animation: spin 0.5s linear infinite;
	margin: 1rem;
}

.loadingspinner {
	width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    animation: spin 0.5s linear infinite;
	margin: 1rem;
}

#loadingscreen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100dvw;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: var(--background-color);
	color: var(--text-color);
	z-index: 10;
	visibility: visible;
	opacity: 1;
	transition: opacity 0.3s ease;
}

#splash {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
	transform: scale(0.8);
	user-select: none;
}

#splashloadingarea {
	opacity: 0;
	transition: all 0.3s ease;
}

.grow {
	animation: grow 2s cubic-bezier(0.34, 0.68, 0.55, 0.95) forwards;
}

#loadinglogo {
	width: 90vw;
	max-width: 20rem;
	height: auto;
	user-drag: none;
}

#loadingtitle {
	font-size: 3.5rem;
	font-weight: 700;
	margin: 0;
	text-align: center;
}

#loadingtext {
	font-size: 1.5rem;
	margin: 1rem 0;
	text-align: center;
}

.flashred {
	animation: flashred 1s infinite;
}

.flashprimary {
	animation: flashprimary 1s infinite;
}

.contenttitle {
	font-size: 2.5rem;
	font-weight: bold;
	margin: 0.5rem 0;
	text-align: center;
	user-select: none;
}

.contenttext {
	font-size: 1.1rem;
	margin: 0.5rem 0;
	text-align: center;
	user-select: none;
}

.contenttext li {
	text-align: left;
}

.appbutton {
	display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
	font-size: 1.2rem;
    border-radius: 15px;
	background-color: var(--primary-color);
	text-decoration: none;
	color: #fafafa;
	text-shadow: 0px 0px 2px #000;
	border: 0;
	user-select: none;
}

.appbutton:hover {
	scale: 1.02;
	box-shadow: 0px 1px 3px var(--shadow-color);
}

.transparentbutton {
	display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
	font-size: 1.2rem;
    border-radius: 15px;
	background-color: var(--background-color);
	text-decoration: none;
	color: var(--text-color);
	border: 0;
	user-select: none;
	box-shadow: 0px 1px 2px var(--input-color);
}

.transparentbutton:hover {
	scale: 1.02;
	box-shadow: 0px 1px 3px var(--shadow-color);
}

.appinput {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.2rem;
	border-radius: 15px;
	border: none;
	font-size: 1.2rem;
	text-align: center;
	background-color: var(--input-color);
	color: var(--text-color);
	transition: all 0.3s ease;
	text-decoration: none;
	user-select: none;
}

.appinput:hover {
	scale: 1.01;
	box-shadow: 0px 1px 3px var(--shadow-color);
}

.equalwidthwrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: max-content;
	height: auto;
}

#noscriptwarn {
	position: fixed;
	top: 0;
	left: 0;
	width: 100dvw;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #fafafa;
	z-index: 20;
}

#contentarea {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: auto;
	height: 100%;
	transition: all 0.3s ease;
	padding: 0 5.7rem;
	margin-top: 2rem;
}

.appswitch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 24px;
	margin: 10px;
}

.appswitch .switch-input {
	display: none;
}

.appswitch .switch-label {
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 24px;
	background-color: var(--input-color);
	border-radius: 34px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.appswitch .switch-label::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	background-color: #fff;
	box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s;
}

.appswitch .switch-input:checked + .switch-label {
	background-color: var(--primary-color);
}

.appswitch .switch-input:checked + .switch-label::before {
	transform: translateX(1rem);
}

.custom-checkbox {
	display: inline-block;
	cursor: pointer;
	border-radius: 500px;
	flex-shrink: 0;
}

.custom-checkbox input[type="checkbox"] {
	display: none;
}

.custom-checkbox .checkmark {
	position: relative;
	height: 5rem;
	width: 5rem;
	background-color: var(--input-color);
	border-radius: 500px;
	vertical-align: middle;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 3rem;
	text-shadow: 0px 0px 3px #000;
	box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
}

.custom-checkbox input:checked + .checkmark {
	background-color: var(--primary-color);
}

.custom-checkbox .checkmark i {
	display: none;
}

.custom-checkbox input:checked + .checkmark i {
	display: block;
}

#readpolicy:hover {
	text-decoration: underline;
}

#errorbanner {
	display: none;
	flex-direction: row;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 1rem;
    width: max-content;
    max-width: 90%;
    min-height: 5.5rem;
    background-color: #ff4d4d;
    border-radius: 20px;
    box-shadow: 0px 1px 4px var(--shadow-color);
    z-index: 99999;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 0.6rem 2rem;
}

#errorcontent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: auto;
	margin: 0rem 2rem;
	color: #fafafa;
	font-weight: bold;
	word-break: break-word;
}

#closeerror {
	width: 2rem;
	color: #fafafa;
	text-shadow: 0px 0px 3px #000;
	font-size: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: 0;
	cursor: pointer;
}

.open-error {
	animation: erroropen 0.3s ease-out forwards;
}

.closed-error {
	animation: errorclose 0.3s ease-out forwards;
}

#notifbanner {
	display: none;
	flex-direction: row;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 1rem;
    width: max-content;
    max-width: 90%;
    min-height: 5.5rem;
    background-color: var(--background-color);
    border-radius: 20px;
    box-shadow: 0px 1px 4px var(--shadow-color);
    z-index: 99999;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 0.6rem 2rem;
}

#notifcontent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: auto;
	margin: 0rem 2rem;
	color: var(--text-color);
	font-weight: bold;
	word-break: break-word;
}

#closenotif {
	width: 2rem;
	color: #fafafa;
	text-shadow: 0px 0px 3px #000;
	font-size: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: 0;
}

.open-notif {
	animation: erroropen 0.3s ease-out forwards;
}

.closed-notif {
	animation: errorclose 0.3s ease-out forwards;
}

#mobilenav {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: absolute;
	left: 0.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	opacity: 0;
	visibility: hidden;
	background-color: transparent;
	color: var(--text-color);
	font-size: 2rem;
	border: none;
}

.rainbowbanner {
    padding: 0.6rem 1rem;
	margin: 0 1rem;
    border: none;
    outline: none;
    color: var(--text-color);
    background-color: var(--background-color);
    position: relative;
    z-index: 0;
    border-radius: 10px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.rainbowbanner span {
	font-size: 1.9rem;
}

.rainbowbanner:before {
	content: "";
	background: linear-gradient(
		45deg,
		#ff0000,
		#ff7300,
		#fffb00,
		#48ff00,
		#00ffd5,
		#002bff,
		#7a00ff,
		#ff00c8,
		#ff0000
	);
	position: absolute;
	top: -2px;
	left: -2px;
	background-size: 400%;
	z-index: -1;
	filter: blur(1px);
	-webkit-filter: blur(1px);
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	animation: glowing-rainbowbutton 23s linear infinite;
	transition: all 0.3s ease;
	border-radius: 25px;
}

.rainbowbanner:after {
	z-index: -1;
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background: var(--background-color);
	border-radius: 25px;
}

.appcolor {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 2.6rem;
	height: 1.9rem;
	background-color: transparent;
	border: none;
	cursor: pointer;
	margin: 10px;
}

.appcolor::-webkit-color-swatch {
	border-radius: 15px;
	border: none;
}

.appcolor::-moz-color-swatch {
	border-radius: 15px;
	border: none;
}

#googlesignin {
	color-scheme: light;
	width: 100%;
	margin: 0.5rem 0;
	display: flex;
	flex-direction: row; 
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

#googlesignin:hover {
	scale: 1.02;
}

.forgotpassword {
	display: none;
	background-color: var(--contrast-button);
}

.login {
	background-color: var(--contrast-button);
}

#resettheme {
	border: none;
	cursor: pointer;
	background: transparent;
	font-size: 1.3rem;
	margin-left: 1rem;
	cursor: 1.02;
}

#resettheme:hover {
	scale: 1.02;
}

.accountcontainer {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.6rem;
	box-shadow: 0px 0px 3px var(--shadow-color);
	border-radius: 20px;
	padding: 1rem 1.6rem;
	transition: all 0.3s ease;
}

#shimmerlayer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	background-size: 200% 100%;
	pointer-events: none;
	border-radius: 20px;
}

.accountimagesection {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#updatepfp {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 12rem;
	height: 12rem;
	cursor: pointer;
}

#updatepfp:hover img {
	opacity: 0.7;
}

#updatepfp:hover i {
	opacity: 1 !important;
}

.accountimage {
	width: 12rem;
	height: 12rem;
	object-fit: cover;
	border-radius: 500px;
	box-shadow: 0px 1px 2px var(--maxdeep-color);
	transition: all 0.3s ease;
	opacity: 1;
}

#accountdetails {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: auto;
}

#accountdetailsrowscontainer {
	width: 100%;
	max-width: 100%;
}

.accountdetailsrow {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.detailsrowname {
	text-align: left;
	flex-grow: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
}

.detailsrowbuttoncontainer {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: max-content;
}

.accountedit {
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	border-radius: 10px;
	padding: 0.3rem 0.6rem;
}

.accountedit:hover {
	scale: 1.02;
	box-shadow: 0px 0px 3px var(--shadow-color);
}

.accountedit i {
	width: 20px;
}

.settingscontainer {
	margin-top: 1rem;
	width: auto;
	max-width: 100%;
}

.settingsrow {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.settingrowname {
	text-align: left;
	flex-grow: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
}

.settingrowcontrol {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: max-content;
}

.tooltip {
	display: none;
	position: absolute;
	top: 120%;
	left: 0;
	max-width: 100%;
	background-color: var(--background-color);
	padding: 0.6rem 1.2rem;
	border-radius: 10px;
	box-shadow: 0px 1px 3px var(--shadow-color);
	text-align: center;
	z-index: 2;
}

.settingsrow:hover .tooltip {
	display: block;
}

.registertooltip {
	display: none;
	position: absolute;
	bottom: 110%;
	left: 0;
	max-width: 100%;
	background-color: var(--background-color);
	padding: 0.6rem 1.2rem;
	border-radius: 10px;
	box-shadow: 0px 1px 3px var(--shadow-color);
	text-align: center;
	z-index: 2;
}

.registerinput {
	position: relative;
}

.registerinput:hover .registertooltip {
	display: block;
}

#policyreader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: start;
}

.loginregisterswitch {
	text-decoration: underline;
	color: var(--primary-color);
	cursor: pointer;
	transition: all 0.3s ease;
}

.loginregisterswitch:hover {
	scale: 1.02;
	font-weight: 500;
}

#loadingarea {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

@media (max-width: 600px) {
	
	.appbutton {
		padding: 0.3rem 0.6rem;
	}
	
	.transparentbutton {
		padding: 0.3rem 0.6rem;
	}
	
	.rainbowbanner {
		padding: 0.6rem 2rem;
	}
	
	.rainbowbanner .contenttitle {
		font-size: 1.7rem;
	}
	
	.rainbowbanner span {
		font-size: 1.5rem;
	}
	
	.accountcontainer {
		padding: 0.3rem 0.6rem;
		gap: 0;
	}
	
	#navbar {
		width: 10.3rem;
        height: 100dvh;
        max-height: 100dvh;
        left: 0;
        top: 0;
        padding: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
		transform: translateX(-11rem);
	}
	
	.navbar-hover {
		width: 10.3rem !important;
		transform: translateX(0) !important;
	}
	
	#mobilenav {
		opacity: 1;
		visibility: visible;
	}
	
	#contentarea {
		padding: 0 0.5rem;
	}
	
	#header {
		height: 3rem;
		box-shadow: 0 1px 10px -5px var(--shadow-color);
	}
	
	#logo {
		height: 90%;
	}
	
	#logotext {
		font-size: 1.7rem;
	}
	
	.accountedit {
		padding: 0.1rem 0.2rem;
		font-size: 1rem;
	}
	
}

@keyframes glowing-rainbowbutton {
	0% {
		background-position: 0 0;
	}
	50% {
		background-position: 400% 0;
	}
	100% {
		background-position: 0 0;
	}
}

@keyframes flashred {
	0%, 100% {
		box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.6);
	}
	50% {
		box-shadow: 0px 1px 7px 5px rgba(255, 0, 0, 0.5);
	}
}

@keyframes flashprimary {
	0%, 100% {
		box-shadow: 0px 1px 3px var(--primary-color);
	}
	50% {
		box-shadow: 0px 1px 7px 5px var(--primary-color);
	}
}

@keyframes erroropen {
	0% {
		transform: translate(-50%, 100%);
	}
	70% {
		transform: translate(-50%, -20%);
	}
	100% {
		transform: translate(-50%, 0);
	}
}

@keyframes errorclose {
	0% {
		transform: translate(-50%, 0);
	}
	30% {
		transform: translate(-50%, -20%);
	}
	100% {
		transform: translate(-50%, 100%);
	}
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes grow {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

@keyframes notifopen {
	0% {
		transform: translate(-50%, 100%);
	}
	70% {
		transform: translate(-50%, -20%);
	}
	100% {
		transform: translate(-50%, 0);
	}
}

@keyframes notifclose {
	0% {
		transform: translate(-50%, 0);
	}
	30% {
		transform: translate(-50%, -20%);
	}
	100% {
		transform: translate(-50%, 100%);
	}
}

@keyframes shimmer {
	from {
		background-position: -200% 0;
	}
	to {
		background-position: 200% 0;
	}
}
