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

body {
    background: linear-gradient(135deg, #570000, #d40404);
    height: 100vh;
    overflow: hidden;
}

canvas#confetti {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    perspective: 1200px;
}

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

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

.front,
.inside {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
}

.front {
    background: url("front.jpg") center/cover no-repeat;
}

.inside {
    background: #800020;
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
    text-align: center;
}

button {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #ff6f91;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #ff3d6b;
}

html {
    scroll-behavior: smooth;
}

#details {
    min-height: 100vh;
    background: #141414;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

#details h2 {
    margin-bottom: 20px;
    color: #ff6f91;
}

#details p {
    font-size: 18px;
    margin: 10px 0;
}

.details-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.details-buttons button {
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: #ff6f91;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.details-buttons button:hover {
    background: #ff3d6b;
}

#detailsBtn {
    background: #570000;
}

#detailsBtn:hover {
    background: #3f0000;
}

/* Birthday Details theme color */
#details h2 {
    color: #570000;
}

/* All buttons inside the details section */
#details button {
    background: #570000;
}

#details button:hover {
    background: #3f0000;
}
