@import url("/style/animation.css");
@import url("/style/font-size.css");
@import url("/style/effects.css");
@import url("/style/form.css");
@import url("/style/giftbox.css");
@import url("/style/poppins.css");
@import url("/style/slot-machine.css");
@import url("/style/scratchIT.css");
@import url("/style/rocket.css");
@import url("/style/wheel-of-fortune.css");
@import url("/style/giftbox-opening.css");
@import url("/style/plane.css");
@import url("/style/water-filling.css");
@import url("/style/snow-falling.css");
@import url("/style/elephant.css");
@import url("/style/rabbit.css");
@import url("/style/open-letter.css");
@import url("/style/water-blob.css");
@import url("/style/day-night.css");
@import url("/style/pong.css");
@import url("/style/stargate.css");
@import url("/style/lion.css");
@import url("/style/door.css");
@import url("/style/style-portrait.css");
@import url("/style/flip-calendar.css");

:root {
    --positionLeft: 5px;
}

html {
    -webkit-text-size-adjust: none;
    /* Prevent font scaling in landscape */
    height: 100%;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: 'SignPainter', sans-serif;
    font-family: "Poppins", sans-serif;
    font-family: system-ui;
    font-weight: 200;
    font-style: normal;
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
    /*background: #EFEFBB;  /* fallback for old browsers */
    /*background: -webkit-linear-gradient(to right, #D4D3DD, #EFEFBB);  /* Chrome 10-25, Safari 5.1-6 */
    /*background: linear-gradient(to right, #D4D3DD, #EFEFBB); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(rgba(196, 102, 0, 0.6), rgba(155, 89, 182, 0.6));
    color: white;
    touch-action: pan-y, pan-x;
}

@media (min-width: 992px) {
    body.fullscreen .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }

    body.fullscreen .navbar-expand-lg .navbar-collapse.show {
        display: block !important;
        top: 66px;
        position: absolute;
    }

    body.fullscreen .navbar-expand-lg .navbar-toggler {
        display: block !important;
    }

    body.fullscreen .navbar-expand-lg .navbar-nav {
        flex-direction: column;
        line-height: 2.5em !important;
    }
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-nav .nav-link.active {
    color: white;
}

body.fullscreen .nav-link {
    text-shadow: 0 0 5px black;
}

body.fullscreen #header {
    position: absolute;
    z-index: 100;
    width: auto;
}

body.fullscreen .navbar {
    background: transparent;
    margin-top: 8px;
}

body.fullscreen .navbar.navbar-expand-lg {
    background: transparent !important;
    box-shadow: none;
}

#home-presentation .header {
    font-size: 1.5em;
    text-align: center;
    width: 80%;
    left: 10%;
    top: .5em;
    position: relative;
    text-shadow: 0 0 2px rgba(0,0,0,.5);
}

#home-presentation .go-step {
    position: relative;
    top: 3em;
    text-align: center;
    font-size: 1.1em;
    width: 15em;
    left: calc(50% - 7.5em);
    text-shadow: 0 0 1px rgba(0,0,0,.6);
    cursor:pointer;
}
#home-presentation .go-step + .go-step {
    margin-top:3em;
}
#home-presentation .go-step::after {
    content: "";
    position: absolute;
    width: 2em;
    height: 2px;
    display: block;
    border-radius: 1px;
    background: white;
    left: calc(50% - 1em);
    transition:all .5s;
}
#home-presentation .go-step:hover::after {
    width:15em;
    left:calc(50% - 7.5em);
}

#headerBrand {
    display: none;
    font-weight: 400;
    font-size: 1.2em;
}

#headerTextSpin {
    position: absolute;
    left: 5em;
    top: 0;
    height: 66px;
    line-height: 66px;
    width: calc(100% - 12em);
    overflow: hidden;
}

body.fullscreen #headerTextSpin {
    display: none;
}

@media (min-width: 992px) {
    body.fullscreen .navbar-collapse {
        top: 0;
        position: absolute;
    }

    body.fullscreen .container-fluid .navbar-nav {
        height: 66px;
        line-height: 66px;
    }

    body.fullscreen .container-fluid .navbar-nav li a {
        padding-top: 0;
    }

    #headerTextSpin {
        right: 1em;
        left: auto;
        transform: none;
        width: calc(100% - 28em);
    }

}

.navbar-brand img.d-inline-block {
    vertical-align: middle !important;
}

body.fullscreen .container-fluid {
    padding: 0;
}

body.fullscreen .container-fluid .navbar-toggler {
    margin-left: 12px;
}

/*
body.fullscreen .container-fluid .navbar-nav {
    background: #051E3E;
}
*/
body.fullscreen.clear .container-fluid .navbar-nav {
    background: transparent;
}

body.fullscreen .container-fluid .navbar-nav li.nav-item {
    margin-left: 0;
    padding-left: 12px;
    display: inline-block;
    width: 10em;
    background: rgba(0, 0, 0, .6);
    margin-top: .3em;
    border-top-right-radius: .5em;
    border-bottom-right-radius: .5em;
    transition: all .2s;
}

body.fullscreen .container-fluid .navbar-nav li.nav-item:hover {
    width: 11em;
    padding-left: calc(12px + .5em);
}

.navbar-brand {
    margin: 0;
}

body.fullscreen .navbar-brand {
    /*
    right: 0;
    top: 0;
    position: absolute;
    display: block;
    height: 66px;
    line-height: 66px;
    padding: 0;
*/
    left: 12px;
    bottom: 1em;
    top: auto;
    right: auto;
    position: fixed;
    display: block;
    height: 2em;
    width: 2em;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2em;
    line-height: 2em;
    text-align: center;
    padding: 0;
}

body.fullscreen .navbar-brand span {
    display: none !important;
}

body.fullscreen .navbar-brand img.d-inline-block {
    vertical-align: middle !important;
}

body .navbar-brand span {
    color: white;
}

body.fullscreen .navbar-brand span {
    vertical-align: middle !important;
}

body .navbar-toggler {
    border: 1px solid white;
}

body .navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body .navbar-toggler:focus {
    box-shadow: 0 0 2px 0 white
}

#header {
    height: 66px;
    width: 100%;
}

#corpus {
    height: calc(100% - 66px);
}

body.fullscreen #corpus {
    height: 100%;
}

h1 {
    font-weight: normal;
    text-align: center;
    font-size: 1.6em;
}

#titlePart {
    transition: all 0.2s;
}

#titlePart .fade {
    opacity: 0;
}

#enterDiv {
    height: 4em;
    /*transition: opacity 1s,height 0s 1s;*/
}

#enterDiv>span {
    margin-top: 1em;
}

.checked #enterDiv {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

#corpus #surprise {
    height: 100%;
    position: relative;
    text-align: center;
    opacity: 0;
    transition: opacity 1s 0s;
    overflow: hidden;
    padding: 0;
    display: none;
}

.checked #corpus #surprise {
    display: block;
}

.transition #corpus #surprise {
    transition: opacity 0.5s 0s;
}

#innerSurprise {
    height: 100%;
    min-height: 10em;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    line-height: 6em;
    position: relative;
    color: black;
}

#innerSurprise .dateTitle {
    position: absolute;
    top: calc(28px - 1em);
    font-weight: bold;
    color: white;
    /*background: rgba(245,245,245,1);*/
    height: 2em;
    line-height: 2em;
    padding: 0 1em;
    border-radius: 1em;
    border: 1px solid white;
    text-shadow: 0 0 3px BLACK;
    box-shadow: 0 0 3px BLACK;
}

#surprise canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#bottomSurprise {
    position: absolute;
    right: 1em;
    bottom: 1em;
    height: 4em;
    width: 4em;
    border-radius: 2em;
    /*background: lightseagreen;*/
    background: linear-gradient(rgba(196, 102, 0, 1), rgba(155, 89, 182, 1));
    box-shadow: 0 0 5px 0px rgba(255, 255, 255, 1);
    z-index: 999;
    overflow: hidden;
    transition: all .5s;
    cursor: pointer;
    color: black;
}

#bottomSurprise::before {
    content: "";
    height: 100%;
    width: 100%;
    display: block;
    color: white;
    text-align: center;
    font-size: 2em;
    z-index: 999;
    background-image: url(/images/icon-calendar.png);
    background-size: cover;
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    transition: opacity 1s, height 1s;
}
#bottomSurprise.advent::before {
    background-image: url(/images/christmas-village.jpg);
    background-size: cover;
}

#bottomSurprise.expanded {
    height: 90%;
    width: 100%;
    border-radius: 0;
    overflow-y: auto;
    right: 0;
    bottom: 0;
    /*background: white;*/
    /*rgba(194, 221, 230, .9)*/
    /*background:rgba(32, 178, 170, .95);*/

}

