
body {
    background: #25605A;
    background-image: url('/wp-content/themes/nsld/create-fairytales2/assets/0c62b9051e3dd465daa942c34d06ccc5.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    display: flex;
    justify-content: center;
}

.welcome_header {
    /* display: none; */
}
.skazka {
    margin-top: 15px;
}
.skazka img{
    max-width: 176px;
}



.main__left {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.text-slider-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}
.text-slider-list {
    position: relative;
    width: 100%;
    max-width: 335px;
    overflow: hidden;
    box-sizing: border-box;
}
.text-slider {
    display: flex;
    flex-direction: row;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    user-select: none;
}
.text-slider .slider-item {
    flex: 0 0 100%;
    color: #FFF;

    text-align: center;
    font-family: "Montserrat";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */
    font-variant: small-caps;
}


.text-slider-nav {
    display: flex;
    gap: 8px;
}
.text-slider-nav span {
    display: block;
    height: 100%;
    width: 100%;
    width: 8px;
    height: 8px;
    background: #FFF;
    border-radius: 40px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
    /* Добавляем поддержку touch для мобильных */
    -webkit-tap-highlight-color: transparent;
}
.text-slider-nav span.active {
    background: #FFF;
    width: 30px;
    opacity: 1;
    cursor: default;
}


.congratulation {
    display: flex;
    flex-direction: column;
    padding: 25px;
    gap: 32px;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.fairytale-example.fairytale-example-show {
    background: transparent;
}
[data-type="is_fairytales"] .img-book {
    display: none;
}
.example-book {
    width: auto;
}

.page-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
}

.page__voice {
    padding: 0 14px;
}


.page-arrow.page-prev  {
    background-color: #FFF;

}
.page-arrow.page-prev svg path {
    fill: #F28912;
}

.page-arrow {
    background-color: #F28912;
    top: 40%;

}
.page-arrow svg path {
    fill: #FFF;
}

.page-arrow.page-prev {

}
.fairytale.start-create--active {
    position: relative;
    overflow: hidden;
    background: #F28912;
    z-index: 0;
    transition: transform 0.2s ease;
    margin: 0 auto;
    padding: 15px;
    max-width: 100%;
    text-align: center;
}
.fairytale.start-create--active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 193, 36, 1) 10%, /* Светлый желтый */
        rgba(255, 255, 0, 0.6) 20%,
        rgba(255, 255, 0, 0.4) 30%,
        rgba(255, 255, 0, 0.2) 40%,
        rgba(255, 255, 0, 0) 50%,
        rgba(255, 255, 0, 0) 100%
    );
    background-size: 200% 100%; /* Увеличиваем ширину градиента */
    z-index: -1;
    animation: gradientMove 3s infinite ease-in-out;
}
.fairytale.start-create--active:active {
    transform: scale(0.98);
}
@keyframes gradientMove {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}
.fairytale-page-last .start-create.fairytale.start-create--active {
    padding: 15px;
}


.page__voice p {
    position: relative;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg,
        rgba(78, 221, 176, 1) 0%,
        rgba(60, 150, 120, 1) 25%,
        rgba(50, 110, 91, 1) 50%,
        rgba(60, 150, 120, 1) 75%,
        rgba(78, 221, 176, 1) 100%);
    background-size: 300% 100%;
    animation: move 3s linear infinite;
}
@keyframes move {
    0% {
        background-position: 300% 0;
    }
    100% {
        background-position: 0% 0;
    }
}

.page__voice:hover p,
.page__voice:hover svg {
    transform: scale(1.05);
    transition:.3s all ease;
}







.page-helps {
    display: block;
    background: none;
}
.page-helps {
    display: block;
}
.example-book .page-help__modal {
    display: none;
    background: none;
    border: none;
    box-shadow: none;
}

.page__voice {
    position: relative;
}
.fairytale-page.type-fairytales .page__voice .page-help__modal {
    left: -25%;
    top: -90%;
    width: 139px;
}
.page-help__modal img {
    width: 100%;
}
.page-image {
    position: relative;
}
.fairytale-page.type-fairytales .page-image .page-help__modal {
    bottom: -5%;
    right: -15%;
    width: 139px;
}
.page-arrow.page-next {
    z-index: 2;
}
.page-next .page-help__modal {
    position: absolute;
    width: max-content;
    max-width: 202px;
    right: 10%;
    bottom: 90%;
}
.page-next .page-arrow--pulses{

}

