:root {
	--title-color: #d15914;
	--title-border: #2e746b;
	--title-font-size: 3em;
	--title-font: 'Segmented';

	--body-font: 'Alef';
	--body-font-color: #671d5c;

	--box-color: #e6e6e6;

	--bg-image: url('_img/bg.webp');
	--bg-image-mobile: url('_img/bg-mobile.webp');
	
	--filmography-button: url('_img/filmography.gif');
	--contact-button: url('_img/contact.gif');
	--dropoff-button: url('_img/dropoff.gif');
	--pimst-button: url('_img/pimst.gif');
}

img {
	image-rendering: optimizeSpeed;
	image-rendering: -moz-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: optimize-contrast;
	image-rendering: pixelated;
	-ms-interpolation-mode: nearest-neighbor;
}

body, html {
	scroll-behavior: smooth;
	margin: 0;
	padding: 0;
}

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	height: 100vh;
	background: var(--bg-image);
	background-repeat: repeat;
	background-size: 1600px;
	overscroll-behavior: contain;
	font: 0.9em var(--body-font);
	color: var(--body-font-color);
}

/* Mobile background*/
@media (max-width: 720px) {
	body {
		background: var(--bg-image-mobile) center / cover;
		background-repeat: no-repeat;
		background-size: 390%;
	}
}

@font-face {
	font-family:'Segmented';
	src: url('_fonts/Segmented.ttf') format("truetype");
}

@font-face {
	font-family: 'Alef';
	src: url('_fonts/Alef-Regular.ttf') format("truetype"); 
}

@font-face {
	font-family:Alef; font-weight:bold;
	src: url('_fonts/Alef-Bold.ttf') format("truetype");
}

a {
	color: var(--title-border);
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--title-font);
	color: var(--title-border);
	text-shadow: 1px 1px #000000;
}

::selection {
	color: var(--title-border);
	background: var(--title-color);
}

code {
	background-color: var(--title-color);
	color: var(--title-border);
	padding: 0 5px;
	border: 1px solid  var(--title-border);
	border-radius: 5px;
}

#title {
	font-family: var(--title-font);
	color: var(--title-color);
	font-size: var(--title-font-size);
	text-shadow: 2px 2px #000000;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	letter-spacing: 5px;
}

#header {
	height: 45vh;
	max-width: 100%;
	margin: 1em;
	background: var(--header-image) center / contain no-repeat;
}

::-webkit-scrollbar {
	width: 0.5em;
}

::-webkit-scrollbar-thumb {
	background-color: var(--title-color);
	outline: 1px solid var(--title-border);
}

.container {
	max-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1em;
	padding: 0.75em;
}

.container > div {
	flex: 0 1 auto;
}

.inner-container {
            display: flex;
        }

#middle {
	width: 21.5vw;
}

#box {
	background-color: var(--box-color);
	border: 2px dashed var(--title-border);
	overflow-y: visible;
	width: 19.98vw;
	padding: 0em 1em;
	margin: auto;
}

#contact-button, #filmography-button, #dropoff-button, #pimst-button {
	width: 5em;
	height: 5em;
}

#contact-button {
	float: left;
	background: var(--contact-button) center / contain no-repeat;
}

#pimst-button {
	float: left;
	background: var(--pimst-button) center / contain no-repeat;
}

#filmography-button {
	float: right;
	background: var(--filmography-button) center / contain no-repeat;
}

#dropoff-button {
	float: right;
	background: var(--dropoff-button) center / contain no-repeat;
}

#contact-button > p, #filmography-button > p, #pimst-button > p, #dropoff-button > p {
	text-align: center;
	font-style: italic;
	background-color: var(--box-color);
}

.modal {
	display: none;
	position: fixed;
	z-index: 1;
	padding: 10em 0;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.4);
}

.modal-content {
	position: relative;
	background-color: var(--box-color);
	margin: auto;
	overflow: auto;
	padding: 0;
	border: 2px solid var(--title-border);
	width: 36vw;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	-webkit-animation-name: animatetop;
	-webkit-animation-duration: 0.4s;
	animation-name: animatetop;
	animation-duration: 0.4s;
}

@-webkit-keyframes animatetop {
	from {
		top: -30vh;
		opacity: 0;
	}

	to {
		top: 0;
		opacity: 1;
	}
}

@keyframes animatetop {
	from {
		top: -30vh;
		opacity: 0;
	}

	to {
		top: 0;
		opacity: 1;
	}
}

.modal-header {
	padding: 0 1.5em;
	border-bottom: 1px solid var(--title-border);
}

.modal-body {
	padding: 0.5em 1em;
	max-height: 45vh;
}

.modal-button {
    padding: 1em;
	background: none;
	color: inherit;
	outline: inherit;
	border: none;
	cursor: pointer;
	height: inherit;
	width: inherit;
}

.url-button {
    padding: 1em;
	background: none;
	color: inherit;
	outline: inherit;
	border: none;
	cursor: pointer;
	height: inherit;
	width: inherit;
}

.modal-img {
	max-height: 30vh;
	max-width: 100%;
	padding: 5px;
	float: right;
}

.close {
	color: var(--title-border);
	float: right;
	font-size: 2.5em;
	font-weight: bold;
}

.close:hover, .close:focus {
	color: var(--title-color);
	text-decoration: none;
	cursor: pointer;
}

  /* MOBILE */
@media only screen and (max-width: 800px) {
	.container {
		max-width: 100%;
		padding: 1em;
		margin: 0 auto;
		flex-wrap: wrap;
	}

	.container > div {
		max-width: 90vw;
	}

    .inner-container {
        display: flex;
    }

	#header {
		max-height: 30vh;
		max-width: 100%;
	}

    .modal-content {
        width: 90vw;
    }

    .modal-img {
	height: 100%;
	max-width: 35vw;
	}

	#box {
		width: 85vw;
	}

	#middle {
		order: 1;
		width: 90vw;
	}

	#left {
		order: 2;
	}

	#right {
		order: 3;
	}

	#contact-button, #filmography-button, #pimst-button, #dropoff-button {
		width: 4,5em;
		height: 4,5em;
	}

}