:root {
	--brewbrain_color_red: #fe0000;
	--brewbrain_color_green: #54bc07;
	--brewbrain_color_blue: #0ebcfb;
	--brewbrain_color_yellow: #efb500;
	--brewbrain_color_lightest_grey: #f9f9f9;
	--brewbrain_color_lighter_grey: #f2f1f0;
	--brewbrain_color_light_grey: #bfbdc1;
	--brewbrain_color_medium_grey: #6d6a75;
	--brewbrain_color_dark_grey: #37323e;
	--default_font_size: 0.85em;
	--monospace_font: Consolas, monospace;
	
    --left_panel_width: 100px;
    --navigation_user_settings_icon_size: 50px;
    --navigation_icon_size: 70px;
    
    --brewbrain_color_orange: #edb400;
    --black: black;
    
    --brewbrain_color_code_background: #efefef;
    --brewbrain_color_box_shadow: #999;
    --brewbrain_color_message_link: #111;
    --brewbrain_color_table_background: #f5f5f5;
    --brewbrain_color_table_row_hover: #eee;
    --brwebrain_color_form_hint_text: #333;
    --brwebrain_color_form_input_border: #333;
    
    --brewbrain_color_navigation_tooltip: #edb400;
    
    --kordaat-yellow-filter: invert(67%) sepia(99%) saturate(566%) hue-rotate(1deg) brightness(104%) contrast(99%);
    
    --kordaat_border_radius: 0.3rem;
    --login_overlay_border_radius: 5px;
    --page_divisor_border_color: #ccc;
    
    --container-horizontal-padding: 8rem;
}
@media all and (max-width: 1300px) {
    :root {
        --left_panel_width: 80px;
        --navigation_user_settings_icon_size: 35px;
        --navigation_icon_size: 50px;
        --container-horizontal-padding: 1rem;
    }
}

@media all and (max-width: 7700px) {
    body {
    }
}
@media all and (max-width: 1300px) {
    html {
        /* font-size: 62.5%; */
    }
    body {
        font-size: 0.9rem;
    }
}

code {
	font-family: var(--monospace_font);
	font-size: 85%;
    white-space: pre;
    color: var(--brewbrain_color_yellow);
    border-left: .5em solid var(--brewbrain_color_blue);
    line-height: 1.6;
    padding: .2em;
    padding-left: .4em;
    margin-left: .2em;
    display: block;
    background-color: var(--brewbrain_color_code_background);
}
code.Inline {
	display: inline;
	border: none;
	padding: 0;
    background-color: transparent;
}

.Hand {
    cursor: pointer;
    cursor: hand;
}
.Link {
    cursor: pointer;
    cursor: hand;
    color: var(--black);
    text-decoration: underline;
}
.Hidden, .HiddenForDesktop {
    display: none;
}

.Brown {
    color: rgb(095, 051, 000);
}
.Yellow, .Yellow * {
    color: var(--brewbrain_color_yellow);
}
.White {
    color: rgb(255, 255, 255);
}
.Blue {
    color: var(--brewbrain_color_blue);
}
.Red {
    color: var(--brewbrain_color_red);
}
.Green {
    color: var(--brewbrain_color_green);
}

.Light {
    color: rgb(114, 061, 000);
}

.ErrorColor {
    color: var(--brewbrain_color_red);
}
.WarningColor {
    color: var(--brewbrain_color_orange);
}
.Shadowed {
    box-shadow: 1px 1px 6px var(--brewbrain_color_box_shadow);
}

.ObfThatStuff {
    unicode-bidi: bidi-override;
    direction: rtl;
}

a {
    text-decoration: underline;
    color: var(--black);
}
a.IconLink, .NoUnderline {
    text-decoration: none;
}
a i.fas, a i.far {
    text-decoration: none;
}

.BottomBorder > b {
    border-bottom: 0.2rem solid var(--brewbrain_color_yellow);
    padding-bottom: 1rem;
}

