/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
	padding: 0;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button{
	background: transparent;
	-webkit-appearance: none;
	border: none;
    margin: 0;
    padding: 0;
}

/*
	General Layout
*/

:root{
	--color-text: #3F3D35;
	--color-text-inverted: #F9F0E1;
	--color-background: #F9F0E1;
	--color-primary: #E33824;
	--color-primary-hover: var(--color-secondary);
	--color-secondary: #A37B44;
	--color-secondary-hover: #a37b4445;
	--color-error: #b73625;
	--color-surface-error: #b7362578;
	
	--body-padding: 16px;
	--navbar-height: calc(var(--body-padding) + 44px);
	--header-height: calc(var(--navbar-height) + 12px + 7.5rem);
}

@media(min-width: 49rem){
	:root{
		--body-padding: 40px;
		--header-height: calc(var(--navbar-height) + 40px + 6.875rem);
	}
}

body {
	padding: var(--body-padding);
	
	color: var(--color-text);
	font-family: Grenze;
	font-weight: 400;
	font-style: normal;
	line-height: normal;
	text-align: center;
	background: var(--color-background);
	position: relative;
	
	min-height: 100dvh;
	transition: background-color 800ms;
}

body:after{
	content: "";
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	
	background-image: url("img/grain@0,25x.png");
	background-position: top center;
	/*mix-blend-mode: multiply;*/
	pointer-events: none;
	opacity: .35;
	opacity: 0.05;
	overflow: visible;
	
	transform:translate3d(0,0,0); /* desperate try to make this work in safari*/
}

@media(min-width: 512px){
	body:after{
		background-image: url("img/grain@0,5x.png")
	}
}

@media(min-width: 1024px){
	body:after{
		background-image: url("img/grain@0,75x.png")
	}
}

@media(min-width: 1920px){
	body:after{
		background-image: url("img/grain.png")
	}
}

body:not(.overview):after{
	animation: grain-animation 1s steps(1) infinite;
}

@keyframes grain-animation{
	0% { 
		transform: scale(1, 1);
		background-position: top center;
	}
  12.5% { 
	  transform: scale(-1, 1); 
	  background-position: top center;
	}
  25% { 
	  transform: scale(-1, -1); 
	  background-position: top center;
	}
  37.5% { 
	  transform: scale(1, -1); 
	  background-position: top center;
	}
  50% { 
	  transform: scale(1, 1); 
	  background-position: bottom center;
	} /* Loops back to the start */
	
  62.5% { 
	  transform: scale(-1, 1); 
	  background-position: bottom center;
	}
  75% { 
	  transform: scale(-1, -1); 
	  background-position: bottom center;
	}
  87.5% { 
	  transform: scale(1, -1); 
	  background-position: bottom center;
	}
  100% { 
	  transform: scale(1, 1); 
	  background-position: top center;
	} /* Loops back to the start */
}

h1{
	font-size: 3.75rem;
	font-weight: 500;
}

h2{
	font-size: 1.5rem;
	font-style: normal;
	font-weight: 500;
	line-height: 1.2;
}

.text_large{
	font-size: 1.21rem;
}

.text_small{
	font-size: 1rem;
}

.text_highlight{
	color: var(--color-secondary);
	font-size: 1.375rem;
	font-weight: 700;
}

.text-huge-highlight{
	color: var(--color-secondary);
	font-size: 5rem;
	line-height: 100%;
}


@media(min-width: 49rem){
	
	h1{
		font-size: 4rem;
	}

	h2{
		font-size: 2.5rem;
	}

	.text_large{
		font-size: 2rem;
	}

	.text_small{
		font-size: 1.375rem;
	}

	.text_highlight{
		font-size: 1.375rem;
	}

	.text-huge-highlight{
		font-size: 6.5rem;
	}
}

/*
	Global Components
*/

.fagkaup_logo{
	display: flex;
	align-content: center;
	width: 8rem;
}

.logo-wrapper{
	animation-fill-mode: both;
}

.logo{
	display: block;
	width: 7rem;
	margin: 0 auto;
	margin-top: 12px;
	margin-bottom: 22px;
	transform: translateY(0);
}

/* comment out - when in dev*/

 .step1 .logo{
	animation: logo-intro 1400ms;
	animation-delay: 3s;
	animation-fill-mode: backwards;
} 


