@import url("reset.css");
.clear {
    clear: both;
}
body {
    font: 300 12px/20px arial, helvetica;
    background: url(../images/table-top-with-background.jpg) no-repeat center bottom;
    background-size: 122%;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
.xmas-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #d5815c;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
}
.card-open {
    color: #fff;
    font-family: Arial;
    font-size: 18px;
    letter-spacing: 1px;
    position: absolute;
    left: 50%;
    margin: 10px 0px;
    bottom: 0;
    transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    width: 100%;
    text-align: center;
}
#container,
#shell {
    width: 560px;
    height: 800px;
    display: block;
    position: absolute;
    z-index: 10;
    margin: 0;
    cursor: pointer;
    bottom: 50px;
}
#container {
    width: 100%;
    box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.3);
    transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    -webkit-transform: rotateX(0deg);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: all 1s ease;
    -moz-transition: all 1s ease;
    -webkit-transition: all 1s ease;
}
#shell {
    left: 50%;
    perspective: 1400px;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    transition: all .2s ease;
    -moz-transition: all .2s ease;
    -webkit-transition: all .2s ease;
}
.box {
    width: 100%;
    height: 100%;
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
    -webkit-backface-visibility: visible;
    transform-origin: left;
    transform-style: preserve-3D;
    position: absolute;
    top: 0px;
    left: 0px;
}
div#box1 {
    background: url(../images/xmas.jpg) no-repeat center center;
    background-size: cover;
    transform: rotate3d(0, 1, 0, 0deg);
    -moz-transform: rotate3d(0, 1, 0, 0deg);
    -webkit-transform: rotate3d(0, 1, 0, 0deg);
    -webkit-backface-visibility: hidden;
    z-index: 10;
}
div#box1_back {
    background: url(../images/xmas2.jpg) no-repeat center center;
    ;
    transform: rotate3d(0, 1, 0, 0deg);
    -webkit-transform: rotate3d(0, 1, 0, 0deg);
    -moz-transform: rotate3d(0, 1, 0, 0deg);
    background-size: cover;
    z-index: 0;
}
div#box2 {
    background: url(../images/xmas3.jpg) no-repeat center center;
    background-size: cover;
    transform: rotate3d(0, 1, 0, 0deg);
    -webkit-transform: rotate3d(0, 1, 0, 0deg);
    -moz-transform: rotate3d(0, 1, 0, 0deg);
    -webkit-backface-visibility: visible;
    z-index: -1;
}

/*---------------------------------------
MEDIA Queries | Tablet | Phone
---------------------------------------*/

@media screen and (max-width: 1600px) {
    body {
        background-size: 165%;
    }
}
@media screen and (max-width: 1450px) {
    body {
        background-size: 180%;
    }
}
@media screen and (max-width: 1330px) {
    body {
        background-size: 155%;
    }
    #container,
    #shell {
        width: 420px;
        height: 600px;
        bottom: 70px;
    }
}
@media screen and (max-width: 1330px), (min-height: 1260px){
    body {
        background-size: cover;
    }
}
@media screen and (max-width: 1060px) {
    body {
        background-size: 175%;
    }
}
@media screen and (max-width: 1060px), (min-height: 1260px){
    body {
        background-size: cover;
    }
}
@media screen and (min-height: 640px) {
     body {
        background-size: cover;
      }
    #container,
    #shell {
        width: 420px;
        height: 600px;
        bottom: 40px;
    }
}
@media screen and (min-height: 920px) and (min-width:1650px) {
     body {
        background-size: 122%;
      }
    
} 
@media screen and (min-height: 920px) {
    #container,
    #shell {
        width: 560px;
          height: 800px;
        bottom: 50px;
    }
}
@media screen and (max-width: 580px) {
    body {
        height: 100%;
    }
    #container,
    #shell {
        width: 350px;
        height: 500px;
        bottom: 90px;
    }
}
@media screen and (max-width: 480px) {
    body {
        background-size: 450%;
    }
}
@media screen and (max-width: 420px) {
    #container,
    #shell {
        width: 320px;
        height: 457px;
        bottom: 110px;
    }
    .card-open {
        bottom: -5px;
    }
}
@media screen and (max-width: 420px), (max-height: 680px) {
    #container, #shell {
        bottom: 35px;
    }
}
@media screen and (max-width: 360px) {
    #container,
    #shell {
        width: 300px;
        height: 429px;
        bottom: 50px;
    }
    .card-open {
        bottom: -5px;
    }
}