/* Stylowanie kontenera książki */
.book-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5e9da;
    position: relative;
}

.book {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: auto;
    perspective: 1200px;
    margin-bottom: 30px;
}

.page {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    background: #fffbe6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 1s cubic-bezier(0.77,0,0.175,1), z-index 0.5s;
    z-index: 1;
    border-radius: 0 8px 8px 0;
}

.page-left {
    left: 0;
    border-radius: 8px 0 0 8px;
    transform-origin: left center;
}

.page-right {
    right: 0;
    border-radius: 0 8px 8px 0;
    transform-origin: right center;
    z-index: 2;
}

.page-content {
    padding: 32px 24px;
}

.page-content img {
    display: block;
    max-width: 100%;
    max-height: 500px;
    margin: 0 auto 16px auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    object-fit: cover;
}

.page-left.active {
    transform: rotateY(0deg);
    z-index: 3;
}

.page-left.flipped {
    transform: rotateY(-180deg);
    z-index: 1;
}

.page-right {
    transform: rotateY(180deg);
}

.page-right.active {
    transform: rotateY(0deg);
    z-index: 3;
}

.nav-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    z-index: 100;
    background: rgba(245, 233, 218, 0.95);
    padding: 16px 0 12px 0;
    box-shadow: 0 -2px 12px rgba(209,139,71,0.07);
    width: auto;
}

.nav-btn {
    margin: 0 10px;
    padding: 10px 24px;
    font-size: 1.1rem;
    background: #e6cfa7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 11;
    position: static;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Stylizacja życzeń rocznicowych */
.anniversary-wishes {
    background: #fff3e6;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(255, 183, 94, 0.13);
    padding: 32px 24px;
    text-align: center;
    font-family: 'Segoe Script', 'Comic Sans MS', cursive, sans-serif;
    color: #a86b32;
    margin: 0 auto;
    max-width: 90%;
}

.anniversary-wishes h2 {
    font-size: 2.2em;
    margin-bottom: 18px;
    color: #d18b47;
}

.anniversary-wishes p {
    font-size: 1.25em;
    line-height: 1.7;
    margin: 0;
}

/* Stylizacja powodów miłości */
.reasons-love {
    background: #f9f3e6;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(255, 183, 94, 0.10);
    padding: 28px 20px 28px 36px;
    text-align: left;
    font-family: 'Segoe Script', 'Comic Sans MS', cursive, sans-serif;
    color: #a86b32;
}

.reasons-love h2 {
    font-size: 1.5em;
    margin-bottom: 16px;
    color: #d18b47;
    text-align: center;
}

.reasons-love ol {
    padding-left: 22px;
    font-size: 1.08em;
    line-height: 1.7;
    margin: 0;
}

.reasons-love li {
    margin-bottom: 6px;
}

/* Stylizacja galerii zdjęć i slidera */
.gallery-slider {
    background: #fff3e6;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(255, 183, 94, 0.13);
    padding: 32px 24px 32px 24px;
    text-align: center;
    font-family: 'Segoe Script', 'Comic Sans MS', cursive, sans-serif;
    color: #a86b32;
    margin: 0 auto;
    max-width: 98%;
}

.gallery-slider h2 {
    font-size: 1.7em;
    margin-bottom: 22px;
    color: #d18b47;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 16px;
}

.slider-btn {
    background: #e6cfa7;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2em;
    color: #a86b32;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.slider-btn:hover {
    background: #d1b07a;
    transform: scale(1.08);
}

#sliderImg {
    max-width: 100%;
    max-height: 500px;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
    object-fit: cover;
    border: 3px solid #e6cfa7;
    background: #fffbe6;
    transition: box-shadow 0.2s;
}

#sliderImg:hover {
    box-shadow: 0 8px 32px rgba(209,139,71,0.18);
}

.slider-dots {
    margin-top: 12px;
}

.dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background: #e6cfa7;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: 2px solid #fff3e6;
}

.dot.active {
    background: #d18b47;
    transform: scale(1.2);
    border: 2px solid #d18b47;
}

.page-single {
    width: 100%;
    min-height: 200px;
    height: auto;
    background: #fffbe6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.7s cubic-bezier(0.77,0,0.175,1), opacity 0.5s;
    z-index: 2;
    opacity: 1;
}

.page-single.slide-left {
    transform: translateX(-120%);
    opacity: 0;
}

.page-single.slide-right {
    transform: translateX(120%);
    opacity: 0;
}

.page-single.slide-in-left {
    transform: translateX(120%);
    opacity: 0;
    animation: slideInLeft 0.7s forwards;
}

.page-single.slide-in-right {
    transform: translateX(-120%);
    opacity: 0;
    animation: slideInRight 0.7s forwards;
}

@keyframes slideInLeft {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(-120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Stylizacja strony z YouTube iframe */
.youtube-page {
    background: #fff3e6;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(255, 183, 94, 0.13);
    padding: 32px 24px 24px 24px;
    text-align: center;
    font-family: 'Segoe Script', 'Comic Sans MS', cursive, sans-serif;
    color: #a86b32;
    margin: 0 auto;
    max-width: 98%;
}

.youtube-page h2 {
    font-size: 1.5em;
    margin-bottom: 18px;
    color: #d18b47;
}

.youtube-iframe-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
}

.youtube-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 14px;
}

/* Stylizacja strony z podziękowaniami */
.thanks-page {
    background: #fff3e6;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(255, 183, 94, 0.13);
    padding: 36px 28px 32px 28px;
    text-align: center;
    font-family: 'Segoe Script', 'Comic Sans MS', cursive, sans-serif;
    color: #a86b32;
    margin: 0 auto;
    max-width: 95%;
}

.thanks-page h2 {
    font-size: 2em;
    margin-bottom: 18px;
    color: #d18b47;
}

.thanks-page p {
    font-size: 1.25em;
    line-height: 1.7;
    margin: 0;
}

/* Stylizacja strony z odciskiem palca/pocałunkiem */
.kiss-page {
    background: #fff3e6;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(255, 183, 94, 0.13);
    padding: 36px 28px 32px 28px;
    text-align: center;
    font-family: 'Segoe Script', 'Comic Sans MS', cursive, sans-serif;
    color: #a86b32;
    margin: 0 auto;
    max-width: 95%;
}

.kiss-page h2 {
    font-size: 1.5em;
    margin-bottom: 18px;
    color: #d18b47;
}

.kiss-frame {
    margin: 32px auto 0 auto;
    width: 220px;
    height: 180px;
    border: 3px dashed #d18b47;
    border-radius: 24px;
    background: #fffbe6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 12px rgba(209,139,71,0.07);
}

.kiss-icon {
    font-size: 3.5em;
    color: #d18b47;
    margin-bottom: 10px;
}

.kiss-instruction {
    font-size: 1.1em;
    color: #a86b32;
    margin: 0;
}

@media (max-width: 768px) {
    .book {
        width: 90%;
        height: auto;
    }

    .page {
        width: 100%;
        height: auto;
        position: relative;
        transform: none !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    }

    .page-left, .page-right {
        border-radius: 12px;
    }

    .nav-btns {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0 16px 0;
    }

    .nav-btn {
        width: 80%;
        font-size: 1rem;
        padding: 10px 0;
    }

    .slider-container {
        flex-direction: column;
        gap: 12px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    #sliderImg {
        max-height: 300px;
    }
}