/*=====================================================================*/
.div-youtubecontainerpadding
	{
	position:  relative;
	margin-left:  -30px;
	margin-top:    10px;
	margin-bottom: 60px;
	padding-left:  40px;
	}

.div-youtubecontainercontent
	{
	width: 100%;
	}

/* 240px 300px */
.iframe-youtube
	{
	min-width:          200px;
	min-height: calc( ( 200px * 9 / 16 ) + 20px ); /* + 20px for space below */

	width: calc( 100vw
		- 15rem
		- 18.75rem
		- 85px - 20px );   /* - 85px for the margin - 20px for the scrollbar */
	width: calc( 100vw
		- var(--burgerdiscussionlistiframewidth)
		- var(--burgeranimationlistiframewidth)
		- 85px - 20px );   /* - 85px for the margin - 20px for the scrollbar */

	height: calc( ( ( 100vw
		- 15rem
		- 18.75rem
		- 85px - 20px ) * 9 / 16 ) + 20px );       /* + 20px for space below */
	height: calc( ( ( 100vw
		- var(--burgerdiscussionlistiframewidth)
		- var(--burgeranimationlistiframewidth)
		- 85px - 20px ) * 9 / 16 ) + 20px );       /* + 20px for space below */

	max-width: 840px;

	max-height: calc( ( 840px * 9 / 16 ) + 20px ); /* + 20px for space below */

	margin-left:  -10px;
	margin-bottom: 10px;
	border: 2px solid black; border: 2px solid var(--animationbordercolour);
	overflow:    hidden;  /* this doesn't work to avoid unwanted scroll bars */
	}

/* left sidebar is not shown when width is less than 1200px */
/* 300px */
@media (max-width: 75rem)
{
.iframe-youtube
	{
	width: calc( 100vw
		- 18.75rem
		- 100px - 20px ); /* - 100px for the margin - 20px for the scrollbar */
	width: calc( 100vw
		- var(--burgeranimationlistiframewidth)
		- 100px - 20px ); /* - 100px for the margin - 20px for the scrollbar */

	height: calc( ( ( 100vw
		- 18.75rem
		- 100px - 20px ) * 9 / 16 ) + 20px );      /* + 20px for space below */
	height: calc( ( ( 100vw
		- var(--burgeranimationlistiframewidth)
		- 100px - 20px ) * 9 / 16 ) + 20px );      /* + 20px for space below */
	}
}

/* right sidebar is not shown when width is less than 850px */
/* 850px */
@media (max-width: 53.125rem)
{
.iframe-youtube
	{
	width:  calc(     100vw - 90px - 20px ); /* - 90px for the margin - 20px for the scrollbar */
	height: calc( ( ( 100vw - 90px - 20px ) * 9 / 16 ) + 20px );     /* + 20px for space below */
	}
}

/*=====================================================================*/
.div-animationcontainerpadding
	{
	position:   relative;
	margin-left:   -30px;
	margin-bottom:  10px;
	padding-left:   40px;
	padding-bottom: 20px;
	}

.div-animationcontainerpadding:focus-visible
	{
	border-radius:                   25px;
	outline-offset:                   3px;
	outline: 5px solid hsl(110, 100%, 30%); outline: 5px solid var(--textnavigationthispagelinkcolour);
	}

.div-animationcontainercontent
	{
	width: 100%;
	}

.p-hidewhenwidechangetolandscapemode
	{
	display:       none;
	margin-left:  -10px;
	margin-bottom: 20px;
	padding-right: 10px;
	font-size: xx-large;
	font-weight:   bold;
	font-variant: small-caps;
	line-height:   110%;
	}

/* 500px */
@media (max-width: 31.25rem)
{
.p-hidewhenwidechangetolandscapemode
	{
	display: block;
	}
}

.p-hidewhenwidechangetolandscapemode::after
	{
	content: "\APlease note, the animation is better viewed in landscape mode";
	color:            red;
	font-size:    x-large;
	font-weight:     bold;
	font-variant:  normal;
	white-space: pre-wrap;
	opacity:          0.5;
	}

.p-nopointingdevice
	{
	display:       none;
	margin-bottom: 30px;
	font-size:    large;
	font-weight:   bold;
	line-height:   120%;
	color:          red;
	opacity:        0.5;
	}

