:root
{
    --main-bg: #f3f6f3;
    --postbox-bg: #ffffff;
    --primary-text: #000000;
    --muted-text: #7C877F;
    --font-body: 'Work Sans',sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --primary-button-bg: #ffffff;
    --primary-button-text: #000000;
    --selected-option: #a3f6a3;
    
    --tile-bg: #fdfdfd;
    --tile-border: #e0e6e4;
    --brand-teal: #005757;
    --brand-lime: #00ff69;
    --bg-grey: #f4f7f6;
    --border-color: #d1d8d6;
}

body
{
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #000000;
    background: var(--main-bg);
    line-height: 1.6;
}

table
{
    border-collapse: collapse;
}

.scale20h
{
    height: 20px !important;
}

.scale20w
{
    width: 20px !important;
}

.pointable
{
    cursor: pointer;
    cursor: hand;
}

.editable
{
    cursor: pointer;
    cursor: hand;
    border-bottom: 1px dotted #666666;
}

.hintable
{
    background-color: rgba(0,0,0,0.15);
}

.draggable
{
    position: relative;
    z-index: 2;
}

.curve234
{
    border-radius: 0px 5px 5px 5px;
    border: 1px solid black;
    padding: 2px;
}

.oneline
{
    white-space: nowrap;
}

.vgrabbable
{
    cursor: move;
}

.redtext
{
    color: #ff0000;
}

.greentext
{
    color: #00ff00;
}

.greytext
{
    color: #777777;
}