.page-arrow--pulses {
    border: 4px solid #F28912;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: auto;
    width: auto;
    border-radius: 50%;
    animation-duration: 2.0s;
    animation-name: pulse_1;
    animation-iteration-count: infinite;
    z-index: -1;
  }
.page-arrow--pulses:nth-child(2) {
    animation-name: pulse_2;
}

.page-arrow--pulses:nth-child(3) {
    animation-name: pulse_3;
}

@keyframes pulse_1 {
    from {
        opacity: 1;
        transform: scale(0.9, 0.9);
    }

    to {
        opacity: 0;
        transform: scale(1.3, 1.3);
    }
}

@keyframes pulse_2 {
    from {
        opacity: 1;
        transform: scale(0.8, 0.8);
    }

    to {
        opacity: 0;
        transform: scale(1.6, 1.6);
    }
}

@keyframes pulse_3 {
    from {
        opacity: 1;
        transform: scale(0.8, 0.8);
    }

    to {
        opacity: 0;
        transform: scale(2.1, 2.1);
    }
}


[data-anchor=".page-next"] {
    display: none;
}

.page__translate {
    position: relative;
    width: 70px;
}

.page__translate .page-help__modal {
    width: max-content;
    position: absolute;
    width: 149px;
    bottom: 90%;
    left: -60%;
}

.page__translate .page-help__modal {
    width: max-content;
    position: absolute;
    width: 149px;
    bottom: 90%;
    left: -60%;
}
.page-edit-text {
    position: relative;
}
.page-edit-text .page-help__modal {
    width: max-content;
    position: absolute;
    width: 201px;
    bottom: 60%;
    left: 20%;
}

.page-image-btn_inner {
    position: relative;
    display: flex;
    width: 100%;
}

.page-image-btn_inner .page-help__modal{
    width: max-content;
    position: absolute;
    width: 201px;
    bottom: 100%;
    left: -50%;
}


.page-2 .selected-value {
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
}

.page-2 .selected-value.fade-transition {
    transition: opacity 0.2s ease-in-out;
}

.select-button {
    width: 100%;
    justify-content: space-between;
}


[data-type="is_fairytales"][data-active='page-1'] .page-prev{
    display: none;
}

.main__right > .start-create--active {
    margin-top: 25px;
}




.page-2 .selected-value {
    transition: opacity 0.15s ease-in-out;
    opacity: 1;
}

.page-2 .selected-value.fade-out {
    opacity: 0;
}

.page-2 .selected-value.fade-in {
    opacity: 1;
}

/* Альтернативный вариант с transform */
.page-2 .selected-value {
    transition: all 0.2s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.page-2 .selected-value.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.page-2 .selected-value.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.page-image-btn {
    --offset: 2px;

    background: #FFF;
    border-radius: 8px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border: none;
}


/* linear-gradient(90deg,
        rgba(78, 221, 176, 1) 0%,
        rgba(60, 150, 120, 1) 25%,
        rgba(50, 110, 91, 1) 50%,
        rgba(60, 150, 120, 1) 75%,
        rgba(78, 221, 176, 1) 100%) */
/* Conic gradient */
.page-image-btn::before {
    content: '';
    background: conic-gradient(
        rgba(78, 221, 176, 1),
        rgba(60, 150, 120, 1),
        rgba(50, 110, 91, 1),
        rgba(60, 150, 120, 1),
        rgba(78, 221, 176, 1)
        );
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1;
    width: 100%;
    animation: rotate 3s linear infinite;
}

/* Overlay */
.page-image-btn::after {
    content: '';
    border-radius: inherit;
    position: absolute;
    inset: var(--offset);
    height: calc(100% - 2 * var(--offset));
    width: calc(100% - 2 * var(--offset));
    background: #F4FAF8;

}
.page-image-btn button {
    background: transparent;
    position: absolute;
    inset: 0;
    z-index: 2;
    border: none;


    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg,
        rgba(78, 221, 176, 1) 0%,
        rgba(60, 150, 120, 1) 25%,
        rgba(50, 110, 91, 1) 50%,
        rgba(60, 150, 120, 1) 75%,
        rgba(78, 221, 176, 1) 100%);
    background-size: 300% 100%;
    animation: move 6s linear infinite;



}


.fairytale-example__book  .fairytale-page:last-child #start-create-example {
    display: none;
}

.fairytale-last-page-image {
    display: none;
}

