body {
	font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: black;
	background-color: white;
}

h1,
h2,
h3 {
	color: red;
}

.aanmeldalert {
	color: red;
}

#main {
	display: grid;
	grid-template-areas:
		"header header header header"
		"subheader subheader subheader subheader"
		"afbeelding-container afbeelding-container infotext infotext"
		"form participants participants participants";
	grid-template-columns: 5fr 1fr 3fr 3fr;
	gap: 2em;
	column-gap: 2em;
}

#header {
	grid-area: header;
	display: flex;
	gap: 0.25em;
	justify-content: center;
	font-size: 2.5rem;
	color: blue;
	position: relative;
}

#header .logo-container {
	height: 2.5em;
	/* optioneel: hoogte gelijk aan tekst */
}

.logo-container {
	max-width: 4em;
	max-height: 2em;

	& img {
		max-width: 100%;
		max-height: 100%;
	}
}

.imgplaceholder {
	border: 3px solid black;
	/*background-color: yellow;*/
	height: 100%;
	width: 100%;
	display: flex;
	vertical-align: super;
}

.imgplaceholder.large {
	font-size: xx-large;
}

.imgplaceholder.small {
	font-size: small;
}

#subheader {
	grid-area: subheader;
	padding: 1em 2em;
	font-size: 1.5rem;
	text-align: center;
}

#afbeelding-container {
	grid-area: afbeelding-container;
	display: flex;

	& img {
		width: 100%;
	}
}

#infotext {
	grid-area: infotext;
}

#participants {
	grid-area: participants;
}

#form {
	grid-area: form;
	margin-bottom: auto;
	padding: 1rem 1rem;
}

#subheader,
#form,
#infotext,
#participants {
	border: 0.5rem solid blue;
}

#infotext,
#participants {
	padding: 2rem;
}

#header,
#subheader,
#infotext,
#afbeelding-container,
#form,
#participants {
	position: relative;
	/* nodig voor de edit-color-btn's (want die hebben position absolute en zoeken een parent die relative is) */
}

.tablecontainer {
	td:nth-child(3) {
		text-align: center;
	}

	td:nth-child(4) {
		text-align: center;
	}

	td:nth-child(5) {
		text-align: center;
	}
}

/* We willen geen spinner-buttons bij numerieke input:*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Firefox */
input[type=number] {
	-moz-appearance: textfield;
	appearance: textfield;
}

form {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	margin-bottom: auto;
	/*padding: 1rem 1rem;*/
	font-size: 1.5rem;

	& div {
		display: flex;
		flex-direction: row;
		justify-content: space-between;

		& input {
			font-size: 1.5rem;
		}
	}

	& button {
		font-size: 1.5rem;
		margin-left: auto;
		color: white;
		background-color: blue;
		padding: 0.25em 0.5em;
	}
}

li {
	margin-bottom: 1em;
}

.arrow {
	border: solid lightblue;
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 2px;
	margin: 0 0.5em 0.25em 0;
	/*cursor: pointer;*/
}

.arrow.right {
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
}

.arrow.left {
	transform: rotate(135deg);
	-webkit-transform: rotate(135deg);
}

.arrow.up {
	transform: rotate(-135deg);
	-webkit-transform: rotate(-135deg);
}

.arrow.down {
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
}

@media only screen and (max-width: 1300px) {
	#main {
		padding: 0;
		grid-template-areas:
			"header"
			"subheader"
			"afbeelding-container"
			"infotext"
			"form"
			"participants";
		grid-template-columns: 1fr;
	}

	#subheader {
		font-size: 3.0rem;
	}

	#infotext {
		font-size: 2.5rem;
	}

	form {
		font-size: 2.5rem;

		& div {
			flex-direction: column;
			gap: 0.5rem;

			& input {
				font-size: 2.5rem;
			}
		}

		& button {
			font-size: 2.5rem;
		}
	}

	.participants {
		font-size: 2.5rem;
	}

	.arrow {
		display: none;
		/*is toch te klein*/
	}
}

@media print {
	#main {
		display: grid;
		grid-template-areas:
			"header header"
			"subheader subheader"
			"afbeelding-container infotext"
			"form infotext";
		grid-template-columns: 50% 50%;
		gap: 1em;
		column-gap: 1.5rem;
		padding-right: 1.5rem;
	}

	#header {
		/*font-size: 2rem;*/
		zoom: 0.5;
	}

	#subheader {
		/*font-size: 1.25rem;*/
		zoom: 0.6;
	}

	form {
		justify-content: flex-start;
		gap: 0;
		margin-bottom: 0;
		font-size: 0.8rem;

		& div {
			flex-direction: column;
			gap: 0.3rem;

			& input {
				font-size: 0.8rem;
			}
		}

		& button {
			font-size: 0.8rem;
		}
	}

	#infotext {
		/*font-size: 0.8rem;*/
		zoom: 0.8;
	}

	#afbeelding-container {
		grid-area: afbeelding-container;
		width: 100%;
		margin-bottom: auto;
	}

	.dontprint {
		display: none;
	}
}

