@font-face {
    font-family: "SweetMavka";
    src: url("Sweet Mavka Script.otf") format("opentype");
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    background: #0f0b08;
    overflow: hidden;
    font-family: "SweetMavka", sans-serif;
    color: #190f08
}

a {text-decoration: none; color: #190f08;  }

a .letter{border-bottom: 2px solid #190f08; }
/* ===== СЦЕНА ===== */
.scene {
    position: relative;
    width: 100%;
    height: 100%;
    background: url(./bg.jpg);
    background-position: center;
    background-size: cover;
    padding: 40px;

}


.scene-paper {
    padding-bottom: 0px;
    margin: 20px;
    position: relative;
    height: 20%;
    margin: 0px auto;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transition: all .6s;
}

.scene-paper.visible{opacity: 1}

.scene-paper.ready{
    height: 100%;
}

.scene-paper-bg {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 100%;
}

.scene-paper-bg img {
    display: block;
    width: 100%;
    position: absolute;
}

.scene-paper-down {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
}

.scene-paper-down img {
    display: block;
    width: 100%
}

.paper-content {
    padding: 0 20%;
    position: absolute;
    font-size: 24px;
    overflow-y: auto;
    scrollbar-width: none;
    top: 100px;
    padding-top: 20px;
    bottom: 20px;
    padding-bottom: 120px;
}

.paper-content::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
}

.paper-content-part {
    display: none
}

.paper-content-part.active {
    display: block;
}

.paper-content p {padding-bottom: 40px;}

.next-container {
    top: -60px;
    position: absolute;
    width: 340px;
    right: -40px;
}

.next-container img {
    transform: scale(1);
    position: absolute;
    transition: all .3s
}

.next-container:hover img {
    transform: scale(1.05);

}

.next {
    position: absolute;
    left: 100px;
    top: 60px;
    color: #fff;
    height: 90px;
    width: 90px;
    background: none;
    border: none;
    display: flex;


}

.next img {
    position: absolute;
    width: 100%;
    display: block;
    transform: scale(.8);
    transition: all .3s
}

.next:hover img {
    transform: scale(1);
}

.letter {
    opacity: 0;
    display: inline-block;
    transform: translateY(10px);
    animation: letterIn 0.1s ease forwards;
    padding-right: 5px;
    margin-right: -5px;
}


/* ===== МОБИЛКА ===== */
@media (max-width: 600px) {
    .scene {
        padding: 16px;
        padding-bottom: 80px;
    }

    .paper-content {font-size: 15px;top: 15vw;padding-bottom: 120px;padding-top: 20px;}
    .next-container{transform: scale(.8); bottom:0px}
}

@keyframes letterIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}