@font-face {
    font-family: 'Chopin';
		src: url('../fonts/ChopinScript.otf') format('OpenType');
}

html {
	padding: 0;
	margin: 0;
	
	--main-color: #ebd5c0;
	--light-color: #f3e5d8;
	--dark-color: #dab18b;
	
	background-color: var(--main-color);
	background-image: url("../img/site/tileable-wood-colored.png");
	
	font-family: 'Montserrat', sans-serif;
}

body {
	padding: 0;
	margin: 0;
	
	overflow-y: scroll; /* Force scrollbar */
}

input, select, textarea {
	background-color: var(--light-color);
	border: 1px solid var(--dark-color);
	padding: 0.2em;
	border-radius: 0.4em;
	font-family: 'Montserrat', sans-serif;
	font-size: inherit;
}

#main-vue {
	position: relative;
	
	width: 80vw;
	margin: auto;
	margin-top: 0;
	margin-bottom: 0;
	padding-bottom: 2rem; /* Footer space */
	min-height: calc(100vh - 2rem);
	
	background-color: #ebd5c0;
	background-image: url("../img/site/scribble-light.png");
	background-blend-mode: multiply;
	
	box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.5);
}

a, a:visited {
	color: black;
	text-decoration: none;
	
	transition: color 0.1s;
}

a:hover {
	color: #777;
}

a svg {
	display: inline-block;
	height: 1em;
	width: 1em;
	transition: fill 0.1s;
}

a:hover svg { 
	fill: #777;
}

/* Header */

#header {
	padding: 0;
	margin-bottom: 1rem;
	text-align: center;
	
	height: 5rem;
}

#header .title {
	font-size: 5rem;
	font-family: "Chopin";
	overflow: hidden;
	white-space: nowrap;	
}

@media only screen and (max-width: 1280px) {
	#header .title {
		font-size: 6vw;
	}
}

/* Menu */

.menu {
	display: inline-flex;
	position: absolute;
	right: 1rem;
	top: calc(1.5rem);
}

.menu a {
	margin: 1rem;
}

.menu a svg {
	display: inline-block;
	height: 1.5rem;
	width: 1.5rem;
}

/* Home Menu */

#home-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.home-menu-item {
	position: relative;
	
	width: 100%;
	height: 25vh;
	line-height: 25vh;
	text-align: center;
	font-size: 2.5em;
	
	transition: transform 0.2s;
	
	color: white;
	text-shadow:
	   2px 2px 0 #222,
	 -1px -1px 0 #222,  
	  1px -1px 0 #222,
	  -1px 1px 0 #222,
	   1px 1px 0 #222;
	   
	border-bottom: #222 1px solid;
				 
	cursor: pointer;
}

.home-menu-item:last-of-type {
	border-bottom: none;
}

.home-menu-item span {
	display: inline-block;
	transform: scale(1);
	transition: transform 0.2s;
}

.home-menu-item:hover span {
	transform: scale(1.05);
}

.home-menu-item-bg {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	
	opacity: 0;
	transition: opacity 1s;
	
	background-size: 95vw;
	animation: home-menu-item-anim 7.5s ease-in-out infinite;
	animation-direction: alternate;
}

.home-menu-item:nth-child(odd) .home-menu-item-bg {
	animation-direction: alternate-reverse;
}

@keyframes home-menu-item-anim {
	from { background-position-x: 0; }
	to { background-position-x: 100%; }
}

.opaque {
	opacity: 1;
}

.home-section {
	margin-left: 2rem;
	margin-right: 2rem;
	clear: both;
	overflow: auto;
}

.contact form {
	margin: 1em;
	padding: 1em;
	background-color: rgba(0, 0, 0, 0.1);
}

.contact label {
	display: inline-block;
	width: 200px;
	text-align: right;
	vertical-align: top;
	line-height: 2em;
}

.contact textarea {
	width: 40%;
}

.contact input[type=submit] {
	padding: 1em;
	padding-left: 3em;
	padding-right: 3em;
	margin: 1em;
	margin-left: 200px;
}

/* Object Preview */

#object-list-container {
	width: 100%;
}

