/* Base Styles for Ceviche - Reservation Page */
body, html {
    margin: 0;
    padding: 0;
    height: 100vh;  /* Use viewport height */
    overflow: hidden;  /* Disable scrolling on the entire page */
    scroll-behavior: smooth;
    font-family: 'Playfair Display', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Necessary for overlay positioning */
}

/* Background Image with Overlay */
body::before {
    content: "";
    position: fixed; /* Keeps the background fixed while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.4; /* Adjust opacity (0 = fully transparent, 1 = fully visible) */
    z-index: -1; /* Places the background behind all content */
}

/* Mobile Frame */
#mobile-frame {
    width: 375px;
    height: 667px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: url('../assets/images/cevichebg.jpg') no-repeat center center;
    background-size: cover; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    position: relative;
}

/* Overlay to Dim the Mobile Frame Background */
#mobile-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;  /* Now covers the container exactly */
    border-radius: 20px;
    z-index: 0;
}

/* Ensure all content appears above the overlay */
#mobile-frame > * {
    position: relative;
    z-index: 1;
}

/* Header / Logo Container */
#logo-container {
    text-align: center;
    margin-top: 50px;
}

/* "Go to Home" Button Styling */
#home-button {
    font-size: 16px;
    padding: 10px 20px;
    background: rgba(0, 31, 77, 0.9);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    margin: 0 auto;
    display: block;
}

#home-button:hover {
    background: #004080;
}

/* Content Section */
#content {
    text-align: center;
    flex-grow: 1;
    padding: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 0.9s;
}

/* Content Image */
#content img {
    max-width: 90%;
    height: auto;
    max-height: 200px;
    border-radius: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 1.2s;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

#content img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Dish Styling: Spacing and Blue Gradient Background */
.dish {
    margin: 20px 0;               /* Adds space between each dish */
    padding: 15px;                /* Provides some inner spacing */
    background: linear-gradient(90deg, rgba(0,31,77,0.8), rgba(0,64,128,0.8));
    border-radius: 10px;          /* Soft rounded corners */
}

/* Center Dish Images with Spacing */
.dish img {
    display: block;
    margin: 0 auto 10px;
}

/* Typography */
/* Headings: Luxurious Gold with Text Shadow */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: capitalize;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 1.5s;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    color: #f2e180; /* Gold color for a luxurious feel */
}

/* Other Text: White with Subtle Shadow for Clarity */
p, label, a, button {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 18px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 1.8s;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Footer Section */
footer {
    background: linear-gradient(90deg, #001f4d, #004080);
    color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    position: fixed;  /* Keeps footer fixed at the bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    font-family: 'Lora', serif;
    font-weight: 700;
    transition: background 0.5s ease-in-out;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;  /* Ensures it stays above other elements */
}

/* Footer Buttons */
.footer-button {
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* Footer Icons */
.footer-button img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* Hover Effects for Footer Icons */
.footer-button:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

footer:hover {
    background: linear-gradient(90deg, #004080, #001f4d);
}

/* Fade-in Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #mobile-frame {
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    #logo-container img {
        width: 100px;
    }
}
