
.door {
    width: 260px;
    height: 260px;
    background: #c62828;
    border: none;
    color: #fff;
    font-size: 90px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
}

    .door:hover {
        background: #d32f2f;
    }

.message {
    margin: 25px 0;
    font-size: 24px;
}

.win {
    color: #70ff70;
}

.nowin {
    color: #ffe082;
}

.error {
    color: #ff8080;
}

.info {
    color: #90caf9;
}
/*ajax*/

.calendar-door {
    width: 250px;
    height: 250px;
    background: #c9191f;
    color: #fff;
    font-size: 80px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 15px;
    margin: 20px auto;
    transition: .3s;
    border: 1px dashed;
    border-color: #ffd6ed;
}

.door-description {
    font-size: 12px;
}

.calendar-door:hover {
    transform: scale(1.05);
}

.calendar-door.opened {
    transform: rotateY(90deg);
    opacity: .2;
}

#calendar-content {
    margin-top: 20px;
    text-align: center;
}

.calendar-wrapper {
    position: relative;
    overflow: hidden;
    margin: auto;
    padding: 20px 20px;
    text-align: center;
    background: linear-gradient( 180deg, #08203e 0%, #143b63 50%, #1d4d7c 100% );
    background: #ffd6ed;
}

.snow-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.calendar-door,
#calendar-content {
    position: relative;
    z-index: 2;
}

.flake {
    position: absolute;
    top: -50px;
    color: #fff;
    opacity: .8;
    animation: calendarSnow linear infinite;
}

@keyframes calendarSnow {

    from {
        transform: translateY(-50px);
    }

    to {
        transform: translateY(700px);
    }
}


.calendar-door {
    transition: all .6s ease;
}

    .calendar-door.opened {
        transform: rotateY(90deg);
        opacity: 0;
    }

.door-result {
    background: #fff;
    color: #333;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin: 20px auto;
    border: 1px dashed;
    border-color: #ffd6ed;
    font-size: 16px;
    padding: 15px;
}

    .door-result h2 {
        margin-top: 0;
    }



.calendar-door {
    cursor: pointer;
    transition: all .4s ease;
}

    .calendar-door.loading {
        pointer-events: none;
        opacity: .7;
        cursor: default;
    }

        .calendar-door.loading:after {
            content: "...";
            display: block;
            font-size: 20px;
            margin-top: 10px;
        }

    .calendar-door.opened {
        pointer-events: none;
        transform: rotateY(90deg);
        opacity: 0;
    }