#bottomSurprise.expanded::before {
    opacity: 0;
    height: 0;
    transition: opacity 0s, height 0s;
}

.monthlySurprises {
    position: relative;
    width: 100%;
    font-size: 0px;
}

#bottomSurprise.expanded .monthlySurprises {
    font-size: inherit;
}

.innerMonthly {
    width: auto;
    overflow-x: auto;
    /*height:7em;*/
    height: auto;
    line-height: 7em;
    /*white-space: nowrap;
    direction: rtl;*/
    position: relative;
}

.monthlySurprises::before {
    content: attr(data-title);
    position: absolute;
    display: block;
    left: var(--positionLeft);
    top: 5px;
    padding: 0 5px;
    color: white;
    border-radius: 1em;
    text-transform: capitalize;
    transition: left 0.3s;

}

.monthlySurprises+.monthlySurprises {
    /*box-shadow:-1px 0 1px 0 rgba(0,0,0,0.3);*/
    box-shadow: -1px 0 1px 0 rgba(255, 255, 255, 1)
}

.checked:not(.transition) #corpus #surprise {
    opacity: 1;
    /*transition: opacity 1s 1s;*/
}

.calendarLoaded.checked:not(.transition) #corpus #surprise {
    transition-duration: .5s;
}

.surprise-img,
.ql-editor img {
    max-width: 80%;
    max-height: 20em;
    border: 6px solid #F0F0F0;
    /* box-shadow: 0 0 10px 0 grey; */
    border-radius: 2em;
    padding: 0 !important;
}

.ql-snow.ql-toolbar button.ql-image:disabled,
.ql-snow.ql-toolbar button.ql-image[disabled] {
    cursor: default;
}

.ql-snow.ql-toolbar button.ql-image:disabled svg circle,
.ql-snow.ql-toolbar button.ql-image[disabled] svg circle,
.ql-snow.ql-toolbar button.ql-image:disabled svg polyline,
.ql-snow.ql-toolbar button.ql-image[disabled] svg polyline,
.ql-snow.ql-toolbar button.ql-image:disabled:hover svg circle,
.ql-snow.ql-toolbar button.ql-image[disabled]:hover svg circle,
.ql-snow.ql-toolbar button.ql-image:disabled:hover svg polyline,
.ql-snow.ql-toolbar button.ql-image[disabled]:hover svg polyline {
    fill: grey;
}

.ql-snow.ql-toolbar button.ql-image:disabled svg rect,
.ql-snow.ql-toolbar button.ql-image[disabled] svg rect,
.ql-snow.ql-toolbar button.ql-image:disabled:hover svg rect,
.ql-snow.ql-toolbar button.ql-image[disabled]:hover svg rect {
    stroke: grey;
}

#corpus>* {
    padding-left: 1em;
    padding-right: 1em;
}

.emoji {
    font-size: 1.4em;
}

.tile {
    height: 4em;
    width: 4em;
    margin: .5em;
    /*background-image: url('/images/cadeauopen6.png');
    background-size: contain;
    background-repeat: no-repeat;*/
    vertical-align: middle;
    display: inline-block;
    position: relative;
    background-position: center;
    cursor: pointer;
}

.tile.open {
    margin-right: 2em;
}

.tile::before {
    background: white;
    content: attr(data-day);
    display: inline-block;
    top: calc(50% + 1em);
    text-align: center;
    font-size: 14px;
    font-family: Geneva;
    border-radius: 1em;
    height: 2em;
    line-height: 2em;
    width: 2em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
}

.tile.step-1::before {
    height: 2em;
    line-height: 2em;
    width: 2em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes lightish {
    25% {
        box-shadow: 0 0 2em 1em white;
    }

    75% {
        box-shadow: none;
    }
}

.tile .giftbox {
    font-size: .4em;
    top: calc(50% - 1em);
}

/*
.tile::after{
    background: white;
    content: attr(data-month);
    vertical-align: middle;
    display: inline-block;
    margin-top: 2em;
    white-space: nowrap;
    text-align: center;
    width: 5em;
    font-size: 14px;
    font-family: Geneva;
}
*/
/*
.tile:nth-child(5n-1){
    background-image: url('/images/cadeau1.png');
}
.tile:nth-child(5n-2){
    background-image: url('/images/cadeau2.png');
}
.tile:nth-child(5n-3){
    background-image: url('/images/cadeau3.png');
}
.tile:nth-child(5n-4){
    background-image: url('/images/cadeau4.png');
}
.tile:nth-child(5n){
    background-image: url('/images/cadeau5.png');
}
.tile.open:nth-child(5n-1){
    background-image: url('/images/cadeauopen6.png');
}
.tile.open:nth-child(5n-2){
    background-image: url('/images/cadeauopen2.png');
}
.tile.open:nth-child(5n-3){
    background-image: url('/images/cadeauopen3.png');
}
.tile.open:nth-child(5n-4){
    background-image: url('/images/cadeauopen4.png');
}
.tile.open:nth-child(5n){
    background-image: url('/images/cadeauopen5.png');
}
*/
.navbar {
    z-index: 1000;
    background: #DAA37A;
}

.navbar.navbar-expand-lg {
    box-shadow: 1px 0 10px 0 rgba(0, 0, 0, 1);
}

.inputLabel {
    width: auto;
    margin-right: 1em;
}

.inputDiv {
    padding: 1em 2em;
}

.error input[type="text"],
.error input[type="password"],
.error input[type="email"],
input[type="text"].error,
input[type="password"].error,
input[type="email"].error {
    color: #FD0100 !important;
    border-color: red;
}

.premium-mark{
    display: inline-block;
    vertical-align: top;
    margin-left: .2em !important;
    border-radius: 100% !important;
    background: gold;
    border: aliceblue;
    height: 1em;
    width: 1em;
    /* line-height: 2em; */
    background-image: url(/images/premium.png);
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center center;
}

.flexContainer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 43em;
}

.reduce .title {
    padding: 0 1em;
}

.reduce .flexContainer {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: block;
    padding: 0 1em;
}

.flexItem {
    overflow: hidden;
    white-space: nowrap;
    border-radius: 1em;
    border: 2px solid #A95D81;
    box-shadow: 0 0 3px 0 #A95D81;
    cursor: pointer;
    background: #A95D81;
    transition: box-shadow .2s;
    height: 8em;
    display: block;
    width: 20em;
    position: relative;
    margin-top: 1em;
}

.flexItem:hover {
    box-shadow: 0 0 10px 0 #A95D81;
}

.reduce .flexItem {
    width: auto;
    height: auto;
    vertical-align: top;
    display: inline-block;
}

.flexItem+.flexItem,
.reduce .flexItem+.flexItem {
    /*margin-left:2em;*/
    /*margin-top:0;*/
}

.flexItem .imageUpperContainer {
    width: 5em;
    height: 5em;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    margin-left: 2em;
    height: 100%;
}

.flexItem .imageContainer {
    height: 5em;
    margin-top: 1.5em;
    width: 5em;
    border-radius: 2.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0px 0 7px 0px black;
}

.flexItem .imageContainer img {
    flex-shrink: 1;
    min-width: 100%;
    min-height: 100%;
}

.flexItem .calendarLabel {
    width: auto;
    padding: 0 1em;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    width: 10em;
    display: inline-block;
}

.flexItem .item-action {
    position: absolute;
    background: rgba(0, 0, 0, 0.3);
    transition: all .3s;
    text-align: center;
    height: 1.8em;
    width: 1.8em;
    top: 0;
    right: 0;
    border-radius: .9em;
    line-height: 1.8em;
}

.flexItem .item-action:hover {
    background: rgba(0, 0, 0, 0.8);
}

#welcome {
    color: #A95D81;
    text-align: center;
    font-size: 2em;
}

#manageCalendarDiv {
    height: 100%;
    padding: 0;
}

#manageDiv.reduce {
    height: 6em;
    overflow: hidden;
    background: rgba(240, 240, 240, 0.2);
    box-shadow: -1px 0 7px 0 rgba(240, 240, 240, 1);
    padding: 0;
}

#manageDiv.reduce #welcome {
    display: none;
}

form {
    font-family: system-ui;
    position: relative;
}

#informationForm>label {
    width: 10em;
    margin-top: 1em;
}

#informationForm input[type="date"] {
    max-width: 10em;
}

/*
#informationForm input[type="file"]{
    width:calc(100% - 16em);
}
*/
#imageContainer {
    height: 6em;
    display: inline-block;
    width: 6em;
    border: 1px solid rgb(222, 226, 230);
    text-align: center;
    vertical-align: middle;
    padding: 0 0.25em;
    border-radius: 1em;
    cursor: pointer;
    overflow: hidden;
    margin: .5em 0;
    line-height: 6em;
}

