/* Page Organization Variables */
:root {
    --center-buffer-height: 0%;
    --header-image-height: 205px;

    --link-bar-font-size: 30px;
    --link-bar-margin-size: 5px;

    --archive-body-side-padding: 10px;

    --archive-title-font-size: 45px;
    --archive-title-margin-size: 30px;

    --post-bar-height: 85px;
    --post-bar-right-padding: 10px;
}

/* Font Setting */
@font-face {
    font-family: 'EB Garamond';
    src: url('../Fonts/EBGaramond/static/EBGaramond-Regular.ttf');
}

@font-face {
    font-family: 'EB Garamond';
    src: url('../Fonts/EBGaramond/static/EBGaramond-Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('../Fonts/EBGaramond/static/EBGaramond-Italic.ttf');
    font-style: italic;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('../Fonts/EBGaramond/static/EBGaramond-BoldItalic.ttf');
    font-style: italic;
    font-weight: bold;
}

/* Class Definitions */
.offwhitebackground {
    background-color: #D4CCC4;
}

.offwhitecolor {
    color: #D4CCC4;
}

.offblackcolor {
    color: #0C0C0C;
}

.postBar {
    display: flex;
    flex-direction: row;

    width: 100%;
    min-height: var(--post-bar-height);
    height: var(--post-bar-height);

    color: inherit;
    text-decoration: inherit;

    padding-right: var(--post-bar-right-padding);

    margin-bottom: 15px;
}
.postIcon {
    width: var(--post-bar-height);
    height: 100%;

    border: 6px solid #0C0C0C;
}
.postName {
    width: calc(100% - var(--post-bar-height));
    height: 100%;

    border-right: 5px solid #0C0C0C;
    border-top: 5px solid #0C0C0C;
    border-bottom: 5px solid #0C0C0C;
}

/* Element Definitions */
html {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'EB Garamond', sans-serif;
    background-color: #4E126B;
    color: white;
    margin: 0;
    width: 100%;
    height: 100%;
}

* {
    box-sizing: border-box;
}

/* Div containing all elements in the page */
#pageBox {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Leftside Image Section */
#leftSide {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    height: 100%;
    overflow: hidden;
}
#leftSide>img {
    display: block;
    position: fixed;
    object-fit: cover;
    height: 100%;
}

/* Center Area */
#centerContainer {
    display: flex;
    flex-direction: column;
    width: 550px;
    max-width: 550px;
    height: 100%;
    max-height: 100%;
    min-height: 100%;
    margin: 0 0;
}
#centerContainer a {
    font-weight: bold;
}

/* Header Area */
#centerBuffer {
    width: 100%;
    height: var(--center-buffer-height);
    min-height: var(--center-buffer-height);
}

#headerArea {
    width: 100%;
    height: var(--header-image-height);
    min-height: var(--header-image-height);
}
#header {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: calc(var(--header-image-height) / 15) solid #0C0C0C;
}
#header>img {
    display: block;
    object-fit: fill;
    width: 100%;
    height: 100%;
}

/* Body Area */
#centerBody {
    height: calc(100% - var(--center-buffer-height) - var(--header-image-height));
    display: flex;
    flex-direction: column;
}

#linkBar {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    max-height: var(--link-bar-font-size);
    min-height: var(--link-bar-font-size);
    margin-top: var(--link-bar-margin-size);
}
#linkBar div {
    display: flex;
    justify-content: center;
}
#linkBar a {
    color: #0C0C0C;
    font-size: calc(var(--link-bar-font-size) - 5px);
    text-decoration: none;
}

#archiveBody {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: calc(100% - var(--link-bar-font-size) - var(--link-bar-margin-size));

    padding-left: var(--archive-body-side-padding);
    padding-right: var(--archive-body-side-padding);
}
#archiveTitle {
    width: 100%;
    min-height: var(--archive-title-margin-size);
    height: var(--archive-title-font-size);

    font-size: var(--archive-title-font-size);
    font-weight: bold;

    padding-left: 20px;

    margin-top: var(--archive-title-margin-size);
    margin-bottom: var(--archive-title-margin-size);
}
#archiveContainer {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-height: var(--post-bar-height);
    height: calc(100% - var(--archive-title-font-size) - 2*var(--archive-title-margin-size));

    overflow-y: auto;
}
#archiveContainer::-webkit-scrollbar {
    width: 12px;
}
#archiveContainer::-webkit-scrollbar-track {
    background: #0C0C0C;
    border-radius: 25px;
}
#archiveContainer::-webkit-scrollbar-thumb {
    background: #D4CCC4;
    border-radius: 25px;
    border: 2px solid #0C0C0C;
}

/* Rightside Image Section */
#rightSide {
    display: flex;
    justify-content: flex-start;
    margin: 0;
    height: 100%;
    overflow: hidden;
}
#rightSide>img {
    display: block;
    position: fixed;
    object-fit: cover;
    height: 100%;
}

/* Media Query */
@media only screen and (max-width: 600px) {
    #flex {
        flex-wrap: wrap;
    }

    aside {
        width: 100%;
    }

    main {
        order: 1;
    }

    #leftSidebar {
        order: 2;
    }

    #rightSidebar {
        order: 3;
    }

    #navbar ul {
        flex-wrap: wrap;
    }
}

@supports not selector(::-webkit-scrollbar) {
  body {
      scrollbar-color: #D4CCC4 #0C0C0C;
  }
}