@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #f6efe5;
    color: #51483f;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.birthday-container {
    width: 100%;
    max-width: 650px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px;
}

.scene {
    display: none;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.scene.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.small-heading {
    font-size: 10px;
    letter-spacing: 4px;
    color: #a68f7a;
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 8vw, 55px);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 35px;
    color: #51483f;
}

.hint {
    font-size: 13px;
    color: #a18d7b;
    margin-top: 22px;
    margin-bottom: 22px;
}

/* BUNNY */

.bunny {
    position: relative;
    width: 150px;
    height: 190px;
    margin-bottom: -5px;
    animation: bunnyFloat 3s ease-in-out infinite;
}

.bunny-head {
    position: absolute;
    width: 100px;
    height: 95px;
    background: #fffefa;
    border: 1px solid #e8e0d5;
    border-radius: 45% 45% 42% 42%;
    left: 25px;
    top: 45px;
    z-index: 3;
}

.ear {
    position: absolute;
    width: 29px;
    height: 85px;
    background: #fffefa;
    border: 1px solid #e8e0d5;
    border-radius: 50% 50% 35% 35%;
    top: -5px;
    z-index: 2;
}

.ear-left {
    left: 38px;
    transform: rotate(-9deg);
}

.ear-right {
    right: 38px;
    transform: rotate(9deg);
}

.eye {
    position: absolute;
    width: 5px;
    height: 7px;
    background: #51483f;
    border-radius: 50%;
    top: 42px;
}

.eye-left {
    left: 29px;
}

.eye-right {
    right: 29px;
}

.mouth {
    position: absolute;
    top: 49px;
    left: 43px;
    font-size: 13px;
    font-weight: bold;
}

.bunny-body {
    position: absolute;
    width: 65px;
    height: 65px;
    background: #fffefa;
    border: 1px solid #e8e0d5;
    border-radius: 45% 45% 35% 35%;
    top: 125px;
    left: 42px;
    z-index: 1;
}

.arm {
    position: absolute;
    width: 22px;
    height: 43px;
    background: #fffefa;
    border: 1px solid #e8e0d5;
    border-radius: 50%;
    top: 135px;
    z-index: 4;
}

.arm-left {
    left: 30px;
    transform: rotate(-35deg);
}

.arm-right {
    right: 30px;
    transform: rotate(35deg);
}

/* GIFT */

.gift {
    position: relative;
    width: 100px;
    height: 90px;
    margin-top: -48px;
    z-index: 5;
    cursor: pointer;
    animation: wobble 2s infinite ease-in-out;
}

.gift-box {
    position: absolute;
    bottom: 0;
    width: 100px;
    height: 65px;
    background: #c87970;
    border-radius: 5px;
    overflow: hidden;
}

/* GESCHENKBAND */
.gift-ribbon {
    position: absolute;
    top: 0;
    left: 42px;
    width: 16px;
    height: 100%;
    background: #f3d6c5;
    z-index: 2;
}

.gift-lid {
    position: absolute;
    top: 17px;
    left: -5px;
    width: 110px;
    height: 18px;
    background: #b96d66;
    border-radius: 4px;
    z-index: 2;
    transform-origin: left center;
    transition: transform 0.8s ease;
}

.gift-lid::after {
    content: "";
    position: absolute;
    left: 42px;
    top: 0;
    width: 16px;
    height: 100%;
    background: #f3d6c5;
}

.gift.open .gift-lid {
    transform: translate(-30px, -35px) rotate(-35deg);
}

/* BUTTONS */

button {
    border: none;
    background: #a96f64;
    color: white;
    padding: 15px 28px;
    border-radius: 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px #a96f6425;
}

button:hover {
    background: #925c53;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px #a96f6435;
}

/* MESSAGE */

.message-card {
    background: #fffaf3;
    padding: 35px 30px;
    max-width: 430px;
    border-radius: 18px;
    line-height: 1.9;
    font-size: 14px;
    box-shadow: 0 8px 30px #8e796318;
}

/* CAKE */

.cake {
    position: relative;
    width: 230px;
    height: 220px;
    margin-top: 20px;
}

