/* about.css */

body {
    /* The background-image property is removed to avoid conflicts with the video */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #2c3e50; /* Fallback background color if video fails to load */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Keep hidden to maintain fixed background without body scroll */
    box-sizing: border-box;
}

/* 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 {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-image: none !important;
    background-color: transparent !important;

    position: absolute; /* Keep absolute positioning */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 5%; /* Keep initial padding for larger screens */
    padding-right: 0;
    overflow: hidden; /* Keep hidden to contain the wrapper */
    box-sizing: border-box;
}

.content {
    background-color: rgba(10, 25, 45, 0.75);
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 40%; /* Initial max-width for larger screens */
    width: 90%; /* Ensure content adapts to width */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    text-align: left;
    margin: 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
    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: 3em;
    color: #F8F8F8;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #E0E0E0;
    margin-bottom: 20px;
    max-width: 100%;
}

.button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 30px;
}

.button-group .button {
    /* --- REDUCED BUTTON SIZE FOR LARGER SCREENS --- */
    padding: 12px 30px; /* Reduced padding */
    font-size: 1em; /* Reduced font size */
    /* --- END REDUCED BUTTON SIZE --- */
    display: inline-block;
    background: linear-gradient(to right, #d4af37, #f7dfa5, #d4af37);
    color: #5d4a1f;
    text-decoration: none;
    border-radius: 8px;
    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-group .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 about.css --- */

/* For screens smaller than 768px (Tablets and smaller) */
@media screen and (max-width: 768px) {
    .frame-wrapper {
        justify-content: center;
        padding-left: 0;
        padding: 20px;
    }

    .content {
        max-width: 80%;
        padding: 20px 25px;
        text-align: center;
        margin: auto;
        max-height: 85vh;
    }

    h1 {
        font-size: 2em;
    }

    p {
        font-size: 0.95em;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .button-group .button {
        /* --- FURTHER REDUCED BUTTON SIZE FOR TABLETS --- */
        width: 80%;
        max-width: 180px; /* Slightly reduced max-width */
        font-size: 0.85em; /* Smaller font size */
        padding: 8px 18px; /* Smaller padding */
        /* --- END FURTHER REDUCED BUTTON SIZE --- */
    }
}

/* For screens smaller than 480px (Mobile Phones) */
@media screen and (max-width: 480px) {
    .frame-wrapper {
        padding: 15px;
    }

    .content {
        padding: 15px 20px;
        max-width: 95%;
        max-height: 80vh;
    }

    h1 {
        font-size: 1.6em;
    }

    p {
        font-size: 0.85em;
        line-height: 1.4;
    }

    .button-group {
        gap: 8px;
        margin-top: 15px;
    }

    .button-group .button {
        /* --- EVEN SMALLER BUTTON SIZE FOR MOBILE PHONES --- */
        width: 90%;
        font-size: 0.75em; /* Even smaller font size */
        padding: 6px 12px; /* Even smaller padding */
        /* --- END EVEN SMALLER BUTTON SIZE --- */
    }
}