/* Basic reset and font setup */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f8ff;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Main container for content, centered and shadowed */
.container {
    background-color: #ffffff;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100vh; /* Ensures the container can expand to at least the height of the viewport */
}

/* Header styling */
header {
    background-color: #b8a4ff;
    padding: 1rem;
    text-align: center;
    flex-shrink: 0; /* Prevents the header from shrinking */
}

/* Navigation styling */
nav {
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: #baacf7;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #87ceeb;
}

/* Main content area */
main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1; /* Allows main content to grow and fill available space */
}

/* Section styling */
section {
    padding: 20px;
}

/* Headings, lists, tables, buttons, videos, and images */
h1 {
    color: #370091;
    margin-bottom: 20px;
}

ul {
    list-style: square inside;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

button {
    background-color: #add8e6;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

button:hover {
    background-color: #87ceeb;
}

video, img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Hyperlink styling */
a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #555;
}

/* Footer styling */
footer {
    background-color: #b8a4ff;
    text-align: center;
    padding: 1rem;
    flex-shrink: 0; /* Prevents the footer from shrinking */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}
