.envelope {
    width: 300px;
    height: 150px;
    background: #b49976;
    margin: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
}
.envelope__check {
    height: 100%;
    width: 100%;
    z-index: 10;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    cursor: pointer;
}
.envelope__check:checked ~ .envelope__flap {
    transition: z-index 0s 0.25s, -webkit-transform 0.25s 0s;
    transition: transform 0.25s 0s, z-index 0s 0.25s;
    transition: transform 0.25s 0s, z-index 0s 0.25s, -webkit-transform 0.25s 0s;
    -webkit-transform: rotateX(-180deg);
    transform: rotateX(-180deg);
    z-index: 0;
}
.envelope__check:checked ~ .envelope__letter {
    -webkit-animation-duration: 2.5s;
    -moz-animation-duration: 2.5s;
    -o-animation-duration: 2.5s;
    animation-duration: 2.5s;
    -webkit-animation-name: rotate_scale;
    -moz-animation-name: rotate_scale;
    -o-animation-name: rotate_scale;
    animation-name: rotate_scale;
    animation-fill-mode: both;
}

@-webkit-keyframes rotate_scale {

    0% {
        -webkit-transform: translateY(0) scale(1);
        z-index: 1;
    }
    45% {
        -webkit-transform: translateY(-110%) scale(1);
        z-index: 5;
        margin: auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    100% {
        -webkit-transform: translateY(-110%) scale(3);
        z-index: 5;
    }
}
@keyframes rotate_scale {

    0% {
        transform: translateY(0) scale(1);
        z-index: 1;
    }
    45% {
        transform: translateY(-110%) scale(1);
        z-index: 5;
    }
    100% {
        transform: translateY(-110%) scale(3);
        z-index: 5;
    }
}

.envelope__check:checked ~ .envelope__letter .letter__content:nth-child(2),
.envelope__check:checked ~ .envelope__letter .letter__content:nth-child(3) {
    transition: -webkit-transform 0.25s 0.5s;
    transition: transform 0.25s 0.5s;
    transition: transform 0.25s 0.5s, -webkit-transform 0.25s 0.5s;
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
}

.envelope__flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75%;
    transition: z-index 0s 0.5s, -webkit-transform 0.25s 0.5s;
    transition: transform 0.25s 0.5s, z-index 0s 0.5s;
    transition: transform 0.25s 0.5s, z-index 0s 0.5s, -webkit-transform 0.25s 0.5s;
    -webkit-transform-origin: top center;
    transform-origin: top center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: repeating-linear-gradient(-45deg, #c1ab8e, #c1ab8e 10px, #e74c3c 10px, #e74c3c 20px, #c1ab8e 20px, #c1ab8e 30px, #1e90ff 30px, #1e90ff 40px) 0 0/100% 5px no-repeat, #c1ab8e;
    z-index: 4;
    -webkit-clip-path: polygon(5% 40%, 50% 100%, 95% 40%, 100% 0, 0 0);
    clip-path: polygon(5% 40%, 50% 100%, 95% 40%, 100% 0, 0 0);
}
.envelope__flap--inside {
    background: #c1ab8e;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}
.envelope__back {
    height: 100%;
    width: 100%;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background: repeating-linear-gradient(-45deg, #cebda6, #cebda6 10px, #e74c3c 10px, #e74c3c 20px, #cebda6 20px, #cebda6 30px, #1e90ff 30px, #1e90ff 40px) 0 100%/100% 5px no-repeat, repeating-linear-gradient(-45deg, #cebda6, #cebda6 10px, #e74c3c 10px, #e74c3c 20px, #cebda6 20px, #cebda6 30px, #1e90ff 30px, #1e90ff 40px) 0 100%/5px 100% no-repeat, repeating-linear-gradient(-45deg, #cebda6, #cebda6 10px, #e74c3c 10px, #e74c3c 20px, #cebda6 20px, #cebda6 30px, #1e90ff 30px, #1e90ff 40px) 100% 100%/5px 100% no-repeat, #cebda6;
    -webkit-clip-path: polygon(80% 40%, 100% 0, 100% 100%, 0 100%, 0 0, 20% 40%);
    clip-path: polygon(80% 40%, 100% 0, 100% 100%, 0 100%, 0 0, 20% 40%);
}
.envelope__back:after {
    height: 100%;
    width: 100%;
    background: repeating-linear-gradient(-45deg, #c7b49a, #c7b49a 10px, #e74c3c 10px, #e74c3c 20px, #c7b49a 20px, #c7b49a 30px, #1e90ff 30px, #1e90ff 40px) 0 100%/100% 5px no-repeat, #c7b49a;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    -webkit-clip-path: polygon(70% 10%, 100% 100%, 0 100%, 30% 10%);
    clip-path: polygon(70% 10%, 100% 100%, 0 100%, 30% 10%);
}
.envelope__letter {
    height: 90%;
    width: 90%;
    z-index: 1;
    position: absolute;
    left: 5%;
    top: 5%;
    /*transition: z-index 0s 0.25s, -webkit-transform 0.25s 0.25s;*/
    /*transition: transform 0.25s 0.25s, z-index 0s 0.25s;*/
    /*transition: transform 0.25s 0.25s, z-index 0s 0.25s, -webkit-transform 0.25s 0.25s, -webkit-transform 0.5s 0.5s;*/
    /*-webkit-transform: translateY(0);*/
    /*transform: translateY(0);*/
}
.letter__content {
    height: 100%;
    width: 100%;
    background-color: #fff;
    top: 0;
    left: 0;
    position: absolute;
    /*padding: 14px;*/
    text-align: justify;
}
.letter__content:nth-child(2),
.letter__content:nth-child(3) {
    transition: -webkit-transform 0.25s;
    transition: transform 0.25s;
    transition: transform 0.25s, -webkit-transform 0.25s;
    top: 100%;
    -webkit-transform-origin: top center;
    transform-origin: top center;
    -webkit-transform: rotateX(180deg);
    transform: rotateX(180deg);
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    z-index: 2;
    border-top: 1px solid #eee;
}
.letter__content:nth-child(3) {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.sign-off {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 20px;
    font-family: cursive;
    -webkit-transform: skewX(-20deg);
    transform: skewX(-20deg);
}

.container-campaign, .container-campaign > .row, .container-campaign > .row > div {
    height: 100%;
}

/*LETTER*/

/*.tag-container {*/
    /*width: 200px;*/
    /*height: 300px;*/
    /*margin: 20px;*/
    /*position: relative;*/
/*}*/

.tag-side {
    z-index: 2;
    width: 100%;
    height: 100%;
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}
.tag-text {
    width: 100%;
    padding: 0 20px;
    color: #222;
    font: 28px 'Sacramento', cursive;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.tag-1-side:before {
    content: " ";
    background: #fff;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: absolute;
    top: 30px;
    left: 50%;
    z-index: 1;
}

.tag-height {
    height: 300px;
}

.tag-1-text {
    background: #b6dfde;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: relative;
    z-index: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.rule-shape {
    width: 100%;
    color: #fff;
    font-size: 34px;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    align-self: flex-end;
}

.rule-shape:before,
.rule-shape:after {
    content: " ";
    background: #fff;
    height: 1px;
    margin-bottom: 8px;
    display: block;
    -webkit-box-flex: 2;
    flex-grow: 2;
}

.rule-shape:before {
    margin-right: 6.25px;
}

.rule-shape:after {
    margin-left: 6.25px;
}

.rule-red {
    color: #e44f47;
}

.rule-red:before,
.rule-red:after {
    background: #e44f47;
}

.rule-diagonal {
    height: 100%;
    width: 20px;
    position: absolute;
    bottom: 0;
    z-index: 999;
}

.rule-diagonal.left {
    left: 0;
    background: -webkit-repeating-linear-gradient(
            45deg,
            #e44f47,
            #e44f47 7px,
            transparent 7px,
            transparent 14px,
            #fff 14px,
            #fff 21px,
            transparent 21px,
            transparent 28px
    );
    background: repeating-linear-gradient(
            45deg,
            #e44f47,
            #e44f47 7px,
            transparent 7px,
            transparent 14px,
            #fff 14px,
            #fff 21px,
            transparent 21px,
            transparent 28px
    );
}

.rule-diagonal.right {
    background: -webkit-repeating-linear-gradient(
            135deg,
            #e44f47,
            #e44f47 7px,
            transparent 7px,
            transparent 14px,
            #fff 14px,
            #fff 21px,
            transparent 21px,
            transparent 28px
    );
    background: repeating-linear-gradient(
            135deg,
            #e44f47,
            #e44f47 7px,
            transparent 7px,
            transparent 14px,
            #fff 14px,
            #fff 21px,
            transparent 21px,
            transparent 28px
    );
    right: 0;
}

html, body {
    height: 100%;
    min-height: 100%;
}

.main {
    height: 90%;
    min-height: 800px;
}

.big-letter-rule-top {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
}
.big-letter-rule-bottom {
    width: 90%;
    position: absolute;
    bottom: 0;
    left: 5%;
}

.letter-content {
     width: 90%;
     display: inline-block;
}

.letter-content > h5 {
    display: flex;
    /*justify-content: center;*/
    align-items: center;
    flex-direction: row;
    flex-flow: row wrap;
    flex-wrap: wrap;
    width: 100%;
    line-height: 150%;
}

.letter-content > h5 > .form-group {
    margin: 0;
    margin-left: 7px;
    margin-right: 7px;
}

.letter-content > h5 > .form-group > .select2 {
    width: fit-content !important;
}

.letter-content > h5 > .form-group > .select2 > span > span, #slide2 > .form-group > .select2 > span > span {
    background-color: #b6dfde;
    border: 0;
    border-bottom: 1px solid #e44f47;
    border-radius: 0;
    font-size: 1.3em;
    width: fit-content;
    min-width: fit-content;
}

#slide2 > .form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#slide2 > .form-group > label {
    margin-right: 5px;
    margin-bottom: 0;
}

.actual-letter {
    display: none;
    z-index: 999;
    position: absolute;
    margin:auto;
    width: 65%;
    height: 90%;
    top:0;left:0;right:0;bottom:0;
}

.actual-letter > .tag-1-side {
    box-shadow: 10px -15px 5px -3px #0000003d;
}

.christmas-input {
    outline: 0;
    border: 0;
    border-bottom: 1px solid #e44f47;
    min-width: 13ch;
    width: 13ch;
    max-width: 90%;
    font-size: 1.3em;
    background: #b6dfde;
    margin-left: 2px;
    margin-right: 2px;
}

.christmas-button-sm {
    width: fit-content !important;
}