label+#imageContainer {
    margin-left: 1em;
}

#calendarIconPreview {
    max-height: 100%;
    max-width: 100%;
}

/*
#informationForm #calendarSubmit{
    margin-left:0;
    margin-top:1em;
    width:auto;
}
*/
#spinner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(6, 30, 62, 1);
    background: linear-gradient(rgba(196, 102, 0, 1), rgba(155, 89, 182, 1));
    text-align: center;
    z-index: 1000;
    transition: visibility 0s 0s;
    opacity: 1;
}

#spinner>div {
    top: 50%;
    position: absolute;
}

#spinner.hide {
    visibility: hidden;
    background-color: rgba(6, 30, 62, 0);
    opacity: 0;
    transition: visibility 0s 2s, opacity 1.8s 0.2s;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(170, 170, 170, 0.8);
    text-align: center;
    transition: opacity 1s, visibility 0s 0s;
    z-index: 9999;
    padding: 0;
    opacity: 1;
    font-family: system-ui;
}

#overlay #modal {
    position: absolute;
    background-color: rgba(6, 30, 62, 1);
    text-align: center;
    transition: background-color 1s;
    z-index: 9;
    padding: 1em 2em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 34em;
    color: white;
    border-radius: 1em;
    background: linear-gradient(rgba(196, 102, 0, 1), rgba(155, 89, 182, 1));
}

#overlay #modal hr {
    opacity: 1;
}

#overlay #modal #modalContent {
    min-height: 5em;
    /*padding: 1em 0;*/
}

#overlay #modal #modalFooter {
    text-align: right;
}

#overlay #modal #modalFooter input+input {
    margin-left: 1em;
}

#overlay.hide {
    visibility: hidden;
    opacity: 0;
    transition: opacity 1s, visibility 0s 1s;
}

.dropZone {
    text-align: center;
    height: 5em;
    background: rgb(240, 240, 240);
    border: 3px dashed rgba(6, 30, 62, 1);
    border-radius: 2em;
    box-shadow: 0 0 0 4px white;
    line-height: 4em;
    transition: all 1s;
}

.dropZone.dragging {
    background: rgba(6, 30, 62, 1);
    border-color: rgb(240, 240, 240);
    box-shadow: 0 0 0 4px rgba(6, 30, 62, 1);
    color: white;
}

#closeCross {
    position: absolute;
    color: white;
    cursor: pointer;
    top: -1em;
    margin-left: calc(100% - 1em);
    font-size: 1.5em;
    color: rgba(6, 30, 62, 1);
}

.calendarView {
    white-space: nowrap;
    width: 100%;
    overflow-x: auto;
    height: 100%;
    position: relative;
}

/*
.calendarView::before {
    position: absolute;
    left: 50%;
    content: attr(data-month);
    top: 50%;
    transform: translate(-50%,-50%) rotate(-30deg);
    font-size: min(250px,calc(20dvw + 10dvh));
    color: rgb(100,100,100);
    opacity: 0.15;
}
.calendarView::after {
    position: absolute;
    left: 50%;
    content: attr(data-year);
    top: 50%;
    transform: translate(-50%,-50%) rotate(-30deg);
    font-size: min(125px,calc(10dvw + 5dvh));
    color: rgb(100,100,100);
    opacity: 0.15;
}
*/
.calendarView .calendarControls {
    height: 3em;
    line-height: 3em;
    text-align: center;
    /*color: #55efc4;*/
    color: white;
}

.calendarView .calendarControls .control {
    display: inline-block;
}

.calendarView .calendarControls .control.label {
    font-size: 2em;
    vertical-align: middle;
    /*color: #55efc4;*/
    color: white;
    width: 7.5em;
}
.calendarView .calendarControls .control.label.advent {
    width:100%;
    font-size:1.5em;
}

.calendarView .calendarControls .control.right,
.calendarView .calendarControls .control.left {
    font-size: 1.5em;
    vertical-align: middle;
    font-family: lito;
    cursor: pointer;
    width: 2em;
    text-align: center;
    font-weight: bold;
}

.calendarView .calendarControls .control.right.disabled,
.calendarView .calendarControls .control.left.disabled {
    color: transparent;
    cursor: auto;
}

.calendarView .header {
    height: 3em;
    line-height: 3em;
    border: 1px solid rgba(100, 100, 100, 0.3);
    text-align: center;
    display: flex;
}

.calendarView .header .headerItem {
    flex-basis: auto;
    flex-grow: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.calendarView #calendarContainer {
    height: calc(100% - 6em);
    overflow: hidden;
    /*position: relative;*/
}

.calendarView .calendarRow {
    display: flex;
    height: calc(100% / 5);
}

.calendarView .calendarRow.header {
    height: 3em;
}

.calendarView .dayView {
    position: relative;
    width: 5em;
    height: 100%;
    flex-basis: auto;
    flex-grow: 1;
    cursor: pointer;
    transition: height .5s, width .5s, background .5s;
    left: 0;
    top: 0;
    overflow: hidden;
    box-shadow: 0 0 1PX 0 rgba(0, 0, 0, 0.1);
}
.calendarView .dayView.add-day {
    background: linear-gradient(rgba(196, 102, 0, 1), rgba(155, 89, 182, 1));
    text-align: center;
}
.dayView.add-day > div {
    height: 2em;
    font-size: 3em;
    line-height: 2em;
    position: relative;
    top: calc(50% - 1em);
}

.calendarView .dayView:hover {
    background: rgba(91, 157, 242, 0.3);
}

.calendarView .dayView .frontView,
.calendarView .dayView .backView,
.calendarView .dayView .bottomView {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    position: absolute;
}

.calendarView .dayView.edit-animation .frontView .buttons {
    display: none;
}

.calendarView .dayView .backView {
    transform: translateX(100%);
    display: none;
}

.calendarView .dayView.selected .backView {
    display: block;
}

.calendarView .dayView .bottomView {
    transform: translate(100%, 100%);
}

.calendarView .dayView .backView form {
    padding: 1em;
    height: 100%;
}

.calendarView .dayView .backView .editor {
    height: calc(100% - 7em);
}

.calendarView .dayView .backView .dayContentEditor {
    height: calc(100% - 4em);
    overflow: hidden;
}

.calendarView .dayView .backView .ql-toolbar,
.calendarView .dayView .backView .ql-editor {
    background-color: white;
    color: black;
    text-align: center;
}

.calendarView .dayView .inner-dayView {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.calendarView .dayView.flip .inner-dayView {
    transform: translateX(-100%);
}

.calendarView .dayView.scrollDown .inner-dayView {
    transform: translate(-100%, -100%);
}

.calendarView .dayView.different {
    background: rgba(100, 100, 100, 0.2);
    color: rgba(100, 100, 100, 0.2);
    cursor: default;
}

.calendarView .dayView .dayLabel {
    height: 1.5em;
    width: 1.5em;
    line-height: 1.5em;
    border-radius: 0.75em;
    /*background: #55efc4;*/
    display: block;
    text-align: center;
}

.calendarView .dayView .close-btn {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    font-family: "Lucida Sans Unicode";
    background: linear-gradient(to right, rgba(196, 102, 0, 1), rgba(155, 89, 182, 1));
    box-shadow: 0 0 0px 2px white, 0 0 10px 0 black;
    cursor: pointer;
    height: 1.5em;
    width: 1.5em;
    line-height: 1.5em;
    border-radius: 0.75em;
    margin: 0.5em;
    font-size: 1.25em;
    text-align: center;
}

.calendarView .dayView.selected .close-btn {
    display: block;
}

.calendarView .dayView.selected.edit-animation .close-btn {
    display: none;
}

.calendarView .dayView .buttons {
    position: absolute;
    bottom: 1em;
    left: 0;
    width: 100%;
    height: 2em;
    font-family: system-ui;
    display: none;
    font-size: .75em;
}

.calendarView .dayView .buttons .input-data {
    width: auto !important;
    height: 2em !important;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
    position: absolute;
}

.calendarView .dayView .buttons .input-data .inner {
    left: 0;
    width: 100%;
}

.calendarView .dayView.selected .buttons {
    display: block;
}

.calendarView .dayView.hasEvent.surprise {
    background: linear-gradient(90deg, #55efc4, #55efc4 10px, rgba(85, 239, 196, 0.3) 11px);
}

.calendarView .dayView.hasEvent.surprise:hover {
    background: linear-gradient(90deg, #55efc4, #55efc4 10px, rgba(85, 239, 196, 0.6) 11px);
}

.calendarView .dayView.hasEvent.nosurprise {
    background: linear-gradient(90deg, #b2bec3, #b2bec3 10px, rgba(178, 190, 195, 0.3) 11px);
}

.calendarView .dayView.hasEvent.nosurprise:hover {
    background: linear-gradient(90deg, #b2bec3, #b2bec3 10px, rgba(178, 190, 195, 0.6) 11px);
}

.calendarView .dayView.hasEvent.surprise .dayLabel {
    background: #55efc4;
}

.calendarView .dayView.hasEvent.nosurprise .dayLabel {
    background: #b2bec3;
}

/*
.calendarView .dayView.hasEvent.surprise::before{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    height:1.5em;
    width:1.5em;
    border-radius:0.75em;
    background:#55efc4;
    content:"";
}
.calendarView .dayView.hasEvent.nosurprise::before{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    height:1.5em;
    width:1.5em;
    border-radius:0.75em;
    background:#b2bec3;
    content:"";
}
*/
#dayContentEditor {
    background: white;
    color: black;
    height: auto;
    max-height: 500px;
    transition: max-height 0.5s;
}

#dayContentEditor.hide {
    max-height: 0;
    overflow: hidden;
}

#dayContentEditor .form-label {
    margin-bottom: 0;
    height: 2em;
    line-height: 2em;
}

.form-label {
    position: relative;
}

.form-label::after {
    font-size: .7em;
    color: var(--bs-secondary-color);
    content: attr(data-helper);
    position: absolute;
    top: 1em;
    left: 0;
    margin-top: .7em;
    padding-right: 1em;
}

#dayContentEditor .editor {
    height: 30dvh;
    width: 60dvw;
    min-width: 100%;
}

.form-switch {
    text-align: left;
}

.form-control {
    max-width: 30em;
}

#dayContentEditor .editor .ql-editor img {
    max-height: 10em;
    max-width: 16em;
}

