body {
    background-color: #251252;
    margin: 0;
    min-height: 100vh;
    overflow: hidden; /* добавляем */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ДОБАВЬТЕ контейнер */
.postcard-container {
    width: 1200px;
    height: 800px;
    position: relative;
    transform-origin: center center;
}

.base {
    width: 1200px;
    height: 800px;
    top: 0;
    left: 0;

    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
    border-radius: 20px;
}

.book {
    width: 500px;
    height: 650px;

    background-color: #6B2FF9;
    border-radius: 20px;

    box-shadow:
        inset 12px -12px 4px 0 rgba(0, 0, 0, 0.25),
        inset -12px 12px 4px 0 rgba(0, 0, 0, 0.25),
        -12px 12px 4px 0 rgba(0, 0, 0, 0.25);

    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.birthday-title {
    font-family: 'Pixelify Sans', cursive;
    font-size: 80px;
    color: #FFFFFF;
    text-align: center;
    -webkit-font-smoothing: antialiased;

    position: absolute;
    width: 377px;
    height: 192px;
    top: 40px;
    left: 61px;

    margin: 0;
}

.start-game-image {
    position: absolute;
    top: -5px;
    left: -10px;

    width: 547px;
    height: 547px;
    z-index: 1;

    pointer-events: none;
    object-fit: contain;
}

.start-game-text {
    font-family: 'Pixelify Sans', cursive;
    font-size: 28px;
    color: #A64BA0;
    text-align: center;
    -webkit-font-smoothing: antialiased;

    width: 267px;
    height: 53px;
    position: absolute;
    top: 305px;
    left: 116px;
    z-index: 11;

    margin: 0;
}

.button-image {
    position: absolute;
    top: 344px;
    left: 193px;

    width: 105px;
    height: 46px;
    z-index: 20;

    object-fit: contain;
}

.button-image:hover {
    transform: scale(1.05);
    filter: brightness(1.01);
}

.ok-text {
    font-family: 'Pixelify Sans', cursive;
    font-size: 24px;
    color: #A64BA0;
    text-align: center;
    -webkit-font-smoothing: antialiased;

    width: 208px;
    height: 41px;
    position: absolute;
    top: 352px;
    left: 140px;
    z-index: 21;
    pointer-events: none;
    margin: 0;
}

.cat-container {
    position: absolute;
    top: 456px;
    left: 46px;
    width: 140px;
    height: 132px;
}

.cat {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 132px;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.cat-shadow {
    position: absolute;
    top: 108px;
    left: 20px;
    width: 120px;
    height: 30px;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.cat-stand {
    opacity: 1;
}

.cat-walk {
    opacity: 0;
}

@keyframes walk {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(600px);
    }
}

.cat-walking {
    animation: walk 3s linear forwards;
}

.overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 1200px; 
    height: 800px;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 20px;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: all 1s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    background-color: #9FB3FF !important;
    pointer-events: all;
}

.overlay.lighten {
    background-color: rgba(159, 179, 255, 0);
    opacity: 0;
    pointer-events: none;
}

.open-book {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.open-book.active {
    opacity: 1;
    pointer-events: auto;
}

.page {
    width: 500px;
    height: 650px;
    border-radius: 20px;
    position: relative;
}

.left-page {
    background-color: #6B2FF9;
    margin-right: 0;
    box-shadow:
        inset 12px -12px 4px 0 rgba(0, 0, 0, 0.25),
        -12px 12px 4px 0 rgba(0, 0, 0, 0.25);
}

.right-page {
    background-color: #6B2FF9;
    margin-left: 0;
    box-shadow:
        inset -12px -12px 4px 0 rgba(0, 0, 0, 0.25),
        12px 12px 4px 0 rgba(0, 0, 0, 0.25);
}

.page-inner {
    position: absolute;
    background-color: #9FB3FF;
    border-radius: 20px;
}

.left-page .page-inner {
    width: 450px;
    height: 585px;
    top: 32px;
    left: 50px;
    box-shadow:
        inset 12px -12px 4px 0 rgba(0, 0, 0, 0.25),
        inset -12px 12px 4px 0 rgba(0, 0, 0, 0.25),
        -12px 12px 4px 0 rgba(0, 0, 0, 0.25);
}

.right-page .page-inner {
    width: 450px;
    height: 585px;
    top: 32px;
    left: 0px;
    box-shadow:
        inset 12px -12px 4px 0 rgba(0, 0, 0, 0.25),
        inset -12px 12px 4px 0 rgba(0, 0, 0, 0.25),
        12px 12px 4px 0 rgba(0, 0, 0, 0.25);
}

.navigation-arrows {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 800px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 150;
}

.navigation-arrows.visible {
    opacity: 1;
    pointer-events: none;
}

.arrow {
    position: absolute;
    width: 150px;
    height: 150px;
    cursor: pointer;
    transition: transform 0.2s ease;
    pointer-events: auto;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.arrow:hover {
    transform: scale(1.1);
}

.arrow-left {
    left: -15px;
    top: 325px;
}

.arrow-right {
    right: -15px;
    top: 325px;
}

.photo-container {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 43px;
    left: -25px;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.photo {
    position: absolute;
    width: 300px;
    height: 400px;
    top: 65px;
    left: 97px;
    object-fit: cover;
    border-radius: 4;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    transform: translateZ(0);
}

.photo.active {
    opacity: 1;
}

.photo-frame {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}

.dog-container {
    position: absolute;
    top: 275px;
    left: -43px;
    width: 334px;
    height: 334px;
    z-index: 20;
}

.dog {
    position: absolute;
    top: 0;
    left: 0;
    width: 334px;
    height: 334px;
    z-index: 2;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.dog-normal {
    opacity: 1;
}

.dog-tail {
    opacity: 0;
}

.dog-shadow {
    position: absolute;
    top: 161px;
    left: 103px;
    width: 115px;
    height: 115px;
    z-index: 1;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.messages-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.message-wrapper {
    position: absolute;
    cursor: pointer;
    pointer-events: auto;
}

.message-open,
.message-closed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.message-open {
    opacity: 1;
    z-index: 1;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.message-closed {
    opacity: 1;
    z-index: 3;
    transition: opacity 0.2s ease;
    pointer-events: all;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}



.message-text {
    position: absolute;
    font-family: 'Pixelify Sans', cursive;
    font-size: 20px;
    color: #A64BA0;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
}

.big-message {
    top: 172px;
    left: 206px;
    width: 219px;
    height: 70px;
}

.big-message .message-text {
    top: 11px;
    left: 63px;
    width: 131px;
    height: 24px;
}

.mid-message {
    top: 262px;
    left: 246px;
    width: 179px;
    height: 70px;
}

.mid-message .message-text {
    top: 11px;
    left: 49px;
    width: 105px;
    height: 24px;
}

.mid2-message {
    top: 352px;
    left: 246px;
    width: 179px;
    height: 70px;
}

.mid2-message .message-text {
    top: 11px;
    left: 58px;
    width: 96px;
    height: 24px;
}

.lit-message {
    top: 442px;
    left: 290px;
    width: 135px;
    height: 70px;
}

.lit-message .message-text {
    top: 11px;
    left: 26px;
    width: 84px;
    height: 24px;
}

.message-closed.hidden {
    opacity: 0;
    pointer-events: none;
}

.main-slide2-text {
    position: absolute;
    font-family: 'Pixelify Sans', cursive;
    font-size: 20px;
    color: #8A459F;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;

    top: 80px;
    left: 140px;
    width: 209px;
    height: 24px;
}

.heart-frame {
    position: absolute;
    top: 67px;
    left: 46px;
    width: 357px;
    height: 50px;
    z-index: 1;
    pointer-events: none;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.heart {
    position: absolute;
    top: 252px;
    left: 233px;
    width: 90px;
    height: 90px;
    z-index: 5;
    pointer-events: none;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

#thirdSlide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

#thirdSlide.active {
    opacity: 1;
    pointer-events: auto;
}

.arrow[style*="opacity: 0.7"] {
    cursor: not-allowed;
}

.arrow[style*="opacity: 0.7"]:hover {
    transform: scale(1);
}

.closed-book,
.open-book,
#thirdSlide {
    transition: opacity 0.5s ease, pointer-events 0.5s ease;
}

.clicker-container {
    position: absolute;
    top: 43px;
    left: -25px;
    width: 500px;
    height: 500px;
}

.click-text {
    position: absolute;
    top: 420px;
    left: 232px;
    font-family: 'Pixelify Sans', cursive;
    font-size: 20px;
    color: #8A459F;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.clicker-counter {
    position: absolute;
    top: 80px;
    left: 325px;
    width: 36px;
    height: 24px;
    font-family: 'Pixelify Sans', cursive;
    font-size: 20px;
    color: #E092DA;
    text-align: center;
    z-index: 10;
    -webkit-font-smoothing: antialiased;
}

.coin-frame {
    position: absolute;
    top: 77px;
    left: 315px;
    width: 75px;
    height: 30px;
    z-index: 5;
    pointer-events: none;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.coin {
    position: absolute;
    top: 82px;
    left: 364px;
    width: 18px;
    height: 18px;
    z-index: 6;
    pointer-events: none;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.clicker-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    cursor: pointer;
    object-fit: cover;
    z-index: 1;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.killua-character {
    position: absolute;
    top: 157px;
    left: 125px;
    width: 250px;
    height: 250px;
    z-index: 8;
    pointer-events: none;
    transition: opacity 0.2s ease;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.killua-character.blink {
    opacity: 0;
    z-index: 9;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.killua-shadow {
    position: absolute;
    top: 378px;
    left: 200px;
    width: 100px;
    height: 40px;
    z-index: 7;
    pointer-events: none;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.lightning {
    position: absolute;
    top: 132px;
    left: 105px;
    width: 275px;
    height: 275px;
    z-index: 7;
    pointer-events: none;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.game-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    opacity: 0;
    pointer-events: none;
}

.game-screen.active {
    opacity: 1;
    pointer-events: all;
}

#clickerScreen.active .clicker-counter,
#clickerScreen.active .coin-frame,
#clickerScreen.active .coin,
#clickerScreen.active .lightning,
#clickerScreen.active .killua-shadow,
#clickerScreen.active .killua-character {
    opacity: 1;
    pointer-events: auto;
}

#clickerScreen, 
.clicker-background, 
.killua-character,
#clickerScreen * {
    touch-action: pan-x pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.shop-coin-frame,
.switch-button {
    touch-action: pan-x pan-y;
    -webkit-tap-highlight-color: transparent;
}

.switch-button {
    position: absolute;
    width: 44px;
    height: 22px;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s ease;

    transition: transform 0.2s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.switch-button:hover {
    transform: scale(1.08);
    filter: brightness(1.2);
}

#clickButton {
    top: 27px;
    left: 90px;
}

#shopButton {
    top: 27px;
    left: 157px;
}

.shop-object {
    position: absolute;
    width: 100px;
    height: 80px;
    z-index: 1;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.shop-coin-frame {
    position: absolute;
    width: 60px;
    height: 24px;
    cursor: pointer;
    z-index: 30;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.shop-coin-frame:hover {
    transform: scale(1.05); /* Эффект при наведении */
    transition: transform 0.2s ease;
}

.shop-coin {
    position: absolute;
    width: 13px;
    height: 13px;
    z-index: 201;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* Позиции object_base */
.base-1 { top: 77px; left: 123px; }
.base-2 { top: 77px; left: 278px; }
.base-3 { top: 202px; left: 123px; }
.base-4 { top: 202px; left: 278px; }
.base-5 { top: 327px; left: 123px; }

/* Позиции coin_frame */
.frame-1 { top: 162px; left: 143px; }
.frame-2 { top: 162px; left: 298px; }
.frame-3 { top: 287px; left: 143px; }
.frame-4 { top: 287px; left: 298px; }
.frame-5 { top: 412px; left: 143px; }

/* Позиции coin */
.coin-1 { top: 167px; left: 184px; }
.coin-2 { top: 167px; left: 339px; }
.coin-3 { top: 292px; left: 184px; }
.coin-4 { top: 292px; left: 339px; }
.coin-5 { top: 417px; left: 184px; }

.shop-question {
    position: absolute;
    width: 100px;
    height: 80px;
    z-index: 15;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}


.shop-object-img {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0;
    z-index: 15;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.price-text {
    position: absolute;
    font-family: 'Pixelify Sans', cursive;
    font-size: 16px;
    color: #E092DA;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    pointer-events: none;
    z-index: 201;
    opacity: 1;
}

/* Позиции question */
.question-1 { top: 77px; left: 123px; }
.question-2 { top: 77px; left: 278px; }
.question-3 { top: 202px; left: 123px; }
.question-4 { top: 202px; left: 278px; }
.question-5 { top: 327px; left: 123px; }

/* Позиции object */
.object-1 { top: -3px; left: 104px; }
.object-2 { top: 12px; left: 260px; }
.object-3 { top: 149px; left: 106px; }
.object-4 { top: 167px; left: 260px; }
.object-5 { top: 316px; left: 104px; }

/* Позиции текста цен */
.price-1 { top: 164px; left: 152px; }
.price-2 { top: 164px; left: 307px; }
.price-3 { top: 289px; left: 152px; }
.price-4 { top: 289px; left: 307px; }
.price-5 { top: 414px; left: 152px; }

.sacura {
    position: absolute;
    width: 341px;
    height: 349px;
    top: 97px;
    left: 55px;
    z-index: 2;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.shadow-raiden {
    position: absolute;
    width: 300px;
    height: 49px;
    top: 420px;
    left: 97px;
    z-index: 1;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.purchased-items-container {
    position: absolute;
    top: 166px;
    left: 65px;
    width: 320px;
    height: 320px;
    z-index: 5;
}

.purchased-item {
    position: absolute;
    width: 320px;
    height: 320px;
    opacity: 0;
    transition: opacity 0.5s ease;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.purchased-item.active {
    opacity: 1;
}

.raiden_frame {
    position: absolute;
    top: 43px;
    left: -25px;
    width: 500px;
    height: 500px;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

@keyframes shake {
    0% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(-5px) rotate(-2deg); }
    40% { transform: translateX(5px) rotate(2deg); }
    60% { transform: translateX(-5px) rotate(-2deg); }
    80% { transform: translateX(5px) rotate(2deg); }
    100% { transform: translateX(0) rotate(0); }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

.open-book, #thirdSlide {
    z-index: 100; 
}

.click-effect {
    position: absolute;
    font-family: 'Pixelify Sans', cursive;
    font-size: 14px;
    color: #8A459F;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    animation: floatUp 1s ease-out forwards;
    -webkit-font-smoothing: antialiased;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-size: clamp(8px, 2vw, 14px);
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1);
    }
}

.heart-anim {
    position: absolute;
    background-image: url('images/heart.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 7;
    opacity: 0;
    pointer-events: none;
}

@keyframes heartFly {
0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.7);
    }
    10% {
        opacity: 0; 
        transform: translate(0, 0) scale(0.7);
    }
    25% {
        opacity: 1;
        transform: translate(0, -20px) scale(1.1);
    }
    70% {
        opacity: 1; 
        transform: translate(var(--tx), var(--ty)) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.9);
    }
}

.heart-animation {
    animation: heartFly 2.5s ease-out forwards;
}

@keyframes wobble {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-3px) rotate(-2deg); }
    75% { transform: translateX(3px) rotate(2deg); }
}

.wobble-anim {
    animation: wobble 0.3s ease-in-out infinite;
}

#fourthSlide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

#fourthSlide.active {
    opacity: 1;
    pointer-events: auto;
}

.video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 756px;
    height: 425px;
    z-index: 200;

    background: #FFFFFF;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    background: #FFFFFF;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    cursor: pointer;
    z-index: 202;
}

.play-icon {
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.play-button:hover .play-icon {
    transform: scale(1.1);
}

.video-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 770px;
    height: 433px;
    z-index: 201;
    pointer-events: none;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

#fifthSlide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 650px;
    background-color: #6B2FF9;
    border-radius: 20px;
    box-shadow:
        inset 12px -12px 4px 0 rgba(0, 0, 0, 0.25),
        inset -12px 12px 4px 0 rgba(0, 0, 0, 0.25),
        -12px 12px 4px 0 rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.5s ease;
}

#fifthSlide.active {
    opacity: 1;
    pointer-events: auto;
}

.love-title {
    font-family: 'Pixelify Sans', cursive;
    font-size: 80px;
    color: #FFFFFF;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    width: 100%;
    top: 150px;
    left: 0;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.monkey-girl {
    position: absolute;
    width: 200px;
    height: 160px;
    top: 300px;
    left: 50px;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.monkey {
    position: absolute;
    width: 200px;
    height: 160px;
    top: 300px;
    left: 250px;
    transform: scaleX(-1);

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.heart-bottom {
    position: absolute;
    width: 92px;
    height: 74px;
    top: 386px;
    left: 202px;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

#fifthSlide.active ~ .navigation-arrows .arrow-right {
    opacity: 0;
    pointer-events: none;
}

/* Мобильная версия */
@media (max-width: 1300px) {
    .postcard-container {
        transform: scale(0.8);
    }
}

@media (max-width: 1100px) {
    .postcard-container {
        transform: scale(0.7);
    }
}

@media (max-width: 900px) {
    .postcard-container {
        transform: scale(0.6);
    }
}

@media (max-width: 768px) {
    .postcard-container {
        transform: scale(0.5);
    }
    
    .switch-button {
        transform: scale(1.1);
    }
    
    .button-image {
        transform: scale(1.2);
    }
    
    .arrow {
        transform: scale(1.1);
    }
}

@media (max-width: 600px) {
    .postcard-container {
        transform: scale(0.4);
    }
}

@media (max-width: 480px) {
    .postcard-container {
        transform: scale(0.35);
    }
}

@media (max-height: 500px) {
    .postcard-container {
        transform: scale(0.3);
    }
}

@media (hover: none) {
    .button-image:hover,
    .switch-button:hover,
    .arrow:hover {
        transform: none;
        filter: none;
    }
}