/* Reservation Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Playfair Display', serif;
    font-size: 16px;       /* Base font size for readability */
    line-height: 1.6;      /* Improved line spacing */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;    /* Necessary for overlay positioning */
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* 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 for the background image */
    z-index: -1;          /* Places the background behind all content */
}

/* Reservation Form / Mobile Frame */
#mobile-frame {
    width: 375px;
    height: 667px;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    position: relative;
}


/* Dimmer Overlay for Mobile Frame */
#mobile-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;  /* Matches parent's border radius */
    background: rgba(0, 0, 0, 0.5);  /* Lighter overlay for less darkness */
    z-index: 0;
}

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

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

form label {
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}

form input, form select {
    padding: 12px;
    width: 85%;
    border: 1px solid #6b003b;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    font-family: 'Cormorant Garamond', serif;
    transition: all 0.3s ease-in-out;
}

form input::placeholder,
form select::placeholder {
    color: #999;
    font-family: 'Cormorant Garamond', serif;
}

form input:focus, form select:focus {
    outline: none;
    border-color: #6b003b;
    box-shadow: 0 0 8px rgba(107, 0, 59, 0.7);
}

#content{
    color: #ffffff;
}

form button {
    background-color: #6b003b;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Lora', serif;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

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

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#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);
  }

/* Footer Section */
footer {
    background: linear-gradient(90deg, #f4bceb, #f4bceb);
    color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    position: sticky;
    bottom: 0;
    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);
  }
  

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

.footer-button img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.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, #8b004a, #6b003b); /* Reverse gradient on hover */
}