@keyframes logo-intro{
	from{ 
		width: 90%;
		transform: translateY(calc(50dvh - var(--navbar-height) - 20px - 50%));
	}
}

@media(min-width: 49rem){
	
	.logo{
		width: 11rem;
		margin-top: 40px;
		margin-bottom: 66px;
	}
	
	@keyframes logo-intro{
	from{ 
		width: 50%;
		transform: translateY(calc(50dvh - var(--navbar-height) - 40px - 50%));
	}
}
}

.top-bar{
	display: flex;
	justify-content: space-between;
	transition: opacity 300ms;
	
	/* comment out - when in dev */
	animation: fade-in 3000ms;
	animation-delay: 3.8s;
	animation-fill-mode: both;
}

.step {
	display: none;
}

.step.active {
	display: flex;
	flex-direction: column;
	
}

button, .button{
	padding: 12px 44px;
	border: 1px solid transparent;
	border-radius: 100rem;
	cursor: pointer;
	
	font-size: 1.125rem;
	font-style: normal;
	font-weight: 600;
	line-height: 131.75%;
	
	transition: background-color 0.1s;
}

button.primary{
	color: var(--color-text-inverted);
	background-color: var(--color-primary);
}

button.primary:hover{
	background-color: var(--color-primary-hover);
}

button.secondary, .button.secondary{
	border-color: var(--color-secondary);
}

button.secondary:hover, .button.secondary:hover{
	background-color: var(--color-secondary-hover);
}

button.secondary.active, .button.secondary.active,
.button.secondary:has(input:checked){
	background-color: var(--color-secondary);
	border-color: transparent;
	color: var(--color-text-inverted);
}

button.volume{
	border-radius: 0.79413rem;
	background: var(--color-secondary);
	padding: 0.625rem;
	position: relative;
	z-index: 1;
}

button.volume:hover{
	background-color: #C39B64;
}

.audio-control{
	position: relative;
}

.audio-control:hover #volume-control{
	display: block;
}

.volume-control-wrapper{
	position: absolute;
	top: 0;
	right: 0;
	padding-top: 3rem;
}

#volume-control{
	
	background-color: var(--color-secondary);
	border-radius: 0.79413rem;
	padding: 0.625rem;
	display: none;
}

#volumeSlider{
	display: block;
	cursor: pointer;
	accent-color: var(--color-primary);
}

#loader{
	visibility: hidden;
	height: 0;
}

/*
	Sparkle Effect
*/

.particle path {
	fill: white;
	stroke: none;
}

button.sparkle{
	position: relative;
}

.particle-pen{
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.particle{
	position: absolute;
}

.particle:nth-child(1){
	left: -2px;
	top: 29px;
	width: 15px;
	animation: sparkle 8s 1s infinite linear;
	animation-fill-mode: backwards;
}

.particle:nth-child(2){
	left: 30px;
	top: 30px;
	width: 13px;
	animation: sparkle 4s 4s infinite linear;
	animation-fill-mode: backwards;
}

.particle:nth-child(3){
	right: 18px;
	top: -9px;
	width: 15px;
	animation: sparkle 9s 0s infinite linear;
	animation-fill-mode: backwards;
}
.particle:nth-child(4){
	left: 5px;
	top: 13px;
	width: 8px;
	animation: sparkle 6s 2.2s infinite linear;
	animation-fill-mode: backwards;
}
.particle:nth-child(5){
	right: 9px;
	bottom: 13px;
	width: 8px;
	animation: sparkle 7s 6s infinite linear;
	animation-fill-mode: backwards;
}
.particle:nth-child(6){
	left: 44px;
	top: -4px;
	width: 10px;
	animation: sparkle 5s 0.5s infinite linear;
	animation-fill-mode: backwards;
}
.particle:nth-child(7){
	right: 47px;
	bottom: 5px;
	width: 8px;
	animation: sparkle 7.5s 3s infinite linear
}

@keyframes sparkle{
	0%{
		opacity: 0;
		transform: rotate(0deg);
	}
	14%{
		opacity: 0;
	}
	16%{
		opacity: 1;
	}
	18%{
		opacity: 0;
	}
	23%{
		opacity: 0;
	}
	25%{
		opacity: 1;
	}
	27%{
		opacity: 0;
	}
	40%{
		opacity: 0;
	}
	42%{
		opacity: 1;
	}
	44%{
		opacity: 0;
	}
	80%{
		opacity: 0;
	}
	82%{
		opacity: 1;
	}
	84%{
		opacity: 0;
	}
	90%{
		opacity: 0;
	}
	92%{
		opacity: 1;
	}
	94%{
		opacity: 0;
	}
	100%{
		opacity: 0;
		transform: rotate(180deg);
	}
}



/*
	Individual Steps
*/

#step1{
	max-width: 44rem;
	margin: 0 auto;
	gap: 16px;
	padding: 0 2.5rem;

	animation: fade-in 300ms;
	animation-fill-mode: backwards; 
	animation-delay: 4s;
}