@media (pointer: coarse)
{
.p-nopointingdevice
	{
	display: block;
	}
}

.p-nopointingdevice::after
	{
	content: "Please note, a pointing device is required to use the interactive feature";
	}

.p-showwhennopointingdevice
	{
	display:          none;
	color: hsl(0, 0%, 35%); color: var(--texttitlecolour);
	}

@media (pointer: coarse)
{
.p-showwhennopointingdevice
	{
	display: block;
	}
}

/*=====================================================================*/
.span-textasabuttonyellow,
.span-textasabuttonyellowfat
{
	vertical-align:           2px;
	padding-bottom:           1px;
	color:                  black;
	font-size:                70%;
	border-radius:           10px;
	outline: 2px outset darkkhaki;
	background:              gold;
}

.span-textasabuttonyellowfat
{
	display: inline-block;
	vertical-align:  -3px;
	font-size:        60%;
	line-height:     100%;
	text-align:    center;
}

.span-textasabuttonbrown
{
	vertical-align:           2px;
	padding-bottom:           1px;
	color:                  black;
	font-size:                70%;
	border-radius:           10px;
	outline: 2px outset darkkhaki;
	background:         burlywood;
}

.span-textasabuttongreen
{
	vertical-align:      2px;
	padding-bottom:      1px;
	color:            yellow;
	font-size:           70%;
	border-radius:      10px;
	outline: 2px inset azure;
	background:        green;
}

.span-textasaninputboxchemicalelement
{
	vertical-align:            2px;
	padding-bottom:            1px;
	color:              mediumblue;
	font-size:                 70%;
	border-radius:            10px;
	outline: 2px outset ghostwhite;
	background: hsl(195, 53%, 85%);
}

/*=====================================================================*/
/* min-height is dependent on the lowest button position */

.iframe-animationbuildingthemodelsfourbaseparticles,
.iframe-animationmodalbuildingthemodelsfourbaseparticles
	{
	min-height: 350px;
	}

.iframe-animationthemodelsparticles,
.iframe-animationmodalthemodelsparticles
	{
	min-height: 350px;
	}

.iframe-animationmovingthematterparticles,
.iframe-animationmodalmovingthematterparticles
	{
	min-height: 350px;
	}

.iframe-animationpackingthematterparticles,
.iframe-animationmodalpackingthematterparticles
	{
	min-height: 350px;
	}

.iframe-animationatomicnuclei,
.iframe-animationmodalatomicnuclei
	{
	min-height: 650px;
	}

.iframe-animationatomicnucleibuilder,
.iframe-animationmodalatomicnucleibuilder
	{
	min-height: 650px;
	}

.iframe-animationmatterandlight,
.iframe-animationmodalmatterandlight
	{
	min-height: 350px;
	}

.iframe-animationelectricfields,
.iframe-animationmodalelectricfields
	{
	min-height: 370px;
	}

.iframe-animationgravity,
.iframe-animationmodalgravity
	{
	min-height: 350px;
	}

.iframe-animationsterngerlachexperiment,
.iframe-animationmodalsterngerlachexperiment
	{
	min-height: 350px;
	}

.iframe-animationinteractiontest,
.iframe-animationmodalinteractiontest
	{
	min-height: 440px;
	}

/*=====================================================================*/
/* css aspect ratio cannot be used for the animation iframes */
/* as their minimum widths and minimum heights do not honour their required aspect ratios */

