body {
    background-color: rgb(225, 214, 199);
    padding-bottom: 10vh;
    font-family: 'Arial', sans-serif;
}

/* Utility class for consistent side margins */
.side-margins {
    margin-left: 10%;
    margin-right: 10%;
}

/* Home button styling */
.home-button {
    background-color: rgb(225, 214, 199);
    color: rgb(52, 52, 48);
    font-weight: 300;
    font-size: 24px;
    border: none;
    height: 36px;
    width: 105px;
    border-radius: 2px;
    cursor: pointer;
    margin-left: 48%;
    transform: translateX(-50%);
    transition: opacity 0.3s, transform 0.3s;
}
a.home-button {
    text-decoration: none;
    color: rgb(52, 52, 48);
    background-color: rgb(225, 214, 199);
}
.home-button:hover {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.2);
}
.home-button:active {
    opacity: 0.5;
}

/* Blog title */
.blog-title {
    font-weight: 100;
    font-size: 18px;
    color: rgb(135, 82, 30);
    /* Add side-margins class in HTML for margin */
}

/* Date */
.date {
    font-weight: 100;
    font-size: 18px;
    color: rgb(38, 96, 156);
    text-align: right;
    /* Add side-margins class in HTML for margin */
}

/* Body text */
.body-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: rgb(52, 52, 48);
    line-height: 1.2;
    text-align: justify;
    /* Add side-margins class in HTML for margin */
}

/* Prelude */
.prelude {
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
    color: rgb(135, 82, 30);
    text-align: justify;
    /* Add side-margins class in HTML for margin */
}

/* Navigation buttons */
.nav-button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(52, 52, 48);
    font-size: 2.5rem;
    cursor: pointer;
    text-decoration: none;
}
.nav-left {
    left: 2vw;
}
.nav-right {
    right: 2vw;
}
.nav-button:hover {
    transform: translateY(-50%) scale(1.2);
}

/* --- Mobile Optimisation --- */
@media (max-width: 700px) {
    .side-margins {
        margin-left: 10vw;
        margin-right: 10vw;
    }
    .home-button {
        margin-left: 0;
        transform: none;
        width: 100%;
        font-size: 2rem; 
        height: 60px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 0;
    }
    .home-button > * {
        vertical-align: middle;
    }
    .blog-title,
    .date {
        font-size: 1rem;
        text-align: left;
        margin: 0;
        line-height: 1.2;
        margin-bottom: 10px; /* Add space below title and date */
    }
    .prelude,
    .body-text {
        font-size: 0.75rem;
        line-height: 1.7;
    }
    .nav-button {
        font-size: 2rem;
        position: fixed;
        top: 50%;
        bottom: auto;
        left: 5px;
        right: 5px;
        transform: translateY(-50%);
        padding: 0 18px;
    }
    .nav-left {
        left: 0px;
        right: auto;
    }
    .nav-right {
        right: 0px;
        left: auto;
    }
    a.home-button,
    a.home-button:visited,
    a.home-button:active,
    a.home-button:focus {
        text-decoration: none;
    }
}