div.Error {
    color: var(--brewbrain_color_red);
}
div.Error * {
    color: var(--brewbrain_color_red);
}
div.Success i {
    color: var(--brewbrain_color_green);
}
div.Info i {
}
div.FeedbackMessage {
    display: table-cell;
    vertical-align: middle;
    padding-left: 0.7rem;
}
div.FeedbackIcon {
    display: table-cell;
    vertical-align: middle;
}
div.FeedbackIcon i {
    vertical-align: middle;
    margin-right: 15px;
    margin-left: 10px;
}

div#flexcontainer {
  display: flex;
  align-items: stretch;
}

div#user_avatar_homepage {
    position: fixed;
    margin: 0;
    margin-left: calc((var(--left_panel_width) - calc(var(--left_panel_width) - 14px)) / 2);
    width: calc(var(--left_panel_width) - 14px);
    height: calc(var(--left_panel_width) - 14px);
    padding-top: 1rem;
    z-index: 2;
}
div#user_avatar_homepage div.UserAvatar {
    margin: 0 auto;
}

div#header {
    flex: 0 0 var(--left_panel_width);
    padding-top: var(--left_panel_width);
    z-index: 1;
}
#container {
    flex: 1;
    padding: var(--container-horizontal-padding);
}

#container > h1:first-of-type {
    font-weight: bold;
    border-bottom: 0.2rem solid var(--brewbrain_color_yellow);
    padding-bottom: 1rem;
    width: min-content;
    font-family: 'montserrat-extrabold';
    white-space: nowrap;
}

div#fixed_header_border {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--left_panel_width);
    border-right: 1px solid var(--page_divisor_border_color);
    z-index: -1;
}

div#footer {
    width: 100%;
    padding: 0.5em 0.5em;
    padding-bottom: 0.5em !important;
    background-color: inherit;
    text-align: right;
    font-size: 80%;
    position: absolute;
    bottom: 0;
}

div#mobile_button_navigation {
    display: none;
}

div#navigation {
    padding: 1rem 0;
    position: fixed;
    width: var(--left_panel_width);
}

div#navigation ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

div#navigation ul li {
    text-align: center;
    width: 100%;
    padding: 0;
    position: relative;
}

div#navigation ul li div.Tooltip {
    display: none;
    position: absolute;
    left: 100%;
    margin-left: 2em;
    padding-left: 0.5em;
    padding-right: 0.8em;
    top: 50%;
    margin-top: -20px;
    background-color: var(--brewbrain_color_navigation_tooltip);
    height: 40px;
    align-items: center;
    box-shadow: 1px 1px 6px var(--brewbrain_color_box_shadow);
    border-radius: 2px;
    font-size: 90%;
    color: white;
    white-space: nowrap;
}
div#navigation ul div.Tooltip::after {
    content: " ";
    position: absolute;
    left: -20px;
    top: 50%;
    margin-top: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent var(--brewbrain_color_navigation_tooltip) transparent transparent;
}
div#navigation ul li:hover div.Tooltip {
    display: flex;
}

div#navigation ul li a {
    display: block;
    line-height: 1;
    padding: 0;
}
div#navigation ul li a:hover {
    text-decoration: none;
}

div#navigation ul li.Active {
    background-color: var(--black);
    position: relative;
    padding: 0;
}
div#navigation ul li div.InfoIcon {
    position: absolute;
    right: 22px;
    top: 2px;
}
div#navigation ul li div.InfoIcon i {
    color: var(--brewbrain_color_red);
}
div#navigation ul li.Active div.InfoIcon i {
    color: var(--brewbrain_color_lightest_grey);
}
div#navigation ul li.SeparatedNavigationElement img {
    border-top: 1px solid var(--page_divisor_border_color);
    padding-top: 0.2rem;
    margin-top: 0.2rem;
}
div#navigation ul li.SeparatedNavigationElement.Active img {
    border-top: none;
    padding-top: initial;
    margin-top: initial;
}
div#navigation ul li a img {
    height: var(--navigation_icon_size);
}
div#navigation ul li.Active a img {
    filter: var(--kordaat-yellow-filter);
}
div#navigation ul li.Active::after {
    content: " ";
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--black);
}

