html, body {
    margin: 0;
    padding: 0;
    font-size: 1vw;
    font-size: 2vh;
}

.banner {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    font-feature-settings: "kern";
    z-index: 0;
}

.banner, .banner *, .banner:after, .banner:before {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

.banner {
    background-repeat: no-repeat;
    background-size: cover;
}

.hatch-wrap {
    background-color: #fffefb;
    background: linear-gradient(135deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.4) 100%), linear-gradient(135deg, rgba(228,243,251,1) 0%, rgba(212,236,250,1) 100%);
    width: 16em;
    height: 40em;

    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%,-50%);

    transform: translate(calc(-50% - 2em),-50%);

    perspective: 1000px;
    perspective: 55em;
    perspective: 80em;

    background-image: url(card-inside.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 100% 50%;

    box-shadow: 16px 16px 30px rgba(0, 0, 80, 0.15);

    transition: transform .8s, box-shadow .8s;
    transform-style: preserve-3d;
    
    /* box-shadow: inset 1px 2px 3px rgba(0, 0, 70, 0.16), inset 6px 6px 10px rgba(0, 0, 70, 0.1); */
}

.hatch-wrap {
    transform: translate(calc(-50% - 2em),75%) rotate(-15deg);
    transform: translate(-50%,75%) rotate(-15deg);
}


.show-1 .hatch-wrap,
.show-1-extra .hatch-wrap {
    transform: translate(-50%,-50%) scale(1.1);
    /* transform: translate(-50%,-40%) scale(1.8); */
}

.show-2 .hatch-wrap,
.show-3 .hatch-wrap,
.show-4 .hatch-wrap,
.show-end .hatch-wrap {
    transform: translate(90%,-50%);
}

.hatch {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transition: all .8s;
    transition: transform .8s, box-shadow .8s;
    transform-style: preserve-3d;
    transform-origin: left;
}

.show-2 .hatch,
.show-3 .hatch,
.show-4 .hatch {
    transform: rotateY(180deg);
    transform: rotateY(-97deg);
    transform: rotateY(-170deg);
    transform: rotateY(-180deg);
    box-shadow: 16px 16px 30px rgba(0, 0, 80, 0.15);
}

.hatch-front,
.hatch-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hatch-front {
    overflow: hidden;
}

.hatch-back {
    background: linear-gradient(135deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.2) 100%), linear-gradient(135deg, rgba(228,243,251,1) 0%, rgba(212,236,250,1) 100%);
    transform: rotateY(180deg);

    background-image: url(card-inside.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0% 50%;
}

.hatch-cover {
    width: 100%;
    height: 100%;
    opacity: .8;
    opacity: 1;
    background-image: url(card-front.png);
    background-position: 50% 50%;
    background-size: cover;
    backface-visibility: hidden;
}

/* .hatch-wrap-:hover .hatch-front,
.show-2 .hatch-front {
    background: #000;
}

.hatch-wrap-:hover .hatch-cover,
.show-2 .hatch-cover {
    transition: opacity .5s ease;
    opacity: .75;
} */

/**/

.flax-wrap {
    position: relative;
    width: 28em;
    width: 26em;
    height: auto;
    margin-left: auto; 
    margin-right: 0;
}

.flax {
    width: 100%;
    height: auto;
}

.fa {
    position: absolute;
    top: 0;
    left: 0;
}

.transparent {
    background-color: transparent;
}

.wrap {
    /* position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    text-align: center;
    
    width: 100%;
    white-space: nowrap; */

    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    padding: 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 4em;
    grid-column-gap: 0;
    grid-row-gap: 0em;
}

.box {
    position: relative;
}

.box-1 { grid-area: 1 / 1 / 2 / 2; }
.box-2 { grid-area: 1 / 2 / 2 / 3; }

.box-1 {
    padding-right: 6em;
}

.hero {
    position: relative;
    line-height: 1;
    color: #fff;
    margin-bottom: 2rem;
    white-space: nowrap;

    top: 50%;
    transform: translateY(-50%);
}

.byline {
    font-size: 1.8em;
    margin-top: 2.5em;
}

.logo {
    position: absolute;
    width: 12em;
    height: auto;
    top: 3em;
    left: 3em;
}

.age {
    position: absolute;
    width: 2.3em;
    height: auto;
    top: 2.5em;
    right: 2.5em;
}

.badge {
    position: absolute;
    width: auto;
    height: 12em;
    bottom: 2em;
    right: 2em;
}

.btn {
    width: auto;
    height: 3.5em;
    display: block;
    margin-top: 3em;
    position: relative;
    margin-left: auto;
    margin-right: 8em;
}