.dayView .absolute-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.dayView .absolute-container canvas {
    width: 100%;
    height: 100%;
}

.dayView .absolute-container .surprise-sample {
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.dayView .absolute-container .surprise-sample .inner{
    height: 100%;
    width: 100%;
    background-image: var(--backgroundUrl);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.dayView .absolute-container .surprise-sample img {
    min-height: 100%;
    width: auto;
    min-width: 100%;
}

.dayView .dayContent {
    display: block;
    font-size: 0.25em;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    transition: font-size .5s;
}

.dayView.selected {
    position: absolute;
    background: white !important;
    background: linear-gradient(rgba(196, 102, 0, 1), rgba(155, 89, 182, 1)) !important;
    height: 90%;
    z-index: 30;
    width: 90%;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
    top: calc(50%);
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: auto;
}

.dayView.selected .dayLabel {
    margin: .5em;
    font-size: 1.25em;
}

.dayView.selected .dayContent {
    font-size: 1em;
}

.totalHide {
    display: none;
}

.dayView .animationEditView {
    display: none;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 100%;
    transition: all .5s;
    background: rgba(255, 255, 255, 0);
}

.dayView.selected .animationEditView {
    display: block;
}

.dayView.edit-animation .animationEditView {
    top: 0;
    /*background:rgba(255,255,255,0.8);*/
}

.dayView .animations-form {
    height: 100%;
    width: 100%;
}

.dayView .animations-form .categories {
    /* width: 7em; */
    width: 5em;
    display: inline-block;
    vertical-align: top;
    color: black;
    cursor: pointer;
    /* overflow: hidden; */
    transition: all .5s;
    z-index: 3;
    right: 0;
    height: 100%;
}

.dayView .animations-form .categories .title {
    text-align: center;
    height: 2em;
    width: 2Em;
    margin-left: -2.5em;
    margin-top: 0.5em;
    border-radius: 1em;
    padding: 0.25em;
    line-height: 2em;
    background: rgb(240, 240, 240);
    box-shadow: 0 0 5px 0 black;
}

.dayView .animations-form .categories .content {
    padding: 0;
    padding-left: 0.25em;
    font-family: system-ui;
    font-size: .75em;
    height: 100%;
    /* overflow: hidden; */
    margin: 0;
    transition: all .5s;
    overflow-y: auto;
    margin-left: 0;
}

.dayView .animations-form .categories .content li {
    list-style: none;
    width: 100%;
    width: 5em;
    height: 5em;
    line-height: 1em;
    background: white;
    margin-left: 2.5%;
    margin: 0.5em 0.5em;
    position: relative;
    cursor: pointer;
    transition: all .5s;
    /* padding: 1em; */
    border-radius: 1em;
    padding: 1em 0;
    border: 2px solid rgb(100, 100, 100);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

.dayView .animations-form .categories .content li:hover {
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.8);
}

.dayView .animations-form .categories .content li .value {
    transition: all .5s;
}

.dayView .animations-form .categories .content li.selected .value {
    color: white;
    text-shadow: 0 0 5px black;
}

.dayView .animations-form .categories .content li .divBorder {
    background: rgba(255, 255, 255, 0.6);
    position: absolute;
    z-index: 1;
    height: calc(100% + 4px);
    margin-top: -2px;
    width: calc(100% + 4px);
    margin-left: -2px;
    border-radius: 1em;
    transition: all .5s;
    top: 0;
}

.dayView .animations-form .categories .content li.selected .divBorder,
.dayView .animations-form .categories .content li:hover .divBorder {
    background: rgba(255, 255, 255, 0);
}

/*
.dayView .animations-form .categories .content li .colorBar{
    width: 0.5em;
    height: 2.5em;
    background: #40ADF0;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
}
*/
.dayView .animations-form .categories .content li .icon {
    width: 100%;
    display: block;
    /* margin-left: 0.5em; */
    text-align: center;
    position: relative;
    z-index: 1;
}

.dayView .animations-form .categories .content li .icon>span {
    font-size: 1.7em;
}

.dayView .animations-form .categories .content li .value {
    width: 100%;
    display: block;
    margin-top: 0.75em;
    /* padding: 0 0.5em; */
    text-align: center;
    position: relative;
    /* color: white;*/
}

.dayView .animations-form .animations-list {
    width: calc(100% - 5em);
    height: 100%;
    display: inline-block;
    vertical-align: top;
}

.dayView .animations-form .animations-list .title {
    text-align: center;
    height: 2em;
    line-height: 2em;
    /*background: rgb(240,240,240);*/
    color: black;
    display: none;
}

.dayView .animations-form .animations-list .content {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    font-family: system-ui;
    font-size: .75em;
    overflow-y: auto;
    height: 100%;
    align-items: flex-start;
    align-content: flex-start;
}

.dayView .animations-form .animations-list .content li {
    list-style: none;
    height: auto;
    width: calc(100% / 3 - 1em);
    margin-left: 2.5%;
    margin: 0.5em 0.5em;
    position: relative;
    display: inline-flex;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.8);
    background: white;
    color: black;
    cursor: pointer;
    transition: all .3s;
    border-radius: 1em;
    overflow: hidden;
}

@media (min-width: 900px) {
    .dayView .animations-form .animations-list .content li {
        width: calc(100% / 4 - 1em);
    }
}

.dayView .animations-form .animations-list .content li .value {
    position: absolute;
    left: 1em;
    top: .5em;
}

.dayView .animations-form .animations-list .content li img {
    width: 100%;
    height: auto;
}
.dayView .animations-form .animations-list .content li .sample-inner{
    height: 100%;
    width: 100%;
    background-image: var(--backgroundUrl);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.dayView .animations-form .animations-list .content li.selected .divBorder {
    display: block;
    border: 4px solid white;
    background: rgba(255, 255, 255, 0);
}

.dayView .animations-form .animations-list .content li:hover .divBorder {
    background: rgba(255, 255, 255, 0);
}

.dayView .animations-form .animations-list .content li .divBorder {
    background: rgba(255, 255, 255, 0.3);
    position: absolute;
    z-index: 1;
    height: 100%;
    width: 100%;
    border-radius: 1em;
    transition: all .5s;
}

.calendarView .dayView .animations-form .buttons {
    top: 0.5em;
}

.calendarView .dayView .buttons .input-data {
    border-radius: 1em;
    box-shadow: 0 0 0px 2px white, 0 0 10px 0 black;
    padding: 0 0.25em;
}

.calendarView .dayView .buttons .input-data.big {
    width: 2em !important;
    transition: all .5s;
    direction: rtl;
}

.calendarView .dayView .buttons .input-data.small {
    display: none;

}

.calendarView .dayView .buttons .input-data.big input {
    background: none;
    border: none;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    width: auto;
    right: 0;
    /* position: absolute; */
    transition: all .5s;
    direction: ltr;
    text-align: center;
}

.calendarView .dayView .buttons .input-data.big:hover {
    width: 8em !important;
}

.calendarView .dayView .buttons .input-data.big:hover input {
    left: 0;
    right: auto;
}

.filter-icon {
    height: 1em;
    width: 1em;
    background-image: url('/images/filter.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    background-position: center center;
}

/* CREATE */
#createDiv {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

#createDiv #welcome {
    color: #A95D81;
    background: #A95D81;
    text-align: center;
    font-size: 2em;
    color: white;
    width: calc(100% + 2em);
    margin-left: -1em;
    margin-bottom: .5em;
    box-shadow: 0 1px 7px 0 black;
}

#createDiv .flexItem {
    padding: .5em;
    height: auto;
    margin: 1em;
}

#createDiv .icon {
    font-size: 2.6em;
    display: inline-block;
    vertical-align: middle;
    height: 1.4em;
    width: 1.4em;
    border-radius: .7em;
    background: white;
    line-height: 1em;
    text-align: center;
    padding-top: .2em;
    position: relative;
}