div#navigation li#user_settings {
    position: fixed;
    background-color: var(--black);
    color: white;
    width: var(--left_panel_width);
    height: var(--left_panel_width);
    left: 0;
    bottom: 0;
    z-index: 100;
    text-align: center;
    display: table;
}
div#navigation li#user_settings img {
    filter: brightness(0) invert(1);
}
div#navigation li#user_settings a, div#navigation li#user_settings > span.Link {
    width: 100%;
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    color: var(--brewbrain_color_yellow);
}
div#navigation li#user_settings > span.Link {
    font-size: 2em;
}
div#navigation li#user_settings img {
    width: var(--navigation_user_settings_icon_size);
    height: var(--navigation_user_settings_icon_size);
}
div#navigation li#user_settings.Active img {
    filter: var(--kordaat-yellow-filter);
}


dl dt {
    font-weight: bold;
}
dl dd {
    margin-left: 1rem;
}

/* Medium screens */
@media all and (max-width: 770px) {
    .HideForMobile {
        display: none;
    }
    .HiddenForDesktop {
        display: reset;
    }
    .BottomBorder > b {
        padding-bottom: 0.5rem;
    }

    h2.NoUserAvatar {
        margin-top: 2em;
    }
    div#loginFormContainer {
        height: 19rem;
    }
    div#signUpFormContainer {
        height: 24em;
    }
    div#loginOrSignUpButtons {
        font-size: 90%;
    }
    div#loginOrSignUpButtons div {
        height: 40px;
        line-height: 40px;
    }
    form#loginForm a {
        font-size: 80%;
    }
    
    /*p {
        font-size: 0.9em;
    }
    div {
        font-size: 0.9em;
    }*/
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    
    div#flexcontainer {
        display: block;
    }
    
    div#loginOrSignUpContainer {
        width: 80%;
        margin-top: 8rem;
        height: auto;
    }
    
    div#fixed_header_border {
        display: none;
    }
    
    div#header {
        display: none;
        width: 100%;
        z-index: 100;
        background-color: white;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        overflow-x: hidden;
        overflow-y: scroll;
        padding-top: 0;
        z-index: 1001;
    }
    
    div#user_avatar_homepage {
        position: relative;
        display: block;
        padding-top: 1.3rem;
        margin-left: var(--container-horizontal-padding);
    }
    
    div#navigation {
        padding: 0;
        display: block;
        position: relative;
        width: 100%;
    }
    div#navigation nav ul {
        overflow: scroll;
    }
    div#navigation nav ul li {
        display: table;
        float: left;
        width: 25vw;
        height: 50vh;
        padding: 0;
        border-bottom: 1px solid var(--black);
        border-right: 1px solid var(--black);
    }
    
    div#navigation nav ul li:nth-child(4n) {
        border-right: none;
    }
    
    div#navigation nav ul li:hover div.Tooltip {
        display: none;
    }
    div#navigation nav ul li a {
        display: table-cell;
        line-height: 25vw;
        height: 100%;
        padding: 0;
    }
    div#navigation nav ul li a img {
        width: 60%;
        height: inherit;
        vertical-align: middle;
    }
    div#navigation nav ul li.Active {
        padding: 0;
    }
    div#navigation ul li.SeparatedNavigationElement img {
        border-top: none;
        padding-top: initial;
        margin-top: initial;
    }
    div#navigation nav ul li.Active a {
        background-color: var(--black);
        color: var(--brewbrain_color_yellow);
    }
    div#navigation nav ul li.Active::after {
        display: none;
    }

    div#navigation ul li div.InfoIcon {
        position: absolute;
        right: 52px;
        top: 46px;
        font-size: 190%;
    }
    
    div#navigation li#user_settings {
        position: inherit;
        width: 25vw;
        background-color: inherit;
        color: var(--black);
    }
    div#navigation li#user_settings img {
        filter: contrast(0%) brightness(0%);
        width: 9vw;
        height: 9vw;
    }
    
    div#container {
        width: 100%;
        flex: auto;
        display: block;
        clear: both;
        padding: var(--container-horizontal-padding);
        padding-top: 0;
        padding-bottom: 2.8em !important;
        margin-bottom: 4.5rem !important; /* add space for the mobile navigation button */
    }
    
    div#mobile_button_navigation {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 35px;
        width: 75px;
        height: 75px;
        font-size: 45px;
        background-color: var(--black);
        color: white;
        z-index: 1002;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    div#footer {
        text-align: center;
    }
}
@media all and (max-width: 450px) {
    div#navigation nav ul li {
        display: table;
        float: left;
        width: 50vw;
        height: 50vw;
        padding: 0;
        border-right: none;
    }
    div#navigation nav ul li:nth-child(odd) {
        border-right: 1px solid var(--black);
    }
    div#navigation nav ul li a {
        display: table-cell;
        line-height: 50vw;
        height: 100%;
        padding: 0;
    }
    div#navigation li#user_settings {
        width: 50vw;
    }
    div#navigation li#user_settings img {
        width: 18vw;
        height: 18vw;
    }
}

