#formcontainer,
#helpformcontainer,
#settingsformcontainer,
#aboutformcontainer {
	display: block;
	/* set to block when shown */
	position: absolute;

	width: clamp(350px, 30em, 95%);
	left: calc(50% - clamp(350px, 30em, 95%)/2);
	top: 10%;
	height: 80%;

	/* 40em is temporary, for testing */
	overflow: hidden;
	/*the overflow of the innercontainer is auto; to preserve the rounded corners */
	padding: 0;
	z-index: 10;
	/* above the voile */

	/* copied from siginin form: */
	font-size: .9em;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	border-radius: 16px;
	box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.15);
	background: white;
}

.darkmode #formcontainer {
	background: #555;
}

#formcontainer #formclosebuttonwrapper {
	position: relative;
	top: -1em;
	right: -1em;
	padding: 0;
	width: 100%;
}

#formcontainer .innercontainer {
	padding: 1em;
	height: 100%;
	overflow-y: auto;
	/* the outer container has overflow:hidden, to preserve the rounded corners of the scroll bar */
	scrollbar-width: 16px;
	scrollbar-color: #777 #eee;
}

.darkmode #formcontainer .innercontainer {
	scrollbar-color: #777 #555;
}



#formcontainer #buttonclose:hover {
	color: #888;
	cursor: pointer;
}


#formcontainer #formclosebutton {
	position: absolute;
	top: .5em;
	right: .5em;
	font-size: 1em;
	color: #333;
	transition: all 300ms;
	cursor: pointer;
}

#formcontainer #formclosebutton:hover {
	color: #777;
}

.darkmode #formcontainer #formclosebutton {
	color: #ddd;
}

#formcontainer #formclosebutton:hover {
	color: #777;
}


#introtext {
	transition: all 750ms;
	/* when the signin button is clicked, the height is animated from 1em to 0em and vice versa */
}


#formcontainer #containersub {
	padding-left: 1em;
	padding-top: 1em;
	padding-right: 1em;
	padding-bottom: 1em;
	border: 1px solid #333;
	border-radius: 4px;
}


#formcontainer hr {
	border-color: #111;
}

#formcontainer :is(p, h3) {
	color: #111;
}

.darkmode #formcontainer hr {
	border-color: #eee;
}

.darkmode #formcontainer :is(p, h3) {
	color: #eee;
}

/* for now... */
.darkmode #formcontainer :is(#containersub, #example1) {
	border: 2px solid #eee;
}

.darkmode .formclosebutton

/* the innerwrapper of the signinform has 1em padding; correct the above definition for this padding: */
	{
	color: #eee;
}

.darkmode .formclosebutton p {
	color: #eee;
}




/* especially for settings form: */

#formcontainer .settingsbutton {
	display: inline;
	border: 1px solid gray;
	border-radius: 50%;
	width: 3em;
	height: 3em;
	background: white;
	color: #333;
	padding: 0;
	margin: 0;
	margin-right: .0em;
}

#formcontainer .settingsbutton:hover {
	background: #ccc;
	cursor: pointer;
	transition: all 300ms;
}

/* .button:hover { background:lightgrey; } */
#formcontainer .buttoncontent {
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
	font-size: 1.25em;
}

#formcontainer #example1 {
	display: inline-block;
	padding: .5em;
	margin-top: 0em;
	border: 1px solid #333;
	border-radius: 4px;
	transition: none;
}

#formcontainer .keeptogether {
	display: flex;
	margin-top: .5em;
	gap: 1em;
}

#formcontainer mspace {
	display: inline;
	width: 1em;
}

#formcontainer .selected {
	background: #ccc;
}

.darkmode #formcontainer .selected {
	background: #aaa;
}

#introtext {
	transition: all 750ms;
	/* when the signin button is clicked, the height is animated from 1em to 0em and vice versa */
}

#formcontainer #containersub {
	padding-left: 1em;
	padding-top: 1em;
	padding-right: 1em;
	padding-bottom: 1em;
	border: 1px solid #333;
	border-radius: 4px;
}