/* Page Organization Variables */
:root {
    --center-buffer-height: 0%;
    --header-image-height: 205px;

    --link-bar-font-size: 30px;
    --link-bar-margin-size: 5px;

    --news-header-height: 115px;
    --news-header-vertical-margin: 20px;
    --news-header-side-margin: 30px;
    --news-img-width: 25%;

    --news-area-padding: 30px;
    --news-text-padding: 30px;

    --arrow-height: 75px;
}

/* 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;
}

.newsheader {
    font-size: 18px;
    font-weight: bold;
    text-decoration: underline;
}

.newsimg {
    width: var(--news-img-width);
    height: 100%;

    color: #D4CCC4;
    background-color: #67635F;
}

.newsarrow {
    text-align: center;
    border: none;

    width: 25%;
    height: 100%;
}

/* 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;
}

#newsHeader {
    display: flex;
    flex-direction: row;
    align-items: center;

    width: calc(100% - 2*var(--news-header-side-margin));
    height: var(--news-header-height);

    margin-top: var(--news-header-vertical-margin);
    margin-bottom: var(--news-header-vertical-margin);
    margin-left: var(--news-header-side-margin);
    margin-right: var(--news-header-side-margin);

    border: 10px solid #0C0C0C;
}
#newsHeaderText {
    display: flex;
    justify-content: center;
    align-items: center;

    width: calc(100% - 2*var(--news-img-width));
    height: 100%;

    font-weight: bold;
    font-size: 75px;
}

#newsArea {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    width: 100%;
    height: calc(100% - var(--news-header-height) - 2*var(--news-header-vertical-margin));
    overflow-x: hidden;

    padding-left: var(--news-area-padding);
    padding-right: var(--news-area-padding);
}

#newsChunkHolder {
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    width: 100%;
    min-height: 50px;
    height: 90%;
    max-height: 90%;
}

#newsBorder {
    position: absolute;
    width: calc(100% - 2*var(--news-text-padding) + 8px);
    height: 100%;

    pointer-events: none;

    border: 4px solid #0C0C0C;
}

#newsText {
    width: 100%;
    height: 100%;

    padding-left: var(--news-text-padding);
    padding-right: var(--news-text-padding);

    overflow-y: auto;
}
#newsText::-webkit-scrollbar {
    width: 20px;
}
#newsText::-webkit-scrollbar-track {
    background: #0C0C0C;
    border-radius: 17px;
}
#newsText::-webkit-scrollbar-thumb {
    background: #D4CCC4;
    border-radius: 17px;
    border: 2px solid #0C0C0C;
}

#newsName {
    font-size: 35px;
    font-weight: bold;
    text-align: center;

    padding-bottom: 10px;
}

#arrowBar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    width: calc(100% - (var(--news-area-padding) + var(--news-text-padding)));
    min-height: var(--arrow-height);
    max-height: var(--arrow-height);
}

/* 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;
  }
}