.watermark {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    filter: invert(1) brightness(2);
    animation: pulse 4s ease-in-out infinite;
    opacity: 0.7;
}

.watermark.hidden {
    opacity: 0;
}

.watermark img {
    display: none;
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: none;
}

.watermark img.active {
    display: block;
}

#watermark-hover-area {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    z-index: 8;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.2;
    }
}

.mission-popup {
    animation: mission-pop 100ms ease-in;
}

@keyframes mission-pop {
    0% {
        transform: translateX(-30vw);
    }

    100% {}
}

.mission-popoff {
    animation: mission-popoff 100ms ease-in;
}

@keyframes mission-popoff {
    0% {}

    100% {
        transform: translateX(-30vw);
    }
}


* {
    font-family: "Patrick Hand", cursive;
    font-style: normal;
    letter-spacing: 0.02em;
}

.noselect {
    user-select: none;
}

[new-scroll] {
    scroll-behavior: smooth;
}

[new-scroll]::-webkit-scrollbar {
    width: 4px;
}

[new-scroll]::-webkit-scrollbar-track {
    background: transparent;
}

[new-scroll]::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 9999px;
}

[new-scroll]::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.book-open {
    background-image: url("../images/OpenBook.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    height: min(90vw, 90vh);
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.book-content {
    display: flex;
    flex-direction: column;
    transform: rotateY(3deg);
    width: 52%;
    height: 70%;
    margin-top: 3%;
    margin-left: 12%;
    background: rgba(255, 255, 255, 0.05);
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 0px rgba(250, 202, 131, 0.0);
    }

    50% {
        box-shadow: 0 0 12px 4px rgba(250, 202, 131, 0.4);
    }
}

.glow-button {
    animation: glowPulse 2.5s ease-in-out infinite;
}


@keyframes blink-glow {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 1px #facc15, 0 0 5px #facc15;
    }

    50% {
        opacity: 0.4;
        text-shadow: 0 0 3px #facc15;
    }
}

.loading-note {
    animation: blink-glow 1.2s infinite;
    color: #facc15;
    /* Tailwind yellow-400 */
    font-style: italic;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 600;
    /* font-semibold */
    text-align: center;
    margin-top: 0.5rem;
    /* mt-2 */
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.loading-note.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes gradient-x {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 6s ease infinite;
}