* {
    color: white;
    font-family: Inter, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0 1rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    perspective: 1000px;
}

.card-container {
    position: relative;
    width: 400px;
    height: 600px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* Updated: Expressive slow spatial for dramatic card flip */
    transition: transform 0.65s cubic-bezier(0.39, 1.29, 0.35, 0.98);
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-image: linear-gradient(to bottom right, #2563eb, #1d4de8, #1e40af);
    padding: 16px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    border: 2px solid #60a5fa33;
}

.card-back {
    transform: rotateY(180deg);
}

.inner-card {
    padding: 6px;
    border-radius: 24px;
    border: 2px solid #93c5fd4d;
    height: 100%;
}

.inner-card-2 {
    border-radius: 16px;
    border: 1px solid #bfdbfe33;
    padding: 2rem 1.5rem;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.open-card-button, .close-card-button {
    background-image: linear-gradient(to right, #3b82f6, #2563eb);
    font-size: 16px;
    border: 1px solid #93c5fd4d;
    border-radius: 15px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    /* Kept: Already using expressive fast spatial - perfect for interactive elements */
    transition: all 0.35s cubic-bezier(0.42, 1.67, 0.21, 0.9);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto 0;
    cursor: pointer;
    color: white;
    font-weight: 500;
}

.open-card-button:hover, .close-card-button:hover {
    background-image: linear-gradient(to right, #60a5fa, #3b82f6);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: scale(1.05);
}

.open-card-button:active, .close-card-button:active {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: scale(1);
}

.dad-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    padding: 0.5rem;
    background-color: #3b82f64d;
    margin-bottom: 2rem;
    object-fit: cover;
}

h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    letter-spacing: -0.05em;
    text-align: center;
}

h1::after {
    content: '';
    width: 50px;
    height: 2px;
    background: rgb(147, 197, 253);
    display: block;
    border-radius: 32px;
    margin: 1rem auto 0;
}

.star-icon {
    fill: rgb(147, 197, 253);
    position: absolute;
    width: 24px;
    height: 24px;
}

.star-icon:nth-child(1) {
    top: 15px;
    left: 15px;
}

.star-icon:nth-child(2) {
    top: 15px;
    right: 15px;
}

.star-icon:nth-child(3) {
    bottom: 15px;
    left: 15px;
}

.star-icon:nth-child(4) {
    bottom: 15px;
    right: 15px;
}

p {
    line-height: 1.6;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

p strong {
  letter-spacing: -0.035em;
  font-size: 24px;
}

.message {
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.38, 1.21, 0.22, 1.00);
    transition-delay: 0.4s;
    text-align: center;
}

.card.flipped .message {
    opacity: 1;
    transform: translateY(0);
}

.message-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.38, 1.21, 0.22, 1.00);
    transition-delay: 0.2s;
    text-align: center;
}

.card.flipped .message-title {
    opacity: 1;
    transform: translateY(0);
}

.dad-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}


.inter-font {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}