* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}

body {
    font-family: 'Brush Script MT', cursive;
    background: #ffe6f2;
    overflow-x: hidden;
    position: relative;
}

button {
    margin-top: 2rem;
}

.page {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    position: absolute;
    width: 100%;
    min-height: 100vh;
    pointer-events: none;
    
}

.page.active {
    opacity: 1;
    pointer-events: all;
    position: relative;
}

/* Login Screen */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #ffe6f2;
    text-align: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
}

.login-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

input {
    margin: 10px;
    padding: 10px;
    font-size: 1.2em;
    text-align: center;
    border: 2px solid #ff4081;
    border-radius: 5px;
}

.login-btn {
    padding: 10px 20px;
    font-size: 1.2em;
    background: #ff4081;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Stacked Cards */
.card-container {
    position: relative;
    width: 200px;
    height: 300px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.5s ease-in-out, opacity 0.5s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.book {
    position: relative;
    width: 300px;
    height: 400px;
    background-color: whitesmoke;
    box-shadow: 1px 1px 12px #000;
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.book-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.cover, .page-left, .page-right {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 1px 1px 12px #000;
}

.cover {
    background-color: lightgray;
    cursor: pointer;
    transition: transform 1s;
    transform-origin: left;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.page-left, .page-right {
    background-color: whitesmoke;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    backface-visibility: hidden;
}

.page-left {
    transform: rotateY(0deg);
}

.page-right {
    transform: rotateY(180deg);
}

.book.open .cover {
    transform: rotateY(-170deg);
}

.book.open .page-right {
    transform: rotateY(-0deg);
}

.next-btn {
    margin-top: 20px;
    padding: 10px 30px;
    background: #ff4081;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
}

.flower-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.flower {
    width: 200px;
    position: absolute;
    bottom: -100px;
    opacity: 0;
    transition: transform 2s ease-out, opacity 1s ease-in;
    mix-blend-mode: multiply;
}

.flower.show {
    transform: translateY(-300px);
    opacity: 1;
    
}