/*
body
	{
		height: 100vh;
	}
*/
body 
	{
		position: fixed;
		left: 0px;
		right: 0px;
		top: 0px;
		bottom: 0px;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}

body:has( .advent-calendar.open )::before
	{
		position: absolute;
		top: 0px;
		left: 0px;
		width: 100%;
		height: 100%;
		background-color: rgba( 0, 0, 0, 0.8 );
		content: "";
		z-index: 1;
	}


.advent-calendar
	{
		font-family: "Luckiest Guy";
		font-family: "Chewy";
		color: rgb( 255, 255, 255 );
		-webkit-text-stroke: 1px rgba( 0, 0, 0, 0.7 );
		font-size: clamp( 17px, 2vw, 20px );
		position: relative;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		z-index: 2;
	}

.advent-calendar:not(.open)
	{
		display: none;
	}


.advent-calendar > .icons
	{
		position: absolute;
		top: -40px;
		z-index: 200;
		width: 100%;
		display: flex;
		justify-content: flex-end;
	}

.advent-calendar > .icons > .close::before
	{
		font-family: "Font Awesome 5 Free";
		content: "\f057";
		font-size: 40px;
		color: rgb(233 221 221 / 95%);
		cursor: pointer;
	}

.advent-calendar > .icons > .shareable
	{
		display: flex;
		background-color: brown;
		padding: 5px 15px;
		border: 2px solid rgba(255, 255, 255, 0.8);
		border-radius: 25px;
		margin: 0px 10px;
		cursor: pointer;
	}

.advent-calendar > .icons > .shareable i
	{
		margin-right: 5px;
	}

.advent-calendar:not(.calendar) > .icons > .shareable
	{
		display: none;
	}



.advent-calendar h1,
.advent-calendar h2
	{
		font-family: Chewy;
		color: rgb( 255, 255, 255 );
		-webkit-text-stroke: 1px black;
		text-align: center;
		margin: 0px 0px 10px;
		font-size: clamp( 22px, 3vw, 30px );
	}

.advent-calendar h2
	{

	}


.advent-calendar p
	{
		margin: 7px 0px;
	}


.advent-calendar
	{
		width: 100%;
		aspect-ratio: 707 / 1000;
		max-width: min(95vw, 800px);
		max-height: calc(100vh - 90px);
	}

.advent-calendar > .wrapper
	{
		position: relative;
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		height: 100%;
		overflow-y: auto;		
		border-radius: 25px;
	}

.advent-calendar .window
	{
		position: absolute;
		top: 0px;
		left: 0px;
		width: 100%;
		z-index: 100;		
	}

.advent-calendar .window img
	{
		width: 100%;
	}



.advent-calendar > .wrapper img.bg
	{
		max-width: 100%;
	}

.advent-calendar > .wrapper img.bg.abs
	{
		position: absolute;
		top: 0px;
		left: 0px;
		z-index: 12;
		pointer-events: none;
		xfilter: drop-shadow(2px 4px 6px black);
	}

.advent-calendar:not(.calendar) > .wrapper img.bg.abs.adds
	{
		display: none;
	}

.advent-calendar > .wrapper img.bg.abs.two
	{
		z-index: 9;
	}

.advent-calendar .wrapper > .content
	{
		position: absolute;
		width: 79%;
		left: 11%;
		margin-top: 30.7%;
		z-index: 10;
		display: flex;
		flex-direction: column;
	}

.advent-calendar .content.page
	{
		padding: 3% clamp( 10px, 3vw, 40px );
		background-color: #b5392b;
		border-top-right-radius: 25px;
		max-height: 70%;
		overflow-y: auto;
		overscroll-behavior-y: auto;
	}


.advent-calendar:not(.loginform) .content.page.loginform,
.advent-calendar:not(.donate) .content.page.donate,
.advent-calendar:not(.donating) .content.page.donation-pending,
.advent-calendar:not(.window) .window
	{
		display: none;
	}

.advent-calendar .buttonsList
	{
		display: flex;
		flex-direction: column;
		align-items: center;
		row-gap: 15px;		
	}

.advent-calendar .buttonsList .button
	{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		padding: 7px 15px;
		border: 2px solid rgb(107 23 27);
		border-radius: 15px;
		cursor: pointer;
	}

.advent-calendar .buttonsList .button.donate
	{
		background-color: rgb(0 128 0);
	}



.advent-calendar .content.dayList
	{
		display: grid;
		grid-template-columns: repeat(4, 22%);
		justify-content: space-between;
		row-gap: clamp( 10px, 2.6vw, 20px );
	}

.advent-calendar:not(.calendar) .content.dayList
	{
		display: none;
	}


.advent-calendar .dayList .day
	{
		width: 100%;
		aspect-ratio: 284/228;
		border: 1px solid black;
		background-color: rgba( 255, 255, 255, 1 );
		background-image: url( /graphics/advent-calendar/calendar-numbers.png );
		background-size: 400% 600%;   /* 4 cols × 6 rows */
		background-repeat: no-repeat;
		background-position: 0 0;     /* overridden per day */
	}

.advent-calendar .dayList .day.active
	{
		cursor: pointer;
	}


.advent-calendar .dayList .day.active:hover
	{
		background-color: rgb(178 55 41);
	}



