/* ANIMATED BACKGROUND */

html, body
{ 
    margin: 0;
    height: 100%;
}

canvas#background 
{
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -9999;
}

/* CONTAINER */

div#container
{
    width: 85vw;
    max-width: 700px;
    margin: auto;
}

/* HEADER */

div#header
{
    padding: 8px;
    padding-left: 12px;
    padding-right: 12px;
    font-family: 'Questrial', sans-serif;
    font-size: 22px;
    margin-top: 24px;
    
    color: #292353;
    background-color: #FFFFFF;
    text-align: center;
    border-style: solid;
    border-width: 1px;
    border-color: #FFFFFF;
    border-radius: 6px;
    display: flex;
    margin-bottom: 16px;
}

div#title
{
    height: 24px;
    display: flex;
    align-items:center;
    float: left;
}


div#title img
{
    margin: 0;
    margin-right: 12px;
}

/* HEADER MENU */

div#default-menu
{
    flex-grow: 1;
    justify-content: flex-end;
    height: 24px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    text-align: right;
    font-size: 16px;
}

div#default-menu a
{
    margin-left: 8px;
    padding: 4px;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    color: #292353;
}

div#default-menu a.active
{
    background-color: #292353;
    border-style: solid;
    border-width: 1px;
    border-color: #292353;
    border-radius: 4px;
    color: #FFFFFF;
}

div#menu-toggle
{
    display: none;
    visibility: hidden;
    flex-grow: 1;
    justify-content: flex-end;
    height: 24px;
    align-items: center;
    box-sizing: border-box;
    text-align: right;
    font-size: 16px;
}

div#menu-toggle img
{
    margin-left: 8px;
    padding: 4px;
    box-sizing: border-box;
    cursor: pointer;
}

div#menu-toggle img.active
{
    border-style: solid;
    border-width: 1px;
    border-color: #292353;
    border-radius: 4px;
    background-color: #292353;
}

/* POST */

.post
{ 
    display: block;
    background: none;
    width: 100%;
    margin: 0;
    margin-bottom: 16px;
    padding: 0;
    box-sizing: border-box;
}

.post .content
{
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 6px;
    background-color: #FFFFFF;
    padding: 8px;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
    font-size: 11pt;
}

/* FANCY POST */

.fancy-post
{ 
    display: block;
    background: none;
    width: 100%;
    margin: 0;
    margin-bottom: 16px;
    padding: 0;
    box-sizing: border-box;
}

.fancy-post .img-header
{
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;   
    margin: 0;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    box-sizing: border-box;
}

.fancy-post .content
{
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 0 0 6px 6px;
    background-color: #FFFFFF;
    padding: 8px;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
    font-size: 11pt;
}

/* GENERAL POST CONTENT */

.content h1
{
    padding: 0;
    margin: 0;
    margin-bottom: 6pt;
    line-height: normal;
    font-family: 'Quicksand', sans-serif;
    font-size: 12pt;
    font-weight: bold;
    color: #292353;
}

.content h1 a
{
    color: #292353;
    text-decoration: none;
}

.content p
{
    padding: 0;
    margin: 0;
    margin-bottom: 6pt;
    line-height: normal;
}

.content p a
{
    color: #292353;
    text-decoration: underline;
    font-weight: bold;
}

/* PROFILE LINKS */

.profile-links
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items:center;
    font-family: 'Questrial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #292353;
}

.profile-links img
{
    margin: 0;
    margin-right: 6px;
}

.profile-links a
{
    display: flex;
    align-items:center;
    margin: 6px;
    margin-right: 8px;
    text-decoration: none;
    color: #292353;
}


div#mobile-menu
{
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
    margin-bottom: 6px;
    padding: 8px;
    padding-left: 12px;
    padding-right: 12px;
    border-style: solid;
    border-width: 1px;
    border-color: #FFFFFF;
    border-radius: 6px;
    background-color: #FFFFFF;
    color: #292353;
    font-family: 'Questrial', sans-serif;
    font-size: 16px;
}

div#mobile-menu a
{
    margin-left: 8px;
    padding: 4px;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    color: #292353;
}

div#mobile-menu a.active
{
    background-color: #292353;
    border-style: solid;
    border-width: 1px;
    border-color: #292353;
    border-radius: 4px;
    color: #FFFFFF;
}

.hidden
{
    display: none !important;
    visibility: hidden !important;
    margin: 0 !important;
}

.hidden *
{
    display: none !important;
    visibility: hidden !important;
    margin: 0 !important;
}

@media only screen and (max-width: 540px)
{
    div#default-menu
    {
        display: none !important;
        visibility: hidden !important;
    }

    div#menu-toggle
    {
        display: flex !important;
        visibility: visible !important;
    }
}