/* General Reset and Body Styles */


/* Base Styles */
body {
    margin: 20px;
    background: #eee;
    font-family: verdana;
}

/* Invitation Card Container */
.invitation-card {
    background-color: white;
    padding: 40px 30px;
    margin: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 90%;
    max-width: 380px; /* Max width to resemble a phone screen/card */
    position: relative;
    box-sizing: border-box;
}
a {
  color: #646464;
  outline: none;
  text-decoration: none;
}
/* Primary Pink Color Variable for consistency */
:root {
    --primary-pink: linear-gradient(to top,#F3AFB0,#8F977F);
    --soft-gray: #777;
    --pink:#ec7bbd;
}

.linear-gradient-box {
  /* It is good practice to include a solid background-color as a fallback */
  background-color: #ff9966; 
  
  /* Syntax: linear-gradient(direction/angle, color1, color2, ...) */
  
}
/* Top Indicator Dot */
.indicator-dot {
    width: 8px;
    height: 8px;
    background-image: var(--primary-pink);
    border-radius: 50%;
    margin: 0 auto 30px;
}

/* Date and Time Styling */
.date-section, .time-section {
    margin: 15px 0;
}

.date-section i, .time-section i {
    color: var(--soft-gray);
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

.date-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--soft-gray);
    margin: 0;
}

.time-text {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #444;
}

/* Names Styling */
.names-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 20px;
    position: relative;
}

.name-fulan, .name-fulana {
    font-family: 'Playfair Display', serif; /* Script-like or elegant font */
    font-size: 40px;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    color: #333;
}

.ampersand {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--pink);
    padding: 0 10px;
    position: relative;
    top: -5px; /* Adjust vertical alignment of the ampersand */
}

/* Request Text */
.request-text {
    font-family: 'Playfair Display', serif; /* Italic, elegant font for the message */
    font-style: italic;
    font-size: 16px;
    color: var(--soft-gray);
    line-height: 1.5;
    margin-bottom: 40px;
}

/* Button Styling */
.open-invitation-btn {
    background-image: var(--primary-pink);
    color: white;
    border: none;
    padding: 12px 25px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    box-shadow: 0 5px 15px rgba(216, 13, 199, 0.377);
}

.open-invitation-btn:hover {
    background-color: #30a17c; /* Slightly darker pink on hover */
}

.open-invitation-btn i {
    margin-left: 8px;
}

/* Optional: Horizontal line below names (Approximating the visual separator in the image) */
.names-section::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-image: var(--primary-pink);
    opacity: 0.5;
}



/* Card Wrapper Styles */
.card {
    width: 400px;
    height: 475px;
    margin: 0 auto;
    /* Properties for 3D animation */
    position: relative;
    perspective: 1400px; /* Controls 3D depth/perspective */
    /* Transition for sliding the card on open */
    left: 0;
    transition: all 1s;
}

/* Card Open: Slide the card right */
.card.open {
    left: 150px;
}

@media only screen and (max-width: 600px) {
    .card.open {
    left: 50px;
}

.card {
   width: 400px;
    height: 475px;
    margin: 0 auto;
    /* Properties for 3D animation */
    position: relative;
    perspective: 1400px; /* Controls 3D depth/perspective */
    /* Transition for sliding the card on open */
    left: 0;
    transition: all 1s;
}

}

/* Left Card (The Animated Cover) */
.left-card {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    box-shadow: 5px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1; /* Keeps the cover on top */

    /* Properties for 3D flip animation */
    transform-origin: 0 0; /* Flip from the left edge */
    transform-style: preserve-3d;
    transition: transform 1s;
}

/* Left Card Open: Flip the cover 180 degrees */
.card.open .left-card {
    transform: rotateY(-180deg);
}

/* Front and Back of the Left Card (stacked on top of each other) */
.left-card .card-front,
.left-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* Hides the back of the element when flipped 180deg */
    backface-visibility: hidden; 
}

/* Image on the card front */
.left-card img {
    width: 100%;
}

/* Inside of the card cover (back of the left-card) */
.left-card .card-back {
    background: #f4f4f4;
    /* Initially flip the back so it's hidden */
    transform: rotateY(180deg);
}

/* Right Card (The Inner Message) */
.right-card {
    width: 100%;
    height: 100%;
    background: #fff;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    color: #444;
    
    /* Positioned absolutely underneath the left card */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.right-card h2 {
    color: crimson;
}