a#headerLink {
    float: left;
    text-decoration: none;
    color: rgb(095, 051, 000);
}

div#linksBelowHeader {
    max-width: 1090px;
    margin: 0.5em auto;
    padding-left: 0.5em;
}

.Button {
    background-color: #eaeaea;
    border-radius: var(--kordaat_border_radius);
    display: inline;
    padding: 0 0.6em;
    text-align: center;
    transition: 0.1s;
    transition-timing-function: ease-in-out;
    text-decoration: none;
}
div.Button {
    cursor: default;
}
div.Button a {
    text-decoration: none;
    color: var(--black);
}

.Button.WhiteBackground {
    color: var(--black);
    border: 1px solid var(--black);
    background-color: white;
}
span.Button {
    cursor: default;
}

.BlackText {
    color: var(--black);
}
.Black, div.Black, a.Black {
    background-color: var(--black);
    color: white;
}
.Button.Black a {
    color: white;
}

.Button.Red {
    background-color: var(--brewbrain_color_red);
    color: white;
}
.Button.Red a {
    color: white;
}

.BlogPosts {
    height: var(--brew-container-height);
    margin-bottom: var(--brew-container-margin-bottom);
}
.BlogPost {
    display: flex;
    align-items: top;
    padding: 1rem 1rem 1rem 0;
}
.BlogPosts .BlogPost:first-child {
    border-bottom: 1px solid var(--page_divisor_border_color);
    padding-top: 0;
}
.BlogPostImage {
}
.BlogPostImage img {
    width: 6.5rem;
    border-radius: 0.4rem;
    max-width: initial;
}
.BlogPostContext {
    margin-left: 1em;
}
.BlogPostContext .BlogDate {
    font-size: 80%;
    font-family: montserrat-light;
    margin-bottom: 0;
}
.BlogPostContext .BlogTitle {
}
.BlogPostContext .BlogTitle a {
    text-decoration: none;
}

button.NavigationButton {
    font-size: var(--default_font_size);
    border: 0.1em solid var(--brewbrain_color_light_grey);
    color: var(--brewbrain_color_medium_grey);
    padding: 0.4em 0.6em;
    background-color: var(--brewbrain_color_lighter_grey);
}
button.NavigationButton.Active {
    border: 0.1em solid var(--brewbrain_color_yellow);
    color: var(--brewbrain_color_dark_grey);
}

button.PremiumMembers {
    background-color: var(--brewbrain_color_yellow);
    color: var(--brewbrain_color_lightest_grey);
    border-color: var(--brewbrain_color_dark_grey);
}

div.UserAvatar {
    width: 50px;
    height: 50px;
}
div.UserAvatar div.UserLetter {
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
    border-radius: 50%;
    border: 2px solid var(--brewbrain_color_dark_grey);
    
    display: flex;
    align-items: center;
}
div.UserAvatar div.UserLetter > div {
    text-align: center;
    width: 100%;
}
div.UserAvatar img {
    border-radius: 50%;
    vertical-align: middle;
    width: 95% !important;
}

@keyframes fadein {
  from { opacity: 0}
  to   { opacity: 1}
}
@keyframes slideInFromRight {
  from { transform: translateX(100%); }
  to { transform: translateY(0); }
}

.GeneralFeedbackMessage {
    animation: slideInFromRight 1.0s;
}

