/* Universal Styles

  1. Variables
  2. Universal
  3. Typography
  4. Media
  5. Buttons

*/

/* Uitzonderingen */
.aankondiging {
	background-color: var(--contrast);
	padding: 1em;
	margin: 1em;
	border-radius: 10px;
}

.aankondiging p,
.aankondiging a {
	color: white;
	font-size: 18px;
	font-weight: bold;
}
.aankondiging a {
	text-decoration: underline;
}

.aankondiging a:hover {
	text-decoration: underline;
	opacity: 0.8;
}

/* 1. Variables
=================== */

:root {
	/* Colors */
	--main-background: #fbe7e6;
	--second-background: #fbe7e6;
	--light-accent: #fff3ef;
	--contrast: #95b1a4;
	--button-accent: #d4af37;
	--text-accent: #dc908e;
}

/* 2. Universal
=================== */

* {
	box-sizing: border-box;
	scroll-margin: 100px;
	margin: 0;
	padding: 0;
}

html,
body {
	background-color: var(--main-background);
	text-align: center;
	max-width: 100%;
	padding: 0;
	margin: 0;
	min-width: 300px;
	--header-height: 4.5rem;
	scroll-behavior: smooth;
}

main {
	margin-top: var(--header-height);
}

footer {
	background-color: var(--light-accent);
	margin-top: 100px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	padding: 5rem 1rem;
}

/* 3. Typography
=================== */

html {
	font-size: clamp(16px, calc(10px + 1vw), 18px);
	font-family: 'Source Sans Pro', Sans-Serif;
	color: black;
}

h2 {
	font: 900 2.6rem 'Playfair Display', Serif;
}

h3 {
	font: 700 1.3rem 'Playfair Display', Serif;
	letter-spacing: 0.05rem;
}

h3 a {
	font-size: 1.3rem;
	text-decoration: underline;
}

p,
a,
li,
table,
label,
button,
small,
textarea,
input {
	font-size: 1.1rem;
	text-decoration: none;
	color: black;
}

textarea {
	font-family: 'Source Sans Pro', Sans-Serif;
}

::placeholder {
	font: 400 1rem 'Source Sans Pro', Serif;
	text-decoration: none;
	color: gray;
	margin: 0;
}

.important-h3 {
	background: var(--contrast);
	color: white;
	padding: 0.5rem 0.3rem;
	margin-bottom: 1rem;
	border-radius: 10px;
}

/* 4. Media
=================== */

video,
img {
	max-width: 100%;
}

/* 5. Buttons
=================== */

.button {
	display: inline-block;
	padding: 1em 1.5em;
	background-color: var(--contrast);
	text-transform: uppercase;
	color: white;
	box-shadow: black 2px 3px 12px;
	transition: all 200ms ease-in-out;
	border: 3px solid var(--button-accent);
	width: 13rem;
	border-radius: 5px;
	text-align: center;
}

.button:hover {
	background-color: #a3c2b3;
	color: white;
	border: 3px solid white;
	transition: box-shadow 70ms linear;
}

.button:active {
	box-shadow: none;
}

.submit {
	display: inline-block;
	padding: 1em 1.5em;
	background-color: var(--contrast);
	text-transform: uppercase;
	color: white;
	box-shadow: black 2px 3px 12px;
	transition: all 200ms ease-in-out;
	border: 3px solid var(--button-accent);
	width: 205px;
	border-radius: 5px;
	text-align: center;
	-webkit-appearance: none;
}

.submit:hover {
	background-color: #a3c2b3;
	color: white;
	border: 3px solid white;
	transition: box-shadow 70ms linear;
}

.submit:active {
	box-shadow: none;
}

/* Classes
============ */

.light-box {
	border: 2px solid white;
	background: var(--light-accent);
	border-radius: 10px;
	padding: 2rem 1rem;
}

.diff-color {
	color: var(--text-accent);
}

/* Forms
============ */

form {
	text-align: left;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
	padding-top: 2rem;
	margin: 2rem 0;
}

form label {
	width: 100%;
}

form span.label {
	padding: 1rem 0.3rem;
	font-size: 1.2rem;
}

input,
textarea {
	padding: 1rem 1rem;
	border: 1px solid lightgray;
	border-radius: 15px;
	font-size: 1rem;
	width: 100%;
	margin-top: 0.7rem;
}

.invalid {
	border: 2px solid red;
}

.valid {
	border: 2px solid lightgreen;
}

input:focus.invalid {
	outline: none;
	border: 2px solid red;
}

input:focus.valid {
	outline: none;
	border: 2px solid lightgreen;
}

textarea:focus.invalid {
	outline: none;
	border: 2px solid red;
}

textarea:focus.valid {
	outline: none;
	border: 2px solid lightgreen;
}

form p {
	padding: 2rem;
	text-align: center;
	white-space: pre-line;
}

.error {
	color: red;
	font: 300 16px 'Source Sans Pro', Sans-Serif;
	display: block;
	padding: 0.5rem;
}

/* Grid
========== */

.fb-grid {
	display: grid;
	grid-template: auto / 1fr;
	margin: 0 2rem;
	justify-items: center;
}

.column {
	width: min(100%, 500px);
}

@media only screen and (min-width: 1100px) {
	.fb-grid {
		justify-content: center;
		grid-template: auto / 1fr 1fr;
		margin: 0 2rem;
	}

	.column.animation {
		display: block;
	}
}

/* Animations
============== */

@keyframes slideInFromLeft {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(0);
	}
}

@keyframes slideInFromBottom {
	0% {
		transform: translateY(100%);
	}
	100% {
		transform: translateY(0);
	}
}

@keyframes hangingUpPlants {
	0% {
		transform: translateY(30%);
	}
	100% {
		transform: translateY(0);
	}
}

@keyframes slideInFromRight {
	0% {
		transform: translateX(50%);
	}
	100% {
		transform: translateX(0);
	}
}

/* Footer */

.made-by-fabio {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 1rem;
	left: 1rem;
	bottom: 1rem;
	height: 3rem;
}

.made-by-fabio p {
	display: inline-block;
	color: gray;
	line-height: 1.5;
}

.made-by-fabio img {
	display: inline-block;
	border-radius: 50%;
	height: 100%;
}
