/* ------------------------------
General Reset & Landscape Setup
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    font-family: 'Cursive', sans-serif;
    background-color: #fff;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* ------------------------------
All Pages
------------------------------ */
.page {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* ------------------------------
Page 1: Love Question
------------------------------ */
#page1 h1 {
    color: #ff467e;
    font-size: 2.2rem;
    text-align: center;
    text-shadow: 2px 2px 5px #ffb6c1;
    margin: 20px 0;
}
.btn-group button {
    margin: 10px;
    padding: 18px 35px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(45deg,#ff9ec4,#ff467e);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255,70,126,0.5);
    transition: all 0.3s ease;
}
.btn-group button:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 25px rgba(255,70,126,0.7);
}

/* ------------------------------
Page 2: Crying Bunny
------------------------------ */
.crying-bunny img {
    width: 220px;
    animation: floatBunny 2s infinite alternate ease-in-out;
}
@keyframes floatBunny {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-25px); }
}

/* ------------------------------
Page 3: Find Hidden Item Game
------------------------------ */
.tree {
    position: relative;
    width: 80%;
    max-width: 550px;
}
.tree .hidden-item {
    position: absolute;
    width: 60px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.tree .hidden-item:hover {
    transform: scale(1.3) rotate(15deg);
}
.tree .decoration {
    position: absolute;
    width: 45px;
    animation: floatDecor 4s infinite alternate ease-in-out;
}
@keyframes floatDecor {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-20px); }
}

/* ------------------------------
Page 4: Gifts
------------------------------ */
.gift-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}
.gift img {
    width: 130px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gift img:hover {
    transform: scale(1.25) rotate(10deg);
    box-shadow: 0 10px 30px rgba(255,70,126,0.5);
}

/* ------------------------------
Page 5: Coupons
------------------------------ */
.coupon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.coupon img {
    width: 110px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.coupon img:hover {
    transform: scale(1.3) rotate(-5deg);
    box-shadow: 0 10px 30px rgba(255,70,126,0.6);
}

/* ------------------------------
Page 6: Memory Lane
------------------------------ */
.memory-photos img {
    width: 130px;
    margin: 12px;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.memory-photos img:hover {
    transform: scale(1.25) rotate(-3deg);
    box-shadow: 0 15px 40px rgba(255,70,126,0.5);
}

/* ------------------------------
Page 7: Typewriter Anniversary Note
------------------------------ */
.love-text {
    font-size: 2rem;
    color: #ff467e;
    width: 80%;
    text-align: center;
    border-right: 3px solid #ff467e;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    text-shadow: 2px 2px 6px rgba(255,182,193,0.6);
    line-height: 1.6;
}

/* ------------------------------
Page 8: Guess Song
------------------------------ */
.music-player {
    margin: 20px 0;
}
#guessInput {
    padding: 12px;
    font-size: 1rem;
    border-radius: 15px;
    border: 2px solid #ff467e;
    width: 220px;
    margin-right: 10px;
}
#guessBtn {
    padding: 12px 25px;
    border-radius: 15px;
    border: none;
    background: linear-gradient(45deg,#ff9ec4,#ff467e);
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255,70,126,0.5);
    transition: all 0.3s ease;
}
#guessBtn:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 25px rgba(255,70,126,0.7);
}

/* ------------------------------
Floating Particles Container
------------------------------ */
#page7, #page1, #page4 {
    position: relative;
}

/* ------------------------------
Landscape Fix for Android
------------------------------ */
@media screen and (orientation: landscape) {
    .container {
        transform: scale(1);
    }
}