/* Base Styles for HearthAndStone - Reservation Page */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Playfair Display', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Necessary for overlay positioning */
    overflow-y: auto;
    scroll-behavior: smooth;
    color: #f5f5f5; /* Light text color for contrast */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Enhances text legibility */
}

/* 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 with Dimming Overlay */
#mobile-frame {
    width: 375px;
    height: 667px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: url('../assets/images/bgbistro.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    margin: 20px auto;
    position: relative; /* Needed for positioning the overlay */
    animation: fadeInUp 1s ease-out;
}

/* Overlay to Dim the Mobile Frame Background */
#mobile-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust this value for desired dimness */
    z-index: 0;
}

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

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeInUp 1.5s ease-in-out;
}

form input, form select {
    padding: 12px;
    width: 90%;
    border: 1px solid #ffd700;
    background-color: #600000;
    color: #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

form input::placeholder, form select::placeholder {
    color: #ddd;
    opacity: 1;
}

#home-button {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000;
    transition: background 0.2s ease, transform 0.3s ease;
}

#home-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

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

form button {
    background-color: #ffd700;
    color: #600000;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

form button:hover {
    background-color: #ffcc00;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(90deg, #8b0000, #600000);
    color: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-radius: 0 0 20px 20px;
    transition: background 0.5s ease-in-out;
    animation: fadeInUp 1s ease-out;
    margin-top: auto; /* Ensures the footer stays at the bottom */
}

/* 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 */
.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, #8B0000, #600000);
}

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