* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Caveat', cursive;
    /* Cork board background */
    background: #a0826d;
    background-image:
        radial-gradient(circle at 25% 35%, rgba(139, 115, 85, 0.9) 0%, transparent 50%),
        radial-gradient(circle at 75% 65%, rgba(160, 130, 100, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 15% 85%, rgba(139, 115, 85, 0.7) 0%, transparent 30%),
        radial-gradient(circle at 85% 25%, rgba(120, 100, 75, 0.8) 0%, transparent 40%),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 4px);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Cork board texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.09) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 100px 100px, 150px 150px, 80px 80px, 120px 120px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.scrapbook-page {
    position: relative;
    background: #fffef9;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(222, 184, 135, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(210, 180, 140, 0.04) 0%, transparent 40%);
    width: 100%;
    max-width: 900px;
    padding: 60px 40px 80px 40px;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.3),
        inset 0 0 100px rgba(139, 69, 19, 0.02);
    transform: rotate(-0.3deg);
    animation: pageFloat 8s ease-in-out infinite;
    z-index: 1;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

@keyframes pageFloat {

    0%,
    100% {
        transform: rotate(-0.3deg) translateY(0px);
    }

    50% {
        transform: rotate(0.2deg) translateY(-8px);
    }
}

/* Push pins in corners */
.scrapbook-page::before,
.scrapbook-page::after {
    content: '📌';
    position: absolute;
    font-size: 2.5rem;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
    z-index: 100;
    animation: pinWiggle 5s ease-in-out infinite;
}

.scrapbook-page::before {
    top: 15px;
    left: 20px;
    transform: rotate(-25deg);
}

.scrapbook-page::after {
    top: 15px;
    right: 20px;
    transform: rotate(25deg);
    animation-delay: 0.5s;
}

@keyframes pinWiggle {

    0%,
    100% {
        transform: rotate(-25deg);
    }

    50% {
        transform: rotate(-30deg);
    }
}

/* Decorative tape */
.tape {
    position: absolute;
    width: 140px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.7) 0%, rgba(255, 245, 210, 0.6) 100%);
    border: none;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    z-index: 10;
    opacity: 0.9;
}

.tape-1 {
    top: -15px;
    left: 50px;
    transform: rotate(-25deg);
}

.tape-2 {
    top: -15px;
    right: 50px;
    transform: rotate(25deg);
}

.tape-3 {
    bottom: -15px;
    left: 80px;
    transform: rotate(15deg);
}

.tape-4 {
    bottom: -15px;
    right: 80px;
    transform: rotate(-15deg);
}

/* Title section */
.title-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.doodle-heart,
.doodle-star {
    position: absolute;
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
}

.heart-1 {
    top: -25px;
    left: 15%;
    color: #ff6b6b;
    animation-delay: 0s;
}

.heart-2 {
    top: -15px;
    right: 20%;
    color: #ff6b6b;
    animation-delay: 0.5s;
}

.star-1 {
    top: 55px;
    left: 10%;
    color: #ffd93d;
    animation-delay: 0.3s;
}

.star-2 {
    top: 65px;
    right: 15%;
    color: #ffd93d;
    animation-delay: 0.7s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.3) rotate(10deg);
        opacity: 1;
    }
}

