/* CSS Document */

/*********/
/* FONTS */
/*********/
@font-face {
	font-family: 'eenfont';
	src: url('../fonts/eenfont.woff2') format('woff2'),
		url('../fonts/eenfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}


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

button,
summary {
	cursor: pointer;
}


/*********************/
/* CUSTOM PROPERTIES */
/*********************/
:root {
	/* startje */
	--main-color: #C70025;
	--sub-color: #FF8484;
	--color-text: #3A3A4D;
	--background-color: #FFFFFF;
	--shadow-color: #bfafb2;

	--transition03s: .3s;
}


/*************/
/* DARK MODE */
/*************/
@media (prefers-color-scheme: dark) {
	:root {
		--color-text: #eee;
		--background-color: #292C35;
	}
}


/****************/
/* JOUW STYLING */
/****************/
body {
	font-family: Helvetica, 'Open sans', sans-serif;
	color: var(--color-text);
	background-color: var(--color-background);

	padding: 0;
	margin: 0;
}

/*****************/
/* PHONE DISPLAY */
/*****************/

@media (min-width:24em) {
	ul {
		grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
	}
}

/*******/
/* NAV */
/*******/

nav {
	background-color: var(--background-color);
	text-align: center;
	border-radius: .5em;
	height: 12em;

	position: sticky;
	display: flex;
	justify-content: center;
	align-items: center;

	top: 0;
	z-index: 1;
}

nav::before {
	font-weight: normal;
	text-align: center;

	opacity: .25;
	left: 0;
	right: 0;
	top: 0;
	margin: 0;
	z-index: 1;
}

nav section:first-of-type {
	background-image: linear-gradient(to right, var(--sub-color), var(--background-color));
	box-shadow: 0 0 1em 0 var(--shadow-color);
	border-radius: inherit;
	width: 100%;
	height: 100%;

	position: absolute;
	display: flex;
	justify-content: flex-end;
	align-items: center;

	transform: translateY(calc(-100% + 3em));
	transition: .8s;
}

nav section:first-of-type.showMenu {
	transform: translateY(-4em);
}


/*************************/
/* ASIDE - RADIO BUTTONS */
/*************************/

aside {
	background-color: var(--background-color);
	box-shadow: inset 0.5px 0.5px 2px 0 var(--shadow-color);

	margin: auto;
	width: 25em;
	height: 3em;
	border-radius: 10em;
	margin-bottom: 3em;

	display: flex;
	justify-content: space-around;
	align-items: center;
}

input[type="radio"] {
	appearance: none;
	display: none;
}

label {
	color: var(--color-text);
	background-color: inherit;
	text-align: center;
	font-size: 1em;
	width: 70px;
	height: 40px;
	border-radius: 50em;

	display: flex;
	justify-content: center;
	align-items: center;

	transition: linear var(--transition03s);
}

label:hover {
	color: var(--main-color);
	cursor: pointer;
}

input[type="radio"]:checked+label {
	background-color: var(--main-color);
	color: var(--background-color);
	font-weight: bold;
}


/********************/
/* LIST CHANGE VIEW */
/********************/

ul.tokyo li:not(.tokyo) {
	display: none;
}

ul.kyoto li:not(.kyoto) {
	display: none;
}

ul.osaka li:not(.osaka) {
	display: none;
}

ul.rural li:not(.rural) {
	display: none;
}


/**************************/
/* ARROW DOWN IN THE MENU */
/**************************/

nav>section>span:first-of-type {
	color: var(--main-color);
	font-weight: bold;
	font-size: 1.5em;

	display: flex;
	position: relative;
	top: 2.9em;
	left: -50%;
}


/************/
/* NAV TEXT */
/************/

h1 {
	font-family: 'Koulen', sans-serif;
	color: var(--main-color);
	font-size: 2em;
	margin-top: 3em;
}

section:nth-of-type(2) p {
	max-width: 30em;
	margin: -1.5em 0 3em 0;
	padding: 0 1em 0 1em;
}

section:nth-of-type(2) span {
	color: var(--main-color);
}


/**************/
/* PHOTO LIST */
/**************/

/* de lijst met foto's */
ul {
	list-style: none;
	grid-gap: 3em;
	margin: 1em;
	padding: 0 2em 2em;
	display: grid;
}

li {
	background-color: var(--background-color);
	box-shadow: 0 0 .5em, .25em .25em .25em var(--shadow-color);
	max-width: 30em;
	padding: 1.5em 1.5em 0;

	position: relative;
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;

	transition: var(--transition03s);
	cursor: grab;
}

li:hover {
	box-shadow: 0 0 10px var(--sub-color);
}

/* de li's oppakken - drag & drop */
li.sortable-ghost {
	opacity: .25;
}

li.sortable-drag {
	cursor: grabbing;
}

/* de foto's die een kleine slag draaien */
li:nth-of-type(9n+1) {
	transform: rotate(1deg);
}

li:nth-of-type(9n+2) {
	transform: rotate(-.5deg);
}

li:nth-of-type(9n+3) {
	transform: rotate(1.75deg);
}

li:nth-of-type(9n+4) {
	transform: rotate(-1.25deg);
}

li:nth-of-type(9n+5) {
	transform: rotate(-.5deg);
}

li:nth-of-type(9n+6) {
	transform: rotate(3.25deg);
}

li:nth-of-type(9n+7) {
	transform: rotate(.5deg);
}

li:nth-of-type(9n+8) {
	transform: rotate(-2.25deg);
}

li:nth-of-type(9n+9) {
	transform: rotate(-.75deg);
}

/* titels van de foto's */
h2 {
	font-family: 'Koulen', sans-serif;
	text-align: center;
	font-size: 1.3em;
	line-height: 1em;
	min-height: 3em;
	margin: 1em;
}

img {
	width: 100%;
	height: auto;
	display: block;
}


/********************/
/* DRAG & DROP HINT */
/********************/

div:first-of-type {
	background-color: var(--background-color);
	height: 8em;
	border-radius: .5em;

	display: flex;
	flex-direction: column;
	position: fixed;
	right: 1%;
	bottom: 50%;

	transition: .5s ease-in-out;
}

div:first-of-type img {
	width: 3em;
	border-radius: .5em;
	position: fixed;
}

div:first-of-type p:first-of-type {
	color: var(--main-color);
	transform: scale(0.8);
	text-align: center;
	width: 3em;
	padding-top: 2.7em;

}

div:first-of-type p:last-of-type {
	color: var(--background-color);
	text-align: center;
	font-weight: 900;
	margin-top: -5em;
	z-index: 10;
	opacity: 0;
}

/* Wanneer er over de hint wordt gehovert */

div:first-of-type:hover {
	background-color: var(--main-color);
}

div:first-of-type:hover p:last-of-type {
	padding-top: 2.3em;
	font-size: 2em;
	opacity: 1;

	animation-name: arrowMove;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out;
	animation-direction: alternate;
}

@keyframes arrowMove {
	0% {
		transform: translateX(8px);
	}

	100% {
		transform: translateX(-8px);
	}
}


/*******************/
/* ARROW UP BUTTON */
/*******************/

i img {
	width: 3em;
	height: 2.5em;

	position: fixed;
	right: 1%;
	bottom: 3%;
	cursor: pointer;
	transition: var(--transition03s) ease-out;
}

i img:hover {
	opacity: .7;
}