@media(min-width: 49rem){
	#step1{
		gap: 36px;
	}
}

#step2{
	animation: fade-in 300ms;
}

#step3{
	gap: 72px;
	align-items: center;
	animation: fade-in 300ms;
	padding-bottom: 4rem;
}

#step3 h2{
	opacity: 1;
	transition: opacity 300ms;
}

body.step3.--transitioning .top-bar{
	animation: fade-out 900ms;
	animation-fill-mode: forwards;
}

body.step3.--transitioning .logo-wrapper,
body.step3.--transitioning #step3 h2{
	animation: fade-out 300ms;
	animation-fill-mode: forwards;
}

body.step4 .top-bar,
body.step4 h1{
	display: none;
}

body.step4,
body.overview{
	background-color: #5C99AD;
	overflow: hidden;
	padding: 0;
}

@media(min-width: 49rem){
	body.step4,
	body.overview{
		padding: var(--body-padding);
	}
}

.instructions-wrapper{
	position: fixed;
	top: var(--header-height);
	right: var(--body-padding);
	bottom: var(--body-padding);
	left: var(--body-padding);
	
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2;
}

.instructions{
	z-index: 4;
	padding: 0;
	font-size: 2rem;
	font-weight: 400;
	
	animation: instructions-animation 900ms reverse;
	animation-delay: 11s;
	animation-fill-mode: forwards;
}

.instructions span{
	animation: instructions-animation 900ms; /*DEV 100ms*/
	animation-fill-mode: both;
}

@keyframes instructions-animation{
	0%{
		/*transform: translateY(10rem);*/
		opacity: 0;
		filter: blur(13px);
	}
	
	100%{
		/*transform: translateY(0);*/
		opacity: 1;
		filter: blur(0);
	}
}

@media(min-width: 63.5rem){
	
	.instructions{
		max-width: 50rem;
		margin: 0 auto;
		font-size: 3.1rem;
	}
	
}

.charity-selection{
	display: flex;
	flex-direction: column;
	gap: 57px;
	opacity: 0;
	transition: opacity 200ms;
	
	animation: fade-in 300ms;
	animation-fill-mode: backwards;
	animation-delay: 12s; /* DEV */
}

.step2 .charity-selection{
	opacity: 1;
}


/* 
	Charity Filter
*/

.charity-filter-spacer{
	height: 2.625rem;
}

.charity-filter-scrollwrapper{
	position: absolute;
	left: 0;
	right: 0;
	overflow-x: auto;
}

.charity-filter{
	display: flex;
	justify-content: center;
	border: none;
	padding: 0 var(--body-padding);
	gap: 12px;
}

.charity-filter legend{
	display: none;
}

.charity-filter input{
	opacity: 0;
	position: absolute;
	z-index: -1;
}

