/*
    
    bbq-advent.de
    Version 1.0.0
    Copyright 2022 binaries-included.net
    Developed for cendo


*/
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;600;800&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap');
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  background-color: #000;
  font-family: Open Sans;
    overflow-x: hidden;
}
body {
  background: radial-gradient(circle, #3e6a1b 0%, #000 86%);
}
header {
  padding: 40px;
  display: grid;
  place-content: center;
}
header img {
  width: 280px;
}

#adventboxes {
	max-width: 800px;
	margin: 0 auto;
    text-align: center;
}

canvas
{
    pointer-events:none;
}

.box, .present {
  width: 100%;
  height: 100%;
}
.giftbox {
  display: inline-block;
  width: 9em;
  height: 9em;
  margin: 0.5em;
  -webkit-perspective: 850px;
  perspective: 850px;
}
.box {
  position: relative;
  background: linear-gradient(315deg, #A23F8F 50%, #90387f 50%);
  transform-style: preserve-3d;
  transform-origin: 0;
  perspective: 850px;
  text-align: center;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-out;
}
.box .glable {
  position: absolute;
  width: 3em;
  height: 3em;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2.5rem;
  font-family: Bitter;
  font-weight: 900;
  mix-blend-mode: overlay;
}
.giftbox:not(.clickable) {
  pointer-events: none;
}

.giftbox.clickable
{
    cursor:pointer;
}

.giftbox.clickable .glable {
  color: rgba(255, 255, 255, 0.9);
  mix-blend-mode: normal;
}
.giftbox:hover .box, .giftbox.dooropen .box {
  background: linear-gradient(315deg, #A23F8F 50%, #90387f 50%);
  -webkit-transform: rotateY(-97deg);
  transform: rotateY(-97deg);
  -webkit-perspective-origin: 0;
  perspective-origin: 0;
  -webkit-transition: all .4s ease-in;
  transition: all .4s ease-in;
}
.giftbox:hover .box .glable, .giftbox.dooropen .box .glable {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.giftbox:hover .bauble, .giftbox:hover .bauble {
  animation: shake 1s;
  transform-origin: 50% 0;
  font-family: Bitter;
}
.present {
  position: absolute;
  top: 0;
  left: 0;
  background: #0f0e1f;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15), inset 0 0 30px 20px rgba(0, 0, 0, 0.4);
  z-index: -1;
  cursor: pointer;
}
.bauble:after {
  content: "";
  position: absolute;
  top: -5%;
  left: 50%;
  margin-left: -15%;
  width: 30%;
  height: 10%;
  background: inherit;
}
.bauble:before {
  content: "";
  width: 12%;
  height: 20%;
  position: absolute;
  top: -15%;
  left: 50%;
  margin-left: -12%;
  border-radius: 50%;
  border: 0.35rem solid #69b42e;
  z-index: 0;
}
.giftmodal {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 200000;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}
.giftpicker {
  width: 100%;
  max-width: 500px;
  background: #56D6D6;
  padding: 50px;
  min-height: 200px;
  position: relative;
  background-image: url("images/bg1.svg");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
  padding-bottom: 170px;
}
.dooropen {
  pointer-events: none !important;
}
.bauble {
  position: relative;
  width: 2.75em;
  height: 2.75em;
  background: #69b42e;
  margin: 25% auto 0 auto;
  font-size: 2em;
  font-weight: bold;
  line-height: 2.75em;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: none;
  text-align: center;
}
@keyframes shake {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  20% {
    -webkit-transform: rotate(-20deg);
    transform: rotate(-20deg);
  }
  40% {
    -webkit-transform: rotate(20deg);
    transform: rotate(20deg);
  }
  60% {
    -webkit-transform: rotate(-10deg);
    transform: rotate(-10deg);
  }
  80% {
    -webkit-transform: rotate(10deg);
    transform: rotate(10deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}
.snow {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: .75;
}
footer {
  background-color: #69b42e;
  color: #fff;
  position: relative;
  z-index: 2;
  margin-top: 60px;
  padding: 40px;
}
footer .wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
}
footer .wrapper a {
  color: #fff;
}
.intro {
  color: #fff;
  text-align: center;
  padding: 30px;
}

.modal
{
    position: fixed;
    z-index: 2;
    top:0;
    left:0;
    width:100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
}

.modalInfo
{
    max-width:550px;
    width:90%;
    padding: 40px;
    background-color:#69b42e;
    height: 350px;
    border-radius: 20px;
    position: fixed;
    z-index: 3;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    display: flex;
    gap:20px;
    color: #fff;
    font-size: 18px;
}



.modalInfo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.modalInfo h2
{
    font-family: Bitter;
    font-weight: 600;
    
}

.modalInfo .img
{
    width:35%;
    flex:0 0 auto;
}


.modalInfo .copy
{
    flex:1 1 auto;
    padding: 20px;
    text-shadow:rgba(0,0,0,0.5) 1px 1px;
    font-weight: 600;
}

.modalInfo .copy h2
{
    margin-top:0;
}


.modalInfo .copy a
{
    color:inherit;
    text-decoration: none;
}


.closeBtn svg {
	width: 20px;
	height: 20px;
}


.closeBtn {
	position: absolute;
	right: 20px;
	top: 20px;
    cursor: pointer;
}

.giftbox.past
{
    
}

.giftbox.past.dooropen .bauble
{
    display:none;
}

.infobox {
	width: 80%;
	max-width: 600px;
	margin: 0 auto;
	background-color: #fff;
	padding: 40px;
	border-radius: 20px;
    margin-top: 80px;
    margin-bottom: 80px;
}

.infobox h2
{
    line-height: 1.1;
    font-size: 18px;
}

@media all and (max-width: 600px)
{
    footer .wrapper
    {
        display:flex;
        flex-direction: column;
        gap:15px;
        text-align: center;
    }
}

@media all and (max-width: 600px)
{
    .modalInfo
    {
        display:block;
        height: auto;
    }
    
    .modalInfo .copy
    {
        padding:0;
    }
    
    .modalInfo .img
    {
        width:60%;
        margin: 0 auto;
        margin-bottom: 20px;
    }
}