body {
    margin: 0;
    padding: 0;
    font-family: 'Lora', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensures the body takes full viewport height */
    background-color: transparent;
    overflow: hidden; /* Keep hidden to maintain fixed background without body scroll */
    box-sizing: border-box;
    /* The following background-image properties are removed */
    /* background-image: url('background1.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    /* background-attachment: fixed; */
}

/* New CSS for the background video element */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}


.frame-wrapper {
    position: absolute; /* Keep absolute positioning as per your preferred layout */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 20px solid transparent;
    outline: 5px solid #d4af37;
    box-shadow: 0 0 0 10px #f7dfa5, 0 0 0 15px #d4af37, 0 0 0 20px #8c6b14;
    border-image: url('gold-texture.png') 30 stretch;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Keep hidden to contain the frame effect */
    box-sizing: border-box;
}

.content {
    background-color: rgba(10, 25, 45, 0.7);
    padding: 50px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%; /* Ensure content adapts to width */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.5);
    z-index: 1;
    box-sizing: border-box;
    max-height: 90vh; /* Set a max-height relative to viewport height */
    overflow-y: auto; /* Allow vertical scrolling if content exceeds max-height */
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4em;
    color: #F8F8F8;
    margin-bottom: 25px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

p {
    font-size: 2em;
    line-height: 1.7;
    color: #E0E0E0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(to right, #d4af37, #f7dfa5, #d4af37);
    color: #5d4a1f;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #8c6b14;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button:hover {
    background: linear-gradient(to left, #d4af37, #f7dfa5, #d4af37);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    color: #3d342d;
}

/* --- Responsive Adjustments for style.css (Index Page) --- */

/* For screens smaller than 768px (Tablets and smaller) */
@media screen and (max-width: 768px) {
    .frame-wrapper {
        border: 10px solid transparent;
        outline: 3px solid #d4af37;
        box-shadow: 0 0 0 5px #f7dfa5, 0 0 0 8px #d4af37, 0 0 0 12px #8c6b14;
        padding: 10px;
    }

    .content {
        padding: 25px; /* Reduced content padding */
        max-width: 90%; /* Allow content to take more width */
        max-height: 85vh; /* Adjusted max-height for tablet */
    }

    h1 {
        font-size: 2.2em; /* Smaller font size for H1 */
        margin-bottom: 15px;
    }

    p {
        font-size: 1.1em; /* Smaller font size for paragraphs */
        margin-bottom: 20px;
    }

    .button {
        padding: 10px 25px; /* Smaller button padding */
        font-size: 0.9em; /* Smaller button font size */
    }
}

/* For screens smaller than 480px (Mobile Phones) */
@media screen and (max-width: 480px) {
    .frame-wrapper {
        border: 5px solid transparent;
        outline: 2px solid #d4af37;
        box-shadow: 0 0 0 3px #f7dfa5, 0 0 0 5px #d4af37, 0 0 0 7px #8c6b14;
        padding: 5px;
    }

    .content {
        padding: 15px; /* Further reduced content padding */
        max-width: 95%; /* Even more width on very small screens */
        max-height: 80vh; /* Adjusted max-height for mobile */
    }

    h1 {
        font-size: 1.6em; /* Even smaller font size for H1 */
        word-spacing: -1px;
    }

    p {
        font-size: 0.9em; /* Even smaller font size for paragraphs */
        line-height: 1.4;
    }

    .button {
        padding: 8px 20px; /* Further smaller button padding */
        font-size: 0.8em; /* Further smaller button font size */
        display: block; /* Ensure button becomes block level on very small screens */
        margin: 15px auto; /* Center block button with some vertical margin */
    }
}