/***************************
**** Christmas project ****
**** Balance of Nature ****
***** Merry Christmas *****
**************************/

/*
* General Styles
*/
* {
    margin: 0;
    padding: 0;
}
body {
    background: #F6F2E3 url(imgs/bg-mountains.png) no-repeat top center;
    color: #534741;
    font-family: 'Mansalva', cursive;
    font-size: 24px;
    overflow-x: hidden;
}
.clear {
    clear: both;
    display: block;
    height: 0;
    width: 100%;
}

/**
* Header
*/
header {
    box-sizing: border-box;
    height: 600px;
    padding: 10px 0 80px 0;
    position: relative;
    text-align: center;
    width: 100%;
}
header img {
    max-height: fit-content;
    max-width: 90%;
}

/**
* Snow Flakes
*/
#snow { 
    height: 600px;
    left: 0;
    position: absolute;
    text-align: left;
    top: 0;
    width: 100%;
}
.roundSmall,
.roundMedium,
.roundLarge {
    background: #fff;
    border-radius: 50%;
    position: absolute;
    width: 3px;
    height: 3px;
}
.roundMedium {
    width: 4px;
    height: 4px;
}
.roundLarge {
    width: 5px;
    height: 5px;
}
.starMedium {
    position: absolute;
    width: 16px;
    height: 16px;
}
.sharpLarge {
    position: absolute;
    width: 30px;
    height: 30px;
}

/**
* Article
*/
article {
    background: url(imgs/bg-letter-body.png) repeat-y center top;
    background-size: contain;
    box-shadow: rgba(0,0,0,0.3) 0px 0px 50px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 40px 40px 120px 40px;
    max-width: 800px;
    width: 96%;
}

article div.letter-header {
    background: url(imgs/bg-letter-header.png) no-repeat center top;
    background-size: contain;
    box-sizing: border-box;
    height: 181px;
    margin: -40px -40px 0 -40px;;
    padding: 40px;
}

article div.letter-header h2 {
    font-size: 2.2em;
    line-height: 100px;
}

/**
* Form
*/
form {
    font-size: 1.4em;
}
form > div {
    box-sizing: border-box;
    padding: 40px 0;
}
form > div h3 {
    color: rgb(117, 12, 12);
    margin: 60px 0;
}
input, select {
    background: transparent;
    border: none;
    border-bottom: 2px #534741 dotted;
    box-sizing: border-box;
    color: #534741;
    font-family: 'Mansalva', cursive;
    font-size: 1em;
    line-height: 2;
    padding: 0 10px;
    max-width: 90%;
}
input[type=number] {
    width: 2em;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
textarea {
    background: transparent;
    border: 2px #534741 dotted;
    box-sizing: border-box;
    color: #534741;
    font-family: 'Mansalva', cursive;
    font-size: 1em;
    margin-top: 16px;
    padding: 10px;
    width: 100%;
}
form ol {
    margin-left: 35px;
}
form ol input {
    box-sizing: border-box;
    width: 100%;
}

/**
* Listen your parents
*/
form .listen > div {
    box-sizing: border-box;
    float: left;
    height: 140px;
    position: relative;
    width: 250px;
}
form .listen > div > div {
    border-radius: 50px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6em;
    font-weight: bold;
    height: 100px;
    left: 0;
    line-height: 32px;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: 30px;
    width: 100px;
}
form .listen > div#yes > div {
    border: 4px solid rgb(0, 128, 0);
    color: rgb(0, 128, 0);
}
form .listen > div#yes > div:hover {
    background: rgba(0, 128, 0, .1);
}
form .listen > div#no > div {
    border: 4px solid rgb(255, 0, 0);
    color: rgb(255, 0, 0);
}
form .listen > div#no > div:hover {
    background: rgba(255, 0, 0, .1);
}
form .listen div.icon {
    height: 32px;
    margin: 16px auto 0 auto;
    width: 32px;
}
form .listen > div#yes div.icon {
    background: url(imgs/smile.png) no-repeat center center;
}
form .listen > div#no div.icon {
    background: url(imgs/sad.png) no-repeat center center;
}
form .listen > div#yes > div.selected {
    background: rgb(0, 128, 0);
    color: white;
}
form .listen > div#no > div.selected {
    background: rgb(255, 0, 0);
    color: white;
}
form .listen > div > div > input {
    display: none;
}

