/* Page Organization Variables */
:root {
    --center-buffer-height: 0%;
    --header-image-height: 205px;

    --link-bar-font-size: 30px;
    --link-bar-margin-size: 5px;

    --question-area-top-padding: 30px;
    --question-area-side-padding: 50px;

    --submission-font-size: 20px;
    --submission-box-height: 150px;
    --submission-side-padding: 15px;
    --submission-border-size: 4px;

    --send-button-size: 50px;

    --answer-bar-margin: 30px;
    --answer-bar-height: 175px;

    --answer-sticker-width: 160px;
    --answer-sticker-extra-height: 0px;
    --answer-text-gap-size: 20px;
    --answer-text-border-radius: 25px;
    --answer-text-border-size: 4px;
}

/* 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;
}

.answerBar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    height: var(--answer-bar-height);

    margin-bottom: var(--answer-bar-margin);
}
.leftSticker {
    flex-direction: row;
}
.rightSticker {
    flex-direction: row-reverse;
}
.answerSticker {
    display: flex;
    justify-content: center;
    align-items: center;

    width: var(--answer-sticker-width);
    height: calc(100% + var(--answer-sticker-extra-height));

    background-color: #0C0C0C;
    color:#D4CCC4;
}
.answerText {
    display: flex;
    flex-direction: column;

    width: calc(100% - var(--answer-sticker-width) - var(--answer-text-gap-size));
    height: var(--answer-bar-height);

    overflow-y: auto;

    border-radius: var(--answer-text-border-radius);
    border: var(--answer-text-border-size) solid #0C0C0C;
}
.answerQuestion {
    width: 100%;
}
.answerResponse {
    width: 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;
    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 {
    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;
}

#questionArea {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    width: 100%;

    overflow-x: hidden;

    padding-top: var(--question-area-top-padding);
    padding-left: var(--question-area-side-padding);
    padding-right: var(--question-area-side-padding);
}

#submissionBox {
    position: relative;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    width: calc(100% - 20px);
    height: var(--submission-box-height);

    padding-left: var(--submission-side-padding);
    padding-right: var(--submission-side-padding);

    margin-bottom: var(--answer-bar-margin);

    color: inherit;
    font-size: 30px;

    border-radius: 25px;
    border: var(--submission-border-size) solid #0C0C0C;
}
#submissionText {
    width: 100%;
    height: 100%;

    font-size: var(--submission-font-size);

    resize: none;
    overflow-y: auto;

    border: none;
    outline: none;
}

#sendButton {
    position: absolute;
    z-index: 1;

    right: 0px;
    bottom: 0px;

    width: var(--send-button-size);
    height: var(--send-button-size);
    background-image: url('../Images/FAQ/Send\ Button.png');
    background-size:contain;
}
#sendButton:hover {
    background-image: url('../Images/FAQ/SendButtonHover.gif');
}

#barsHolder {
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100%;
}

/* 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;
    }
}