@import url('https://fonts.googleapis.com/css2?family=Gravitas+One&family=Mansalva&family=Yeseva+One&display=swap');
 :root {
	/* global variables for colours */

	--cream: #f5f1ed;
	--darkcream: #e8ddd3;
	--skyblue: #b3d3d6;
	--olive: #b3b072;
	--yellowgreen: #726736;
	--dark: #241e0f;
}

body::before {
	/* fixed background on tablet screens */
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-image: url('/images/dark-fabric.png'), url('images/cows.jpg');
	background-size: 15%, cover;
	background-repeat: repeat, no-repeat;
	z-index: -9999;
}

body {
	background-color: var(--skyblue);
	color: var(--cream);
}

p {
	color: var(--cream);
	font-family: "Mansalva", sans-serif;
}

ul {
	color: var(--cream);
	font-family: "Mansalva", sans-serif;

	padding: 0;
	display: inline-block;

	list-style: square inside;
}

h1 {
	/* used for the page titles, i.e. "brittlestarry's world" */

	color: var(--cream);
	font-family: "Gravitas One", serif;
	margin: 0;
	padding: 0;
}

h3 {
	/* used for the nav bar titles, i.e. "portfolio" */

	color: var(--skyblue);
	font-family: "Gravitas One", serif;
	margin-top: 5%;
	padding: 0;
}
a:link,
a:visited {
	/* all links, including the title */

	text-decoration: none;
}
a:link {
	color: var(--yellowgreen);
}
a:visited {
	color: var(--olive);
}

.logo {
	margin-top: 10%;

	justify-content: center;
	align-items: center;
	text-align: center;
}

.navbar {
	/* flex display lets fish image size be dynamic */

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.navbar div {
	/* these contain each of the navbar items, i.e. fish image and title text underneath */

	margin-right: 2rem;
	margin-left: 2rem;
}

.navbar img {
	max-width: 100%;
	transition: transform 0.1s ease-in-out;
}
.navbar img:hover {
	transform: rotate(10deg);
}

.main-panel {
	background-color: none;
	border: none;

	margin: auto;

	justify-content: center;
	align-items: center;
	text-align: center;
}

.portfolio-gallery {
	/* masonry style gallery */
	column-count: 3;
	column-gap: 10px;
	margin-bottom: 20%;
}

.gallery-item {
	margin-bottom: 10px;
	break-inside: avoid;

	padding: 5px;

	background-color: var(--cream);
	background-image: url("images/light-paper-fibers.png");
	border: 1px solid var(--darkcream);
}

.gallery-item img {
	max-width: 100%;
}

.gallery-item p {
	margin: 5px;
	color: var(--dark);
}

/* larger screens (anything bigger than a mobile screen) */

@media only screen and (min-width: 601px) {
	p {
		font-size: 1.5rem;
	}

	ul {
		font-size: 1.5rem;
	}

	h1 {
		font-size: 5rem;
		text-shadow: 0 0 10px var(--cream), 0 0 15px #ffd9ad, 0 0 15px var(--olive);
	}

	h3 {
		font-size: 1rem;
		text-shadow: 0 0 5px var(--olive), 0 0 15px var(--olive), 0 0 15px var(--yellowgreen);
	}

	.logo img {
		width: 20%;
	}

	.navbar div {
		width: 20%;
	}

	.main-panel {
		width: 50%;
	}
}

/* small screens (like mobile screens) */
@media only screen and (max-width: 600px) {
	body::before {
		/* background doesn't show on mobile */
		background-image: none;
	}

	p {
		font-size: 1rem;
	}

	ul {
		font-size: 1rem;
	}

	h1 {
		font-size: 2rem;
		text-shadow: 0 0 5px var(--cream), 0 0 5px #ffd9ad, 0 0 5px var(--olive);
	}

	h3 {
		font-size: 1rem;
		text-shadow: 0 0 5px var(--olive), 0 0 10px var(--olive), 0 0 10px var(--yellowgreen);
	}

	.logo img {
		width: 70%;
	}

	.navbar div {
		margin-bottom: 10%;
		width: 25rem;
	}

	.main-panel {
		width: 90%;
	}

	.portfolio-gallery {
		column-count: 1;
	}
}
