* {
    box-sizing: border-box;
    /* font-family: comic sans ms; */
}

/* Base page container */
.page {
    max-width: 1090px;
    margin: 0 auto;
}

/* Center the header */
.header {
    text-align: center;
}

.header h1 {
    margin: 20px;
    font-size: 65px;
}

/* Flex layout for sidebar and content */
.container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-bottom: 20px;
    /* margin: 20px; */
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        justify-content: center;
        /* Centers the content vertically */
        align-items: center;
        /* Centers the content horizontally */
    }

    .sidebar,
    .content {
        width: 350px;
        flex: none;
    }
    
    .sidebar img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
    }
}

mjx-container[jax="CHTML"][display="true"] {
    text-align: left !important;
    /* force left alignment */
    margin: 0;
    /* remove extra centering margin */
}

#lightbox {
    display: none;
    /* hidden by default */
    position: fixed;
    inset: 0;
    /* full screen */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    /* blur background */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}