html {
    height: 100%;
}

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* header {
    padding: 20px;
    background-color: #494949;
    color: white;
} */

.page-header {
    padding: 20px;
    background-color: #494949;
    color: white;
}

.article-header {
    color: #222;
    padding: 0;
    margin-bottom: 2rem;
}


.logo {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto 20px;
}

h1 {
    margin: 0;
}

main {
    flex: 1;
    padding: 50px;
}

main.hero {
    background-image: url("/assets/images/cybernesia-rendered-logo-website.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}




.hero p {
    color: white;
    text-shadow:
        0 0 4px rgba(0,0,0,0.8),
        0 0 8px rgba(0,0,0,0.6);
}



/* Notes navigation page */
.notes-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
}

.notes-intro {
    margin-bottom: 3rem;
}

.notes-intro h1 {
    color: #222;
    text-shadow: none;
    text-align: left;
}

.notes-intro p {
    color: #444;
    text-shadow: none;
    text-align: left;
    line-height: 1.8;
}

.notes-list {
    margin-top: 2rem;
}

.note-summary {
    border-top: 1px solid #ddd;
    padding: 1.5rem 0;
}

.note-summary h2 {
    margin-bottom: 0.3rem;
    text-align: left;
}

.note-summary h2 a {
    color: #ff7f50;
    text-decoration: none;
}

.note-summary h2 a:hover {
    text-decoration: underline;
}

.note-summary .subtitle {
    color: #666;
    font-style: italic;
    text-shadow: none;
    margin-bottom: 0.3rem;
}

.note-summary .date {
    color: #888;
    font-size: 0.9rem;
    text-shadow: none;
}





/* Individual articles pages */
article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

article h1 {
    text-align: left;
    color: #222;
    text-shadow: none;
}

article h2 {
    margin-top: 2em;
    color: #222;
}

article p {
    text-align: left;
    line-height: 1.8;
    color: #444;
}

article sup a {
    color: #ff7f50;
    text-decoration: none;
}

.subtitle {
    color: #666;
    font-style: italic;
}

.meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2em;
}

.footnotes {
    text-align: left;
}





.page-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.separator {
    /*position: relative;
    top: -0.05em;*/

    color: #ff7f50;
}

.button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    text-decoration: none;
    background-color: #ff7f50; /* was #007bff (blue) */
    color: white;
    font-weight: bold;
    border-radius: 5px;
}

.button:hover {
    background-color: #A52A2A; /* was #0056b3 */
}

.footer-bar {
    /* position: fixed; */
    /* bottom: 0; */
    width: 100%;
    background-color: #494949;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}



@media (max-width: 600px) {
    .logo {
        width: 100px;
        height: 100px;
    }

    main {
        padding: 20px;
    }
}

/* e.g. an iPhone in landscape orientation will probably match earlier too,
   but later rule wins */
@media (orientation: landscape) and (max-height: 600px) {

    header {
        padding: 10px;
    }

    .logo {
        width: 75px;
        height: 75px;
        margin-bottom: 10px;
    }

    h1 {
        font-size: 1.2em;
    }

    main {
        padding: 20px;
    }
}

