body {
    font-family: 'Quicksand', sans-serif;
    background-color: #fde0e0;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 2rem;
}

header h1 {
    color: #c0392b;
    font-size: 2.5rem;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    perspective: 1000px;
}

.card {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

@media (min-width: 768px) {
    .card {
        width: 220px;
        height: 280px;
    }
}

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

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.card-face-front {
    background-color: #c0392b;
    color: white;
    font-size: 3rem;
}

.card-face-back {
    background-color: #ffffff;
    transform: rotateY(180deg);
    color: white;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.card-face-back img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.card-face-back .text-content {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

footer {
    margin-top: 3rem;
    color: #c0392b;
}

#curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    cursor: pointer;
}

#left-curtain, #right-curtain {
    position: absolute;
    top: 0;
    width: 50vw;
    height: 100vh;
    background-color: #fde0e0;
    transition: transform 1s ease-in-out;
}

#left-curtain {
    left: 0;
}

#right-curtain {
    right: 0;
}

#curtain .heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 264px;
    height: 237.6px;
    transition: opacity 0.5s ease-in-out;
    z-index: 101;
}

#curtain .heart::before, #curtain .heart::after {
    content: "";
    position: absolute;
    left: 132px;
    top: 0;
    width: 132px;
    height: 211.2px;
    background: #c0392b;
    border-radius: 132px 132px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

#curtain .heart::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

#curtain .curtain-text {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    text-align: center;
    width: 200px;
    z-index: 102;
    transition: opacity 0.5s ease-in-out;
}

#curtain.hidden #left-curtain {
    transform: translateX(-100%);
}

#curtain.hidden #right-curtain {
    transform: translateX(100%);
}

#curtain.hidden .heart,
#curtain.hidden .curtain-text {
    opacity: 0;
}

#curtain.hidden {
    pointer-events: none;
}