label:has(input[type="radio"]:focus-visible),
.charity-card:has(input[type="radio"]:focus-visible){
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.charity-filter .button{
	padding: 8px 23px;
	width: max-content;
}

.vote-options {
	display: grid;
	grid-gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.charity-card{
	padding: 40px;
	cursor: pointer;
	/*position: relative; */ /* remove because causes lag in Safari */
	
	border-radius: 4px;
	box-shadow: 0px 4px 24.2px 0px rgba(0, 0, 0, 0.15);
	transition: transform 100ms;
	background-color: var(--color-background); /* to prevent glitch with mix-blend-mode */
}

.charity-card:hover{
	background-color: #FEF5E6;
	transform: translateY(-5px);
}

.charity-card input{
	opacity: 0;
	position: absolute;
	top: 0;
	/*right: 0;
	bottom: 0;*/
	left: 0;
	cursor: pointer;
	z-index: 1;
}

.charity-card label{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer; /* I don't know why this is necessary in safari but it works */
}

.charity-card .charity-logo,
.selected-charity-logo{
	height: 6.25rem;
	margin-bottom: 1rem;
	mix-blend-mode: multiply;
	object-fit: contain;
}

.charity-card .province{
	color: var(--color-secondary);
}

/*
	Vote Card
*/

/* Previous / Form */

body.step3 .vote-card,
.vote-card.selected{
	padding: 8px;
}

/* After / Overview */

.vote-card{
	padding: 5px;
	box-shadow: 0px 4px 38.7px 0px rgba(0, 0, 0, 0.25);
	border-radius: 8px;
	max-width: 34rem;
	width: 100%;
	height: 100%;
	opacity: 1;
	transform: translateY(0);
	animation: vote-card-intro 900ms;
	animation-delay: 0.5s;
	animation-fill-mode: backwards;
	
	background: #cb5a5e;
      background: repeating-linear-gradient(
        30deg,
        white,
        #5C99AD 1px,
        #5C99AD 12px,
		#E33824	13px,
		#E33824 24px,
        white 25px,
        white 36px
      );
}

@keyframes vote-card-intro{
	from{
		opacity: 0;
		transform: translateY(80px);
	}
}

.vote-card .content{
	height: 100%;
	padding: 2rem;
	border-radius: 6px;
	background-color: var(--color-background);
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	gap: 0.5rem;
}

.error-message{
	position: absolute;
    top: 2rem;
    right: 0.4rem;
    width: 25%;
    text-align: left;
    color: var(--color-error);
    line-height: 1.1;
    font-size: 1.2rem;
    transform: rotate(5deg);
}



#votesContainer{
	display: grid;
	/*grid-template-columns: repeat(5, minmax(0, 1fr));*/
	
	grid-template-rows: 1fr;
	grid-auto-rows: 0;
	grid-gap: var(--body-padding);
	
	grid-template-columns: repeat(5, minmax(80vw, 34rem));
    justify-content: center;
    overflow: hidden;
	justify-items: center;
}

@media(min-width: 49rem){
	#votesContainer{
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    	overflow: visible;
	}
}

@keyframes marquee{
	0% {transform: translateY(0%)}
	100% {transform: translateY(-50%)}
}

@keyframes marquee-reverse{
	0% {transform: translateY(-50%)}
	100% {transform: translateY(0%)}
}

.votesTrack{
	display: flex;
	flex-direction: column;
	animation: marquee 40s linear infinite;
	position: relative;
	z-index: 1; /* draw it above the normal grain */
	width: 100%;
}

.votesTrack:nth-child(even){
	animation-direction: reverse;
}

.votesTrack:nth-child(odd){
	animation: marquee-reverse 40s linear infinite;
	animation-direction: reverse;
}

.votesTrack .vote-card{
	margin-bottom: var(--body-padding);
	position: relative;
}

.votesTrack .vote-card:after{
	content: "";
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	
	background-image: url(img/grain.jpg);
	background-position: center;
	mix-blend-mode: multiply;
	pointer-events: none;
	opacity: .35;
	
	border-radius: 8px;
}


.vote-card .input-group #message:focus + label,
.vote-card .input-group #message:not(:empty) + label,
.vote-card .input-group input:focus + label,
.vote-card .input-group input:not(:placeholder-shown) + label{
	font-size: 1.125rem;
	top: 1rem;
	color: var(--color-secondary);
	opacity: 1;
}

.vote-card .content label{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--color-text);
	opacity: 0.3;
	width: 100%;
	
	font-size: 1.75rem;
	color: var(--color-text);
	pointer-events: none;
	transition: top 0.3s, opacity 0.3s, color 0.3s, font-size 0.3s;
}

.vote-card .content .input-group{
	position: relative;
	align-self: stretch;
	border-radius: 9px;
	
	transition: background-color 0.3s;
}

.vote-card .input-group:focus-within{
	background-color: #F1E1C8;
}

.input-group.invalid{
	background-color: #b736251a;
    outline: 3px solid #b7362569;
}

.input-group.invalid label{
	color: var(--color-error);
}

