﻿html {
    scroll-behavior: smooth;
}

#content-area {
    display: flex;
    margin-top: 150px; /* same as header height */
}

#wrapper {
    display: flex;
    flex-direction: column;
}

#nav {
    width: 10%;
    min-width: 120px;
    height: 100vh; /* Full viewport height */
    border-right: 1px solid #ccc;
    padding: 20px;
    box-sizing: border-box;
}

#maincontent {
    flex: 1;
    padding: 20px;
    margin-bottom: 5vh; /* Matches footer height */
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    background-color: cornflowerblue;
    border-bottom: 1px solid blue;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
}

    #header img {
        height: 100%;
        margin-right: 20px;
    }

.site-title {
    font-size: 28px;
    color: white;
    font-weight: bold;
    line-height: 1;
}

.site-title h1 {
    font-size: 28px;
    color: white;
    font-weight: bold;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5vh;
    border-top: 1px solid #ccc;
    background-color: #f9f9f9;
    text-align: center;
    padding: 10px 20px;
    box-sizing: border-box;
    z-index: 999;
}

@media (max-width: 600px) {
    #header img {
        height: 100px;
    }

    .site-title {
        font-size: 22px;
    }

    #content-area {
        margin-top: 100px;
    }

    #content-area {
        flex-direction: column;
    }

    #nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }
}

