/*------------------------------------------------------------
 * # IMPORT
 *--------------------------------------------------------- */
 
@import url('https://cookieless-world.de/assets/fonts/google-fonts.css');

/*------------------------------------------------------------
 * # GENERAL
 *--------------------------------------------------------- */
 
* {
	box-sizing: border-box;
}
html, body {
	height: 100vh;
	width: 100%;
}

/*------------------------------------------------------------
 * # COOKIE STAGE
 *--------------------------------------------------------- */
 
.stage {
	height: 100vh;
	background: #222;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0;
}

/*------------------------------------------------------------
 * # LOGO
 *--------------------------------------------------------- */
 
svg.muennecke-vollmers-logo {
	margin-bottom: 40px; 
	opacity: 1;
	width: 300px;
	height: auto;
}
svg.widilo-logo {
	margin-bottom: 40px; 
	margin-right: 15px; 
	width: 75px;
	height: auto;
}
@media screen and (min-width: 250px) and (max-width: 550px) {
	svg.muennecke-vollmers-logo {
		width: 270px;
		height: auto;
	}
	svg.widilo-logo {
		width: 65px;
		height: auto;
	}
}
@media screen and (min-width: 551px) and (max-width: 950px) {	
	
}

/*------------------------------------------------------------
 * # COOKIE HEADER
 *--------------------------------------------------------- */
 
 .demo-header {
	text-align: center;
	padding: 2rem;
 }
 .button-group {
	margin-top: 50px;
 }
 /* 
  * Button - Zurück zum Monster 
  */
 .demo-header .reset-button {
	background: none;
	border: 0px solid;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	text-transform: uppercase;
	font-family: "Roboto Condensed", sans-serif;
	margin-bottom: 15px;
	color: #f1f1f1;
 }
.demo-header .reset-button:focus, 
.demo-header .reset-button:hover {
	border-color: #f1f1f1;
	background: rgba(255, 255, 255, 0.25);
}
.demo-header .reset-button:active {
	background: rgba(1, 24, 50, 0.2);
}
.demo-header .reset-button.hidden-button {
	visibility: hidden;
}
/* Button - Zurück Homepage */
.demo-header .ref-button {
	background: none;
	border: 0px solid;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	text-transform: uppercase;
	font-family: "Roboto Condensed", sans-serif;
	margin-bottom: 15px;
	color: #f1f1f1;
}
button.ref-button > a:nth-child(1) {
	color: #f1f1f1;
	text-decoration: none;
}
.demo-header .ref-button:focus, 
.demo-header .ref-button:hover {
	border-color: #f1f1f1;
	background: rgba(255, 255, 255, 0.25);
}
.demo-header .ref-button:active {
	background: rgba(1, 24, 50, 0.2);
}
.demo-header .ref-button.hidden-button {
	visibility: hidden;
}
/* Button - Warum keine Cookies */
.demo-header .link-button {
	background: none;
	border: 0px solid;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	text-transform: uppercase;
	font-family: "Roboto Condensed", sans-serif;
	margin-bottom: 15px;
	color: #f1f1f1;
}
button.link-button > a:nth-child(2) {
	color: #f1f1f1;
	text-decoration: none;
}
.demo-header .link-button:focus, 
.demo-header .link-button:hover {
	border-color: #f1f1f1;
	background: rgba(255, 255, 255, 0.25);
}
.demo-header .link-button:active {
		background: rgba(1, 24, 50, 0.2);
}
.demo-header .link-button.hidden-button {
		visibility: hidden;
}
.demo-title {
  font-size: 3rem;
  text-align: center;
  line-height: 1.125;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.15);
  margin: 1rem 0;
  font-family: "Fredoka One", sans-serif;
}
.demo-title .cookie {
  width: 2rem;
  height: 2rem;
  padding: 0;
}
.demo-title .cookie:first-of-type {
  margin-right: -0.5rem;
  transform: rotate(-35deg);
}

/*------------------------------------------------------------
 * # COOKIE BANNER
 *--------------------------------------------------------- */
 