.vote-card .content input,
.vote-card #message{
	background-color: transparent;
    border: none;
	width: 100%;
	text-align: center;
	margin: 2rem 0 0.5rem 0;
}

.vote-card #message:focus-within,
.vote-card input:focus-within{
	outline: none;
}

/* Placeholder styling for contenteditable div */
/*#message:empty:before {
  content: attr(aria-placeholder);
  pointer-events: none;
}*/

/*.vote-card input::placeholder,
#message:empty:before {
	color: var(--color-text);
	opacity: 0.3;
}*/

/*a:focus-within,
input:focus-within,
button:focus-within,
#message:focus-within,
.charity-filter label:focus-within{
	outline: #5C99AD auto 1px;
}*/

.vote-card #message:empty{
	line-height: 9rem;
}

.vote-card #message,
.vote-card.selected .message{
	font-size: 1.75rem;
	line-height: 112.502%;
	color: var(--color-text);
	min-height: 9rem;
	display: flex; 
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.vote-card .message{
	font-size: 1.25963rem;
	line-height: 112.502%;
	color: var(--color-text);
	min-height: 9rem;
	display: flex; 
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.vote-card #name,
.vote-card.selected .name{
	font-size: 1.75rem;
	color: var(--color-secondary);
}

.vote-card .name{
	font-size: 1.25963rem;
	color: var(--color-secondary);
}

.vote-card #company,
.vote-card.selected .company{
	font-size: 1.625rem;
	color: var(--color-secondary);
}

.vote-card .company{
	font-size: 1rem;
	color: var(--color-secondary);
}

.vote-card .button-wrapper{
	margin-top: -0.5rem;
}

.vote-card .button-wrapper #loader{
	visibility: visible;
	height: 1.8rem;
}

.vote-card .button-wrapper.--fade-out button.submit{
	--keyframe-pos-in: translateX(-50%) translateY(calc(50% + 4px));
	--keyframe-pos-out: translateX(-50%) translateY(calc(50% + 4px + 2rem));
	animation: fade-down 500ms;
	animation-fill-mode: forwards;
}

.vote-card .content button.submit{
	position: absolute;
	bottom: 0;
	transform: translateX(-50%) translateY(calc(50% + 4px));
	padding: 0 20px;
    min-width: 10.7rem;
	min-height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.votesTrack:has(.vote-card.--transitioning){
	z-index: 2;
}

.vote-card.--transitioning .content > *{
	transition: all 800ms;
}

.vote-card.--transitioning{
	animation: none;
	transform: translateY(0);
}

/*
	Illustrations
*/

.illustrations{
    width: 100vw;
    position: relative;
	overflow: hidden;
	pointer-events: none;
	margin-top: 8rem; /* 4 was too little */
}

@media(min-width: 49rem){
	.illustrations{
		width: auto;
		margin-top: 0;
	}
}

.illustrations .illustrations-bg{
	position: fixed;
	bottom: 0;
	right: 0;
	z-index: -1;
	left: 0;
}

.illustrations .illustrations-fg{
	position: fixed;
	perspective: 800px;
	left: 0;
	right: 0;
	bottom: 0;
}

.mountain1{
	--keyframe-outside: translate3d(80%, 30%, 0);
	--keyframe-inside: translate3d(0, 0%, 0);
	--keyframe-intro: var(--keyframe-outside);
	
	width: 74vw;
	transform: var(--keyframe-outside);
	transition: transform 2000ms;
}

.santa{
	--keyframe-outside: translate3d(-90%, 31px, 0);
	--keyframe-inside: translate3d(-40%, 31px, 0);
	--keyframe-intro: translate3d(30%, 0%, 800px);
		
	position: relative;
	transform: var(--keyframe-outside);
	left: -20px;
	transition: transform 1500ms;
	max-width: 360px;
}

.mountains{
	--keyframe-outside: translate3d(125%, 53px, 0);
	--keyframe-inside: translate3d(99px, 53px, 0);
	--keyframe-intro: translate3d(-20%, 53px, 800px);
	
	position: absolute;
	right: -20px;
	bottom: 0;
	width: 100vw;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 1500ms;
	transform: var(--keyframe-outside);
}


.mountain1, .mountain2, .mountain3{
	position: absolute;
	bottom: 0;
	right: 0;
}


	
.step1 .mountain1{
		/* comment out - when in dev */
	animation: illustration-intro 2000ms;
	animation-delay: 2.6s;
	animation-fill-mode: backwards;
	transform: var(--keyframe-inside);
}

.step1 .santa{
		/* comment out - when in dev */
	animation: illustration-intro 1500ms;
	animation-delay: 3.4s;
	animation-fill-mode: backwards;
	transform: var(--keyframe-inside);
}

.step1 .mountains{
		/* comment out - when in dev */
	animation: illustration-intro 1500ms;
	animation-delay: 3.2s;
	animation-fill-mode: backwards;
	transform: var(--keyframe-inside);
}

.step3 .mountain1,
.step3 .santa,
.step3 .mountains{
	transform: var(--keyframe-inside);
}

.step2 .mountain1,
.step3.--transitioning .mountain1{
	transform: var(--keyframe-outside);
	transition-delay: 0.2s;
}

.step2 .santa,
.step3.--transitioning .santa{
	transform: var(--keyframe-outside);
}

.step2 .mountains,
.step3.--transitioning .mountains{
	transform: var(--keyframe-outside);
	transition-delay: 0.1s;
}

@media(min-width: 49rem){
	
	.santa{
		--keyframe-intro: translate3d(20%, 0%, 800px);
	}
	
	.mountains{
		--keyframe-inside: translate3d(25px, 53px, 0);
	}
	
	.santa, .mountains{
		position: absolute;
	}
	
	.mountain1{
		width: 40vw;
	}
	
	.santa{
		--keyframe-inside: translate3d(-30%, 0, 0);
		
		width: 47vw;
		max-width: 600px;
		bottom: 0;
	}

	.mountains{
		width: 40vw;
	}
	
	

	.mountain2{
		transform: translate3d(-2vw, -5vh, 0px);
	}

	.mountain3{
		transform: translate3d(-5vw, -3vh, 80px) scale(0.75);
	}
	
	.step3 .mountain1{
		transform: var(--keyframe-inside);
		transition-delay: 0.1s;
	}
	
	.step3 .santa{
		transform: var(--keyframe-inside);
	}

	.step3 .mountains{
		transform: var(--keyframe-inside);
		transition-delay: 0.1s;
	}
	
}

@media(min-width: 88rem){
	.step1 .santa,
	.step3 .santa{
		--keyframe-inside: translate3d(0, 0, 0);
	}
}


/*
	Other animation
*/

@keyframes fade-in{
	from{
		opacity: 0;
	}
	
	to{
		opacity: 1;
	}
}

@keyframes fade-out{
	from{
		opacity: 1;
	}
	
	to{
		opacity: 0;
	}
}

@keyframes fade-down{
	from{
		opacity: 1;
		transform: var(--keyframe-pos-in);
	}
	to{
		opacity: 0;
		transform: var(--keyframe-pos-out);
	}
}

@keyframes illustration-intro{
	from{
		transform: var(--keyframe-intro);
	}
}


/*COMING SOON PAGE STYLES START HERE*/

#coming-soon .vote-card {
	position: relative;
}

#coming-soon .decoration {
	position: absolute;
	top: 0;
	width: 60%;
	height: 60%;
	transform: translate(0%, -60%);
}

