#content {
    color: #ccc;

    display: grid;
    grid-template: 'sidePanel page blank' 1fr / 450px 6fr 3fr;
}

#page {
    grid-area: page;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 5px;
}
#pageHeader {
    margin: 5px;
    font-size: 3em;
    text-align: center;
    font-weight: bold;
}
#pageSubheader {
    font-size: 1.5em;
    text-align: center;
    font-weight: bold;
}
#pageContent {
    box-shadow: 0px 0px 10px #000;
    padding: 15px 15px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14pt;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 150%;
    z-index: 2;
    height: 100%;
}

#pageContent h1 {
    margin-block-start: 0;
    text-align: center;
}
#pageContent p {
    text-indent: 15px;
    margin: 0 0 5px 0;
}
#pageContent ul {
    margin-left: 25px;
}
#pageContent ul li {
    margin-bottom: 10px;
}
#pageContent hr {
    margin: 25px 0;
}

#sidePanel {
    grid-area: sidePanel;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
#successionMenu {
    margin-top: 5px;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 5px black;
    font-family: "Black-Chancery";
    font-size: 1em;
    user-select: none;
    background-color: #000;
    z-index: 10;
}
#successionMenu .menuItem:first-child {
    box-shadow: 2px 0 2px inset black, -2px 0 2px inset black;
}
#successionMenu .menuItem:nth-child(2) {
    box-shadow: 5px 0 5px inset black, -2px 0 2px inset black;
}
#successionMenu .menuItem:last-child {
    box-shadow: 2px 0 2px inset black, -5px 0 5px inset black;
}

#blogExpand {
    display: none;
}

#blogExp {
    width: 100%;
    height: 100%;
    max-height: calc(100% - 35px);
    background-color: #003;
    transition: height 0.25s;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    overflow: auto;
}
#blogExp h1 {
    margin-block-start: 5px;
    margin-block-end: 0;
}
#blogExp hr {
    width: 90%;
}

#bgRight {
    gap: 20px;
}

#blogImages {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    overflow: auto;
}
#blogImages>div {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.bg {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 0;
}

.blogPostLink {
    width: calc(100% - 20px);
    padding: 5px 0;
    text-align: center;
    font-size: 1.25em;
    user-select: none;
}
.blogPostLink:hover {
    background-color: #00c;
}

#behindPicture {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    backdrop-filter: blur(1rem);
    justify-content: center;
    align-items: center;
    z-index: 10;
}
#pictureExpand {
    max-height: 90vh;
    max-width: 90vw;
    height: fit-content;
    width: fit-content;
    display: flex;
    flex-direction: column;
    border: 2px solid #004;
    z-index: 10;
}
#pictureExpand img {
    max-height: calc(90vh - 36px);
    max-width: calc(90vw - 4px);
}
#pictureCloseBar {
    width: 100%;
    height: 32px;
    background-color: #007;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}
#pictureCloseButton {
    height: 32px;
    width: 32px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDBweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSI0MHB4IiBmaWxsPSIjZmZmIj48cGF0aCBkPSJtMjUxLjMzLTIwNC42Ny00Ni42Ni00Ni42Nkw0MzMuMzMtNDgwIDIwNC42Ny03MDguNjdsNDYuNjYtNDYuNjZMNDgwLTUyNi42N2wyMjguNjctMjI4LjY2IDQ2LjY2IDQ2LjY2TDUyNi42Ny00ODBsMjI4LjY2IDIyOC42Ny00Ni42NiA0Ni42Nkw0ODAtNDMzLjMzIDI1MS4zMy0yMDQuNjdaIi8+PC9zdmc+");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #007;
}
#pictureCloseButton:hover {
    background-color: #00c;
}

@media only screen and (orientation: portrait) {
    #content {
        position: relative;
        top: 30px;
        display: flex;
        overflow: hidden;
    }
    #successionMenuExpand {
        display: block;
        position: fixed;
        height: 28px;
        width: 90px;
        left: calc(100% - 130px);
        background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjRkZGIj48cGF0aCBkPSJNNTYwLTI0MCAzMjAtNDgwbDI0MC0yNDAgNTYgNTYtMTg0IDE4NCAxODQgMTg0LTU2IDU2WiIvPjwvc3ZnPg==");
        background-size: auto 30px;
        padding: 2px 5px 0 35px;
    }
    #successionMenu {
        position: fixed;
        top: 0;
        left: 100%;
        width: 0;
        max-width: 100%;
        margin: 0;
        overflow: hidden;
        transition: left 0.25s, width 0.25s;
    }
    #successionMenu .menuItem {
        width: 100%;
        text-align: center;
        padding: 5px 0 5px 5px;
        overflow: hidden;
    }
    #successionMenu .menuItem:hover {
        background-color: #004;
    }
    #successionMenu .menuItem:is(.selected) {
        background-color: #00c;
    }
    #successionMenuShrink {
        display: block;
        background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjRkZGIj48cGF0aCBkPSJNNTA0LTQ4MCAzMjAtNjY0bDU2LTU2IDI0MCAyNDAtMjQwIDI0MC01Ni01NiAxODQtMTg0WiIvPjwvc3ZnPg==');
        height: 24px;
        width: 24px !important;
        margin-right: 5px;
        background-size: cover;
        background-position-y: center;
        padding: 5px 15px !important;
    }

    .bg {
        display: none;
    }
    #page {
        background-color: rgba(0, 0, 0, 0.8);
        top: 30px;
        height: calc(100% - 60px);
        overflow: auto;
    }

    #sidePanel {
        display: block;
        position: fixed;
        height: 0;
        width: 100%;
        top: 30px;
        z-index: 5;
        transition: height 0.3s;
    }
    #blogExpand {
        display: block;
    }
    #blogExp {
        height: 0;
    }
}