/**
* Goodness Slide
*/
#goodness-slider{
    align-items: baseline;
    display    : flex;
    padding    : 30px 0;
    position   : relative;
    /* width      : 265px; */
    width      : 300px;
}
.goodness-icon{
    cursor          : pointer;
    height          : 60px;
    transform       : rotate(-0deg);
    transform-origin: center left;
    width           : 60px;
}
.goodness-icon .goodness-icon-bg{
    fill      : #236837;
    transition: fill 300ms;
}
.goodness-icon:hover .goodness-icon-bg{
    fill: #154021;
}
#circle-mask-shape{
    transform       : scale(0);
    transform-origin: center center;
}
.goodness-track{
    background-color: #82624a;
    border-radius   : 3px;
    flex            : 1;
    height          : 4px;
    margin-left     : 5px;
    position        : relative;
}
.goodness-indicator{
    background-color: #ce202a;
    border-radius   : 50%;
    height          : 12px;
    left            : 0;
    position        : absolute;
    top             : -4px;
    transition      : visibility 100ms, opacity 100ms;
    width           : 12px;
}
#goodness-slider .target {
    background: url(imgs/flag.svg) no-repeat center center;
    background-size: contain;
    height: 34px;
    left: 293px;
    position: absolute;
    top: 55px;
    width: 34px;
}
.goodness .details {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.55em;
}
.goodness .details strong {
    color: #ce202a;
}

/**
* Send form
*/
form .submit {
    height: 150px;
    text-align: center;
}
form input[type=submit]{
    background: #ce202a;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
}
form input[type=submit]:hover{
    background: #ee3d37;
}
.wishlist {
    margin-bottom: 130px;
    z-index: 100;
}
.submit,
.grab-zone {
    z-index: 1;
}
.grab-zone {
    height: 300px;
    margin: -300px 60px;
    overflow: hidden;
    position: relative;
    width: 600px;
}
.grab-zone .zone-alert {
    /* background: rgba(0,0,0,0.2); */
    border-radius: 50%;
    height: 600px;
    left: 0;
    position: absolute;
    top: 0;
    width: 600px;
}
.grab-zone .zone-danger {
    /* align-items: center; */
    /* background: rgba(0,0,0,0.2); */
    border-radius: 50%;
    /* display: flex; */
    height: 450px;
    /* justify-content: center; */
    left: 75px;
    position: absolute;
    top: 75px;
    width: 450px;
}
.grab-zone .zone-grab {
    /* background: rgba(0,0,0,0.2); */
    border-radius: 50%;
    height: 300px;
    left: 150px;
    position: absolute;
    top: 150px;
    width: 300px;
}
.grab-zone .grabber {
    align-items: center;
    /* background: rgba(0,0,0,0.2); */
    display: flex;
    height: 100px;
    justify-content: center;
    left: 250px;
    position: absolute;
    top: 250px;
    width: 100px;
}
    .grab-zone .grabber .grabber-body {
        position: absolute;
        width: 115px;
        height: 100px;
        border-radius: 50%;
        background: #2f8c3b;
        -webkit-transition: all 0.3s ease-out;
        -moz-transition: all 0.3s ease-out;
        -o-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out;
    }
    .grab-zone .grabber .grabber-face {
        position: absolute;
        width: 100px;
        height: 113px;
        -webkit-transition: all 0.3s ease-out;
        -moz-transition: all 0.3s ease-out;
        -o-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out;
    }
    .grab-zone .grabber .grabber-arm-wrapper {
        /* background: rgba(0,0,0,0.2); */
        height: 294px;
        position: relative;
        width: 24px;
    }
    .grab-zone .grabber .grabber-arm {
        border-radius: 20px;
        background: #39B54A;
        height: 140px;
        overflow: visible;
        position: relative;
        width: 24px;
        -webkit-transition: all 0.3s ease-out;
        -moz-transition: all 0.3s ease-out;
        -o-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out;
    }
    .grab-zone .grabber .grabber-hand {
        position: absolute;
        -webkit-transition: all 0.3s ease-out;
        -moz-transition: all 0.3s ease-out;
        -o-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out;
    }