.text-one {
	font-size: 1.5rem;
	font-weight: 500;
}

.text-two {
	color: var(--color-secondary);
	font-size: 2rem;
	font-weight: 600;
}

.text-three {
	font-size: 1.125rem;
	font-weight: 600;
}

.text-four {
	color: var(--color-secondary);
	font-size: 0.75rem; /* 12px */
	font-weight: 600;
}

.text-five {
	font-size: 3rem; /* 72px */
	line-height: 100%;
}

.text-six {
	font-size: 2rem;
	font-weight: 500;
}

.text-seven {
	color: var(--color-secondary);
	font-size: 1.125rem;
	font-weight: 700;
}

.text-huge {
	color: var(--color-secondary);
	font-size: 10rem;
	line-height: 80%;
}

#coming-soon .text_highlight {
	font-size: 1rem;
}

.flex-col-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}


#coming-soon-content {

	/* comment out - when in dev */
	animation: fade-in 300ms;
	animation-fill-mode: backwards; 
	animation-delay: 4s;
}

#coming-soon .flex-col-4 {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

#coming-soon .text-one-wrapper {
	width: 100%;
	max-width: 30rem;
	margin: 0 auto;
	padding: 0 2.5rem;
	padding-top: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

#coming-soon .text-two-wrapper {
	width: 100%;
	max-width: 40rem;
	margin: 0 auto;
	padding: 0 2.5rem;

	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

