/* Save Ningaloo - Modern CSS Layout */
/* Replicates the original frames layout */

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

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    background-image: url('../images/backg8.gif');
    color: #000000;
    min-height: 100vh;
}

/* Header Section - Replicates the top frame (86px height) */
.site-header {
    background-color: #0033CC;
    height: 104px;
    width: 100%;
    border: none;
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
}

.logo-section {
    width: 133px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-section img {
    width: 136px;
    height: 84px;
    border: 0;
}

.title-section {
    flex: 1;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-section img {
    width: 347px;
    height: 97px;
    border: 0;
}

.header-spacer {
    width: 70px;
    height: 92px;
}

/* Main Container - Replicates the frameset structure */
.main-container {
    display: flex;
    min-height: calc(100vh - 104px);
}

/* Left Navigation - Replicates the left frame (143px width) */
.left-nav {
    width: 143px;
    background-color: #0033CC;
    padding: 20px 5px;
    flex-shrink: 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    color: #fffff0;
    text-decoration: none;
    font-size: 11px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    display: block;
    padding: 2px 0;
}

.nav-menu a:hover {
    color: #ffff66;
    text-decoration: underline;
}

.nav-menu a strong {
    font-weight: bold;
}

.site-managed-by {
    margin-top: 30px;
    text-align: center;
}

.site-managed-by p {
    color: #ffffff;
    font-size: 10px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    margin-bottom: 10px;
}

.site-managed-by img {
    width: 80px;
    height: 115px;
    border: 0;
}

.site-dedication {
    margin-top: 20px;
    text-align: center;
    padding: 0 5px;
}

.site-dedication p {
    color: #ffffff;
    font-size: 11px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    margin-bottom: 10px;
}

.site-dedication .last-updated {
    font-size: 10px;
}

/* Main Content Area - Replicates the main frame */
.main-content {
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
    background-image: url('../images/backg8.gif');
    overflow-y: auto;
}

/* Content styling to match original */
.main-content table {
    border-collapse: collapse;
}

.main-content a {
    color: #000080;
    text-decoration: underline;
}

.main-content a:hover {
    color: #000033;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-nav {
        width: 100%;
        padding: 10px;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-menu li {
        margin-bottom: 0;
    }
    
    .site-managed-by,
    .site-dedication {
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    
    .logo-section,
    .title-section,
    .header-spacer {
        width: 100%;
        height: auto;
    }
    
    .site-header {
        height: auto;
    }
}

/* Preserve original table styling from main.html */
.main-content > div > table {
    margin: 0 auto;
}

/* Form styling to match original */
form {
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* Font styling preservation */
font[face="Verdana, Arial, Helvetica, sans-serif"] {
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* Color preservation */
.main-content font[color="#000099"] {
    color: #000099;
}

.main-content font[color="#FF0000"] {
    color: #FF0000;
}

.main-content font[color="#FF00FF"] {
    color: #FF00FF;
}