:root {
    --animate-duration: 2000ms;
}

body {
    --w-accent: #fb7185;
    --w-accent-hover: #f43f5e;
    --w-bg-light: #fff1f2;
    --w-box-shadow: none;
    --bs-body-color: #881337;
    --bs-body-bg: #fff1f2;
    font-family: "Nunito", "Mali", var(--bs-font-sans-serif);
    /* padding-top: 36px; */
}

.container {
    max-width: 480px !important;
}

/* Helper */
.fw-600 {
    font-weight: 600 !important;
}

.text-accent {
    color: var(--w-accent) !important;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    min-height: 36px;
    padding: 8px 0;
    font-size: 12px;
    text-align: center;
    background-color: rgba(255, 228, 230, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-family: "LINE Seed Sans TH", var(--bs-font-sans-serif);
}

main {
    width: 100%;
    margin: auto;
}

/* Sec Intro */
.sec-intro {
    position: relative;
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 16px;
    font-weight: 700;
    /* font-family: "LINE Seed Sans TH", var(--bs-font-sans-serif); */
}

.site-desc {
    font-size: 12px;
    /* font-family: "LINE Seed Sans TH", var(--bs-font-sans-serif); */
}

/* Sec Story */
.sec-story {
    --bg: #fff1f2;
    --border: #fecdd3;
    position: relative;
    background-color: var(--bg);
}

.story-title {
    position: fixed;
    left: 0;
    /* top: 36px; */
    top: 0;
    z-index: 1;
    width: 100%;
    padding: 16px 0;
    background-color: var(--bg);
    /* border-bottom: 1px solid var(--border); */
}

.story-wrap {
    position: relative;
}

.story-next {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    padding: 16px 0;
    background-color: var(--bg);
    /* border-top: 1px solid var(--border); */
}

.story .story-next .container {
    padding-left: 24px;
    padding-right: 24px;
}

.story {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 50px 0 100px;
}

.story .container {
    padding-left: 0;
    padding-right: 0;
}

@media(min-width: 480px) {
    .story img {
        padding: 0 24px;
    }
}

.story p {
    font-family: 'Mali', sans-serif;
    line-height: 1.8;
    text-indent: 36px;
    padding-left: 24px;
    padding-right: 24px;
}

.story p:last-child {
    margin-bottom: 0;
}  

.btn-next {
    --bs-btn-border-color: var(--bs-body-color);
    --bs-btn-active-border-color: var(--bs-body-color);
    --bs-btn-hover-border-color: var(--bs-body-color);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;

    border: none;
    background-color: #ffe4e6 !important;
}

.btn-next-overlay {
    background-color: transparent;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    background-color: #fff1f2 !important;
    transition: .3s;
}

/* Sec Summary */
.sec-summary {
    min-height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
}

/* Sec Editor */
.sec-editor {
    min-height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
}

#preview_wrap {
    transform-origin: top left;
}

.postcard-img {
    width: 1200px;
    height: 848px;
    position: relative;
}

.postcard-text-wrap {
    position: absolute;
    width: 700px;
    height: 410px;
    top: 220px;
    left: 250px;
    display: grid;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.postcard-text {
    font-size: 32px;
    text-align: center;
    font-weight: 600;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    color: #dd556f;
}

.sticker {
    position: absolute;
    z-index: 10;
}

.sticker-1 {
    width: 300px;
    height: 300px;
    bottom: 60px;
    left: 230px;
    transform: rotate(-10deg);
}

.sticker-2 {
    width: 300px;
    height: 300px;
    top: 50px;
    right: -40px;
}

.sticker-set .btn {
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--bs-border-color);
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: var(--w-accent);
}

.sticker-set img {
    width: 50px;
    height: 50px;
}

.form-control {
    --bs-body-bg: #fff;
}

/* Sec Share */
.sec-share {
    min-height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
}

/* Audio */
.btn-audio {
    position: fixed;
    /* top: 42px; */
    top: 5px;
    right: 0;
    z-index: 1000;
    color: #fda4af;
}

footer {
    margin-top: 0;
    /* font-family: "LINE Seed Sans TH", var(--bs-font-sans-serif); */
}


.animate__animated.animate__delay-1-5s {
    -webkit-animation-delay: 1.5s;
    animation-delay: 1.5s;
}

.animate__animated.animate__delay-2-5s {
    -webkit-animation-delay: 2.5s;
    animation-delay: 2.5s;
}

.animate__animated.animate__delay-3-5s {
    -webkit-animation-delay: 3.5s;
    animation-delay: 3.5s;
}

.animate__animated.animate__delay-4-5s {
    -webkit-animation-delay: 4.5s;
    animation-delay: 4.5s;
}