#coming-soon .text-three-wrapper {
	width: 100%;
	max-width: 30rem;
	margin: 0 auto;
	padding: 0 2.5rem;

	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

#coming-soon .bjorgunarsveitir-wrapper {
	width: 100%;
	height: 100%;
	max-width: 100rem;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 0.75rem;
}

#coming-soon .bjorgunarsveitir-wrapper .vote-card {
	margin: 0;
}

#coming-soon .bjorgunarsveitir-wrapper .vote-card .content	{
	justify-content: space-between;
	padding: 2rem 1rem;
	max-height: 17rem;
}

#coming-soon .selected-charity-logo{
	height: 4rem;
}

#coming-soon #one.vote-card {
	grid-column: 1 / span 6;
	grid-row: 3 / 4;
}

#coming-soon #two.vote-card {
	grid-column: 1 / span 6;
	grid-row: 2 / 3;
}

#coming-soon #three.vote-card {
	grid-column: 4 / span 6;
	grid-row: span 1;
}

#coming-soon #four.vote-card {
	grid-column: 7 / span 6;
	grid-row: 2 / 3;
}

#coming-soon #five.vote-card {
	grid-column: 7 / span 6;
	grid-row: 3 / 4;
}

#coming-soon .facts-wrapper {
	width: 100%;
	margin: 0 auto;
	padding-left: 2.5rem;
	padding-right: 2.5rem;
	padding-top: 3rem;

	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8rem;
}

#lights {
	width: 100vw;
	margin-left: calc(-1 * var(--body-padding));
	margin-right: calc(-1 * var(--body-padding));
	max-width: none;
}

.video-wrapper {
	width: 100%;
	max-width: 60rem;
	margin: 0 auto;
}

.video-wrapper .vote-card {
	width: 100%;
	max-width: 100%;
}

.video-wrapper .vote-card .content	{
	padding: 0;

}

#fagkaupVideo {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	display: block;
	background-color: var(--color-secondary);
	object-fit: contain;
	max-width: 100%;
}

/* Fallback for older browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
	#fagkaupVideo {
		height: auto;
		min-height: 200px;
	}
}

#coming-soon .section-one {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

#coming-soon .section-two {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

#coming-soon .top-bar{
	display: flex;
	justify-content: space-between;
	transition: opacity 300ms;
	position: fixed;
	top: var(--body-padding);
	left: var(--body-padding);
	right: var(--body-padding);
	z-index: 1000;
	
	/* comment out - when in dev */
	animation: fade-in 3000ms;
	animation-delay: 3.8s;
	animation-fill-mode: both;
}

#coming-soon {
	padding-top: 4rem;
}

/* tailwind breakpoint - sm - 640px */
@media (width >= 40rem) {

	#coming-soon .bjorgunarsveitir-wrapper {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
		gap: 2rem;
	}
	
	#coming-soon .bjorgunarsveitir-wrapper .vote-card .content	{
		max-height: 100%
	}
	
	#coming-soon .selected-charity-logo{
		height: 5rem;
	}
	
	#coming-soon .text-four {
		font-size: 1rem;
	}

	#coming-soon .text-five {
		font-size: 4rem;
	}
	
	#coming-soon #one.vote-card {
		grid-column: 2 / span 4;
		grid-row: 3 / 4;
	}

	#coming-soon #two.vote-card {
		grid-column: 3 / span 4;
		grid-row: 2 / 3;
	}

	#coming-soon #three.vote-card {
		grid-column: 5 / span 4;
		grid-row: span 1;
	}

	#coming-soon #four.vote-card {
		grid-column: 7 / span 4;
		grid-row: 2 / 3;
	}

	#coming-soon #five.vote-card {
		grid-column: 8 / span 4;
		grid-row: 3 / 4;
	}
}