#createDiv .section>.title {
    display: inline-block;
    font-weight: bold;
    font-size: 1.2em;
}

#createDiv .flexItem .title {
    display: inline-block;
    padding-left: 2em;
    background: white;
    color: #A95D81;
    margin-left: -1em;
    padding-right: 1em;
    border-bottom-right-radius: .5em;
    border-top-right-radius: .5em;
    height: 2em;
    line-height: 2em;
    font-weight: bold;
}

#createDiv .description {
    white-space: normal;
    margin-top: .5em;
}

#userCreateDiv .title a,
#userLoginDiv .title a {
    color: white;
    font-weight: bold;
}

.section .title {
    font-size: 1.2em;
    font-weight: bold;
}

ul.actions {
    list-style: none;
}

ul.actions li {
    cursor: pointer;
    transition: all .1s;
}

ul.actions li:hover {
    font-weight: bold;
}

#userCreateDiv .title,
#userLoginDiv .title {
    /* padding: 1em; */
    padding: 1em;
    background: #A95D81;
    width: calc(100% + 2em);
    margin-left: -1em;
}

#userForm .form-label+input {
    margin-left: .5em;
}

form.nice-form .input-group {
    display: block;
}

form.nice-form .input-group+.input-group {
    margin-top: .5em;
}

form.nice-form label {
    width: 10em;
    text-align: right;
    vertical-align: middle;
}

form.nice-form input {
    display: inline-block;
    margin-left: 1em !important;
    vertical-align: middle;
    border-radius: 4px !important;
    width: auto !important;
}

.opening-element {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.opening-element .opening-helper {
    position: absolute;
    z-index: 100;
    left: 50%;
    top: 50%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 2em;
    /* height: 1em; */
    line-height: 2em;
    color: white;
    padding: .5em 2em;
    text-align: center;
    /* vertical-align: middle; */
    font-weight: bold;
    transform: translate(-50%, -50%);
}

/* TAP HELPER */
.tap-helper,
.drag-helper {
    height: 10em;
    width: 10em;
    position: absolute;
    top: calc(50% - 5em);
    left: calc(50% - 5em);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0);
    transition: all 2s;
    /*transform: rotate(-15deg);*/
    padding: 1.5em;
    border: .5em solid rgba(255, 255, 255, .8);
    z-index: 99;
}

.tap-helper {
    animation: tap 3s linear infinite;
}

.drag-helper {
    background: rgba(200, 200, 200, .8);
}

.tap-helper svg,
.drag-helper svg {
    max-height: 100%;
    max-width: 100%;
    fill: rgba(255, 255, 255, 0.9);
}

.tap-helper svg {
    animation: tap-hand 3s linear infinite;
}

.drag-helper svg {
    position: relative;
    max-height: 80%;
    max-width: 80%;
    animation: drag-hand 2s linear infinite;
}

.drag-helper .trail {
    position: relative;
    width: .8em;
    height: .8em;
    border-radius: .4em;
    transition: all 1s;
    top: calc(30% - .4em);
    left: 0;
    background: rgba(255, 255, 255, 0.6);
    animation: drag-trail 2s linear infinite;
}

.tap-helper .wave {
    opacity: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -8px;
    left: -8px;
    right: 0;
    bottom: 0;
    content: "";
    height: 100%;
    width: 100%;
    border: 8px solid rgba(255, 255, 255, 0.4);
    border-radius: 100%;
    -webkit-animation-name: ripple;
    animation-name: ripple;
    -webkit-animation-duration: 3s;
    animation-duration: 3s;
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);
    animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);
    z-index: -1;
}

.tap-helper .wave-1 {
    animation-delay: 0s;
}

.tap-helper .wave-2 {
    animation-delay: 0.2s;
}

.tap-helper .wave-3 {
    animation-delay: .4s;
}

.tap-helper .wave-4 {
    animation-delay: .6s;
}

@keyframes ripple {

    0%,
    50% {
        opacity: 1;
        transform: scale3d(0, 0, 1);
    }

    100% {
        opacity: 0;
        transform: scale3d(1.5, 1.5, 1);
    }
}

@keyframes tap-hand {

    0%,
    100% {
        transform: rotateX(45deg);
    }

    10%,
    90% {
        transform: rotateX(0deg);
    }
}