#object-list-filters {
	padding: 0.2em;
	margin-left: 5vw;
	margin-right: 5vw;
}

#object-list-filters span {
	margin-right: 1em;
}

#object-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
}

.object-li {
	width: 16vw;
	height: 16vw;
	margin: 1em;
	
	cursor: pointer;
}

.object-li img {
	width: 16vw;
	height: 16vw;
	object-fit: cover;
}

.object-li div {
	position: relative;
	bottom: 2.5em;
	text-align: center;
	margin-top: 0;
	opacity: 0;
	transition: opacity 0.25s, margin-top 0.25s;
	padding: 0.5em;
	z-index: 10;
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
}

.object-li:hover div {
	margin-top: -6vh;
	opacity: 1;
	z-index: 10;
}

.notice {
	padding: 2em;
	margin: auto;
}

/*
	Object View
*/

.object-view {
	position: relative;
	
	padding-left: 2em;
	padding-right: 2em;
	min-height: 85vh;
}

.object-view img {
	display: block;
	max-width: 90%;
	max-height: 85vh;
	
	position: absolute;
	top: 50%;
	right: 50%;
	-ms-transform: translate(50%, -50%);
	transform: translate(50%, -50%);
}

.object-view-title {
	position: absolute;
	top: 1rem;
	left: 1rem;
	font-size: 2.5em;
		
	padding: 0.5rem;
	padding-left: 2rem;
	padding-right: 2rem;
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 1.5rem;
	
	color: white;
	text-shadow:
	   2px 2px 0 #555,
	 -1px -1px 0 #555,  
	  1px -1px 0 #555,
	  -1px 1px 0 #555,
	   1px 1px 0 #555;
	
	transition: background-color 0.25s;
	
	z-index: 1;
}

.object-view-title:hover {
	background-color: rgba(0, 0, 0, 0.3);
}

.object-view-infos {
	position: absolute;
	top: 5.5rem;
	left: 2rem;
	transition: max-width 0.5s, max-height 0.5s, background-color 0.25s;
	white-space: nowrap;
	overflow: hidden;
	font-size: 1.25rem;
		
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 2rem;
	
	color: white;
	text-shadow:
	   2px 2px 0 #555,
	 -1px -1px 0 #555,  
	  1px -1px 0 #555,
	  -1px 1px 0 #555,
	   1px 1px 0 #555;
	
	z-index: 1;
	
	max-width: calc(1.5rem);
	max-height: calc(1.5rem);
	padding: 1em;
}

.object-view-infos .plus-icon {
	position: absolute;
	top: 0.2rem;
	left: 0.65rem;
	font-size: 3rem;
	padding-left: 0.5rem;
}

.object-view-infos:hover {
	max-width: 75vw;
	max-height: 25vh;
	background-color: rgba(0, 0, 0, 0.3);
}

.object-view-infos-list {
	display: inline-flex;
	padding-left: 2rem;
}

.object-view-infos-list span {
	margin-left: 0.75em;
}

.object-view-3d-toggle {
	position: absolute;
	top: 4rem;
	right: 2rem;
	height: 20px;
	padding: 0.75rem;
	transition: background-color 0.25s;
	font-size: 1.25rem;
		
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 1rem;
	
	color: white;
	cursor: pointer;
	
	z-index: 1;
}

.object-view-3d-toggle:hover {
	background-color: rgba(0, 0, 0, 0.3);
}

.object-view img:fullscreen,
.object-view img:-moz-full-screen,
.object-view img:-ms-full-screen,
.object-view img:-webkit-full-screen {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
}

.model3d {
	text-align: center;
}

/*
	Footer
*/

#footer {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	
	max-height: 4rem;
	
	padding: 0.5rem;
	text-align: right;
	
	opacity: 0.5;
}

.loader-container {
	position: absolute;
	z-index: 2;
	top: calc(50% - 60px);
	left:calc(50% - 60px);
}

.loader {
	border: 16px solid #EEEEEE;
	border-top: 16px solid #999999;
	border-radius: 50%;
	width: 120px;
	height: 120px;
	animation: spin 2s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