/* 240px 300px */
.iframe-animationbuildingthemodelsfourbaseparticles,
.iframe-animationthemodelsparticles,
.iframe-animationmovingthematterparticles,
.iframe-animationpackingthematterparticles,
.iframe-animationmatterandlight,
.iframe-animationelectricfields,
.iframe-animationgravity,
.iframe-animationsterngerlachexperiment,
.iframe-animationinteractiontest
	{
	min-width: 200px;

	width: calc( 100vw
		- 15rem
		- 18.75rem
		- 85px - 20px );      /* - 85px for the margin - 20px for the scrollbar */
	width: calc( 100vw
		- var(--burgerdiscussionlistiframewidth)
		- var(--burgeranimationlistiframewidth)
		- 85px - 20px );      /* - 85px for the margin - 20px for the scrollbar */

	height: calc( ( ( 100vw
		- 15rem
		- 18.75rem
		- 85px - 20px ) * 530 / 840 ) + 20px );       /* + 20px for space below */
	height: calc( ( ( 100vw
		- var(--burgerdiscussionlistiframewidth)
		- var(--burgeranimationlistiframewidth)
		- 85px - 20px ) * 530 / 840 ) + 20px );       /* + 20px for space below */

	max-width: 840px;

	max-height: calc( ( 840px * 530 / 840 ) + 20px ); /* + 20px for space below */

	margin-left:      -10px;
	margin-bottom:     10px;
	background-color: black;
	border: 2px solid black; border: 2px solid var(--animationbordercolour);
	overflow:        hidden; /* this doesn't work to avoid unwanted scroll bars */
	}

/* 240px 300px */
.iframe-animationatomicnuclei,
.iframe-animationatomicnucleibuilder
	{
	min-width: 200px;

	width:  calc( 100vw
		- 15rem
		- 18.75rem
		- 85px - 20px );      /* - 85px for the margin - 20px for the scrollbar */
	width:  calc( 100vw
		- var(--burgerdiscussionlistiframewidth)
		- var(--burgeranimationlistiframewidth)
		- 85px - 20px );      /* - 85px for the margin - 20px for the scrollbar */

	height: calc( ( ( 100vw
		- 15rem
		- 18.75rem
		- 85px - 20px ) * 650 / 840 ) + 20px );       /* + 20px for space below */
	height: calc( ( ( 100vw
		- var(--burgerdiscussionlistiframewidth)
		- var(--burgeranimationlistiframewidth)
		- 85px - 20px ) * 650 / 840 ) + 20px );       /* + 20px for space below */

	max-width: 840px;

	max-height: calc( ( 840px * 650 / 840 ) + 20px ); /* + 20px for space below */

	margin-left:      -10px;
	margin-bottom:     10px;
	background-color: black;
	border: 2px solid black; border: 2px solid var(--animationbordercolour);
	overflow:        hidden; /* this doesn't work to avoid unwanted scroll bars */
	}

/* left sidebar is not shown when width is less than 1200px */
/* 300px */
@media (max-width: 75rem)
{
.iframe-animationbuildingthemodelsfourbaseparticles,
.iframe-animationthemodelsparticles,
.iframe-animationmovingthematterparticles,
.iframe-animationpackingthematterparticles,
.iframe-animationmatterandlight,
.iframe-animationelectricfields,
.iframe-animationgravity,
.iframe-animationsterngerlachexperiment,
.iframe-animationinteractiontest
	{
	width: calc( 100vw
		- 18.75rem
		- 100px - 20px ); /* - 100px for the margin - 20px for the scrollbar */
	width: calc( 100vw
		- var(--burgeranimationlistiframewidth)
		- 100px - 20px ); /* - 100px for the margin - 20px for the scrollbar */

	height: calc( ( ( 100vw
		- 18.75rem
		- 100px - 20px ) * 530 / 840 ) + 20px );   /* + 20px for space below */
	height: calc( ( ( 100vw
		- var(--burgeranimationlistiframewidth)
		- 100px - 20px ) * 530 / 840 ) + 20px );   /* + 20px for space below */
	}
}

/* left sidebar is not shown when width is less than 1200px */
/* 300px */
@media (max-width: 75rem)
{
.iframe-animationatomicnuclei,
.iframe-animationatomicnucleibuilder
	{
	width: calc( 100vw
		- 18.75rem
		- 100px - 20px ); /* - 100px for the margin - 20px for the scrollbar */
	width: calc( 100vw
		- var(--burgeranimationlistiframewidth)
		- 100px - 20px ); /* - 100px for the margin - 20px for the scrollbar */

	height: calc( ( ( 100vw
		- 18.75rem
		- 100px - 20px ) * 650 / 840 ) + 20px );   /* + 20px for space below */
	height: calc( ( ( 100vw
		- var(--burgeranimationlistiframewidth)
		- 100px - 20px ) * 650 / 840 ) + 20px );   /* + 20px for space below */
	}
}