.vflex
{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.hflex
{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.centreflex
{
    display: flex;
    flex-direction: column;
    align-items: centre;
    gap: 8px;
}

.wide
{
    width: 100%;
}

.hidden
{
    display: none !important;
}

div.mainpage
{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 250px;
    right: 0;
    padding-right: 270px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    background: var(--main-bg);
    overflow-y: auto;
}

div.controls
{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-left: 25px;
    padding-top: 15px;
    background: var(--main-bg);
    height: 100%;
}

div.onecontrol
{
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}


div.middlecolumn
{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    gap: 8px;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 60px;
}

div.feedinner
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

div.mypost
{
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    padding: 5px 10px;
    color: var(--primary-text);
    background: var(--postbox-bg);
    border: 1px solid #e1e6e1;
    border-radius: 12px;
#    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
}

.mypost textarea
{
    width: 100%;
}


.mypost-topline
{
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: start;
    gap: 8px;
}

div.posts
{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

div.navigation
{
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 10px;
    margin-right: 10px;
    margin-top: 60px;
    border-radius: 5px 5px 5px 5px;
    background: #ffffff;
}

.profile-menu-container
{
    position: relative;
    display: inline-block;
    top: -65px;
    right: -25px;
}

.profilebadge
{
    height: 50px;
    width: 50px;
}

.badge-dropdown-menu
{
    position: absolute;
    right: 0;
    top: 100%;
    width: max-content;
    max-width: 400px;
    background: var(--main-bg);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease-in-out;
}

.badge-dropdown-menu > div
{
    overflow: hidden;
}

.badge-dropdown-menu.open
{
    grid-template-rows: 1fr;
    border: 1px solid #e1e6e1;
}

.status-indicator {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner
{
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 87, 87, 0.1);
    border-top: 2px solid var(--brand-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin
{
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tick
{
    color: var(--brand-lime);
    font-weight: bold;
    font-size: 18px;
}

.badtick
{
    color: #FF0000;
    font-weight: bold;
    font-size: 18px;
}


div.friendinner
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 1000px;
}

div.groupinner
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 1000px;
}

div.searchdiv
{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 5px 10px;
    background: #ffffff;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
}

.searchdiv input
{
    width: 100%;
}


div.tabnav-container
{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 5px 10px;
}

.nav-tab
{
    background: #dddddd;
    border: 0px;
}

.nav-tab.active
{
    border-bottom: 5px solid #00ff00;
}

.tab-content
{
    display: none;
}

.tab-content.active
{
    display: block;
}

div.inviterow
{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px 10px;
    width: 100%;
    background: #ffffff;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
}

.invite-space
{
    display: none;
}

.invite-space.active
{
    display: block;
}

div.friendline
{
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 5px 10px;
    width: 100%;
    background: #ffffff;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
}

div.requestline
{
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 5px 10px;
    width: 100%;
    background: #ffffff;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
}

div.followingline
{
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 5px 10px;
    width: 100%;
    background: #ffffff;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
}

div.followerline
{
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 5px 10px;
    width: 100%;
    background: #ffffff;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
}

.myreaction
{
    border: 1px solid red;
}

.keyworddemo
{
    border: 1px solid red;
}

.messageleft
{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 500; 
    transform: translateX(-100%);
    transition: transform 0.25s ease-in-out;
    pointer-events: none; /* Prevents clicks while closed*/
}

.messageleft.open
{
    transform: translateX(0);
    pointer-events: auto;
}

.openchat
{
    position: fixed;
    bottom: 0;
    width: 250px;
    height: 300px;
    background: #66ff66;
    z-index: 800; 
}

.stackedchat
{
    position: fixed;
    left: 0;
    width: 125px;
    height: 25px;
    background: #66ff66;
    z-index: 810; 
}

.posttext
{
    resize: none;
    overflow-y: hidden;
}

.chatmessages
{
    display: flex;
    flex-direction: column-reverse;
    overflow-y: auto;
    width: 100%;
    height: 150px;
}

.themchat
{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    padding-right: 20%;
}

.mychat
{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
    padding-left: 20%;
}

.mypost-controls
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding-left: 40px;
    padding-right: 24px;}

.mypost-controlbuttons
{
    display: flex;
    gap: 6px;
    box-sizing: border-box;
}


select
{
  font: 13px var(--font-body);
  color: var(--primary-text);
  background: var(--main-bg);
  border: 1px solid #e1e6e1;
  border-radius: 999px;
  padding: 5px 10px;
  box-sizing: border-box;
  margin: 0;
}

.primary-btn
{
  font: 13px var(--font-body);
  color: var(--primary-button-text);
  background: var(--primary-button-bg);
  border: 1px solid #e1e6e1;
  border-radius: 8px;
  padding: 5px 11px;
  cursor: pointer;
  box-sizing: border-box;
}

.secondary-btn
{
  font: 13px var(--font-body);
  color: var(--primary-button-text);
  background: var(--primary-button-bg);
  border: 1px solid #e1e6e1;
  border-radius: 8px;
  padding: 5px 11px;
  cursor: pointer;
  box-sizing: border-box;
}

div.post
{
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
    width: 100%;
    color: var(--primary-text);
    background: var(--postbox-bg);
    border-radius: 8px;
    border: 1px solid #e1e6e1;
}

div.postheader
{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

div.postheader > a
{
    display: block;
}


div.postwhowhen
{
    display: flex;
    flex-direction: column;
    padding-left: 5px;
    justify-content: center;
    height: 40px;
    gap: 3px;
}

div.postwhowhen > div
{
    line-height: 1; 
}

.postwhen
{
    display: block;
    font-size: 12.5px;
    color: var(--muted-text);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.postwho
{
    box-sizing: border-box;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15.5px;
    color: var(--primary-text);
    text-decoration: none;
    line-height: 1.2;
}



.commentholder
{
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 8px;
}

.comment
{
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 8px;
    line-height: 1.4;
}

div.commentheader
{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

div.commentheader > a
{
    display: block;
}


div.commentwhowhen
{
    display: flex;
    flex-direction: column;
    padding-left: 5px;
    justify-content: center;
    height: 30px;
    gap: 3px;
}

div.commentwhowhen > div
{
    line-height: 1; 
}

.commentwhen
{
    display: block;
    font-size: 9.5px;
    color: var(--muted-text);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.commentwho
{
    box-sizing: border-box;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 10.5px;
    color: var(--primary-text);
    text-decoration: none;
    line-height: 1;
}

.relationship-holder
{
    display: flex;
    align-items: center;
    gap: 8px;
}

.relationship-menu-wrapper
{
    position: relative;
    display: inline-block;
}

.hamburger-btn
{
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
}

.relationship-menu-dropdown
{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 8px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
    z-index: 10;
    white-space: nowrap;
}

.relationship-menu-wrapper:focus-within .menu-dropdown,
.relationship-menu-wrapper:hover .relationship-menu-dropdown
{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.athash
{
    position: absolute;
    background: #ffffff;
    border: 1px solid black;
}

.athashline.selected
{
    background: #aaccaa;
}

.profile-image-container
{
    position: relative;
    display: inline-block;
}

.profile-image
{
    height: 100px;
    width: 100px;
}

.profile-image-dropdown-menu
{
    position: absolute;
    left: 75%;
    top: 75%;
    width: max-content;
    max-width: 400px;
    background: var(--main-bg);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease-in-out;
}

.profile-image-dropdown-menu > div
{
    overflow: hidden;
}

.profile-image-dropdown-menu > div > div
{
    padding: 8px;
}

.profile-image-dropdown-menu.open
{
    grid-template-rows: 1fr;
    border: 1px solid #e1e6e1;
}

.profile-image-editor
{
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50%, 0%);
    width: max-content;
    max-width: 500px;
    background: var(--main-bg);
    border: 1px solid #e1e6e1;
}

.imageeditor-frame
{
    display: flex;
    gap: 8px;
    padding: 8px;
}

.imageeditor-imageouter
{
    position: relative;
    flex: 1;
}

.imageeditor-imagediv
{
    overflow: hidden;
}

.imageeditor-controls
{
    width: 100px;
    flex-shrink: 0;
    vertical-align: middle;
    gap: 3px;
}

.imageeditor-maskchoice
{
    font: 13px var(--font-body);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.imageeditor-maskchoice.active
{
    background: var(--selected-option);
}

.imageeditor-mask
{
    pointer-events: none;
    position: absolute;
    cursor: move;
    cursor: all-scroll;
    opacity: 0.5;
    z-index: 100;
}

.imageeditor-image
{
    cursor: move;
    cursor: all-scroll;
    pointer-events: auto;
}