.advent-calendar .dayList .day:nth-child(1)  { background-position: -7% -1%; }
.advent-calendar .dayList .day:nth-child(2)  { background-position: 30.333% -1%; }
.advent-calendar .dayList .day:nth-child(3)  { background-position: 68.666% -1%; }
.advent-calendar .dayList .day:nth-child(4)  { background-position: 107% -1%; }

.advent-calendar .dayList .day:nth-child(5)  { background-position: -7% 17%; }
.advent-calendar .dayList .day:nth-child(6)  { background-position: 30.333% 17%; }
.advent-calendar .dayList .day:nth-child(7)  { background-position: 68.666% 17%; }
.advent-calendar .dayList .day:nth-child(8)  { background-position: 107% 17%; }

.advent-calendar .dayList .day:nth-child(9)  { background-position: -7% 37%; }
.advent-calendar .dayList .day:nth-child(10)  { background-position: 30.333% 37%; }
.advent-calendar .dayList .day:nth-child(11)  { background-position: 68.666% 37%; }
.advent-calendar .dayList .day:nth-child(12)  { background-position: 107% 37%; }


.advent-calendar .dayList .day:nth-child(13)  { background-position: -7% 56.5%; }
.advent-calendar .dayList .day:nth-child(14)  { background-position: 30.333% 56.5%; }
.advent-calendar .dayList .day:nth-child(15)  { background-position: 68.666% 56.5%; }
.advent-calendar .dayList .day:nth-child(16)  { background-position: 107% 56.5%; }

.advent-calendar .dayList .day:nth-child(17)  { background-position: -7% 75.5%; }
.advent-calendar .dayList .day:nth-child(18)  { background-position: 30.333% 75.5%; }
.advent-calendar .dayList .day:nth-child(19)  { background-position: 68.666% 75.5%; }
.advent-calendar .dayList .day:nth-child(20)  { background-position: 107% 75.5%; }

.advent-calendar .dayList .day:nth-child(21)  { background-position: -7% 95.5%; }
.advent-calendar .dayList .day:nth-child(22)  { background-position: 30.333% 95.5%; }
.advent-calendar .dayList .day:nth-child(23)  { background-position: 68.666% 95.5%; }
.advent-calendar .dayList .day:nth-child(24)  { background-position: 107% 95.5%; }



.advent-calendar .content.dayList .day.opened
	{
		background-position: center center;
		background-size: contain;
		background-color: #faebd7;
		transform: scale( 1 );
		transition: transform 0.2s ease-in-out;
	}

.advent-calendar .content.dayList .day.opened:hover
	{
		transform: scale( 1.1 );
	}


.advent-calendar .content.dayList .day:not(.active)
	{
		filter: brightness( 0.3 );
	}

/*
	Login / register form
*/


form label.required::before
	{
		content: "*";
		display: inline-block;
		x-padding: 5px;
		color: rgba(200, 0, 0, 1);
	}

form label a
	{
		margin-top: 15px;
		position: relative;
		word-wrap: break-word;
	}

form label a.icon
	{
		padding: 5px;
		xposition: absolute;
		xmargin-top: -3px;
		margin-left: 7px;
		cursor: pointer;
		position: relative;
		z-index: 10;
	}

form .more-info:not(.open)
	{
		display: none;
	}

form .more-info > .content
	{
		background-color: #490b55;
		padding: 15px;
		border-radius: 15px;
	}

form input, form textarea
	{
		font-family: Arial;
		font-size: medium;
		border-radius: 10px;
		padding: 10px;
	}

form.lac
	{
		display: flex;
		flex-direction: column;
		grid-row-gap: 5px;
		--altcha-max-width: 100%;
		x-align-items: flex-start;
	}

form.lac .copy
	{
		width: 100%;
		display: flex;
		justify-content: center;
	}

form.lac .copy a:not(.selected)
	{
		display: none;
	}

form.lac .copy a.generate-code-button
	{
		background-color: rgba(31, 158, 94, 1);
		background-color: rgba(161, 25, 26, 1);
		color: rgba(255, 255, 255, 1);
	}

form.lac .copy a
	{
		display: flex;
		border-radius: 15px;
		background-color: rgba(31, 158, 94, 1);
		color: rgba(255, 50, 51, 1);
		color: rgba(255, 255, 255, 1);
		z-index: 1;
		padding: 10px;
		cursor: pointer;
		width: 100%;
		justify-content: center;
		-webkit-text-stroke: 0px;
	}

form.lac .copy a > *
	{
		font-family: sans-serif;
		padding-left: 5px;
		font-weight: 400;
	}


form .buttons
	{
		display: flex;
		justify-content: flex-end;
		width: 100%;

	}

form.lac input[type=button]
	{
		display: flex;
		justify-content: center;
		margin-top: 15px;
		font-family: inherit;
		font-size: 20px;
		color: inherit;
		background-color: rgb(206 65 49);
		width: 100%;
		height: 40px;
		border-radius: 15px;
		border-color: #e1c196;
		padding: 10px 20px;
		cursor: pointer;
		align-items: center;

		font-family: "Luckiest Guy";
		color: rgb( 255, 255, 255 );
		-webkit-text-stroke: 1px black;
		text-align: center;

	}