.main-title {
    font-family: 'Caveat', cursive;
    font-size: 4.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
    text-shadow:
        3px 3px 0px rgba(255, 182, 193, 0.6),
        -1px -1px 0px rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

.name {
    color: #e17055;
    display: inline-block;
    animation: wiggle 3s ease-in-out infinite;
}

.name:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

.ampersand {
    color: #ff6b6b;
    font-size: 4rem;
    margin: 0 15px;
}

.subtitle {
    font-family: 'Patrick Hand', cursive;
    font-size: 2rem;
    color: #636e72;
    margin-top: 8px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

/* Countdown */
.countdown-container {
    margin: 50px 0;
    display: flex;
    justify-content: center;
}

.countdown-border {
    background: white;
    padding: 10px;
    border: 4px dashed #e17055;
    border-radius: 25px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(255, 182, 193, 0.3);
    position: relative;
    transform: rotate(-1deg);
}

.countdown-border::before,
.countdown-border::after {
    content: '♥';
    position: absolute;
    font-size: 2.5rem;
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
}

.countdown-border::before {
    top: -35px;
    left: -25px;
}

.countdown-border::after {
    bottom: -35px;
    right: -25px;
    animation-delay: 0.3s;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }
}

.countdown-display {
    font-family: 'Indie Flower', cursive;
    font-size: 2.5rem;
    color: #2d3436;
    padding: 35px 55px;
    text-align: center;
    line-height: 1.6;
    font-weight: 700;
    background: linear-gradient(135deg, #fff9e6 0%, #fffef9 100%);
    border-radius: 20px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

/* Cow section */
.cow-section {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.polaroid {
    background: white;
    padding: 18px;
    padding-bottom: 70px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    transform: rotate(4deg);
    transition: transform 0.3s ease;
    animation: photoFloat 5s ease-in-out infinite;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes photoFloat {

    0%,
    100% {
        transform: rotate(4deg) translateY(0px);
    }

    50% {
        transform: rotate(3deg) translateY(-10px);
    }
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.08);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.2);
}

.photo-frame {
    width: 300px;
    height: 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.photo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.photo-caption {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: #2d3436;
    text-align: center;
    margin-top: 18px;
    font-weight: 700;
}

/* Dad joke section */
.joke-section {
    margin: 60px 0;
    display: flex;
    justify-content: center;
}

.note-paper {
    background: #fffacd;
    padding: 35px 45px;
    width: 100%;
    max-width: 650px;
    border-radius: 5px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 215, 0, 0.3);
    transform: rotate(-2deg);
    position: relative;
    background-image:
        repeating-linear-gradient(transparent,
            transparent 37px,
            rgba(139, 69, 19, 0.15) 37px,
            rgba(139, 69, 19, 0.15) 38px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.2) 0px, rgba(255, 0, 0, 0.2) 1px, transparent 1px);
    background-position: 0 0, 40px 0;
    background-size: 100% 100%, 100% 100%;
    margin-top: 40px;
}

.note-paper::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 30px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(139, 69, 19, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.joke-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 2.2rem;
    color: #e17055;
    margin-bottom: 20px;
    text-align: center;
    text-decoration: underline wavy #ff6b6b;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.joke-text {
    font-family: 'Indie Flower', cursive;
    font-size: 1.6rem;
    color: #2d3436;
    line-height: 2;
    text-align: center;
    font-weight: 600;
}

/* Photo Gallery Section */
.photo-gallery-section {
    margin: 70px 0;
    padding: 50px 25px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    border: 4px dashed #e17055;
    position: relative;
    box-shadow: inset 0 0 30px rgba(255, 182, 193, 0.2);
}

.photo-gallery-section::before {
    content: '♥ ♥ ♥';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #fffef9;
    padding: 8px 25px;
    font-size: 1.8rem;
    color: #ff6b6b;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.gallery-title-wrapper {
    text-align: center;
    margin-bottom: 45px;
}

.gallery-title {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    color: #e17055;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow:
        3px 3px 0px rgba(255, 182, 193, 0.5),
        -1px -1px 0px rgba(255, 255, 255, 0.5);
}

.title-underline {
    width: 250px;
    height: 5px;
    background: repeating-linear-gradient(90deg,
            #ff6b6b 0px,
            #ff6b6b 12px,
            transparent 12px,
            transparent 18px);
    margin: 0 auto;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 50px;
    margin-bottom: 35px;
}

.photo-item {
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.photo-rotate-left {
    transform: rotate(-4deg);
}

.photo-rotate-right {
    transform: rotate(4deg);
}

.photo-rotate-left-sm {
    transform: rotate(-3deg);
}

.photo-rotate-right-sm {
    transform: rotate(3deg);
}

.photo-item:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.02) !important;
    z-index: 10;
}

.polaroid-frame {
    background: white;
    padding: 15px;
    padding-bottom: 60px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.25),
        0 5px 12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.polaroid-frame:hover {
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35),
        0 8px 18px rgba(0, 0, 0, 0.2);
}

.photo-placeholder {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    position: relative;
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.02) 10px, rgba(0, 0, 0, 0.02) 20px);
}

.photo-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.placeholder-text {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.3rem;
    color: #6c757d;
    text-align: center;
}

.polaroid-caption {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #2d3436;
    text-align: center;
    margin-top: 15px;
    font-weight: 700;
}

.gallery-note {
    font-family: 'Indie Flower', cursive;
    font-size: 1.4rem;
    color: #636e72;
    text-align: center;
    font-style: italic;
    margin-top: 25px;
}

/* Bottom text */
.bottom-text {
    text-align: center;
    margin-top: 60px;
}

.love-note {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    color: #ff6b6b;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow:
        3px 3px 0px rgba(255, 182, 193, 0.6),
        -1px -1px 0px rgba(255, 255, 255, 0.5);
}

.date-note {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.5rem;
    color: #636e72;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.6);
}

/* Scattered doodles */
.scattered-doodles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.scattered-doodles .doodle {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.7;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.1));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.scattered-doodles .doodle:nth-child(1) {
    top: 12%;
    left: 8%;
    color: #ff6b6b;
    animation-delay: 0s;
}

.scattered-doodles .doodle:nth-child(2) {
    top: 22%;
    right: 10%;
    color: #ffd93d;
    animation-delay: 0.6s;
}

.scattered-doodles .doodle:nth-child(3) {
    bottom: 28%;
    left: 6%;
    color: #a29bfe;
    animation-delay: 1.2s;
}

