*,
*::before,
*::after {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/startPage.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.content {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 20px 40px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#login-button {
    padding: 15px 30px;
    font-size: 1.2em;
    color: white;
    background-color: #3b82f6; /* A nice blue */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#login-button:hover {
    background-color: #2563eb;
}

/* Styles for dynamically loaded service pages */
.service-page {
    display: none; /* All pages are hidden by default */
}

.service-page.visible {
    display: block; /* The active page is made visible */
}

/* New styles for when a service is active */
body.service-active {
    background-color: #F1E9D2;
}

body.service-active .background-container {
    display: none;
}

/* --- Logout Button Hot Corner --- */

/* Container for the logout button, positioned in the bottom-left corner */
#viewer-controls {
    position: fixed; /* Use fixed to stay in place even if content scrolls */
    bottom: 0;
    left: 0;
    padding: 25px; /* Creates a larger, invisible hoverable "hot corner" */
    z-index: 100; /* Ensure it's on top of all other content */
}

/* Hide the user email text by default for a cleaner UI */
#viewer-controls p {
    display: none;
}

/* Style the logout button to be hidden by default with a transition */
#viewer-controls #logout-button {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Prevent clicking when hidden */
}

/* On hover of the container, reveal the button */
#viewer-controls:hover #logout-button {
    opacity: 1;
    pointer-events: auto; /* Make it clickable again */
}

/* --- Media Playback Controls --- */

/* Assumes your generated HTML will have a .media-container div */
.media-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000; /* Black background for videos */
}

/* Ensure video/audio elements fill their container */
.media-container video,
.media-container audio {
    width: 100%;
    height: 100%;
}

/* Pause overlay styles. Appears when the container has the 'paused' class. */
.media-container.paused::after {
    content: '▶'; /* Play symbol */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10vw; /* Responsive font size */
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    pointer-events: none; /* Don't intercept mouse events */
    z-index: 10;
}

/* Padding for specific content types generated by the backend */
.scripture-container,
.prayer-request-text {
    padding-top: 2rem;
    padding-left: 4rem;
}

/* Style for bolded prayer text */
.prayer-bold {
    font-weight: bold;
}

.words-of-christ {
    color: #a70202; /* Red color for distinction */
}