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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
}

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
}

/* Navbar */
.navbar {
    background-color: #34495e;
}

.navbar .navbar-nav .nav-link {
    color: white;
    padding: 10px 15px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover {
    background-color: #1abc9c;
    color: white;
}

.navbar-toggler {
    border-color: white;
}

.navbar-toggler-icon {
    background-color: white;
    border-radius: 5px;
}

/* Main Content */
main {
    padding: 20px;
    margin-bottom: 80px; /* Ensures spacing before the fixed footer */
}

section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #2c3e50;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 5px;
}

section p, section ul {
    font-size: 1.1em;
    margin-top: 10px;
}

/* Styling for Embedded Viewer (iframe) */
iframe {
    border: 2px solid #34495e;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin: 20px auto;
    display: block; /* Centers the iframe */
    background-color: white; /* Adds a clean background */
}

/* Spinner Styles */
.spinner {
    display: none; /* Initially hidden */
    justify-content: center;
    margin: 20px auto;
}

.spinner div {
    width: 18px;
    height: 18px;
    margin: 2px;
    background-color: #1abc9c;
    border-radius: 100%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner div:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner div:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Navigation Buttons for Content Viewer */
.nav-buttons {
    margin-top: 20px;
    text-align: center;
}

.nav-buttons button {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
    background-color: #1abc9c;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 10px;
}

.nav-buttons button:hover {
    background-color: #16a085;
}

.nav-buttons button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }

    section h2 {
        font-size: 1.5em;
    }

    iframe {
        height: 300px; /* Smaller iframe height for mobile */
    }

    .spinner div {
        width: 12px;
        height: 12px;
    }

    .nav-buttons button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
