/* 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 {
    width: 375px;
    height: 667px;  /* Fixed height */
    border-radius: 20px;
    box-shadow: 0 0 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;  /* Only the mobile frame scrolls */
    position: relative;
}

/* Overlay to Dim the Mobile Frame Background */
#mobile-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 650px;
    border-radius: 20px;
    background: rgba(0, 31, 77, 0.7); /* Dark overlay for improved text contrast */
    z-index: 0;
}

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

/* Logo Styling and Header */
#logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
    animation: fadeInUp 1s ease-out forwards 0.5s;
}

/* "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;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 1.2s ease-out forwards;
}

form label {
    font-size: 16px;
    font-weight: bold;
    font-family: 'Cormorant Garamond', serif;
    color: #ffd700;
    text-transform: capitalize;
}

form input {
    padding: 12px;
    width: 80%;
    border: 1px solid #ffd700;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #001f4d;
    transition: all 0.3s ease-in-out;
    font-family: 'Cormorant Garamond', serif;
}

form input:focus {
    outline: none;
    border-color: #001f4d;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
}

/* Button Styling */
button {
    background-color: #ffd700;
    color: #001f4d;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 10px;
    transition: all 0.3s ease-in-out;
    font-family: 'Lora', serif;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 1.5s;
}

/* Button Hover Effect */
button:hover {
    background-color: #001f4d;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Typography for Headings and Other Text */
/* Headings: Rich Gold */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: capitalize;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 1.8s;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    color: #ffd700;
}

/* Other Text: White */
p, label, a, button {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 18px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 2s;
    color: #ffffff;
}

/* 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;         /* Always fixed at the bottom */
    bottom: 0;
    left: 50%;               /* Center horizontally */
    transform: translateX(-50%); /* Correct horizontal centering */
    width: 375px;            /* Matches the mobile frame width */
    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;
}

/* 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 Effect 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);
}

/* Confirmation Message Styling */
#confirmation-message {
    display: none;
    background-color: rgba(0, 31, 77, 0.9);
    color: #ffd700;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    position: absolute; /* Relative to mobile-frame */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 300px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    z-index: 10;
}

/* Fade-in Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    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: 120px;
    }
}