[contenteditable="true"] .pcannotedit {
	background-color: lightblue;
	/* jouw styling hier */
}

/*
.noteditable {
	background-color: lightgray ;}


.editable {
	background-color: yellow;
}
*/

#customize-toolbar {
	font-size: 1em;
	position: fixed;
	left: 3rem;
	top: 1rem;
	z-index: 1000;
	max-width: 10em;
	display: none;
	/*(wordt op 'flex' gezet als-ie getoond moet worden)*/
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content:start;
	gap: 0.5em;
	margin: 1em 0;
	background: #ffffffa0;
	
	border-radius: 10px;
	box-shadow: 0 2px 8px #00000011;
	padding: 0.7em 1.2em;
	/*align-items: center;*/
	& .subtoolbar {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}

	& i {
		font-size: 1.2em;
	}
}

button {
	margin: 0;
	padding: 0.5em 1.2em;
	font-size: 1em;
	border: none;
	border-radius: 6px;
	background: #007bff;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s;
}

button:hover {
	background: #0056b3;
}

.customize-wrapper {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: end;
	gap: 0.5rem;
	z-index: 20;
}

.customize-overlay {
	position : absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: 4px dashed;
	border-color: #00000044;
    box-sizing: border-box;
}

.customize-overlay.isselected {
	border-color: #ff0000;
}

.customize-btn {
	width: 3rem;
	/* vaste breedte */
	height: 3rem;
	/* vaste hoogte */
	font-size: 2rem;
	background: #007bff;
	/* kleur van het icoon */
	color: #fff;
	border: 3px solid white;
	/* randkleur */
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px #00000011;

	cursor: pointer;
	z-index: 10;
	padding: 0;
}

#help-dialog {
	position: fixed;
	background-color: #fff;
	padding: 2em;
	border-radius: 10px;
	max-width: 50vw;
	box-shadow: 0 4px 24px #00000044;
	z-index: 2000;
}


button:disabled,
button[disabled] {
	/*	Een disablede input wordt het best duidelijk als er een label omheen staat;
		dan wordt nl. label:has(input:disabled) geselecteerd (zie hieronder).
		Het verschil tussen input:disabled en input[disabled] is dat in het ene geval
		geldt dat er uberhaupt een attribuut 'disabled'; in het andere geval moet 'disabled' ook true zijn.
	*/
	background: #cccccc !important;
	color: #888888 !important;
	cursor: not-allowed !important;
	opacity: 0.3 !important;
	border: none;
}

label:has(input:disabled),
label:has(input[disabled]) {
	opacity: 0.3;
	pointer-events: none;
}

.required-star {
	color: #d00;
	font-weight: bold;
}

#design-dialog {
	background-color: white;
	padding: 2em;
	border-radius: 10px;
	min-width: 45em;
	box-shadow: 0 4px 24px #00000044;
}

#cdd-body, #cdd-container, #cdd-button, #cdd-table {
	font-size: larger;
	font-weight: bold;
}

.cddrow {
	display: flex;
	flex-direction: row;
	gap: 0.5em;
	justify-content: flex-start;
	align-items: center;
	margin: 0.5em 0;
	& label {
		width: 30%;
		/*background-color: rosybrown;*/
		margin-right: 0.5em;
		& input, & select {
			float: right;
		}
	}

	& button {
		flex: 1;
		padding: 0.5em 1em;
		background-color: #007bff;
		color: white;
		border: 2px solid grey;
		border-radius: 0.3em;
		cursor: pointer;
		transition: background-color 0.2s;
		justify-self: flex-end;
	}

	& input[type="color"] {
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		background-color: transparent;
		width: 3em;
		height: 3em;
		border: none;
		cursor: pointer;
	}

	input[type="color"]::-webkit-color-swatch {
		border-radius: 50%;
  		border: 1px solid #000000;
	}
	input[type="color"]::-moz-color-swatch {
		border-radius: 50%;
		border: 1px solid #000000;
	}
}

.cscolor {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	border: 1px solid black;
	border-radius: 50%;
	margin-right: 1em;
	cursor: grab;
}