/* Ensure the html element takes up full height */
html {
    height: 100%;
}

/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body as a flex container */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: url('../background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures body takes up full viewport height */
}

/* Fixed Navigation Bar */
nav {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

/* Header styling */
header {
    padding: 1rem;
    text-align: center;
    background-color: #333;
    /* Add a top margin to prevent the fixed nav from overlapping */
    margin-top: 60px; 
}

/* PDF Viewer styling */
.pdf-container {
    flex: 1; /* Grows to fill remaining space */
    width: 100%;
    min-height: 0; /* Allows the container to shrink within flex layout */
    overflow: auto; /* Enables scrolling if content overflows */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.pdf-container iframe {
    width: 100%;
    height: 100%; /* Takes full height of .pdf-container */
    border: none;
    display: block; /* Prevents inline spacing issues */
}

/* Footer styling */
footer {
    background-color: #333;
    padding: 1rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0;
    }
}