/* tailwind breakpoint - md - 768px */
@media (width >= 48rem) {

	#coming-soon .facts-wrapper {
		flex-direction: row;
		gap: 1rem;
		justify-content: center;
	}
	
	#coming-soon .text-one-wrapper {
		max-width: 60rem;
	}
	
	#coming-soon .text-two-wrapper {
		max-width: 50rem;
	}
	
	#coming-soon .text-three-wrapper {
		width: 60%;
		max-width: 40rem;
	}
	
	.text-five {
		font-size: 4.5rem; /* 72px */
	}

	#coming-soon .text_highlight {
		font-size: 1.375rem;
	}

	#coming-soon-content {
		padding-bottom: 10rem;
	
		/* comment out - when in dev */
		animation: fade-in 300ms;
		animation-fill-mode: backwards; 
		animation-delay: 4s;
	}
}

/* tailwind breakpoint - lg - 1024px */
@media (width >= 64rem) {

	#coming-soon .bjorgunarsveitir-wrapper {
		padding: 0rem;
		grid-template-columns: repeat(10, 1fr);
	}

	
	#coming-soon #one.vote-card {
		grid-column: 1 / span 2;
		grid-row: span 3;
	}
	
	#coming-soon #two.vote-card {
		grid-column: 3 / span 2;
		grid-row: span 3;
	}
	
	#coming-soon #three.vote-card {
		grid-column: 5 / span 2;
		grid-row: span 3;
	}
	
	#coming-soon #four.vote-card {
		grid-column: 7 / span 2;
		grid-row: span 3;
	}
	
	#coming-soon #five.vote-card {
		grid-column: 9 / span 2;
		grid-row: span 3;
	}
	
	#coming-soon #two.vote-card, #coming-soon #four.vote-card {
		transform: translateY(20%);
	}
	
	#coming-soon #three.vote-card {
		transform: translateY(40%);
	}

	#lights {
		padding-top: 8rem;
	}

	#coming-soon .decoration {
		width : 80%;
		height: 80%;
		transform: translate(0%, -70%);
	}

	#coming-soon .facts-wrapper {
		padding-top: 4rem;
	}

	#coming-soon .santa {
		--keyframe-inside: translate3d(-20%, 0, 0);
	}
	
	#coming-soon .santa.at-bottom {
		--keyframe-inside: translate3d(0, 0, 0);
	}

}

/* tailwind breakpoint - xl - 1280px */
@media (width >= 80rem) {

	#coming-soon .bjorgunarsveitir-wrapper {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
	
	
	#coming-soon #two.vote-card, #coming-soon #four.vote-card {
		transform: translateY(20%);
	}
	
	#coming-soon #three.vote-card {
		transform: translateY(40%);
	}

	#lights {
		padding-top: 12rem;
	}

	#coming-soon .text-three{
		font-size: 1.5rem;
	}

	#coming-soon .text-four{
		font-size: 1.25rem;
	}
}

/* tailwind breakpoint - 2xl - 1536px */
@media (width >= 96rem) {
	#coming-soon .text-three{
		font-size: 1.75rem;
	}
	#coming-soon .text-four{
		font-size: 1.5rem;
	}
	#coming-soon .text-five{
		font-size: 5rem;
	}
}

.relative {
	position: relative;
	height: 100dvh;
	width: 100dvw;
}

#step4 .content {
	padding: 2rem 1rem;
}

.email-wrapper {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 1rem;
	margin: 0 auto;
}

.email-wrapper .vote-card {
	max-width: 25rem;
	box-shadow: 0px 0px 300px black;
}

.logo-email {
	width: 7rem;
}

.text-eight {
	font-size: 1.5rem;
	line-height: 1.2;
	max-width: 16rem;
}

#friend-email {
	font-size: 1.5rem;
}

.input-button-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
}

.email-wrapper .flex-col-center {
	gap: 2rem;
	width: 100%;
}



/* tailwind breakpoint - sm - 640px */
@media (width >= 40rem) {


}

/* tailwind breakpoint - md - 768px */
@media (width >= 48rem) {
	.relative {
		position: relative;
		height: calc(100dvh - var(--body-padding) * 2);
		width: calc(100dvw - var(--body-padding) * 2);
	}
}

/* tailwind breakpoint - lg - 1024px */
@media (width >= 64rem) {
	.email-wrapper .vote-card {
		max-width: 30rem;
	}
}

/* tailwind breakpoint - xl - 1280px */
@media (width >= 80rem) {

}

/* tailwind breakpoint - 2xl - 1536px */
@media (width >= 96rem) {

}