@font-face {
	font-family: 'Dazzed Regular';
	src: url('../fonts/Dazzed-Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Dazzed Bold';
	src: url('../fonts/Dazzed-Bold.woff2') format('woff2');
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}

:root {
	--color-base: #FFFAF0;
	--color-sand: #FFF0D5;
	--color-yellow: #FFD500;
	--color-red: #D50037;
	--color-blue: #D8F2F4;
	--color-green: #E4F0C8;
	--color-orange: #FFF0D5;
	--color-grey: #F2F2F2;
	--color-pink: #FBD6E6;
	--color-brown: #39140F;

	--color-green-isbar-skolen: #E0F4C2;
	--color-blue-isbar-skolen: #D1EAFF;
	--color-blue-isbar-skolen: #D1EAFF;
	--color-diplomis-red: #ED161E;

	--color-form-error-bg: #feccce;
	--color-form-error-border: var(--color-diplomis-red);

	--font-main-regular: 'Dazzed Regular', sans-serif;
	--font-main-bold: 'Dazzed Bold', sans-serif;
}

* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: var(--font-main-regular);
	background-color: var(--color-base);
	background-image: none;
	color: #000;
	height: 100%;
	overflow-x: hidden;
}

body.home,
body.page-template-page-game {
	background-color: var(--color-brown);
	background-image: url('../img/bg.jpg');
	background-position: center;
	background-size: cover;
	color: #fff;
}

a {
	color: var(--color-red);
	text-decoration: underline;
}

a:hover {
	color: var(--color-red);
	text-decoration: none;
}

p {
	line-height: 1.5;
}


/* REMOVE ADMIN BAR */
#wpadminbar {
	display: none;
}

html {
	margin-top: 0 !important;
	padding-top: 0;
}

.debug {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: rgba(255, 255, 255, .5);
	padding: 1rem .5rem;
	color: #000;
	z-index: 100000;
}

strong {
	font-family: var(--font-main-bold);
}

/* LOADER */
.loader-wrapper {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, .8);
	color: var(--color-brown);
	z-index: 999999999999;
	display: none;
}

.loader-inner {
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.loader-wrapper .loader {
	width: 80px;
	aspect-ratio: 4;
	--_g: no-repeat radial-gradient(circle closest-side, var(--color-yellow) 90%, #0000);
	background:
		var(--_g) 0% 50%,
		var(--_g) 50% 50%,
		var(--_g) 100% 50%;
	background-size: calc(100%/3) 100%;
	animation: l7 1s infinite linear;
}

@keyframes l7 {
	33% {
		background-size: calc(100%/3) 0%, calc(100%/3) 100%, calc(100%/3) 100%
	}
	50% {
		background-size: calc(100%/3) 100%, calc(100%/3) 0%, calc(100%/3) 100%
	}
	66% {
		background-size: calc(100%/3) 100%, calc(100%/3) 100%, calc(100%/3) 0%
	}
}


/* MAIN SITE CONTENT */
.site-content {
	position: relative;
	box-sizing: border-box;
	height: 100%;
}

.content-wrapper {
	padding-block: 3rem;
	padding-inline: 2rem;
	box-sizing: border-box;
	max-width: 600px;
	margin-inline: auto;
}

.content-wrapper h1 {
	font-size: 24px;
}

.content-wrapper h2 {
	margin-top: 2em;
	margin-bottom: 1em;
	font-size: 18px;
}

.content-wrapper p {
	font-size: 14px;
	line-height: 1.5;
}

.content-wrapper ol,
.content-wrapper ul {
	font-size: 14px;
	line-height: 1.5;
	padding-left: 1.5em;
}

.content-wrapper ol li,
.content-wrapper ul li {
	margin-bottom: 1em;
}

/* GLOBAL GFX */
.gfx-girl {
	position: absolute;
	top: 60px;
	left: 0;
	width: 90px;
	height: auto;
	display: none;
	z-index: 10;
}

body.home .gfx-girl,
body.page-template-page-game .gfx-girl {
	display: block;
}

.gfx-gold {
	position: absolute;
	top: -20px;
	left: 70%;
	width: 130px;
	height: auto;
	z-index: 100;
}

@media all and (min-width: 768px) {
	.gfx-gold {
		top: 0;
		width: 150px;
	}
}

.logo-gullpinne {
	width: 166px;
	height: auto;
}

.logo-diplom-is {
	width: 110px;
	height: auto;
}


/* LOGOUT LINK */
.link-logout {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 999999999999;
}


/* GAME CONTAINER */
.game-outer-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding-block: 2rem;
	box-sizing: border-box;
}

.game-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	row-gap: 1rem;
	max-width: 90vw;
}