.cookie-banner {
  width: 100%;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding-bottom: 3rem;
  font-family: "Roboto Condensed", sans-serif;
  letter-spacing: 0.05em;
  box-shadow: 0 -0.25rem 0.5rem rgba(0, 0, 255, 0.15);
}
.cookie-banner:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2rem;
  width: 100%;
  background: #fff;
}
.cookie-banner:hover .hand.left {
  transform: rotate(-15deg);
}
.cookie-banner:hover .hand.right {
  transform: rotate(15deg);
}
.cookie-banner:hover .head {
  animation: infinite pre-diabetic-tremors 200ms ease;
}
.cookie-banner:hover .eye {
  animation: infinite eye-convulsions 300ms linear;
}
.cookie-banner.dismissing-banner {
  animation: dismissing-banner 750ms ease;
}
.cookie-banner.dismissing-banner .cookies {
  display: none;
}
.cookie-banner.hide-banner {
  display: none;
}
.cookie-banner.chewing .debris {
  visibility: visible;
  transition-delay: 1850ms;
}
.cookie-banner.chewing .head {
  animation: infinite sugar-tremors 200ms ease;
}
.cookie-banner.chewing .eye {
  animation: infinite eye-convulsions 300ms linear;
}
.cookie-banner.chewing .mouth {
  animation: infinite monstrous-chewing 300ms ease 500ms;
}
.cookie-banner.accepting-cookie {
  --delay: 150ms;
  --duration: 1700ms;
}
.cookie-banner.accepting-cookie .cookie {
  --variance: 1;
  animation: eat-cookie 1700ms ease-in;
}
.cookie-banner.accepting-cookie .cookie:nth-child(1) {
  --variance: 3;
  animation-delay: calc(var(--delay) * 1);
}
.cookie-banner.accepting-cookie .cookie:nth-child(2) {
  --variance: 1;
  animation-delay: calc(var(--delay) * 2);
}
.cookie-banner.accepting-cookie .cookie:nth-child(3) {
  --variance: 3;
  animation-delay: calc(var(--delay) * 3);
}
.cookie-banner.accepting-cookie .cookie:nth-child(4) {
  --variance: 2;
  animation-delay: calc(var(--delay) * 4);
}
.cookie-banner.accepting-cookie .cookie:nth-child(5) {
  --variance: 1;
  animation-delay: calc(var(--delay) * 5);
}
.cookie-banner.accepting-cookie .cookie:nth-child(6) {
  --variance: 3;
  animation-delay: calc(var(--delay) * 6);
}
.cookie-banner.accepting-cookie .cookie:nth-child(7) {
  --variance: 1;
  animation-delay: calc(var(--delay) * 7);
}
.cookie-banner.accepting-cookie .cookie:nth-child(8) {
  --variance: 2;
  animation-delay: calc(var(--delay) * 8);
}
.cookie-banner.accepting-cookie .cookie:nth-child(9) {
  --variance: 3;
  animation-delay: calc(var(--delay) * 9);
}
.cookie-banner.accepting-cookie .cookie:nth-child(10) {
  --variance: 2;
  animation-delay: calc(var(--delay) * 10);
}
.banner-content {
  padding: 0.5rem;
  position: relative;
  transition: none;
  margin: auto;
  z-index: 1;
  text-align: center;
}

/*------------------------------------------------------------
 * # COOKIE MONSTER
 *--------------------------------------------------------- */
 
.accept-cookies-button {
  background: #00aa40;
  border: 5px solid #f7d147;
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: #f7f7f7;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.accept-cookies-button:focus, 
.accept-cookies-button:hover {
  background: green;
}
.debris {
  visibility: hidden;
}
.crumb {
  width: 1rem;
  height: 0.75rem;
  background: #ff9c15;
  border: 2px solid #854502;
  position: absolute;
  z-index: 2;
  animation: alternate-reverse infinite mouth-debris 1000ms linear;
  position: absolute;
  transform-origin: center center;
}
.crumb:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-duration: 500ms;
}
.crumb:nth-child(2) {
  top: 40%;
  left: 40%;
  animation-duration: 750ms;
}
.crumb:nth-child(3) {
  top: 30%;
  left: 60%;
  animation-duration: 600ms;
}