div.MessageContainer {
    position: fixed;
    right: 0;
    bottom: 2em;
    width: 30%;
    z-index: 105;
    
    font-size: 90%;
}
div.Message {
    margin: 1em;
    border-radius: 11px;
    border: 1px solid #ffd4a9;
    padding: 1em;
    padding-left: 0.5em;
    position: relative;
    background-color: #fffaf5;
    border-color: var(--brewbrain_color_blue);
    background-color: #afe4f7;
    border-width: 2px;
    box-shadow: 1px 1px 5px var(--page_divisor_border_color);
}
div.MessageClose {
    position: absolute;
    top: -9px;
    left: -19px;
}
div.MessageClose .fa-stack {
    line-height: 1;
}
div.MessageClose i.fa-circle {
    color: white;
}
div.MessageClose i.fa-times-circle {
    color: var(--black)
}

@media all and (max-width: 770px) {
    div.MessageContainer {
        width: 100%;
        margin-bottom: 6rem;
    }
    div.MessageClose {
        left: -22px;
        font-size: 1.3rem;
        top: -5px;
    }
    .BlogPosts {
        height: inherit;
    }
    .BlogPostContext .BlogTitle {
        line-height: 1.2;
    }
    .BlogPostImage img {
        width: 5.5rem;
    }
}

div.MessageSpecial {
}
div.MessageSpecial a {
    color: var(--brewbrain_color_message_link);
    font-weight: bold;
    text-decoration: underline;
}

#brewbrain_brain_logo {
    position: absolute;
    right: 1.7rem;
    top: 1.4rem;
    max-width: 38%;
    width: 14rem;
    z-index: 1000;
}
#brewbrain_brain_logo a {
    display: block;
}
#brewbrain_brain_logo img {
    width: 100%;
}

div.TwoColumnLayout {
}
div.TwoColumn.Column {
    float: left;
    width: 50%;
}
div.TwoColumn.Column > div {
    margin: 0 3em;
    border-bottom: 0.1em solid var(--page_divisor_border_color);
    padding: 2em 0;
}

div.TwoColumn.Column:nth-child(odd) {
    border-right: 0.1em solid var(--page_divisor_border_color);
}
div.TwoColumn.Column:nth-child(odd) > div {
    margin-left: 0;
}
div.TwoColumn.Column:nth-child(even) > div {
    margin-right: 0;
}

div.PageRow {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}
div.PageColumn {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
    border-bottom: 1px solid var(--page_divisor_border_color);
    margin: 1rem;
    min-width: 0; /* this prevents long lines from growing the box */
}
div.PageColumn.LastRow {
    border-bottom: none;
}

div.IconAndTextCell {
    display: flex;
    align-items: flex-start;
}
div.IconCell {
    flex: 1;
    text-align: left;
    padding-left: 0.5em;
}
div.IconCell img {
    width: 100%;
}
div.TextCell {
    flex: 9;
    margin-left: 3rem;
    min-width: 0; /* this prevents long lines from growing the box */
}
div.TextCell div.ButtonContainer {
    white-space: nowrap;
}

/* Medium screens */
@media all and (max-width: 770px) {
    .Button {
        border-radius: var(--kordaat_border_radius);
    }
    
    div.PageRow {
        flex-direction: column;
        margin: 0;
    }
    div.PageColumn {
        margin: 0;
        width: 100%;
    }
    
    div.TwoColumn.Column {
        width: 100%;
    }
    div.TwoColumn.Column:nth-child(2n+1) {
        border-right: none;
    }
    div.TwoColumn.Column:last-child > div {
        border-bottom: none;
    }
    
    div.TwoColumn.Column > div {
        margin: 0;
    }
    #general_feedback_message {
        width: calc(100% - 2em);
        left: 0;
        bottom: 0;
        margin: 1em;
        font-size: 80%;
    }
    
    div.IconCell img {
        max-height: 7rem;
        max-width: 7rem;
    }
    div.TextCell {
        flex: 4;
        margin-left: 1em;
    }
}

.YellowBackground {
    background-color: var(--brewbrain_color_yellow);
    color: white;
}