/*  ============
	Import Fonts
	============ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

@font-face {
	font-family: "Daydream";
	src: url(./../media/Daydream\ DEMO.otf);
}

/*  ============
	Text Styling
	============ */

/* Set all text to use JetBrains Mono. Except the main header. */
h2, h3, h4, h5, h6, p, li, summary {
	font-family: "JetBrains Mono";
	color: white;
	text-align: left;
	margin-bottom: 8px;
	margin-top: 8px;
}

/* Aligns h2 to center, becuase... yeah */
h2 {
	text-align: center;
	box-sizing: border-box;
}

/* Set text sizes */
h1 {
	font-family: "Daydream";
	font-size: 72px;
	text-align: center;
	margin-top: 10px;
	margin-bottom: 10px;
	
	/* Gradient thingies */
	background: linear-gradient(90deg, #ff6961, #ffb347, #fdfd96, #77dd77, #aec6cf, #ceace6, #cb99c9, #ff6961);
	background-size: 200% auto;
	color: white; /* Fallback for browsers that don't support background-clip */
	background-clip: text;
	-webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 6s linear infinite;
}

/* Animates the h1 gradient (thanks to codeshack.io) */
@keyframes gradient-flow {
	0% {
    	background-position: 0% center;
  	}
  	100% {
    	background-position: 200% center;
  	}
}

#titleGlow {
	font-family: "Daydream";
	font-size: 72px;
	position: absolute;
	top: 2.5px;
	width: calc(var(--site-width) - calc(2 * var(--border-width)));
	text-align: center;

	/* Gradient thingies */
	background: linear-gradient(90deg, #ff6961, #ffb347, #fdfd96, #77dd77, #aec6cf, #ceace6, #cb99c9, #ff6961);
	background-size: 200% auto;
	color: white; /* Fallback for browsers that don't support background-clip */
	background-clip: text;
	-webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 6s linear infinite;
	filter: blur(20px);

	user-select: none;
	-webkit-user-select: none;
}

h2 {
	font-size: 24px;
	margin-top: 5px;
	background-image: linear-gradient(90deg, var(--main-color), rgba(0, 0, 0, 0));
	padding: 8px;
	width: 100%;
}

h3 {
	margin-top: 24px;
	margin-bottom: 12px;
}

/* Colors bold text, because why not? */
strong {
    color: var(--main-color);
	text-shadow: 0px 0px /* <- Distance */ 8px /* <- Glow Radius */ var(--main-color) /* <- Glow Color */;
}

/*  =================
	Full Site Styling
	================= */

body {
	background-image: url(./../media/blue_forest.jpg);
	/* These are used to make sure the background looks right regardless of window/display size. */
  	background-repeat: no-repeat;
	background-position: center;
  	background-size: cover;
  	background-color: rgba(0, 0, 0, 0.5);
	background-blend-mode: overlay;
	background-attachment: fixed;
	transition-duration: 400ms; /* For the Dark Mode toggle */
  	
	width: auto;
	height: 100%;
}

:root {
	/* Basic Site Stuff */
	--site-width: 1000px;
	--bg-color: rgb(200, 200, 200);
	--main-color: rgb(212, 43, 43);
	/* Borders */
	--border-width: 3px;
	--border-style: var(--border-width) solid rgba(200, 200, 200, 0.2);
}

* {
	box-sizing: border-box;
}

/*  ===================
	Content Box Styling
	=================== */

/* Container for the whole page. Probably gonna need... */
.container {
	display: flex;
	justify-content: center;
	width: var(--site-width);
	margin: auto; /* Centers the site apparently. Neat */
}

/* The box at the top of the page. Like a header/nav bar */
.header {
	width: var(--site-width);
	height: auto;
	border: var(--border-style);
	border-bottom: none;
	margin-top: 25px;
	padding-bottom: 4px;
	margin-left: auto;
	margin-right: auto;

	/* Set background to be glass-like transparent */
	background-color: rgb(from var(--bg-color) r g b / .05);
	backdrop-filter: blur(8px);
}

/* The primary content box. Right side of the screen. */
.content {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	justify-content: left;
	height: auto;
	width: 75%;
	border: var(--border-style);
	padding-top: 10px;
	padding-bottom: 25px;
	padding: 20px;

	/* Set background to be glass-like transparent */
	background-color: rgb(from var(--bg-color) r g b / .05);
	backdrop-filter: blur(8px);
}

/* The navbar. Holds subpage links and sits on the left. */
.navbar {
	display: flex;
	flex-wrap: wrap;
	height: auto;
	width: 25%;
	border: var(--border-style);
	border-right: none;
	align-content: flex-start;

	/* Set background to be glass-like transparent */
	background-color: rgb(from var(--bg-color) r g b / .05);
	backdrop-filter: blur(8px);
}

/*  ===============
	Tooltip Styling
	=============== */

[id*=tt] {
    text-decoration: dashed underline;
	text-decoration-color: rgba(255, 255, 255, 0.5);
}

.tippy-box[data-theme~='myTheme'] {
  	background-color: rgba(0, 0, 0, 0.5);
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid white;
  	color: white;
	font-size: 16px;
}

/*  ===============
	Element Styling
	=============== */

#modeToggle {
	z-index: 10;
	position: fixed;
	left: 10px;
	bottom: 10px;
	width: 60px;
	height: 60px;
	font-size: 42px;
	text-align: center;
	line-height: 0px;
	padding-bottom: 5px;
	border: 4px solid black;
	transition-duration: 200ms;
}

#modeToggle:hover {
	outline: none;
	box-shadow: 0 0 10px black;
	cursor: pointer;
}

#modeToggle:focus {
	outline: none;
	border-color: var(--main-color);
}

.navbutton {
	display: block;
	width: 100%;
	height: 50px;
	border-left: 5px solid var(--main-color);
	background-color: none;
	color: white;
	font-family: 'JetBrains Mono';
	font-size: 20px;
	text-align: center;
	text-decoration: none;
	align-content: center;
	cursor: pointer;
	transition-duration: 0.25s;
}

.navbutton:hover, .navbutton:focus {
	background-color: rgb(from var(--main-color) r g b / 60%);
	outline: none;
}

#disabled {
	background-color: rgba(0, 0, 0, 0.4);
	color: lightgrey;
}

ul {
	list-style-type: square;
}

a {
	color: lightgrey;
}

/* Various Styling Insignificant For Individual Files */

#sitebutton {
	height: 60px;
	color: black;
	border-color: black;
	resize: none;
	background: rgba(255, 255, 255, 0.5);
	margin-left: 15px;
}

#pfp {
	border: 4px solid black;
	margin-right: 16px;
	margin-bottom: 8px;
}

.buttoncollection {
	padding: 5px;
}

.outlink {
	margin: 0px 2px 0px 2px;
}