@font-face {
    font-family: 'Rocqwey';
    src: url('../font/Rocqwey.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 486px;
    height: 100vh;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 10;
}
.modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/tree.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.overlay-modal{
    position: absolute;
    inset: 0;
    background-color: rgba(30, 57, 50, 80%) !important;
    z-index: 1;
}

.snow {
    position: absolute;
    top: -10px;
    border-radius: 50%;
    pointer-events: none;
    z-index:999;
}

svg {
    z-index: 10;
    position: relative;
    width: 100%;
    height: 150px;
    margin-top: 65%;
    transform: translateY(-50%);
}
text {
    font: bold 150px "Rocqwey";
    fill: white;
    opacity: 0;
}

.happy { animation: appear 1s forwards; animation-delay: 0s; }
.new   { animation: appear 1s forwards; animation-delay: 1s; }
.year  { animation: appear 1s forwards; animation-delay: 2s; }

@keyframes appear {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}




.show-close {
    opacity: 1;
}
.modal.fade-out {
    animation: modalFade 1.2s forwards;
}

@keyframes modalFade {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: scale(0.98);
    }
}