.cake-bottom {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 210px;
    height: 75px;
    background: #d99b91;
    border-radius: 12px 12px 20px 20px;
}

.cake-middle {
    position: absolute;
    bottom: 65px;
    left: 25px;
    width: 180px;
    height: 65px;
    background: #f2d6b9;
    border-radius: 12px 12px 10px 10px;
}

.cake-top {
    position: absolute;
    bottom: 120px;
    left: 25px;
    width: 180px;
    height: 25px;
    background: #fff1dc;
    border-radius: 50%;
    z-index: 2;
}

.candles {
    position: absolute;
    bottom: 140px;
    left: 65px;
    display: flex;
    gap: 25px;
    z-index: 4;
}

.candle {
    position: relative;
    width: 10px;
    height: 45px;
    background: repeating-linear-gradient(
        45deg,
        #fffaf0,
        #fffaf0 5px,
        #d58d83 5px,
        #d58d83 10px
    );
    border-radius: 3px;
}

.flame {
    position: absolute;
    top: -17px;
    left: 1px;
    width: 8px;
    height: 15px;
    background: #f5b94c;
    border-radius: 50% 50% 50% 50%;
    animation: flicker 0.7s infinite alternate;
}

.final-message {
    margin-top: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    color: #a96f64;
}

.hidden {
    display: none;
}

/* CONFETTI */

.confetti-piece {
    position: fixed;
    top: -15px;
    width: 9px;
    height: 13px;
    z-index: 20;
    pointer-events: none;
    animation: confettiFall 3s linear forwards;
}

/* ANIMATIONS */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bunnyFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes wobble {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(3deg);
    }
    75% {
        transform: rotate(-3deg);
    }
}

@keyframes flicker {
    from {
        transform: scale(1) rotate(-5deg);
    }
    to {
        transform: scale(1.15) rotate(5deg);
    }
}

@keyframes confettiFall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .message-card {
        padding: 25px 20px;
    }

    h1 {
        font-size: 39px;
    }
}


/* PHONE-SHAPED WEBSITE */

body {
    background: #e9ded0;
    align-items: flex-start;
}

.birthday-container {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 100svh;
    margin: 0 auto;
    padding: 105px 24px 115px;
    background: #f6efe5;
    box-shadow: 0 0 35px #76645418;
}

/* MUSIC PLAYER AT THE BOTTOM */

.vinyl-player {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;

    width: min(390px, calc(100% - 30px));
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 15px;
    background: #fffaf3;
    border: 1px solid #eaded0;
    border-radius: 18px;
    box-shadow: 0 5px 22px #78645420;
}

.vinyl {
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #c87970 0 5px, transparent 6px),
        repeating-radial-gradient(
            circle,
            #33302f 0 2px,
            #4a4543 3px 4px
        );
    animation: vinylSpin 4s linear infinite;
}

.vinyl-label {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #c87970;
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.music-info .now-playing {
    font-size: 8px;
    letter-spacing: 2px;
    color: #a68f7a;
    font-weight: 700;
}

.music-info .song-title {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: #51483f;
}

.music-info .artist {
    font-size: 10px;
    color: #a18d7b;
}

@keyframes vinylSpin {
    to {
        transform: rotate(360deg);
    }
}

/* PHOTOBOOTH */

.photobooth-strip {
    width: min(250px, 100%);
    max-height: 53vh;
    overflow-y: auto;
    padding: 12px;
    background: white;
    box-shadow: 0 8px 25px #78645420;
    transform: rotate(-2deg);
}

.photobooth-strip img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 9px;
}

.photobooth-strip img:last-child {
    margin-bottom: 0;
}

@media (min-width: 600px) {
    .birthday-container {
        margin: 18px auto;
        min-height: calc(100svh - 36px);
        border-radius: 25px;
        overflow: hidden;
    }

    .vinyl-player {
        position: fixed;
        bottom: 35px;
    }
}

@media (max-width: 480px) {
    body {
        background: #f6efe5;
    }

    .birthday-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}
.vinyl-player.hidden {
    display: none !important;
}