@font-face {
    font-family: 'minecraft1';
    src: url('fonts/minecraft.ttf') format('truetype');
}

body {
    background-color: #2b2b2b;
    background-image: url('images/back.png');
    background-repeat: no-repeat;    
    background-size: cover;          
    background-position: center;     
    background-attachment: fixed;   
    font-family: 'minecraft1';
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
}

.card {
    background-color: #f5f5dc; 
    padding: 30px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 0px; 
    border: 4px solid #000;
}

.header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: nowrap;
    align-content: center;
    flex-direction: row;
}

.cake-icon {
    width: 100px;
    height: 100px;
    animation: bounce 3s infinite;
}

.title {
    font-size: 40px;
    margin: 0;
    color: #000; 
    text-align: center;
    line-height: 1;
}

.divider {
    height: 4px;
    background-color: black;
    width: 100%;
    margin-bottom: 30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 900px; 
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    background-color: #eee; 
    border: 3px solid #000; 
    transition: 0.3s;
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.gallery-item:hover {
    border-color: #ff00ff; 
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    z-index: 2; 
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}


#flower-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; 
    overflow: hidden;
}

.floating-flower {
    position: absolute;
    width: 60px; 
    opacity: 0; 
    transition: transform 0.1s ease-out, opacity 2s ease-in-out; 
    pointer-events: auto; 
    cursor: pointer;    
}

.floating-flower.visible {
    opacity: 1;
}

#open-notes-btn {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1000;
    background-color: #7d7d7d; 
    color: white;
    border: 2px solid #000;
    box-shadow: inset 2px 2px 0px #c6c6c6, inset -2px -2px 0px #3b3b3b;
    font-family: 'minecraft1';
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.1s;
}

#open-notes-btn:active {
    transform: scale(0.95); 
    box-shadow: inset 2px 2px 0px #3b3b3b, inset -2px -2px 0px #c6c6c6;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}


.modal-window {
    background-color: #f5f5dc; 
    border: 4px solid #000;
    padding: 10px;
    width: 600px;
    max-width: 90%;
    min-height: 200px;
    position: relative;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    max-height: 80vh;
    overflow-y: auto; 
}

.modal-overlay.open .modal-window {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}
.close-modal:hover {
    color: #d00;
}

#notes-content p {
    text-align: left; 
    line-height: 1.4; 
    font-size: 17px;  
}
    
#petal-container {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    overflow: hidden; 
    z-index: -1;
}

.petal {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    top: -100;
    animation-name: fall, drift; 
    animation-timing-function: linear, ease-in-out; 
    animation-iteration-count: infinite; 
}

@keyframes fall {
    0% {
        top: -10%;
        transform: translateX(0);
        opacity: 0; 
    }
    10% {
        opacity: 1; 
    }
    90% {
        opacity: 1; 
    }
    100% {
        top: 110%;
        transform: translateX(20px);
        opacity: 0; 
    }
}

@keyframes drift { 
    0% {
        transform: translateX(-50px) rotate(0deg);
    }
    50% {
        transform: translateX(50px) rotate(45deg); 
    }
    100% {
        transform: translateX(-50px) rotate(0deg); 
    }
}

#corner-link-btn {
    position: absolute;
    top: 2500px;
    right: 1350px;
    z-index: 1000; 
    background-color: #7d7d7d;
    color: white;
    border: 3px solid #000;
    box-shadow: inset 2px 2px 0px #c6c6c6, inset -2px -2px 0px #3b3b3b;
    font-family: 'minecraft1';
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.1s;
}
    
#corner-linkk-bth:active{
    transform: scale(0.95);
    box-shadow: inset 2px 2px 0px #c6c6c6, inset -2px -2px 0px #3b3b3b;
}

@media (max-width: 768px) {
    
    .gallery {
        grid-template-columns: 1fr
    }

    .card {
        padding: 15px; 
    }
}