/* add this to every new page. this file imports basic CSS and FONTS used throughout the website */
@import url(/assets/css/body.css);

:root {
	/* sizes */
	--margin-box: 2vw;
	--padding-box: 10px;
	/* colors */
	--purple-l: rgba(145, 115, 255, 0.718);
	--lilac-t: rgba(241, 241, 255, 0.548);
}

::selection {
	color: var(--green-l);
	background: var(--dark);
}

body {
	background: var(--pink-d);
	background: url(/assets/bgs/bg3.png);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

/* the main window */
main {
	display: grid;
	margin: 0 auto;
	grid-template-areas:
		"header header"
		"info info"
		"box-1 box-2"
		"long-box long-box"
		"footer footer";
	grid-template-rows: min-content 60px;
	grid-template-columns: 1fr 2fr;
	width: 70vw;
	max-width: 1400px;
	overflow: auto;
	border: 2px solid var(--green-l);
	border-top: 0;
	line-height: 1.5em;
	background: #6359bd;
	background: linear-gradient(
		180deg,
		rgba(99, 89, 189, 0.738) 0%,
		rgba(146, 135, 247, 0.688) 30%,
		rgba(158, 233, 212, 0.699) 100%
	);
	/* border-radius: 5px; */
}

h1 {
	color: var(--green-l);
}

/* site header */
header {
	padding-top: 15px;
	grid-area: header;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	flex-direction: row;

	/* left side area of the header */
	#site {
		flex: 1.5;
		display: flow-root;
		min-width: 370px;

		current-date {
			color: var(--white);
		}

		/* styles the cu77fish.ink icon */
		img {
			float: left;
			margin: 10px;
			max-width: 90px;
			border: 2px solid var(--pink-d);
			border-radius: 5px;
			z-index: 10;
			&:hover {
				mix-blend-mode: screen;
			}
		}
	}

	/* right side area of the header */
	#icons {
		text-align: center;
		flex: 140px;
		display: flex;
		justify-content: space-evenly;
		align-items: flex-start;
		flex-wrap: wrap;

		a {
			margin: 5px 0;
			flex: 1;
			line-height: 0;
			/* styles each of the icons' imgs */
			img {
				border-radius: 50%;
				width: 60px;
				box-shadow: 1px 1px 3px var(--purple-d);
				&:hover {
					box-shadow:
						-1px -1px 3px var(--white),
						1px 1px 3px var(--white);
				}
			}
		}
	}
}

#box-1,
#box-2,
#long-box,
footer {
	background: var(--lilac-t);
	border: 3px ridge var(--purple-l);
	border-radius: 10px;
	margin: 20px var(--margin-box);
	padding: var(--padding-box);
	transition-duration: 0.5s;

	&:hover {
		box-shadow: 8px 8px 5px var(--purple-l);
	}

	/* for <h2 class="header">title here</h2> */
	/* these will appear like a bubble on the top right */
	h2.header {
		text-align: right;
		display: inline-block;
		float: right;
		background: var(--pink-d);
		color: var(--white);
		padding: 5px 3ch;
		max-width: fit-content;
		border-radius: 20px;
		top: -30px;
		right: -20px;
		margin: 0;
	}
}

.intro-pic {
	z-index: 10;
	width: 22%;
	/* border: 2px solid var(--pink-d); */
	float: left;
	shape-outside: url(../icons/cu77lemascot.png);
	shape-margin: 20px;
	top: -60px;
	left: -60px;
	transition-duration: 0.5s;
	&:hover {
		rotate: 10deg;
		scale: 1.5;
		shape-margin: 50px;
	}
}

aside#info {
	grid-area: info;

	div.info-slide {
		position: absolute;
		right: 0px;
		width: 10px;
		height: 30px;
		padding-left: 10px;
		overflow: hidden;
		top: 7px;
		color: var(--dark);
		background: var(--green-l);
		border: 2px solid var(--purple-d);
		border-left: 0;
		transition-duration: 2s;
		&:hover {
			width: 100%;
		}
	}

	button {
		background: var(--lilac);
		border: 2px solid var(--lilac);
		border-right: 0;
		cursor: help;
		position: absolute;
		right: 0px;
		border-radius: 50px 0px 0px 50px;
		text-align: left;
		height: 42px;
		padding: 5px 0 0 5px;
		width: 90px;
		font-family: inherit;
		img {
			border-radius: 100%;
		}
		&:hover {
			background: var(--dark);
		}
	}
}

aside#box-1 {
	grid-area: box-1;
	nav {
		padding: 5px;
		width: 100%;
		overflow: hidden;
		ul {
			padding: 0;
			margin: 0;
		}
		li {
			display: block;
		}
		a {
			display: block;
			text-decoration: none;
			width: 110%;
			padding: 2px 13px;
			border-radius: 10px;
			transition-duration: 0.5s;
			&:hover {
				letter-spacing: 1px;
				padding-left: 2ch;
				background: #b1c7f3;
				box-shadow:
					1px 1px 3px var(--green-l) inset,
					-1px -1px 3px var(--green-l) inset,
					1px 1px 3px var(--green-l) inset,
					1px 1px 2px #8499ff,
					-1px -1px 2px #8499ff,
					1px 1px 2px #8499ff;
				&::before {
					position: relative;
					content: "▶";
					padding-right: 1ch;
				}
			}
		}

		a {
			text-decoration: none;
		}
	}
}

section#box-2 {
	grid-area: box-2;
}

section#long-box {
	grid-area: long-box;
}

footer {
	background: var(--lilac);
	text-align: right;
	grid-area: footer;
	p {
		margin: 5px;
	}
}

button.font-toggle {
	z-index: 100;
	position: fixed;
	bottom: 5px;
	left: 5px;
}

/* media queries */

/* for screens larger than 2000px */
@media screen and (max-width: 930px) {
	main {
		width: 100vw;
	}
}

@media screen and (max-width: 670px) {
	main {
		width: 100vw;
		border: 0;
		grid-template-areas:
			"header header"
			"info info"
			"box-1 box-1"
			"box-2 box-2"
			"long-box long-box"
			"footer footer";
		padding-bottom: 40px;
	}

	aside#info {
		margin-top: 10px;
	}

	.intro-pic {
		top: 0;
		left: 0;
	}

	header #site {
		min-width: 100%;
	}

	header #icons a img {
		width: 55px;
	}
}