.disc {
    position: absolute;
    width: auto;
    height: 1.5em;
    height: 1.8em;
    bottom: 2.5em;
    left: 2.5em;
}

.line {
    position: absolute;
    background-color: #8d539d;
    z-index: 999;
}

.line-top,
.line-bottom {
    left: 0;
    width: 100%;
    height: 1em
}

.line-right,
.line-left {
    top: 0;
    width: 1em;
    height: 100%
}

.line-top {
    top: 0;
}

.line-bottom {
    bottom: 0;
}

.line-right {
    right: 0;
}

.line-left {
    left: 0;
}

/**/

.ca {
    opacity: 0;
    display: block;
}

.ca-1 {
    transform: rotate(-8deg);
    transform-origin: top left;
}

.ca-2 {
    transform: rotate(4deg);
    transform-origin: bottom right;
    transform-origin: top left;
}

.ca-3 {
    transform: rotate(-12deg);
}

.ca-4 {
    transform: rotate(10deg);
    transform-origin: bottom right;
}

.ca-5 {
    transform: rotate(-6deg);
    transform-origin: bottom left;
}

.animate .ca {
    transition: all .4s ease;
}

.show-2 .ca,
.show-3 .ca {
    opacity: 1;
    transform: rotate(0deg);
}

.show-2 .ca-1,
.show-3 .ca-1 {
}

.show-2 .ca-2,
.show-3 .ca-2 {
    transition-delay: .06s;
}

.show-2 .ca-3,
.show-3 .ca-3 {
    transition-delay: .12s;
}

.show-2 .ca-4,
.show-3 .ca-4 {
    transition-delay: .18s;
}

.show-2 .ca-5,
.show-3 .ca-5 {
    transition-delay: .24s;
}

.ca-6 {
    transform: rotate(10deg);
    transform-origin: bottom left;
}

.show-2 .ca-6,
.show-3 .ca-6 {
    opacity: 1;
    transition-delay: .3s;
    transform: rotate(0deg);
}

@media (orientation: landscape) {
    .logo {
        width: 14em;
    }
    .vinnersjanse {
        width: 23em;
    }
}

@media (orientation: portrait) {
    html, body {
        font-size: 2.2vw;
    }
    .badge {
        height: 10em;
    }
    /* .wrap {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
    }
    .box-1 { grid-area: 1 / 1 / 2 / 2; }
    .box-2 { grid-area: 2 / 1 / 3 / 2; } */

    .wrap {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        padding: 8em 0 4em 0;
    }
    
    .box-2 { grid-area: 1 / 1 / 3 / 2; }
    .box-1 { grid-area: 3 / 1 / 4 / 2; }

    .hatch-wrap {
        width: 18em;
        height: 45em;
        left: 50%;
        /* transform: translate(-50%,-50%); */
    }

    .hatch-wrap {
        transform: translate(-50%,75%) rotate(-15deg);
    }

    .show-1 .hatch-wrap,
    .show-1-extra .hatch-wrap {
        transform: translate(-50%,-35%);
        transform: translate(-50%,-26%) scale(1.4);
    }
    
    .show-2 .hatch-wrap,
    .show-3 .hatch-wrap,
    .show-4 .hatch-wrap,
    .show-end .hatch-wrap {
        transform: translate(0%,-50%);
        box-shadow: 16px 16px 30px rgba(0, 0, 80, 0.15), -1px 0 0 #f8e76a;
    }

    /* .show-2-p .hatch,
    .show-2 .hatch,
    .show-3 .hatch,
    .show-4 .hatch {
        transform: rotateY(180deg);
        transform: rotateY(-97deg);
        transform: rotateY(-170deg);
        transform: rotateY(-180deg);
        box-shadow: 16px 16px 30px rgba(0, 0, 80, 0.15);
    } */

    /* .show-2-p .ca,
    .show-2 .ca {
        opacity: 1;
        transform: rotate(0deg);
    }
    
    .show-2-p .ca-2,
    .show-2 .ca-2 {
        transition-delay: .06s;
    }
    
    .show-2-p .ca-6,
    .show-2 .ca-6 {
        opacity: 1;
        transition-delay: .3s;
        transform: rotate(0deg);
    } */

    .box-1 {
        padding: 0;
    }

    .flax-wrap {
        margin: auto;
        width: 22em;
    }
    
    .btn {
        margin: 2em auto 0 auto;
    }
}

/*@media (orientation: portrait) and (min-width: 520px) {*/
/*@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 5/8) {*/
@media (orientation: portrait) and (min-aspect-ratio: 5/8) {
    html, body {
        font-size: 1.5vw;
    }
}

/*@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 10/8) {*/
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 10/7) {
    html, body {
        font-size: 1.2vw;
/*        font-size: 1.5vh;*/
    }
}