.game-text {
	max-width: 400px;
	margin-inline: auto;
	padding-inline: 3.5rem;
	box-sizing: border-box;
	width: 100%;
}

@media all and (min-width: 768px) {
	.game-text {
		text-align: center;
	}
}

.game-text h1 {
	font-family: var(--font-main-bold);
	font-size: 1.875rem;
}

.game-text h1, 
.game-text p {
	text-shadow: 6px 3px 7px #000000;
}


/* SPINN BUTTON */
.button {
	background-color: var(--color-diplomis-red);
	color: #fff;
	padding: 12px 36px;
	border: none;
	border-radius: 3rem;
	font-size: 20px;
	white-space: nowrap;
	font-weight: bold;
	z-index: 200;
	font-family: var(--font-main-bold);
	cursor: pointer;
	transition: .2s;
}

.button--primary {
	background-color: var(--color-diplomis-red);
	color: #fff;
	text-transform: uppercase;
}

.button--primary:hover {
	background-color: #fff;
	color: var(--color-diplomis-red);
	text-transform: uppercase;
}

.button--secondary {
	background-color: var(--color-yellow);
	color: #000;
}

.button--secondary:hover {
	background-color: var(--color-brown);
	color: #fff;
}

.button--full-width {
	width: 100%;
}


/* SGP TOAST */
.sgp-toast {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: -100%;
	z-index: 9999;
	background-color: var(--color-base);
	color: #000;
	padding: 1.5rem;
	border-top-left-radius: 1.5rem;
	border-top-right-radius: 1.5rem;
}

.sgp-toast.sgp-toast--alert {
	background-color: var(--color-red);
	color: #fff;
	text-align: left;
}

@media all and (min-width: 768px) {
	.sgp-toast {
		max-width: 600px;
		left: 50%;
		transform: translateX(-50%);
	}
}

.sgp-toast .gfx-obs {
	display: block;
	margin-inline: auto;
	margin-bottom: 2rem;
	width: 180px;
	height: auto;
}

.sgp-toast-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, .4);
	z-index: 1;
	z-index: 9998;
	display: none;
}

.sgp-toast.show {
	bottom: 0;
}

.sgp-toast-overlay.show {
	display: block;
}

.sgp-toast h2 {
	font-family: var(--font-main-bold);
	font-size: 1.375rem;
	/* text-wrap: balance; */
	hyphens: auto;
	line-height: 1.2;
}

.sgp-toast[data-toast-win] h2 {
	font-size: 1.875rem;
}

.sgp-toast p {
	font-size: 1.125rem;
	line-height: 1.4;
	margin-block: 1.5rem;
}

.sgp-toast .legal {
	font-size: .875rem;
	text-align: center;
}

form {
	display: flex;
	flex-direction: column;
}

form input {
	margin-bottom: 1rem;
	border-radius: .5rem;
	border: 1px solid #000;
	padding: .5rem;
	font-size: 1rem;
	font-family: var(--font-main-regular);
}

form input[type="checkbox"] {
	margin-bottom: 0;
}

form label {
	line-height: 1.5;
}

::placeholder {
	color: #000;
}

.form-row {
	display: flex;
	column-gap: 1rem;
}

.form-row input {
	width: 100%;
}

form input[type="submit"] {
	background-color: var(--color-yellow);
	color: #000000;
	font-weight: bold;
	border: none;
	border-radius: 3rem;
	font-size: 1.125rem;
	margin-top: 1rem;
	font-family: var(--font-main-bold);
	cursor: pointer;
	transition: .2s;
	padding-inline: 0;
}

form input[type="submit"]:hover {
	background-color: var(--color-diplomis-red);
	color: #fff;
}

.number-of-games .button {
	width: 100%;
}

.number-of-games-wrapper span {
	display: block;
	font-family: var(--font-main-bold);
}

.number-of-games-wrapper .line {
	text-align: center;
	font-weight: bold;
}

.number-of-games-wrapper .line-1 {
	font-size: 27px;
}

.number-of-games-wrapper .line-2 {
	font-size: 78px;
}

.number-of-games-wrapper .off {
	font-size: 40px;
	display: inline-block;
}

.number-of-games-wrapper .line-3 {
	font-size: 18px;
	margin-bottom: 32px;
}

.sgp-toast-slot {
	text-align: center;
}

.sgp-toast-slot img {
	max-width: 250px;
	margin-inline: auto;
	display: block;
}


/* PARSLEY VALIDATION */
#form-response:has(*) {
	margin-top: 1rem;
	padding: .5rem;
	border-radius: .5rem;
	border-width: 1px;
	border-style: solid;
	background-color: var(--color-form-error-bg);
	border-color: var(--color-form-error-border);
	line-height: 1.5;
}