/* right sidebar is not shown when width is less than 850px */
/* 850px */
@media (max-width: 53.125rem)
{
.iframe-animationbuildingthemodelsfourbaseparticles,
.iframe-animationthemodelsparticles,
.iframe-animationmovingthematterparticles,
.iframe-animationpackingthematterparticles,
.iframe-animationmatterandlight,
.iframe-animationelectricfields,
.iframe-animationgravity,
.iframe-animationsterngerlachexperiment,
.iframe-animationinteractiontest
	{
	width:  calc(     100vw - 90px - 20px ); /* - 90px for the margin - 20px for the scrollbar */
	height: calc( ( ( 100vw - 90px - 20px ) * 530 / 840 ) + 20px );  /* + 20px for space below */
	}
}

/* right sidebar is not shown when width is less than 850px */
/* 850px */
@media (max-width: 53.125rem)
{
.iframe-animationatomicnuclei,
.iframe-animationatomicnucleibuilder
	{
	width:  calc(     100vw - 90px - 20px ); /* - 90px for the margin - 20px for the scrollbar */
	height: calc( ( ( 100vw - 90px - 20px ) * 650 / 840 ) + 20px );  /* + 20px for space below */
	}
}

/*=====================================================================*/

/*=====================================================================*/
.div-youtubemodalcontainerpadding
	{
	position:  relative;
	margin-top:    10px;
	margin-bottom: 60px;
	}

.div-youtubemodalcontainercontent
	{
	width: 100%;
	}

.iframe-youtubemodal
	{
	min-width:        180px;
	min-height: calc( 180px * 9 / 16 );

	width:  calc(     100vw - 90px - 20px ); /* - 90px for the margin - 20px for the scrollbar */
	height: calc( ( ( 100vw - 90px - 20px ) * 9 / 16 ) + 20px );     /* + 20px for space below */

	max-width:          790px;
	max-height: calc( ( 790px * 9 / 16 ) + 20px );                    /* +20px for space below */

	margin-left:      -15px;
	border: 2px solid black; border: 2px solid var(--animationbordercolour);
	overflow:        hidden;                /* this doesn't work to avoid unwanted scroll bars */
	}

/*=====================================================================*/
.div-animationmodalcontainerpadding
	{
	position:   relative;
	margin-bottom:  60px;
	padding-top:    20px;
	padding-bottom: 20px;
	}

.div-animationmodalcontainercontent
	{
	width: 100%;
	}

.iframe-animationmodalminimumheight,
.iframe-animationmodalbuildingthemodelsfourbaseparticles,
.iframe-animationmodalthemodelsparticles,
.iframe-animationmodalmovingthematterparticles,
.iframe-animationmodalpackingthematterparticles,
.iframe-animationmodalmatterandlight,
.iframe-animationmodalelectricfields,
.iframe-animationmodalgravity,
.iframe-animationmodalsterngerlachexperiment
	{
	min-width: 180px;

	width:  calc(     100vw - 90px - 20px ); /* - 90px for the margin - 20px for the scrollbar */
	height: calc( ( ( 100vw - 90px - 20px ) * 530 / 840 ) + 20px );  /* + 20px for space below */

	max-width:          790px;
	max-height: calc( ( 790px * 530 / 840 ) + 20px );                /* + 20px for space below */

	margin-left:      -15px;
	background-color: black;
	border: 2px solid black; border: 2px solid var(--animationbordercolour);
	overflow:        hidden;                /* this doesn't work to avoid unwanted scroll bars */
	}

.iframe-animationmodalatomicnuclei,
.iframe-animationmodalatomicnucleibuilder
	{
	min-width: 180px;

	width:  calc(     100vw - 90px - 20px ); /* - 90px for the margin - 20px for the scrollbar */
	height: calc( ( ( 100vw - 90px - 20px ) * 650 / 840 ) + 20px );  /* + 20px for space below */

	max-width:          790px;
	max-height: calc( ( 790px * 650 / 840) + 20px);                  /* + 20px for space below */

	margin-left:      -15px;
	background-color: black;
	border: 2px solid black; border: 2px solid var(--animationbordercolour);
	overflow:        hidden;                /* this doesn't work to avoid unwanted scroll bars */
	}

/*=====================================================================*/