/* waiting */
.grab-zone .grabber-waiting .grabber-face { top: 50px; right: -37px; }
.grab-zone .grabber-waiting .grabber-body { top: 142px; right: -50px; }
.grab-zone .grabber-waiting .grabber-arm { top: 95%; right: 0px; }
.grab-zone .grabber-waiting .grabber-hand { top: -25px; left: -50%; }
/* stalking */
.grab-zone .grabber-stalking .grabber-face { top: -25px; right: -37px; }
.grab-zone .grabber-stalking .grabber-body { top: 52px; right: -50px; }
.grab-zone .grabber-stalking .grabber-arm { top: 55%; right: 0px; }
.grab-zone .grabber-stalking .grabber-hand { top: -25px; left: -50%; }
/* grabbing */
.grab-zone .grabber-grabbing .grabber-face { top: -60px; right: -37px; }
.grab-zone .grabber-grabbing .grabber-body { top: 33px; right: -50px; }
.grab-zone .grabber-grabbing .grabber-arm { top: 25px; right: 0px; }
.grab-zone .grabber-grabbing .grabber-hand { top: -25px; left: -50%; }
/* grabbed */
.grab-zone .grabber-grabbed .grabber-face { top: -65px; right: -37px; }
.grab-zone .grabber-grabbed .grabber-body { top: 30px; right: -50px; }
.grab-zone .grabber-grabbed .grabber-arm { top: 0px; right: 0px; height: 160px; }
.grab-zone .grabber-grabbed .grabber-hand { top: -25px; left: -50%; }
/* hidding */
.grab-zone .grabber-hidding .grabber-face { top: 50px; right: -37px; }
.grab-zone .grabber-hidding .grabber-body { top: 142px; right: -50px; }
.grab-zone .grabber-hidding .grabber-arm { top: 95%; right: 0px; height: 160px; }
.grab-zone .grabber-hidding .grabber-hand { top: -25px; left: -50%; }
/**
* elfs
*/
.elf1 {
    left: calc(50vw - 650px);
    top: calc(50vh - 200px);
}
.elf2 {
    right: calc(50vw - 650px);
    top: 50vh;
}
section.hide {
    opacity: 0;
    position: fixed;
    transition: .5s;
    width: 0;
}
section.show {
	animation: float .5s ease-in-out infinite;
    opacity: 1;
    position: fixed;
    transition: .5s;
    width: 220px;
}
section > img {
    max-width: 100%;
}
@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-8px);
	}
	100% {
		transform: translatey(0px);
	}
}

/**
* Footer
*/
footer {
    /* background: url(imgs/bg-letter-bottom.png) no-repeat center top;
    padding-top: 300px; */
    margin-top: -211px;
}
footer .snow {
    background: url(imgs/footer-snow.svg) no-repeat center top;
    background-size: cover;
    height: 220px;
    width: 100%;
}


@media only screen and (max-width: 767px){
    article {
        padding: 40px 10px 120px 10px;
    }
    article div.letter-header {
        margin: -40px -10px 0 -10px;
        padding: 10px;
    }
    .grab-zone {
        display: none;
    }
    .elf1 {
        left: 20px;
        top: calc(100vh - 150px);
    }
    .elf2 {
        left: calc(100vw - 180px);
        top: 20px;
    }
    section.show {
        width: 160px;
    }
}
@media only screen and (max-width: 425px){
    #goodness-slider {
        zoom: 0.88;
    }
}

.super-important-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

