.letter-image {
    user-select: none;
    text-decoration: none;
    position: absolute;
    top: 80%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: transparent !important;
    /* Garante que o fundo não mude */
    outline: none;
    /* Remove a borda de foco (se existir) */
    user-select: none;
    /* Evita seleção acidental */

}

.animated-mail {
    position: absolute;
    height: 150px;
    will-change: transition, transform;
    width: 200px;
    transition: 0.4s;
}

.animated-mail .body {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 100px 200px;
    border-color: transparent transparent #e95f55 transparent;
    will-change: transition, transform;
    z-index: 2;
}

.animated-mail .top-fold {
    position: absolute;
    top: 50px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 100px 0 100px;
    transform-origin: 50% 0%;
    transition: transform 0.4s 0.4s, z-index 0.2s 0.4s;
    border-color: #cf4a43 transparent transparent transparent;
    will-change: transition, transform;
    z-index: 2;
}

.animated-mail .back-fold {
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 100px;
    background: #cf4a43;
    z-index: 0;

}

.animated-mail .left-fold {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 0 50px 100px;
    border-color: transparent transparent transparent #e15349;
    z-index: 2;

}

.animated-mail .letter {
    left: 20px;
    bottom: 0px;
    position: absolute;
    width: 160px;
    height: 60px;
    background: white;
    z-index: 1;
    overflow: hidden;
    transition: 0.4s 0.2s, transform 0.4s 0.2s;
    transform-origin: bottom center;
    will-change: transition, transform;
}

.animated-mail .letter .letter-border {
    height: 10px;
    width: 100%;
    background: repeating-linear-gradient(-45deg, #cb5a5e, #cb5a5e 8px, transparent 8px, transparent 18px);

}

.animated-mail .letter .letter-title {
    margin-top: 10px;
    margin-left: 5px;
    height: 10px;
    width: 40%;
    background: #67cb5a;

}

.animated-mail .letter .letter-context {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: auto;
    overflow: visible;

}

.animated-mail .letter .letter-stamp {
    margin-top: 30px;
    margin-left: 120px;
    height: 30px;
    width: 30px;
    will-change: opacity;
    opacity: 0.3;
}


.letter-image.open .animated-mail {
    transform: translateY(10px);
    will-change: transform;
}

.letter-image.open .animated-mail .top-fold {
    transition: transform 0.4s, z-index 0.2s;
    will-change: transition, transform;
    transform: rotateX(180deg);
    z-index: 0;

}

.letter-image.open .animated-mail .letter {
    width: 97%;
    position: absolute;
    top: 100px;
    left: 0;
    /* começa com 80dvh */
    height: 80dvh;
    /* permite crescer */
    visibility: visible;
    will-change: transition, transform;
    transform: translateY(100px) scale(2);
    z-index: 3;
    overflow: scroll !important;
    /* scroll só se passar do viewport */
}



.agradecimento-text-tile {
    font-family: "Vibur", cursive !important;
    font-optical-sizing: auto;
    font-size: 3rem;
    text-align: center;
    font-weight: normal;
    font-style: normal;
    width: 90vw;
}


.custom-mode-palete-3 .agradecimento-text-tile {
    font-family: "Vibur", cursive !important;
    color: white;
    font-optical-sizing: auto;
    font-size: 3rem;
    text-align: center;
    font-weight: normal;
    font-style: normal;
    width: 90vw;
}





.agradecimento-fonte {
    will-change: transition, transform, opacity;
    pointer-events: auto;
    width: 80% !important;
    height: 100%;
    max-width: 80% !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    display: none;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    line-height: 33px;
    color: black !important;
    text-align: justify !important;
    font-family: "Vibur", cursive !important;
    font-style: normal !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    scroll-behavior: smooth;
    /* Garante que o elemento pode rolar */
    scroll-snap-type: y proximity;
    /* Ajuda a criar um efeito mais suave */
    user-select: none;
    text-decoration: none;
    overflow: visible;
    /* ❌ nada de scroll aqui */
}


/* outro envelope Revisar */



.envelope-container {
    position: absolute;
    top: 80%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    will-change: transform;
    cursor: pointer;

}

.mail-animation {
    position: absolute;
    height: 150px;
    width: 200px;
    transition: 0.4s;
}

.mail-animation .mail-body {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 100px 200px;
    border-color: transparent transparent #A64208 transparent;
    z-index: 2;
}

.mail-animation .mail-top {
    position: absolute;
    top: 50px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 100px 0 100px;
    transform-origin: 50% 0%;
    transition: transform 0.4s 0.4s, z-index 0.2s 0.4s;
    border-color: #F28E13 transparent transparent transparent;
    will-change: transform, opacity;
    z-index: 2;
}

.mail-animation .mail-back {
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 100px;
    background: #F28E13;
    z-index: 0;

}

.mail-animation .mail-left {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 0 50px 100px;
    border-color: transparent transparent transparent #A64208;
    z-index: 2;

}

.mail-animation .letter-content {
    left: 20px;
    bottom: 0px;
    position: absolute;
    width: 160px;
    height: 60px;
    background: white;
    z-index: 1;
    overflow: hidden;
    transition: 0.4s 0.2s, transform 0.4s 0.2s;
    transform-origin: bottom center;
    will-change: transition;
}

.dark-mode .mail-animation .letter-content {
    left: 20px;
    bottom: 0px;
    position: absolute;
    width: 160px;
    height: 60px;
    background: white;
    z-index: 1;
    overflow: hidden;
    transition: 0.4s 0.2s, transform 0.4s 0.2s;
    transform-origin: bottom center;
    will-change: transition, transform;
}

.mail-animation .letter-content .letter-border {
    height: 10px;
    width: 100%;
    background: repeating-linear-gradient(-45deg, #ffc400, #ffc400 8px, transparent 8px, transparent 18px);

}

.mail-animation .letter-content .letter-title {
    margin-top: 10px;
    margin-left: 5px;
    height: 10px;
    width: 40%;
    background: #67cb5a;

}

.mail-animation .letter-content .letter-body {
    margin-top: 10px;
    height: 100%;
    width: 100%;

}

.mail-animation .letter-content .letter-stamp {
    margin-top: 30px;
    margin-left: 120px;
    height: 30px;
    width: 30px;

    opacity: 0.3;
}

.envelope-container.open .mail-animation {
    transform: translateY(10px);
    will-change: transition;

}

.envelope-container.open .mail-animation .mail-top {
    transition: transform 0.4s, z-index 0.2s;
    will-change: transition;
    transform: rotateX(180deg);
    z-index: 0;

}

.envelope-container.open .mail-animation .letter-content {
    height: 60vh;
    width: 100%;
    overflow-y: scroll !important;
    position: absolute !important;
    top: 0;
    left: 0;
    transform: translateY(100px) scale(2);
    z-index: 3;
    will-change: transition, scale;

}

.buttons_container_element_action {
    background: linear-gradient(90deg, #D99B66 0%, #D99B66 40%, #D99B66 100%);

    color: rgb(255, 255, 255);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 140, 255, 0.25);
    transition: all 0.3s ease;
}


.buttons_container_element_action:active {
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0, 140, 255, 0.25);
}


.button_element_close_settings_cards {
    width: 20px;
    font-size: 10px;
    font-family: monospace;
    height: 20px;
    border-radius: 100%;
    position: absolute;
    top: 10px;
    right: 10px;
    color: black;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.page-content-refer {
    width: 100%;
    height: 100%;
}


#sup{
    height: 300px;
    width: 100%;
}