* {
    margin: 0;
    padding: 0;
    font-family: "Caveat", cursive;
    box-sizing: border-box;
}

html {
    width: 100%;
}

button {
    transition: all .5s;
    z-index: 999;
}

button:hover {
    cursor: pointer;
}

button.clicked {
    opacity: 0;
}

.page {
    width: 100%;
    height: 100vh;
    background-image: url("images/slide1.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page__inner {
    width: 100%;
    height: 100vh;
    background-color: #101010da;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.page__container {
    margin: auto;
    width: calc(100% - 64px);
    max-width: 600px;
    height: calc(100vh - 64px);
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 8px solid #ffffff50;
    border-radius: 32px;
    overflow: hidden;
}

.slide__inner {
    padding: 32px;
    width: 100%;
    height: 100%;
    background-color: #10101090;
}

.slide_1 {
    background-image: url("images/window.jpg");
}

.slide_2 {
    background-image: url("images/rain.jpg");
}

.slide_5 {
    background-image: url("images/love2.png");
}

.slide_1 .container,
.slide_2 .container,
.slide_4 .container{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#anim-slide-1 {
    top: -2vw;
    left: -4vw;
    width: 40vw;
    height: 40vw;
    position: absolute;
}

.slide_1 h1 {
    margin-bottom: 30%;
    font-size: 64px;
    color: #fff;
}

.slide_1 h1 span {
    color: #78f1ce;
    display: block;
}

.slide_1 button {
    width: 100%;
    height: 80px;
    background-color: #545148;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-radius: 32px;
    font-size: 32px;
    color: #fff;
}

.slide_2 .slide__inner {
    backdrop-filter: blur(3px);
}

.slide_2 .slide__text {
    margin-bottom: 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.slide_2 p {
    margin: 4px 0;
    padding: 6px 12px;
    font-size: 24px;
    color: #101010;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    display: inline-block;
    transition: all .5s ease-in-out;
}

.slide_2 p:hover {
    transform: scale(1.1);
}

.slide_2 button {
    width: 100%;
    height: 80px;
    background-color: #080718;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-radius: 32px;
    font-size: 32px;
    color: #fff;
}

.slide_3 {
    background-color: #996587;
}

.slide_3 .slide__inner {
    background-color: #10101050;
}

.slide_3 .container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slide_3 p {
    margin: 12px 0;
    font-size: 24px;
    color: #fff;
}

.slide_3 p span {
    margin-top: 24px;
    font-size: 40px;
    text-align: right;
    display: block;
}

.slide_3 .slide__a-item {
    top: 0%;
    left: -2%;
    width: 100%;
    height: 100%;
    background-image: url(images/heart.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    opacity: .5;
    z-index: -1;
    animation: heartbeat 2s ease-in-out infinite;
    transform-origin: center;
    will-change: transform;
}

.slide_3 .slide__a-item.active {
    /*animation-name: heartbeat-active;*/
    animation: heartbeat-active 4s ease-in-out 1;
    /*animation-iteration-count: unset;*/
    /*animation-delay: 4s;*/
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes heartbeat-active {
    0% {
        transform: scale(1);
    }
    50% {
        top: 5%;
        left: 20%;
        transform: scale(0.6);
    }
    100% {
        top: 5%;
        left: 20%;
        transform: scale(0.6);
    }
}

.slide_3 button {
    width: 100%;
    height: 80px;
    background-color: #c33633;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-radius: 32px;
    font-size: 32px;
    color: #fff;
}

.slide_4 {
    background-color: #f7c97a;
}

.slide_4 .slide__inner {
    background-color: #10101020;
}

#anim-slide-4 {
    top: 0;
    width: 26vw;
    height: 26vw;
    position: absolute;
}

.slide_4 .slide__text {
    margin-bottom: 32px;
}

.slide_4 p {
    margin: 4px 0;
    font-size: 24px;
    color: #101010;
}

.slide_4 button {
    width: 100%;
    height: 80px;
    background-color: #b96400;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-radius: 32px;
    font-size: 32px;
    color: #fff;
}

.slide_5 .slide__inner {
    background-color: #10101050;
}

.slide_5 .container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slide_5 p {
    margin: 4px 0;
    font-size: 24px;
    color: #fff;
}

.slide_5 button {
    width: 100%;
    height: 80px;
    background-color: #ff28ac50;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-radius: 32px;
    font-size: 32px;
    color: #fff;
}


.page .swiper-pagination.swiper-pagination-bullets.swiper-pagination-vertical.swiper-pagination {
    right: 12px;
    padding: 4px;
    background-color: #10101050;
    border-radius: 12px;
}

.page .swiper-pagination-bullet {
    background: #fff;
    opacity: .25;
    transition: all .5s;
}

.page .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

#anim-slide-5 {
    opacity: 0;
    transition: all .25s;
}

#anim-slide-5.active {
    opacity: 1;
}

#anim-slide-5 {
    left: -2%;
    top: 25%;
    width: 30vw;
    height: 30vw;
    position: absolute;
}

@media screen and (max-width: 800px) {
    button {
        width: 100%;
        height: 80px;
        font-size: 32px;
    }

    p {
        line-height: .85;
    }

    /*.page__inner {*/
    /*    padding-top: 16px;*/
    /*    align-items: flex-start;*/
    /*}*/

    .page__container {
        margin: auto;
        width: calc(100% - 16px);
        max-width: unset;
        height: calc(100vh - 16px);
    }

    .page__container .swiper {
        padding-bottom: 60px;
    }

    .slide__inner {
        padding: 32px 16px;
    }

    #anim-slide-1 {
        top: -2vw;
        left: -4vw;
        width: 120vw;
        height: 120vw;
        position: absolute;
    }

    .slide_1 h1 {
        margin-bottom: 20%;
        font-size: 64px;
        text-align: center;
        line-height: .9;
    }

    .slide_2 p {
        margin: 8px 0;
        padding: 8px 16px;
        font-size: 22px;
    }

    .slide_3 p {
        margin: 16px 0;
    }

    .slide_3 p span {
        font-size: 36px;
    }

    #anim-slide-4 {
        top: -5vw;
        left: 8vw;
        width: 75vw;
        height: 75vw;
    }

    .slide_4 p {
        margin: 8px 0;
    }

    .slide_5 p {
        margin: 8px 0;
        font-size: 22px;
        line-height: 1.1;
    }

    .page .swiper-pagination.swiper-pagination-bullets.swiper-pagination-vertical.swiper-pagination {
        right: 12px;
        padding: 4px;
        background-color: #10101050;
        border-radius: 12px;
    }

    #anim-slide-5 {
        left: -2%;
        top: 35%;
        width: 90vw;
        height: 90vw;
    }
}