@keyframes tap {

    0%,
    100% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(200, 200, 200, .6) 100%);
    }

    1.5% {
        background: radial-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(200, 200, 200, .6) 5%);
    }

    3% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(255, 255, 255, 0.6) 5%, rgba(200, 200, 200, .6) 10%);
    }

    4.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(200, 200, 200, .6) 5%, rgba(255, 255, 255, 0.6) 10%, rgba(200, 200, 200, .6) 15%);
    }

    6% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(200, 200, 200, .6) 10%, rgba(255, 255, 255, 0.6) 15%, rgba(200, 200, 200, .6) 20%);
    }

    7.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(200, 200, 200, .6) 15%, rgba(255, 255, 255, 0.6) 20%, rgba(200, 200, 200, .6) 25%);
    }

    9% {
        background: radial-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(200, 200, 200, .6) 5%, rgba(200, 200, 200, .6) 20%, rgba(255, 255, 255, 0.6) 25%, rgba(200, 200, 200, .6) 30%);
    }

    10.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(255, 255, 255, 0.6) 5%, rgba(200, 200, 200, .6) 10%, rgba(200, 200, 200, .6) 25%, rgba(255, 255, 255, 0.6) 30%, rgba(200, 200, 200, .6) 35%);
    }

    12% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(200, 200, 200, .6) 5%, rgba(255, 255, 255, 0.6) 10%, rgba(200, 200, 200, .6) 15%, rgba(200, 200, 200, .6) 30%, rgba(255, 255, 255, 0.6) 35%, rgba(200, 200, 200, .6) 40%);
    }

    13.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(200, 200, 200, .6) 10%, rgba(255, 255, 255, 0.6) 15%, rgba(200, 200, 200, .6) 20% rgba(200, 200, 200, .6) 35%, rgba(255, 255, 255, 0.6) 40%, rgba(200, 200, 200, .6) 45%);
    }

    15% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(200, 200, 200, .6) 15%, rgba(255, 255, 255, 0.6) 20%, rgba(200, 200, 200, .6) 25%, rgba(200, 200, 200, .6) 40%, rgba(255, 255, 255, 0.6) 45%, rgba(200, 200, 200, .6) 50%);
    }

    16.5% {
        background: radial-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(200, 200, 200, .6) 5%, rgba(200, 200, 200, .6) 20%, rgba(255, 255, 255, 0.6) 25%, rgba(200, 200, 200, .6) 30%,
                rgba(200, 200, 200, .6) 45%, rgba(255, 255, 255, 0.6) 50%, rgba(200, 200, 200, .6) 55%);
    }

    18% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(255, 255, 255, 0.6) 5%, rgba(200, 200, 200, .6) 10%, rgba(200, 200, 200, .6) 25%, rgba(255, 255, 255, 0.6) 30%, rgba(200, 200, 200, .6) 35%,
                rgba(200, 200, 200, .6) 50%, rgba(255, 255, 255, 0.6) 55%, rgba(200, 200, 200, .6) 60%);
    }

    19.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(200, 200, 200, .6) 5%, rgba(255, 255, 255, 0.6) 10%, rgba(200, 200, 200, .6) 15%, rgba(200, 200, 200, .6) 30%, rgba(255, 255, 255, 0.6) 35%, rgba(200, 200, 200, .6) 40%,
                rgba(200, 200, 200, .6) 55%, rgba(255, 255, 255, 0.6) 60%, rgba(200, 200, 200, .6) 65%);
    }

    21% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(200, 200, 200, .6) 10%, rgba(255, 255, 255, 0.6) 15%, rgba(200, 200, 200, .6) 20% rgba(200, 200, 200, .6) 35%, rgba(255, 255, 255, 0.6) 40%, rgba(200, 200, 200, .6) 45%,
                rgba(200, 200, 200, .6) 60%, rgba(255, 255, 255, 0.6) 65%, rgba(200, 200, 200, .6) 70%);
    }

    22.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(200, 200, 200, .6) 15%, rgba(255, 255, 255, 0.6) 20%, rgba(200, 200, 200, .6) 25%,
                rgba(200, 200, 200, .6) 40%, rgba(255, 255, 255, 0.6) 45%, rgba(200, 200, 200, .6) 50%,
                rgba(200, 200, 200, .6) 65%, rgba(255, 255, 255, 0.6) 70%, rgba(200, 200, 200, .6) 75%);
    }

    24% {
        background: radial-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(200, 200, 200, .6) 5%, rgba(200, 200, 200, .6) 20%, rgba(255, 255, 255, 0.6) 25%, rgba(200, 200, 200, .6) 30%,
                rgba(200, 200, 200, .6) 45%, rgba(255, 255, 255, 0.6) 50%, rgba(200, 200, 200, .6) 55%,
                rgba(200, 200, 200, .6) 70%, rgba(255, 255, 255, 0.6) 75%, rgba(200, 200, 200, .6) 80%);
    }

    25.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(255, 255, 255, 0.6) 5%, rgba(200, 200, 200, .6) 10%, rgba(200, 200, 200, .6) 25%, rgba(255, 255, 255, 0.6) 30%, rgba(200, 200, 200, .6) 35%,
                rgba(200, 200, 200, .6) 50%, rgba(255, 255, 255, 0.6) 55%, rgba(200, 200, 200, .6) 60%,
                rgba(200, 200, 200, .6) 75%, rgba(255, 255, 255, 0.6) 80%, rgba(200, 200, 200, .6) 85%);
    }

    27% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%, rgba(200, 200, 200, .6) 5%, rgba(255, 255, 255, 0.6) 10%, rgba(200, 200, 200, .6) 15%, rgba(200, 200, 200, .6) 30%, rgba(255, 255, 255, 0.6) 35%, rgba(200, 200, 200, .6) 40%,
                rgba(200, 200, 200, .6) 55%, rgba(255, 255, 255, 0.6) 60%, rgba(200, 200, 200, .6) 65%,
                rgba(200, 200, 200, .6) 80%, rgba(255, 255, 255, 0.6) 85%, rgba(200, 200, 200, .6) 90%);
    }

    28.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 35%, rgba(255, 255, 255, 0.6) 40%, rgba(200, 200, 200, .6) 45%,
                rgba(200, 200, 200, .6) 60%, rgba(255, 255, 255, 0.6) 65%, rgba(200, 200, 200, .6) 70%,
                rgba(200, 200, 200, .6) 85%, rgba(255, 255, 255, 0.6) 90%, rgba(200, 200, 200, .6) 95%);
    }

    30% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 40%, rgba(255, 255, 255, 0.6) 45%, rgba(200, 200, 200, .6) 50%,
                rgba(200, 200, 200, .6) 65%, rgba(255, 255, 255, 0.6) 70%, rgba(200, 200, 200, .6) 75%,
                rgba(200, 200, 200, .6) 90%, rgba(255, 255, 255, 0.6) 95%, rgba(200, 200, 200, .6) 100%);
    }

    31.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 40%, rgba(255, 255, 255, 0.6) 45%, rgba(200, 200, 200, .6) 50%,
                rgba(200, 200, 200, .6) 65%, rgba(255, 255, 255, 0.6) 70%, rgba(200, 200, 200, .6) 75%);
    }

    33% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 45%, rgba(255, 255, 255, 0.6) 50%, rgba(200, 200, 200, .6) 55%,
                rgba(200, 200, 200, .6) 70%, rgba(255, 255, 255, 0.6) 75%, rgba(200, 200, 200, .6) 80%);
    }

    34.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 50%, rgba(255, 255, 255, 0.6) 55%, rgba(200, 200, 200, .6) 60%,
                rgba(200, 200, 200, .6) 75%, rgba(255, 255, 255, 0.6) 80%, rgba(200, 200, 200, .6) 85%);
    }

    36% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 55%, rgba(255, 255, 255, 0.6) 60%, rgba(200, 200, 200, .6) 65%,
                rgba(200, 200, 200, .6) 80%, rgba(255, 255, 255, 0.6) 85%, rgba(200, 200, 200, .6) 90%);
    }

    37.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 60%, rgba(255, 255, 255, 0.6) 65%, rgba(200, 200, 200, .6) 70%,
                rgba(200, 200, 200, .6) 85%, rgba(255, 255, 255, 0.6) 90%, rgba(200, 200, 200, .6) 95%);
    }

    39% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 65%, rgba(255, 255, 255, 0.6) 70%, rgba(200, 200, 200, .6) 75%,
                rgba(200, 200, 200, .6) 90%, rgba(255, 255, 255, 0.6) 95%, rgba(200, 200, 200, .6) 100%);
    }

    40.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 70%, rgba(255, 255, 255, 0.6) 75%, rgba(200, 200, 200, .6) 80%);
    }

    42% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 75%, rgba(255, 255, 255, 0.6) 80%, rgba(200, 200, 200, .6) 85%);
    }

    43.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 80%, rgba(255, 255, 255, 0.6) 85%, rgba(200, 200, 200, .6) 90%);
    }

    45% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 85%, rgba(255, 255, 255, 0.6) 90%, rgba(200, 200, 200, .6) 95%);
    }

    46.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 90%, rgba(255, 255, 255, 0.6) 95%, rgba(200, 200, 200, .6) 100%);
    }

    48% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 95%, rgba(255, 255, 255, 0.6) 100%);
    }

    49.5% {
        background: radial-gradient(rgba(200, 200, 200, .6) 0%,
                rgba(200, 200, 200, .6) 100%);
    }
}

@keyframes drag-hand {
    0% {
        left: -30%;
        opacity: 1;
    }

    69% {
        left: 30%;
        opacity: 1;
    }

    80% {
        left: 30%;
        opacity: 0;
    }

    81%,
    100% {
        left: -30%;
        opacity: 0;
    }
}

@keyframes drag-trail {
    0% {
        width: .8em;
        opacity: 1;
    }

    69% {
        width: 80%;
        opacity: 1;
    }

    80% {
        width: 80%;
        opacity: 0;
    }

    81%,
    100% {
        width: .8em;
        opacity: 0;
    }
}

/*
HOME
*/
.home {
    /*height: 100%;*/
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.home-section {
    margin: 1em;
    color: white;
    border-radius: 1em;
    min-width: 20em;
    padding: .5em 1em;
    display: block;
    flex-grow: 1;
    flex-basis: min-content;
    background: #A95D81;
    background: linear-gradient(0deg, rgba(196, 102, 0, 0.6), rgba(155, 89, 182, 0.6));
}

.home-section-title {
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, .4);
    padding: .5em;
    font-size: 1.1em;
    font-weight: 400;
    color: white;
    text-align: center;
    border-top-left-radius: .5em;
    border-top-right-radius: .5em;
}

.home-section-content {
    padding: 1.5em;
}

.home-section-content a {
    color: #A95D81;
    text-decoration: none;
    background: white;
    padding: .5em 1em;
    border-radius: 1em;
    border: 2px solid #A95D81;
    box-shadow: 0 0 0.1em 0 rgba(0, 0, 0, .4) inset;
    font-weight: 400;
}
#hover-layer{
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left:0;
    padding:0;
    z-index: 1000;
    transition:opacity 1s linear 0s;
    display: none;
    opacity:1;
    overflow:hidden;
}
#hover-layer.show{
    display:block;
}
#hover-layer.fade{
    z-index: 990;
    transition:opacity 1s linear 3s;
    opacity:0;
}
.fade .advent-calendar{
    transition: transform 1s, opacity 1s;
}
.advent-calendar {
    --backgroundUrl: 'url()';
    height: calc(100% + var(--padding) * 2);
    width: calc(100% + var(--padding) * 2);
    display: flex;
    flex-wrap: wrap;
    /*background-image: var(--backgroundUrl);*/
    background-origin: 50% 50%;
    /* background-size: 764px 673px; */
    background-position: 50% 50%;
    background-size: initial;
    padding: 0 !important;
    position: relative;
    --nbOfCols: 9;
    --nbOfRows: 5;
    --numberOfCols: var(--nbOfCols);
    --numberOfRows: var(--nbOfRows);
    --windowHeight: calc((100dvh - 66px) / var(--numberOfRows));
    --windowWidth: calc(100dvw / var(--numberOfCols));
    transition: transform 1s 1s, opacity 1s;
    --zoomCol: 0;
    --zoomRow: 0;
    --trueZoomCol: calc(var(--zoomCol) + var(--zoomColspan));
    --trueZoomRow: calc(var(--zoomRow) + var(--zoomRowspan));
    --padding: 200px;
    transform: translate(calc(0px - var(--padding)), calc(0px - var(--padding)));
    --winTransition:'z-index 0s linear 1s, width 1s 0s, height 1s 0s, left 1s 0s, top 1s 0s, transform 1s';
}