@keyframes mouth-debris {
  100% {
    transform: rotate(-360deg) translateY(50%) scale(0.75);
  }
}
.cookies {
  margin: auto;
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 3rem;
  bottom: 1.25rem;
  z-index: 2;
  left: 50%;
  bottom: 1.25rem;
  z-index: 2;
  transform: translateX(-50%);
}
.cookie {
  vertical-align: middle;
  text-indent: -9999px;
  font-size: 0;
  line-height: inherit;
  display: inline-block;
  width: 3rem;
  height: 3rem;
  color: #5d3a4a;
  padding: 0.5rem 1rem;
  background: no-repeat left 0.5rem top 0.5rem/0.5rem 0.25rem radial-gradient(#854502, #854502 0.25rem, transparent 0.25rem), no-repeat right 0.25rem top 1rem/0.75rem 0.5rem radial-gradient(#854502, #854502 0.25rem, transparent 0.25rem), no-repeat left 1rem bottom 0.75rem/0.5rem 0.25rem radial-gradient(#854502, #854502 0.25rem, transparent 0.25rem), #ff9c15;
  border: 2px solid #854502;
  border-radius: 2rem;
  max-height: 3rem;
  text-overflow: ellipsis;
  box-shadow: inset 0 0.25rem rgba(255, 255, 255, 0.25), inset 0 -0.25rem rgba(0, 0, 0, 0.25);
}
.cookies .cookie {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translateY(-100vh);
}
.biscuit-monster {
  position: absolute;
  top: -2.75rem;
  left: 50%;
  transform: translateX(-50%);
}
.hand {
  transform-origin: top center;
  transition: all 300ms ease;
  position: absolute;
  bottom: 0.25rem;
  content: "";
  background: #0099d5;
  border: 2px solid #0063a6;
  width: 2rem;
  height: 1.5rem;
  display: block;
  border-top-left-radius: 40% 30%;
  border-top-right-radius: 40% 30%;
  border-bottom-right-radius: 50% 70%;
  border-bottom-left-radius: 50% 70%;
  box-shadow: inset 0 0.25rem rgba(255, 255, 255, 0.25), inset 0 -0.25rem rgba(0, 0, 0, 0.25), 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
}
.hand.left {
  right: 100%;
}
.hand.right {
  left: 100%;
}
.head {
  flex: none;
  background: #0099d5;
  border: 2px solid #0063a6;
  width: 4.5rem;
  height: 3.75rem;
  border-top-left-radius: 40% 30%;
  border-top-right-radius: 40% 30%;
  border-bottom-right-radius: 50% 70%;
  border-bottom-left-radius: 50% 70%;
  box-shadow: inset 0 0.25rem rgba(255, 255, 255, 0.25), inset 0 -0.5rem rgba(0, 0, 0, 0.25), 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
}
.body {
  transform: translateX(-50%);
  position: absolute;
  bottom: 1rem;
  z-index: -1;
  left: 50%;
  flex: none;
  background: #0099d5;
  border: 2px solid #0063a6;
  width: 7rem;
  height: 2rem;
  border-top-right-radius: 50% 100%;
  border-top-left-radius: 50% 100%;
}
.eyes {
  display: flex;
  position: absolute;
  width: 100%;
  top: -20%;
  left: 0;
  right: 0;
  justify-content: center;
  z-index: 1;
}
.eye {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: #fff;
  border-radius: 100%;
  position: relative;
  border: 2px solid #b4b7bf;
  box-shadow: inset 0 -0.25rem rgba(0, 0, 0, 0.125);
  transition: all 200ms linear;
  transform: rotate(0deg);
  animation-fill-mode: forwards;
}
.eye:before {
  content: "";
  display: block;
  position: relative;
  width: 40%;
  height: 40%;
  background: #010101;
  border-radius: 100%;
}
.eye.left {
  margin-right: -2px;
}
.eye.left:before {
  left: 2px;
  top: 2px;
}
.eye.right {
  margin-left: -2px;
  margin-top: 1px;
}
.eye.right:before {
  left: -2px;
  top: -1px; /*-2px;*/
  width: 45%;
  height: 45%;
}
.mouth {
  position: absolute;
  bottom: 12%;
  left: 10%;
  width: 80%;
  height: 60%;
  background: #011832;
  border-top-left-radius: 10%;
  border-top-right-radius: 10%;
  border-bottom-right-radius: 50% 100%;
  border-bottom-left-radius: 50% 100%;
  box-shadow: 0 0.25rem rgba(255, 255, 255, 0.25);
  transform-origin: top center;
}
.mouth:before {
  content: "";
  display: block;
  left: -0.25rem;
  right: -0.25rem;
  height: 1rem;
  position: absolute;
  bottom: 80%;
  background: #0099d5;
  border: 2px solid #0063a6;
  border-radius: 100%;
  border-top: none;
  border-left: none;
  border-right: none;
}

/*------------------------------------------------------------
 * # KEYFRAMES
 *--------------------------------------------------------- */
 
@keyframes eat-cookie {
  50% {
    left: calc( var(--variance) * -1rem);
  }
  25%, 75% {
    left: calc( var(--variance) * 1rem);
  }
  100% {
    left: 0;
    transform: rotate(540deg) translateY(0) scale(0.8);
  }
}
@keyframes sugar-tremors {
  33.33% {
    transform: rotate(5deg);
  }
  66.66% {
    transform: rotate(-8deg);
  }
}
@keyframes eye-convulsions {
  100% {
    transform: rotate(-360deg);
  }
}
@keyframes monstrous-chewing {
  50% {
    transform: rotateX(80deg) scaleY(0) scaleX(0.9) rotate(5deg);
  }
}
@keyframes dismissing-banner {
  50% {
    transform: translateY(-0.5rem);
  }
  100% {
    transform: translateY(200%);
  }
}