body {
    background: #fce4ec;
    text-align: center;
    font-family: 'Arial';
}

.cake-container {
    text-align: center;
}

.cake {
    width: 400px;
    height: 500px;
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;

}
.heart {
    width: 320px;
    height: 320px;
    display: block;
    margin: 20px auto;
    image-rendering: pixelated;
}
.h1 {
    font-family: 'Pacifico', cursive;
    color: #d81b60;
    font-size: 48px;
    margin-top: 30px;
    text-shadow: 0 0 8px rgba(249, 72, 122, 0.6);
}
p {
    font-family: 'pacifico';
    font-size: 20px !important;
    color: #880e4f;
    margin: 10px 0;
    line-height: 1.5;
}



button {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    margin-top: 20px;
    padding: 10px 20px;
    background: #ff80ab;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
}
button:hover {
    background: #ff4081;
    cursor: pointer;
}

.modal {
    display: none;
    inset: 0;
}

.modal-content {
    background: rgb(255, 203, 219);
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    border-radius: 10px;
}

.gallery img {
    width: 50%;
    margin-bottom: 10px;
}
.gallery video {
    width: 50%;
    margin-bottom: 10px;
}


@keyframes flipIn {
    from { transform: rotateY(90deg); opacity: 0; }
    to { transform: rotateY(0); opacity: 1; }
}

.flip-controls {
    text-align: center;
    display: none;
}

.flip-controls button {
    background: #ff80ab;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
   
}
.flip-controls button:hover {
    background: #ff4081;
}
.memory.hidden{
    display:none;
}
.memory{
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}
.video-row{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
.video-row video{
    width: 45%;
    border-radius: 8px;
}


.left-side{
    width: 50%;
    border-radius: 8px;
}
.right-side {
    max-width: 50%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: left;
}
.right-side p{
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}
.right-side img{
    height: 400px;
    border-radius: 8px;
    
    
}

@media (max-width: 800px) {
   
    #top-section {
        height: 100vh;
        width: 100vw;
        padding: 10px;
        box-sizing: border-box;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
    }
    .container {
        height: 100vh;
        width: 100vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
    }
    .container img {
        max-width: 100%;
        height: auto;
    }

    p{
        font-size: 22px !important;
        line-height: 1.6 !important;
        padding: 0 16px;
    }

    .heart {
        width: 100%;
        max-width: 480px;
        height: auto;
    }  
    .cake {
        width: 100vw;
        max-width: 500px;
        margin: 0 auto 20px auto;
    }

    .gallery img, .gallery video {
        width: 1000% !important;
        height: 1200px !important;
    }
    .memory-text {
        font-size: 35px !important;
        line-height: 1.5 !important;
    }
    
    .flip-controls button {
        padding: 12px 18px;
        font-size: 22px;
        margin-bottom: 20px;
    }
    .page {
        width: 200%;
        height: 1200px;
    }
    .modal-content {
       padding: 10px !important;
       
    }
   

}