/********** GRAYSCALE **********/
html.grayscale {
    filter: grayscale(100%);
}

html.grayscale body {
    background: #fff;
}

/********** RIBBON **********/
.corner-ribbon {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
}

.corner-ribbon img {
    width: 90px;
    cursor: pointer;
}

/********** FONT **********/
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
textarea,
label {
    font-family: "Sarabun", sans-serif !important;
}

/********** COLOR **********/
:root {
    --primary: #13c5dd;
    --secondary: #354f8e;
    --light: #eff5f9;
    --dark: #1d2a4d;
}

/* ลูกศร เลื่อนขึ้นบน */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

/* รูปภาพ popup ไว้อาลัย */
#mourningModal .modal-content {
    background: transparent;
}

#mourningModal img {
    border-radius: 24px;
    overflow: hidden;
}

#hideForeverBtn {
    backdrop-filter: blur(10px);
}