.parsley-error {
	background-color: var(--color-form-error-bg);
	border-color: var(--color-form-error-border);
}

.parsley-errors-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: none !important;
}

label.parsley-error {
	padding: .5rem;
	border-radius: .5rem;
	border-width: 1px;
	border-style: solid;
}


/* ORIGINAL SPINN2WIN WHEEL CSS */
.peg,
.wheelSVG {
	visibility: hidden;
}

.centerCircle,
.valueContainer,
.wheelOutline,
.wheelText {
	pointer-events: none;
}

.wheelContainer {
	width: 100vw;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.wheelSVG {
	position: relative;
	overflow: visible;
	width: 100%;
	max-height: 50vh;
}

@media all and (min-width: 768px) {
	.wheelSVG {
		max-height: 50vh;
	}
}

.wheelText {
	text-anchor: start;
	font-family: var(--font-main-regular);
	-webkit-user-select: none;
	user-select: none;
}

.wheelText tspan {
	text-anchor: middle;
}

.centerCircleImageContainer {
	transform: translateY(-13%);
}

.toast {
	border-radius: 12px;
	opacity: 0;
	background-color: #E81D62;
	position: absolute;
	overflow: hidden;
	color: #FFF;
	font-family: var(--font-main-regular);
	font-weight: 400;
	width: 50vw;
	padding: 20px 40px;
	max-width: 1000px;
	display: none !important;
}

.toast p {
	clear: both;
	font-family: var(--font-main-regular);
	margin: 23px;
	font-size: 30px;
	color: #ededed;
	letter-spacing: 0;
	user-select: none;
	line-height: 32px;
	transition: line-height .2s ease;
}

@media only screen and (max-width: 480px) {
	.toast {
		padding: 0;
	}

	.toast p,
	.toast span {
		font-size: 1rem;
		line-height: 1.5rem;
	}
}

@media only screen and (min-width: 481px) and (max-width: 800px) {
	.toast {
		padding: 0;
	}

	.toast p,
	.toast span {
		font-size: 1.8rem;
		line-height: 2rem;
	}
}

@media only screen and (min-width: 801px) {
	.toast p,
	.toast span {
		font-size: 3rem;
		line-height: 3.5rem;
	}
}

@media only screen and (max-height: 480px) {
	.toast p,
	.toast span {
		font-size: 33px;
		line-height: 35px;
	}
}


/* ACTIVATE PRIZE */
.activate-prize-header {
	background-color: var(--color-brown);
	height: 180px;
	position: relative;
}

.activate-prize-header .max-width {
	height: 100%;
}

.max-width {
	max-width: 600px;
	margin-inline: auto;
	position: relative;
}

.waves {
	position: relative;
	width: 100%;
	max-height: 50px;
	transform: rotateX(-180deg);
	margin-bottom: 3rem;
}

.activate-prize-header img {
	max-width: 300px;
	position: absolute;
	bottom: -50px;
	left: 0;
	z-index: 1;
}

.activate-prize {
	padding-inline: 2rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
	text-align: center;
	justify-content: center;
	align-items: center;
}

.activate-prize h1 {
	font-family: var(--font-main-bold);
	font-size: 1.75rem;
	text-wrap: balance;
}

.activate-prize p {
	font-size: 1.125rem;
}

.activate-prize .token {
	background-color: #fff;
	padding: 1.5rem 3rem;
	font-family: var(--font-main-bold);
	font-size: 1.125rem;
	margin: auto;
	width: min-content;
	box-shadow: 3px 6px 6px rgba(0, 0, 0, 0.2);
	transform: rotate(1deg);
}

.activate-prize .button {
	margin-inline: auto;
	display: block;
	padding-inline: 2rem;
}

.activate-prize--merch {
	text-align: left;
	align-items: flex-start;
}

/* COUNT DOWN PAGE */
.count-down-container {
	padding-inline: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	row-gap: 2rem;
}

.count-down-container h1 {
	font-family: var(--font-main-bold);
}

.count-down-timer {
	font-family: var(--font-main-bold);
	padding: .5rem 1.5rem;
	background-color: var(--color-diplomis-red);
	color: #fff;
	font-size: 2rem;
	border-radius: 3rem;
}

.game-end-message {
	text-align: center;
	max-width: 600px;
	background-color: var(--color-base);
	border-radius: 3rem;
	padding: 3rem;
	box-sizing: border-box;
	margin-inline: 2rem;
}

.game-end-message h1 {
	font-size: 3rem;
	color: var(--color-diplomis-red);
	font-family: var(--font-main-bold);
	margin-top: 0;
}

.game-end-message p {
	font-size: 1.25rem;
	color: #000;
}

.game-end-message p:last-of-type {
	font-family: var(--font-main-bold);
	margin-bottom: 0;
}