.progress_bar {
    min-width: 7%;
    border-radius: 100px;
    background: linear-gradient(90deg, #F28912 0%, #FFA41B 100%);
    height: 100%;
    display: flex;
    align-items: center;
}
#loader-create-capsule .process_create {

    padding: 2px;
    border-radius: 40px;
}
.progress_persent {
    margin-right: 16px;
    margin-left: auto;
}


#loader-create-capsule .bottom p:nth-of-type(1) {
    color: #F28912;
}

#loader-create-capsule .bottom p:nth-of-type(2) {
    color: #1AB180;
}

#loader-create-capsule .bottom p:nth-of-type(3) {
    color: #1198D8;
}

#loader-create-capsule .bottom p:nth-of-type(4) {
    color: #8212F2;
}

#loader-create-capsule .bottom p:nth-of-type(5) {
    color: #E352AC;
}
#loader-create-capsule .inner .bottom p.show {
    -webkit-text-fill-color: unset;
    -webkit-background-clip: unset;
    background: transparent;
}


@keyframes rotate {
    from {
        transform: translate(-50%, -50%) scale(1.4) rotate(0turn);
    }

    to {
        transform: translate(-50%, -50%) scale(1.4) rotate(1turn);
    }
}



@media (width > 1310px) {

    .main__right {
        display: flex;
        flex-direction: column;
        max-height: 450px;
        height: 100%;
    }

    .congratulation {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0 100px 0 25px;
    }
    .fairytale.start-create--active {

        max-width: 324px;
    }
    [data-type="is_fairytales"] .fairytale-page-last .page-right {
        padding: 30px 25px 30px;
    }

    [data-type="is_fairytales"] .img-book {
        display: flex;
        left: -49.5px;
    }

    .example-book[data-type="is_fairytales"] {
        max-width: 660px;
        max-height: 450px;
        padding: 0;
    }

    /* height: 467px; */


    .text-slider .slider-item {
        text-align: left;
    }

    .text-slider-container {
        align-items: flex-start;
        margin-top: 0;
    }
    .main__left {
        align-items: flex-start;
        gap: 32px;
    }

    .page-left {
        height: auto;
        padding: 10px 22px 50px;
        background: none;
    }
    .page-right {
        padding: 40px 22px 20px;
        background: none;
    }
    .page-image {
        margin: 0;
        max-width: 270px;
        max-height: 270px;
    }

    .fairytale-page.type-fairytales .page-image .page-help__modal {
        bottom: -45%;
        right: -35%;
    }
    .fairytale-page.type-fairytales .page__voice .page-help__modal {
        left: -70%;
        top: -80%;
    }

    .fairytale-text {
        color: var(--Black, #444);
        font-feature-settings: 'liga' off, 'clig' off;
        font-family: "Proxima Nova";
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 18px; /* 112.5% */
    }


    .main__right > .start-create--active {
        margin-top: 50px;
    }
    .fairytale.start-create--active {
        padding: 25px 15px;
    }


    [data-type="is_fairytales"] .fairytale-page-last .page-left {

        justify-content: flex-start;

        padding: 20px 30px 50px;
    }
    [data-type="is_fairytales"] .fairytale-page-last .page-right {
        padding: 20px 30px 50px;
    }
    [data-type="is_fairytales"] .fairytale-page-last .page-right .start-create {
        display: block;
    }

    .fairytale-last-page-image {
        position: absolute;
        display: flex;
        aspect-ratio: 1/1;
    }
    .fairytale-last-page-image:nth-of-type(1) {
        left: 120px;
        bottom: 60px;
        border-radius: 50%;
        background: #F0F4F7;
    }

    .fairytale-last-page-image:nth-of-type(3) {
        right: 120px;
        bottom: 10px;
    }


    .fairytale-last-page-image:nth-of-type(4) {
        top: -50px;
        right: 10px;
    }


    .fairytale-last-page-image:nth-of-type(2) {
        left: -45px;
        top: -65px;
    }

    .welcome_header {
        display: flex;
    }
    .welcome_header {

        position: absolute;
        top: 30px;
    }

    [data-type="is_fairytales"] .page-right .page-last__item:nth-of-type(-n+3) {
        display: none;
      }
      .skazka {
        margin-top: unset;
    }
    .skazka img{
        max-width: unset;
    }

    .text-slider .slider-item {
        font-size: 18px;
    }
}


@media screen and (max-width: 1310px) {



}