.scattered-doodles .doodle:nth-child(4) {
    bottom: 18%;
    right: 12%;
    color: #fd79a8;
    animation-delay: 1.8s;
}

.scattered-doodles .doodle:nth-child(5) {
    top: 48%;
    left: 4%;
    color: #74b9ff;
    animation-delay: 2.4s;
}

.scattered-doodles .doodle:nth-child(6) {
    top: 68%;
    right: 7%;
    color: #ff6b6b;
    animation-delay: 3s;
}

.scattered-doodles .doodle:nth-child(7) {
    bottom: 42%;
    left: 10%;
    color: #a29bfe;
    animation-delay: 3.6s;
}

.scattered-doodles .doodle:nth-child(8) {
    top: 32%;
    right: 5%;
    color: #ffd93d;
    animation-delay: 4.2s;
}

/* Decorative stickers */
.stickers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.sticker {
    position: absolute;
    font-size: 3.5rem;
    opacity: 0.95;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.25));
    animation: stickerWiggle 5s ease-in-out infinite;
}

@keyframes stickerWiggle {

    0%,
    100% {
        transform: rotate(-8deg) scale(1);
    }

    50% {
        transform: rotate(8deg) scale(1.15);
    }
}

.sticker-1 {
    top: 8%;
    right: 5%;
    color: #ff6b6b;
    animation-delay: 0s;
}

.sticker-2 {
    top: 42%;
    left: 2%;
    color: #ffd93d;
    animation-delay: 1s;
}

.sticker-3 {
    bottom: 12%;
    right: 6%;
    animation-delay: 2s;
}

.sticker-4 {
    bottom: 38%;
    left: 4%;
    color: #a29bfe;
    animation-delay: 3s;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .scrapbook-page {
        padding: 40px 25px 60px 25px;
    }

    .main-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .countdown-display {
        font-size: 1.8rem;
        padding: 25px 35px;
    }

    .photo-frame {
        width: 250px;
        height: 250px;
    }

    .note-paper {
        padding: 25px 30px;
    }

    .joke-title {
        font-size: 1.8rem;
    }

    .joke-text {
        font-size: 1.3rem;
    }

    .gallery-title {
        font-size: 2.8rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .photo-placeholder {
        width: 200px;
        height: 200px;
    }

    .sticker {
        font-size: 2.5rem;
    }

    .scattered-doodles .doodle {
        font-size: 1.4rem;
    }

    .doodle-heart,
    .doodle-star {
        font-size: 2rem;
    }
}
/* MUAH text elements */
.muah-text {
    position: absolute;
    font-family: 'Patrick Hand', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b6b;
    text-shadow: 
        2px 2px 0px rgba(255,255,255,0.8),
        3px 3px 5px rgba(0,0,0,0.2);
    animation: muahPulse 2s ease-in-out infinite;
    transform-origin: center;
}

.muah-1 {
    top: -35px;
    left: 8%;
    transform: rotate(-15deg);
    animation-delay: 0.2s;
}

.muah-2 {
    top: -25px;
    right: 10%;
    transform: rotate(15deg);
    animation-delay: 0.8s;
}

@keyframes muahPulse {
    0%, 100% { 
        transform: scale(1) rotate(-15deg);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.2) rotate(-10deg);
        opacity: 1;
    }
}

.kiss-emoji {
    font-size: 3.5rem;
    margin-left: 15px;
    display: inline-block;
    animation: kissFloat 3s ease-in-out infinite;
}

@keyframes kissFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

/* MUAH signature at bottom */
.muah-signature {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    color: #ff6b6b;
    font-weight: 700;
    text-align: center;
    margin-top: 15px;
    text-shadow: 
        2px 2px 0px rgba(255,182,193,0.6),
        -1px -1px 0px rgba(255,255,255,0.5);
    animation: muahWave 1.5s ease-in-out infinite;
}

@keyframes muahWave {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

/* MUAH signs scattered around */
.muah-signs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.muah-sign {
    position: absolute;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff6b6b;
    text-shadow: 
        2px 2px 0px rgba(255,255,255,0.9),
        3px 3px 5px rgba(0,0,0,0.15);
    animation: signWiggle 4s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes signWiggle {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.15); }
}

.sign-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.sign-2 {
    top: 50%;
    right: 3%;
    animation-delay: 1s;
}

.sign-3 {
    bottom: 30%;
    left: 7%;
    animation-delay: 2s;
}

.sign-4 {
    bottom: 10%;
    right: 8%;
    animation-delay: 3s;
}

/* Additional stickers */
.sticker-5 {
    top: 65%;
    right: 4%;
    animation-delay: 2s;
}

.sticker-6 {
    bottom: 55%;
    left: 3%;
    animation-delay: 2.5s;
}
