@charset "UTF-8";
/*----VARIABLE COLOURS----*/
:root {
	--dark: #312d2a;
	--mid-dark: #717070;
	--mid: #ece9df;
	--light: #fff;
	--hover: rgba(0, 0, 0, 0.532);
		
	--highlight: #335092;
} 

/*----GENERAL STYLING----*/
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	font-weight: 300;
	font-size: 62.5%;
	letter-spacing: 0.2em;
}

body {
    display: grid;
    place-items: center;
    text-align: center;
	background-color: var(--mid);
	font-family: 'American Typewriter';
	font-size: 1.4rem;
	max-width: 100%;
	min-height: 100vh;
	margin: 0px auto;
	color: var(--dark);
}

main {
	margin-top: 3rem;
	min-height: 70vh;
}

h1 {
	max-width: 100vmin;
	margin: auto;
}

h2 {
	font-weight: normal;
	font-size: 1.6rem;
}

b {
	font-weight: 500;
}

.btnLink {
	display: block;
    background-color: white;
    padding: 1.5rem;
    width: 25rem;
    margin: auto;
	font-weight: 500;
	text-transform: lowercase;
	text-align: center;
}

.btnLink:hover {
	background-color: #ffffffdd;
}

li {
	list-style-type: none;
}

figure {
	margin: 2rem 0;
}

figcaption {
	font-style: italic;
}

/*----FOOTER STYLING----*/
footer {width: 100%;}
footer img {
	max-height: 2rem;
	margin: 3rem;
}

/*----HEADER----*/
h1 img {
	width: min(90%, 550px);
}
header {
	margin-top: 3rem;
	max-width: 100%;
}


/*----SCROLLBAR----*/
::-webkit-scrollbar {
	width: 1em;
}

::-webkit-scrollbar-track {
	background-color: var(--mid);
}

::-webkit-scrollbar-thumb {
	background-color: var(--mid-dark);
	border-radius: 100vw;
	margin-block: 1em;
}

@supports (scrollbar-color: red blue) {
	* {
		scrollbar-color: var(--mid) var(--mid-dark);
	}
}
	

/*----NAV STYLING----*/
nav {
	margin: auto;
	padding: 1.3rem;
}


nav li {
	display: inline;
	list-style-type: none;
}

nav li:nth-child(2)::after, nav li:nth-child(2)::before {
	content: ".";
	padding: 0 1em;
	font-weight: 300;
}

a {
	color: var(--dark);
	text-decoration: none;
}

nav a:hover {
	color: var(--hover);
}

/*----INDEX----*/

/*----HOME----*/
.home {
	width: 80%;
	max-width: 1080px;
	margin: 3rem;
	display: grid;
	min-height: 80%;
	justify-content: center;
}

.home h2 {
	padding: 2rem;
	text-transform: uppercase;
}

.home img {
	max-width:100%;
	max-height: 60vh;
}

.home p {
	max-width: 80%;
	margin: auto;
}



/*----ABOUT----*/
.about {
	display: grid;
	place-items: center;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	grid-gap: 1rem;
	padding-bottom: 3rem;
	max-width: 80%;
}

.about img {
	max-height: 80%;
	max-width: 80%;
}

.about div {
	text-align: left;
	padding: 1em;
	margin-bottom: 2em;
}

.about a {
	text-decoration: underline;
}

/*----WORK----*/


.gallery {
	display: grid;
	grid-gap: 0.5rem;
	grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
	margin: auto;
	max-width: 80%;
}

.gallery-item {
	position: relative;
	display: none;
}
.gallery img {
	display: block;
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.overlay {
	display: grid;
	place-content: center;
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: .5s ease;
	background-color: rgba(255, 255, 255, 0.8);
}

.overlay:hover {
	opacity: 1;
}

.overlay div{
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.overlay ul{padding:0;}
.overlay li {display: block;}

#buttons::before {
	display: block;
	margin: auto;
	width: 30rem;
	content: "";
	border-top: solid var(--mid-dark) 0.1rem;
}

.btn {
	border: none;
	outline: none;
	padding: 1.2rem;
	background-color: transparent;
	cursor: pointer;
	font-family: 'American Typewriter';
	font-weight: 300;
	letter-spacing: 0.2rem;
	color: var(--dark);
  }

.btn:hover {
	color: var(--hover);
}

.active {
	font-weight: 500;
  }

.show {
	display: block;
  }

/*-- PREVIEW --*/

.preview {
	text-align: left;
	width: 100%
}

.videoDescription {
	padding: 1rem 2rem;
}

.preview .btnLink {
	margin: 2rem auto;
}

.vimeoContainer {
	padding:56.25% 0 0 0;
	position:relative;
}

.vimeo {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
}

.youtubeVideo {
	aspect-ratio: 16/9;
    width: 100%;
}

.previewContent {
	max-width: 1280px;
	margin: auto;
}

.videoDescription li a, .videoDescription p a {
	text-decoration: underline;
}

.heroImage img, .makingOf img {
	max-width: 100%;
}

.makingOf {
	padding-top: 3rem;
	max-width: 900px;
	margin: auto;
}

.whenWeFell figure {
	margin: auto;
	padding: 3rem;
}

.whenWeFell figure img{
	margin: auto;
}

.makingOf p a {
	text-decoration: underline;
}

.storyBoard {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 0.5rem;
}

/*--MISC--*/

.riddle input {
	display: block;
	margin: 2rem auto;
	font-family: 'Courier New', Courier, monospace;
}

.output {
	padding-top: 0.45rem;
}

.riddle a {
	margin: 2rem;
	text-decoration: underline;
}

.hide {
	display: none;
}

.show {
	display: block;
}

#submit {
	background: none;
	border: none;
	font-family: inherit;
	font-weight: inherit;
	font-size: inherit;
	text-decoration: underline;
	letter-spacing: 0.2em;
	color: var(--dark);
}

#submit:hover {
	cursor: pointer;
}

/*---PRIZE---*/
.prize a {
	display: block;
	text-decoration: underline;
	margin: 2rem;
}

.comicPage {
	max-width: 100%;
	display: none;
}

.comicPage:target {
	display: block;
}

.comicPage img {
	max-height: 70vh;
	max-width: 100%;
	filter: drop-shadow(0 0 1rem rgba(43, 29, 0, 0.319));
}


.buttonContainer {
	display: flex;
	justify-content: space-around;
}

.buttonContainer a {
	display: inline;
	margin: 0rem;
	text-decoration: none;
	font-size: 1.2rem;
	color:rgba(49, 37, 13, 0.355);
}


/*----MEDIA QUERITES----*/

@media (hover : none) {
	.overlay{
		opacity: 1;
		height: 30%;
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
		top: auto;
		bottom: 0;
		background-color: rgba(255, 255, 255, 0.9)
	}
}

@media only screen and (min-width: 1080px) {
	.about {max-width: 100vmin;}
	/* body {grid-template-rows: 20vh auto auto;} */
}

@media only screen and (max-width: 650px) {
	body {font-size: 1.1rem;}

	h2 {font-size: 1.4rem;}

	footer img {max-height: 1.6rem;}

	.btn {
		font-size: 1.1rem;
		padding: 1.3rem 0.8rem;
	}

	header {max-width: 100%}

	.home {width: 100%;}

	.gallery {
		grid-template-columns: 100%;
		max-width: 100%;
	}

	.heroContainer {
		max-width: 100%;
	}

	.buttonContainer a {
		font-size: 1rem;
	}

}