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

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.card {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    background-color: #fffbf5;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Main photo - left side */
.main-photo {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Polaroids container - center */
.polaroids {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 30px 10px;
    position: relative;
    z-index: 10;
    margin-left: -30px;
}

/* Individual polaroid styling */
.polaroid {
    background: white;
    padding: 8px 8px 25px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.polaroid img {
    width: 120px;
    height: 100px;
    object-fit: cover;
    display: block;
}

/* Slight rotations for natural look */
.polaroid-1 {
    transform: rotate(3deg);
}

.polaroid-2 {
    transform: rotate(-2deg);
}

.polaroid-3 {
    transform: rotate(2deg);
}

.polaroid-4 {
    transform: rotate(-3deg);
}

/* Hover effect */
.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 20;
}

/* Message section - right side */
.message {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 50px 40px 30px;
}

.thank-you {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    color: #1a237e;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1;
}

.text {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 400;
}

.names {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: #1a237e;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .card {
        flex-direction: column;
        max-width: 600px;
        min-height: auto;
    }

    .main-photo {
        flex: none;
        height: 400px;
    }

    .polaroids {
        flex-direction: row;
        flex-wrap: wrap;
        margin-left: 0;
        margin-top: -40px;
        padding: 20px;
    }

    .polaroid img {
        width: 100px;
        height: 80px;
    }

    .message {
        text-align: center;
        padding: 30px;
    }

    .thank-you {
        font-size: 3.5rem;
    }
}

@media (max-width: 500px) {
    .thank-you {
        font-size: 2.8rem;
    }

    .text {
        font-size: 1rem;
    }

    .polaroid img {
        width: 80px;
        height: 65px;
    }
}
