* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff5f8;
    color: #4b4350;
    overflow-x: hidden;
}


/* ================= SCREENS ================= */

.screen {
    display: none;
    min-height: 100vh;
    padding: 30px 20px;
    text-align: center;
}


.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ================= BUTTONS ================= */

button {
    border: none;
    padding: 14px 22px;
    margin: 10px;
    border-radius: 25px;
    background: #c987ad;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}


button:hover {
    transform: scale(1.05);
}


/* ================= WELCOME ================= */

.card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


.card h1 {
    color: #b56e9a;
}


.gift {
    font-size: 80px;
    margin: 20px;
}


/* ================= MENU ================= */

.menu {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: 20px;
    justify-content: center;
}


.menu button {
    height: 150px;
    font-size: 35px;
    background: white;
    color: #5b4c57;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}


.menu span {
    display: block;
    font-size: 15px;
    margin-top: 10px;
}


/* ================= BACK ================= */

.back {
    align-self: flex-start;
    background: white;
    color: #555;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/* ================= MEMORIES ================= */

.subtitle {
    margin-bottom: 30px;
}


.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
}


.polaroid {
    background: white;
    padding: 12px 12px 25px;
    width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: 0.3s;
}


.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
}


.polaroid:nth-child(odd) {
    transform: rotate(-3deg);
}


.polaroid:nth-child(even) {
    transform: rotate(3deg);
}


.polaroid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


/* ================= LETTER ================= */

.letter {
    background: white;
    max-width: 700px;
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    line-height: 1.8;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


.letter h1 {
    color: #b56e9a;
}


.letter h3 {
    text-align: right;
}


/* ================= REASONS ================= */

.reasons {
    display: grid;
    grid-template-columns: repeat(3, 220px);
    gap: 20px;
    justify-content: center;
}


.reason-card {
    background: white;
    padding: 30px 20px;
    border-radius: 25px;
    font-size: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}


.reason-card p {
    font-size: 15px;
}


/* ================= OPEN WHEN ================= */

.openwhen {
    display: grid;
    grid-template-columns: repeat(2, 250px);
    gap: 20px;
}


.openwhen button {
    height: 150px;
    background: white;
    color: #555;
    font-size: 35px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}


.openwhen span {
    display: block;
    font-size: 16px;
    margin-top: 10px;
}


#messageBox {
    background: white;
    max-width: 600px;
    margin-top: 30px;
    padding: 20px;
    border-radius: 20px;
    line-height: 1.6;
}


/* ================= CAKE ================= */

.cake-area {
    margin: auto;
}


.cake {
    font-size: 150px;
    margin: 30px;
}


/* ================= FINAL ================= */

.final-card {
    background: white;
    padding: 45px;
    border-radius: 30px;
    max-width: 700px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}


.final-card h1 {
    color: #c278a3;
}


.final-card p {
    line-height: 1.8;
}


.big-emojis {
    font-size: 30px;
}


/* ================= HEARTS ================= */

.heart {
    position: fixed;
    bottom: -30px;
    font-size: 25px;
    animation: float 7s linear forwards;
}


@keyframes float {

    to {
        transform: translateY(-110vh);
        opacity: 0;
    }

}


/* ================= MOBILE ================= */

@media (max-width: 700px) {

    .menu {
        grid-template-columns: repeat(2, 150px);
    }


    .menu button {
        height: 130px;
    }


    .reasons {
        grid-template-columns: repeat(2, 150px);
    }


    .openwhen {
        grid-template-columns: 1fr;
    }


    .letter {
        padding: 25px;
    }


    .polaroid {
        width: 170px;
    }


    .polaroid img {
        height: 160px;
    }

}
/* ================= CONFETTI ================= */

.confetti {
    position: fixed;
    top: -50px;
    font-size: 25px;
    z-index: 1000;
    pointer-events: none;

    animation-name: confettiFall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}


@keyframes confettiFall {

    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }

}