body.fullscreen .advent-calendar {
    --windowHeight: calc((100dvh) / var(--numberOfRows));
}

/*
.advent-calendar.zoom{
    transform: scale(3) translateX(calc(50% - var(--trueZoomCol) * var(--windowWidth) + var(--windowWidth) / 2)) translateY(calc(50% - (var(--trueZoomRow)* var(--windowHeight) + var(--windowHeight) / 2));
}
*/
/*
.advent-calendar.zoom {
    transform: scale(3) translateX(calc(50% - var(--padding) / 3 - var(--padding) - var(--trueZoomCol) * var(--windowWidth) + var(--windowWidth) / 2)) translateY(calc(50% - var(--padding) / 3 - var(--padding) - var(--trueZoomRow) * var(--windowHeight) + var(--windowHeight) / 2));
}
*/

.advent-calendar .window {
    --col: 1;
    --row: 1;
    --trueCol: var(--col);
    --trueRow: var(--row);
    --colspan: 1;
    --rowspan: 1;
    --centerX: 50%;
    --centerY: 50%;
    --posX: calc(var(--centerX) + (1 - var(--trueCol) + ((var(--numberOfCols) - 1)/2)) * var(--windowWidth));
    --posY: calc(var(--centerY) + (1 - var(--trueRow) + ((var(--numberOfRows) - 1)/2)) * var(--windowHeight));
    height: calc(var(--windowHeight) * var(--rowspan));
    width: calc(var(--windowWidth) * var(--colspan));
    position: absolute;
    background-image: var(--backgroundUrl);
    background-position: initial;
    top: 0;
    top: calc(var(--padding) + (var(--trueRow) - 1) * var(--windowHeight));
    left: calc(var(--padding) + (var(--trueCol) - 1) * var(--windowWidth));
    z-index: 0;
    transition: var(--winTransition);
    filter: url(#remove-green);
    -webkit-filter: url(#remove-green);
    /*background: black;*/
    /*
    background-position: calc(1440px / 2 + (var(--distFromCenterX))) calc(900px / 2 +  (var(--distFromCenterY)));
    background-position: calc(50% - (var(--windowWidth)/2) + (var(--distFromCenterX))) calc(50% - (var(--windowHeight)/2) + (var(--distFromCenterY)));
    */
    --backgroundPosX: calc(var(--posX) - (var(--colspan) - 1) * var(--windowWidth)/ 2);
    --backgroundPosY: calc(var(--posY) - (var(--rowspan) - 1) * var(--windowHeight)/ 2);
    background-position-x: var(--backgroundPosX);
    background-position-y: var(--backgroundPosY);
    perspective: 50dvw;
}

.advent-calendar .window.open {
    z-index: 1;
    transition: z-index 0s linear 0s;
    z-index: 10;
    /*animation: openAdventWindow 1s linear 2s forwards;*/
    
}


.advent-calendar .window:not(.empty)::before {
    height: calc(100% - 1em);
    width: calc(100% - 1em);
    top: .5em;
    left: .5em;
    border-radius: 1em;
    content: "";
    display: block;
    position: absolute;
    background: rgb(0,255,0);
    box-shadow: 0 0px 4px 1px black inset;
}

.advent-calendar .window .inner::before {
    /* height: 1.8em; */
    /* width: 1.8em; */
    position: absolute;
    content: attr(data-idx);
    /* top: calc(50% - .9em); */
    /* left: calc(50% - .9em); */
    display: block;
    /* border-radius: 50%; */
    /* background: white; */
    color: #A95D81;
    top: .75em;
    left: .75em;
    /* font-size: 2.5em; */
    font-weight: bold;
    text-align: center;
    /* line-height: 1.8em; */
    z-index: 2;
    height: 2em;
    width: 2em;
    border-radius: 1em;
    background: rgba(255, 255, 255, .7);
    line-height: 2em;
}

.advent-calendar .window .inner {
    height: calc(100% - 1em);
    width: calc(100% - 1em);
    position: relative;
    top: .5em;
    left: .5em;
    display: block;
    background-image: var(--backgroundUrl);
    background-size: initial;
    background-position: inherit;
    transition: transform 1s linear, box-shadow 1s linear;
    transform-origin: left;
    border: 2px dashed rgba(255, 255, 255, .7);
    border-radius: 1em;
    transform-style: preserve-3d;
}
.advent-calendar .window.window-big .inner {
    background-position-x: calc(var(--backgroundPosX) + var(--windowWidth)/2 - .5em);
}

/*
.advent-calendar .window .inner::after {
    content: '';
    width: 4px;
    height: calc(100% + 4px);
    background: rgba(50, 50, 50, 1);
    position: absolute;
    top: -2px;
    right: 0;
    display: block;
    transform: rotateY(-70deg);
    transform-origin: 50% 100%;
    transform: rotateY(90deg) translateX(4px);
    transform-origin: 100% 100%;
    transition: all 1s;
}
*/
.advent-calendar .window.window-big .inner {
    width: calc(50% - .5em);
    display: inline-block;
    border-right-width: 1px;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.advent-calendar .window.window-big .inner:nth-child(2) {
    transform-origin: right;
    background-position-x: calc(var(--backgroundPosX) - var(--windowWidth) /2 + .5em);
    border-left-width: 1px;
    border-right-width: 2px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-bottom-right-radius: 1em;
    border-top-right-radius: 1em;
}

/*
.advent-calendar .window .inner:nth-child(2)::after {
    right:auto;
    left:0;
}
*/
.advent-calendar .window.window-big .inner::before {
    left: calc(100% - 1.5em + 1px);
    top: calc(50% - 1.5em);
    height: 3em;
    width: 3em;
    border-radius: 1.5em;
    line-height: 3em;
}

.advent-calendar .window .inner::after {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    background: rgb(235, 240, 245);
    opacity: 0;
    border-radius: 1em;
    z-index: 3;
    background-image: url(/images/logotest.png);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    transition: opacity 0s linear .5s;
}

.advent-calendar .window.open .inner::after {
    animation: openAdventWindowInnerBackface 2s;
}

.advent-calendar .window.window-big .inner:nth-child(2)::before {
    left: calc(-1.5em - 1px);
}

.advent-calendar .window.window-big .inner::after {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.advent-calendar .window.window-big .inner:nth-child(2)::after {
    transform: rotateY(180deg);
}

.advent-calendar .window.window-huge .inner {
    width: calc(50% - .5em);
    height: calc(50% - .5em);
    display: inline-block;
    background: rgba(255, 255, 255, .35);
}

.advent-calendar .window.window-huge .inner:nth-child(1) {
    transform-origin: top left;
    background-position-x: calc(var(--backgroundPosX) + var(--windowWidth) / 2 - .25em);
    background-position-y: calc(var(--backgroundPosY) + var(--windowHeight) / 2 - .25em);
}

.advent-calendar .window.window-huge .inner:nth-child(2) {
    transform-origin: top right;
    background-position-x: calc(var(--backgroundPosX) - var(--windowWidth) / 2 + .25em);
    background-position-y: calc(var(--backgroundPosY) + var(--windowHeight) / 2 - .25em);
}

.advent-calendar .window.window-huge .inner:nth-child(2)::before {
    content: "";
    background: none;
}

.advent-calendar .window.window-huge .inner:nth-child(3) {
    transform-origin: bottom left;
    background-position-x: calc(var(--backgroundPosX) + var(--windowWidth) / 2 - .25em);
    background-position-y: calc(var(--backgroundPosY) - var(--windowHeight) / 2 + .25em);
}

.advent-calendar .window.window-huge .inner:nth-child(3)::before {
    content: "";
    background: none;
}

.advent-calendar .window.window-huge .inner:nth-child(4) {
    transform-origin: bottom right;
    background-position-x: calc(var(--backgroundPosX) - var(--windowWidth) / 2 + .25em);
    background-position-y: calc(var(--backgroundPosY) - var(--windowHeight) / 2 + .25em);
}

.advent-calendar .window.window-huge .inner:nth-child(4)::before {
    content: "";
    background: none;
}

.advent-calendar .window.window-huge .inner:nth-child(3),
.advent-calendar .window.window-huge .inner:nth-child(4) {
    top: 0;
}

/*.advent-calendar .window:hover .inner,*/
.advent-calendar .window.open .inner {
    animation:openAdventWindowInner 2s;
    box-shadow: 0 0 10px 0 black;
}

/*.advent-calendar .window.window-big:hover .inner:nth-child(2),*/
.advent-calendar .window.window-big.open .inner:nth-child(2) {
    /*transform: rotateY(170deg);*/
    animation:openAdventWindowInnerBig2 2s;
}

/*.advent-calendar .window.window-huge:hover .inner:nth-child(1),*/
.advent-calendar .window.window-huge.open .inner:nth-child(1) {
    transform: rotate3d(-1, 1, 0, -170deg);
}

/*.advent-calendar .window.window-huge:hover .inner:nth-child(3),*/
.advent-calendar .window.window-huge.open .inner:nth-child(3) {
    transform: rotate3d(1, 1, 0, -170deg);
}

/*.advent-calendar .window.window-huge:hover .inner:nth-child(2),*/
.advent-calendar .window.window-huge.open .inner:nth-child(2) {
    transform: rotate3d(1, 1, 0, 170deg);
}

/*.advent-calendar .window.window-huge:hover .inner:nth-child(4),*/
.advent-calendar .window.window-huge.open .inner:nth-child(4) {
    transform: rotate3d(-1, 1, 0, 170deg);
}

/*

TEAR OFF CALENDAR

*/
.rings-calendar {
    height: 100%;
    width: 60%;
    left:20%;
    position: relative;
    padding: 0 !important;
    font-family: system-ui;
    --monthBackground: url(../images/autumn.png);
    --monthColor: rgb(209, 52, 1);
    --monthColorAlpha: rgba(209, 52, 1, .5);

}

.rings-calendar .calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50%;
    width: 100%;
    left: 0;
    top: 0;
    position: relative;
    z-index: 3;
    border-top-left-radius: 1em;
    border-top-right-radius: 1em;
    overflow: hidden;
}

.rings-calendar .calendar-header .background {
    background: hsl(196.88deg 37.25% 73.23%);
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: var(--monthBackground);
    background-size: cover;
    box-shadow: 0 0 10px 1px white inset;
}

.rings-calendar .calendar-header .title {
    position: absolute;
    bottom: 1em;
    font-weight: bold;
    font-size: 1.5em;
    font-family: "Kaushan Script", cursive;
    font-size: 28px;
    letter-spacing: 2px;
    line-height: 2em;
    padding: 0 1em;
    height: 2em;
    text-align: center;
    background: var(--monthColorAlpha);
    border-radius: 1em;
    text-shadow: 0 0 10px var(--monthColor);
}

.rings-calendar .calendar-content {
    --background:white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50%;
    width: 100%;
    left: 0;
    bottom: 0;
    position: absolute;
    background: var(--background);
    color: black;
    transform-origin: top left;
    z-index: 1;
}
.rings-calendar .day-shadow {
    width: 100%;
    left: 20%;
    top: 45%;
    position: absolute;
    height: 10px;
    background: transparent;
    background-image: linear-gradient(180deg, grey 0%, transparent 100%);
    z-index: 5;
}
/*
.rings-calendar .calendar-content .day-title {
    position: absolute;
    top: 1em;
    width: 3em;
    height: 3em;
    background: white;
    border-radius: 1.5em;
    font-size: 1.25em;
    line-height: 3em;
    text-align: center;
    border: 1px solid rgba(150, 150, 150, .4);
    box-shadow: 0 0 3px 0 rgba(150, 150, 150, .4) inset;
}
*/
.rings-calendar .calendar-content .day-surprise {
    height: 100%;
    width: 100%;
}
.rings-calendar .calendar-content.tear-off {
    z-index: 2;
    animation: tear-animation 0.8s linear forwards;
}

.rings-calendar .calendar-content::before {
    content: "";
    position: absolute;
    top: -1em;
    left: 0;
    display: block;
    background: linear-gradient(-45deg, var(--background) 1em, var(--background) 1em, var(--background) 1em, transparent 0), linear-gradient(45deg, var(--background) 1em, transparent 0);
    background-position: left top;
    background-repeat: repeat-x;
    background-size: 1em 1.8em;
    height: 1em;
    width: 100%;
    z-index: 0;
}
.rings-calendar .rings {
    width: 100%;
    height: 4em;
    position: absolute;
    top: calc(50% - 2em);
    left: 0;
    z-index: 10;
    /* flex-grow: 1; */
}
.rings-calendar .rings::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    position: absolute;
    top: 50%;
    box-shadow: 0 0 1em 1px black;
}
.rings-calendar .ring {
    width: 1em;
    height: 100%;
    display: inline-block;
    flex-grow: 0;
    overflow: visible;
    position: absolute;
}
.rings-calendar .ring:nth-child(1) {
    left:3em;
}
.rings-calendar .ring:nth-child(2) {
    left:6em;
}
.rings-calendar .ring:nth-child(4) {
    right:3em;
}
.rings-calendar .ring:nth-child(3) {
    right:6em;
}
.rings-calendar .ring .inner {
    background-color: white;
    height:100%;
    width:100%;
    border-radius: 70% / 10%;
    box-shadow: 0.3vw 0 0.5vw -0.2vw rgba(0, 0, 0, 0.27);
    position: relative;
}
.rings-calendar .ring .hole{
    width: 1.6em;
    height: 1.6em;
    border-radius: .8em;
    position: absolute;
    background: #808080;
    box-shadow: 0px 2px 4px 0 rgba(250,250,250,0.9) inset;
    left: -.3em;
    top: -.3em;
}
.rings-calendar .ring .hole.bottom{
    bottom: -.3em;
    top: unset;
    box-shadow:0px -2px 4px 0 rgba(250,250,250,0.9) inset;
}
/*
@keyframes tear-animation {
    0% {
        transform: rotate(0deg);
        bottom: 10%;
        opacity: 1;
    }

    20% {
        transform: rotate(9deg);
        bottom: 10%;
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        bottom: -40%;
        opacity: 0;
    }
}
*/

.rings-calendar{
    perspective: 600px;
}
.rings-calendar:hover .corner {
    width: 220px;
    height: 100px;
    left: 140px;
    border-radius: 6px 6px 0 0;
    transform: rotateZ(-90deg);
    box-shadow: -3px -10px 5px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.85s ease, width 0.1s ease, box-shadow 0.28333s ease 0.56667s;
  }
  .rings-calendar:hover .corner > div {
    -moz-transform: rotate3d(0, 0, 1, 90deg);
    -ms-transform: rotate3d(0, 0, 1, 90deg);
    -webkit-transform: rotate3d(0, 0, 1, 90deg);
    transform: rotate3d(0, 0, 1, 90deg);
  }
  
  .rings-calendar .corner {
    position: absolute;
    bottom: 25px;
    left: 198px;
    height: 18px;
    width: 18px;
    overflow: hidden;
    transform-origin: 0 100% 0;
    border-radius: 6px 0 0;
    transition: all 0.85s ease, width 0.56667s ease 0.28333s;
  }
  .rings-calendar .corner > div {
    content: '';
    position: absolute;
    bottom: 0;
    right: 100%;
    height: 330px;
    width: 330px;
    background: linear-gradient(90deg, #9a74c2 0%, #9a74c2 90%, #745792 99%, rgba(0, 0, 0, 0.25) 99%, rgba(0, 0, 0, 0) 100%);
    transform-origin: 100% 100% 0;
    -moz-transform: rotateZ(45deg);
    -ms-transform: rotateZ(45deg);
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
    -moz-transition: inherit;
    -o-transition: inherit;
    -webkit-transition: inherit;
    transition: inherit;
  }

    @keyframes openAdventWindowInner {
    0%{
        transform: rotateY(0);
    }
    25%,75%{
        transform: rotateY(-170deg);
    }
    100%{
        transform: rotateY(0);
    }
    }
    @keyframes openAdventWindowInnerBackface {
        0%{
            opacity:0;
        }
        25%,75%{
            opacity:1;
        }
        100%{
            opacity:0;
        }
    }
    @keyframes openAdventWindowInnerBig2 {
    0%{
        transform: rotateY(0);
    }
    25%,75%{
        transform: rotateY(170deg);
    }
    100%{
        transform: rotateY(0);
    }
  }


