/* create a style for the root class */
:root {
    --clr-white: #ffffff;
    --clr-light-grey: #EBEAEA;

    --clr-dark-grey: #303030;
    --clr-medium-grey: #515151;
    --clr-light-medium-grey: #9D9C9C;
    --clr-light-medium-grey2: #797979;

    --clr-logo-dark-green: #3F8E61;
    --clr-logo-light-green: #40C48A;
    --clr-dark-green: #2F6A48;
    --clr-transparent-light-green: rgba(64, 196, 138, 0.26);

    --clr-dark-purple: #673AB7;
    --clr-light-purple: #D3BBFF;

    --clr-dark-red: #B92424;
    --clr-light-red: #FA6363;

    --primary-background: var( --clr-white);
    --secondary-background: var( --clr-light-grey);

    --primary-font-color: var( --clr-dark-grey);
    --secondary-font-color: var( --clr-medium-grey);
    --placeholder-font-color: var( --clr-light-medium-grey);

    --prompt-code-color: var( --clr-dark-purple);
    --response-code-color: var( --clr-dark-green);

    --primary-button-color: var( --clr-logo-dark-green);
    --primary-button-font-color: var( --clr-white);

    --secondary-button-color: transparent;

    --disabled-button-color: var( --clr-light-grey);
    --disabled-button-font-color: var( --clr-light-medium-grey2);

    --button-focused-color: var( --clr-logo-light-green);

    --icon-button-pressed-color: var( --clr-logo-light-green);
    --icon-button-hover-color: var( --clr-light-grey);

    --post-outline-color: var( --clr-transparent-light-green);
    --tag-outline-color: var( --clr-logo-light-green);
    --nav-outline-color: var( --clr-light-grey);

    --primary-logo-color: var( --clr-logo-dark-green);

    --red-font-color: var( --clr-dark-red);

    --box-shadow: 0px -12px 25px rgb(0 0 0 / 50%);

    --ff-title: 'Inter', serif;
    --ff-body: 'Inter', sans-serif;
    --ff-code: 'Inconsolata', monospace;

    /*font sizes */
    --fs-post-header: 20px;
    --fs-h1: 18px;
    --fs-h2: 16px;
    --fs-h3: 16px;
    --fs-h4: 14px;
    --fs-post-text: 14px;
    --fs-small-profile-text: 12px;
    --fs-tag-text: 12px;
    --fs-small-detail-text: 10px;

    --fs-button: 14px;

    /*font weights */
    --fw-button: 500;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-post-header: var(--fw-semibold);
    --fw-h1: var(--fw-semibold);
    --fw-h2: var(--fw-semibold);
    --fw-h3: var(--fw-semibold);
    --fw-h4: var(--fw-semibold);
}

.dark_mode {
    --primary-background: var( --clr-dark-grey);
    --secondary-background: var( --clr-medium-grey);

    --primary-font-color: var( --clr-white);
    --secondary-font-color: var( --clr-light-grey);
    --placeholder-font-color: var( --clr-light-medium-grey2);

    --prompt-code-color: var( --clr-light-purple);
    --response-code-color: var( --clr-logo-light-green);

    --primary-button-color: var( --clr-logo-dark-green);
    --primary-button-font-color: var( --clr-white);

    --disabled-button-color: var( --clr-medium-grey);
    --disabled-button-font-color: var( --clr-light-medium-grey2);

    --button-focused-color: var( --clr-logo-light-green);

    --icon-button-pressed-color: var( --clr-logo-dark-green);
    --icon-button-hover-color: var( --clr-medium-grey);

    --post-outline-color: var( --clr-medium-grey);
    --tag-outline-color: var( --clr-logo-light-green);
    --nav-outline-color: var( --clr-medium-grey);

    --primary-logo-color: var( --clr-logo-light-green);
    --red-font-color: var( --clr-light-red);
    --box-shadow: 0px -12px 25px rgba(0, 0, 0, .8);
    
}

.dark_mode_icons {
    display: none;
}
.light_mode_icons {
    display: flex;
}

/* ------------------------------------------ BODY STYLING */
body {
    display: block;
    background-color: var( --primary-background);
    font-family: var(--ff-body);
    color:var( --primary-font-color);
    overflow-x: hidden;
}

html, body {
    overscroll-behavior-x: none;
}

.page_container {
    /* Side nav is positioned relative to this */
    display: block;
    position: relative;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    width: 100%;
    max-width: 1340px;
}
    .page_container.username_setup {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
.content_container {
    /* this is soley for styling the margin from the nav bar */
    display: flex;
    flex-direction: column;
    margin: 20px 5px 0px 5px;
    row-gap: 10px;
}
    .content_container ul {
        list-style-type: none;
        font-size: var(--fs-post-text);        
        margin: 0px;
        padding: 0px;
    }

/* ------------------------------------------ GENERIC TEXT STYLING */
h1 {
    font-size: var( --fs-h1);
    font-weight: var(--fw-h1);
}
h2 {
    font-size: var( --fs-h2);
    font-weight: var(--fw-h2);
}
    h2.no_margin {
        margin: 0px;
    }
    h2.bottom_margin {
        margin: 0px 0px 5px 0px;
    }
    h2.semibold {
        font-weight: var(--fw-semibold);
    }
h3 {
    font-size: var( --fs-h3);
    font-weight: var(--fw-h3);
    margin: 25px 0px 15px 0px;
}
h4 {
    font-size: var( --fs-h4);
    font-weight: var(--fw-h4);
    color: var(--secondary-font-color);
}
p {
    font-size: var( --fs-post-text);
    font-weight: var(--fw-regular);
    margin: 0px;
}
    p.no_margin {
        margin: 0px;
    }
    p.bottom_margin {
        margin: 0px 0px 5px 0px;
    }
    p.medium {
        font-weight: var(--fw-medium);
    }
    p.light {
        font-weight: var(--fw-light);
    }
    p img { /* images in markdown */
        max-width: 100%;
        margin: 10px;
        height: auto;
    }
    p.xs {
        font-size: var( --fs-small-detail-text);
    }

.subtext {
    font-size: var(--fs-subtext);
    font-weight: 300;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
}

.subtext.subtext_500 {
    font-weight: 500;
}

/*code {
    font-family: var(--ff-code);
}*/

.hidden {
    display: none;
}

input[type="text"]:focus {
    outline: none;
}

input[type="text"]::selection {
    background-color: var(--icon-button-pressed-color);
    color: var(--primary-font-color);
}

input::placeholder {
    color: var(--placeholder-font-color);
}

/* Table Styling */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}
table th, table td {
    border: 1px solid var(--post-outline-color) !important;
    padding: 8px;
    text-align: left;
}
table th {
    background-color: var(--primary-background);
    font-weight: bold;
}
table tr:nth-child(odd) {
    background-color: var(--secondary-background);
}
/* ------------------------------------------ NAV BAR Styling */

nav {
    background-color: var(--primary-background);
    color: var( --primary-font-color);
    display: flex;
    align-items: center;
    position: sticky;
    height: 30px;
    top: 0;
    z-index: 100;
    padding: 7px 10px 7px 10px;
    border-bottom: 2px solid var(--nav-outline-color);
}

    nav a {
        text-decoration: none;
        color:var( --primary-font-color);
    }

.nav_links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin: 0px 0px 0px 10px;
    padding: 0;
}
    .nav_links li {
        list-style: none;
    }
    .nav_links img {
        height: 24px;
    }
    
.nav_logo {
    display: none;
    margin: 0px 20px 0px 0px;
}
    .nav_logo img {
        height: 40px;
    }

.small_nav_logo {
    display: block;
    width: 25%;
}
    .small_nav_logo img {
        height: 28px;
    }

.small_nav_search {
    /* for mobile, show small search icon */
    display: block;
}

/* --------------------- HAMBURGER MENU Styling */
.hamburger-menu {
    display: block;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

    .hamburger-menu img {
        height: 24px;
    }

/* Dropdown menu Styling */
.dropdown-menu {
    display: none;
    position: absolute;
    border-radius: 5px;
    top: 50px;
    right: 0;
    z-index: 1;
    background-color: var(--primary-background);
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 400px;
    list-style: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
    .dropdown-menu img {
        height: 24px;
    }
    .dropdown-menu li {
        padding: 10px;
    }
    .dropdown-menu.show { 
        /* class that toggles the hamburger menu */
        /* there's a script that uses this */
        display: block;
      }
/* ------------------ SEARCH BAR styling */  

.search-container {
    display: flex;
    align-items: center;
    background-color: var(--secondary-background);
    border-radius: 5px;
    height: 34px;
    width: 95%;
    max-width: 700px;
}

.search-container img {
    height: 24px;
    width: 24px;
    margin: 0px 10px 0px 10px;

}

.search-container form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.search-container input[type="text"] {
    font-family: var(--ff-body);
    font-weight: var( --fw-regular);
    color:var( --primary-font-color);
    height: 30px;
    width: 100%;
    border: none;
    background-color: transparent;
    border: 1px solid transparent;
    font-size: 16px;
    margin-right: 10px;
    padding: 5px;
}

.search-container input[type="text"]:focus {
    border: 1px solid transparent;
}
  

.search-container button[type="submit"] {
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: absolute;
    right: 0;
}

/* mobile search container */
.mobile-search-container {
    display: none;
    position: absolute;
    top: 50px;
    left: 0px;
    background-color: var(--primary-background);
    padding: 10px;
    border-radius: 5px;
    z-index: 1;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    width: 95%;
    max-width: 400px;
}

/*.mobile-search-dropdown{
    position: relative;
}*/

.mobile-search-dropdown.show .mobile-search-container {
    display: block;
}

.mobile_search_bar {
    display: flex;
    align-items: center;
    background-color: var(--secondary-background);
    border-radius: 5px;
    height: 34px;
    width: 100%;
}
    .mobile_search_bar img {
        height: 24px;
        width: 24px;
        margin: 0px 10px 0px 10px;

    }

    .mobile_search_bar form {
        display: flex;
        align-items: center;
        position: relative;
        width: 100%;
    }

    .mobile_search_bar input[type="text"] {
        font-family: var(--ff-body);
        font-weight: var( --fw-regular);
        color:var( --primary-font-color);
        height: 30px;
        width: 100%;
        border: none;
        background-color: transparent;
        border: 1px solid transparent;
        font-size: 16px;
        margin-right: 10px;
        padding: 5px;
    }

    .mobile_search_bar input[type="text"]:focus {
        border: 1px solid transparent;
    }
    

    .mobile_search_bar button[type="submit"] {
        border: none;
        background: transparent;
        font-size: 16px;
        cursor: pointer;
        position: absolute;
        right: 0;
    }


/* ------------------ light/dark Toggle styling */
.mode_icon img {
    width: 24px;
    height: 24px;
} 

.nav_light_dark_toggle_space {
    display: flex;
    flex-direction: horizontal;
    align-items: center;
    justify-content: space-between;
    column-gap: 5px;
}

.light_dark_toggle_space {
    display: flex;
    direction: horizontal;
    align-items: center;
    column-gap: 15px;
}

/* ------------------------------------------ SIDE NAV Styling */

/* ---------------------- user info section */
/* this is also used in the author section of the full post view for mobile */

.user_info_side_nav_holder {
    display: flex;
    flex-direction: column;
    row-gap: 0px;
}

.user_info_side_nav {
    display: flex;
    align-items: center;
    column-gap: 5px;
}

    .user_info_side_nav.username {
        font-family: var(--ff-body);
        font-size: var(--fs-h2);
        font-weight: var(--fw-regular);
    }

    .user_info_side_nav.username_holder {
        display: flex;
        flex-wrap: wrap;
        align-items: end;
        margin: 0px 0px 5px 0px;
        overflow: hidden;
    }

    .user_info_side_nav.metadata_holder {
        display: flex;
        flex-direction: row;
        align-items: start;
        margin: 5px 0px 0px 0px;
    }



/* ---------------------- container styling */
.side_nav {
    /* in the responsive media query, this is updated to display: block; */
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 100%;
    background-color: transparent;
    padding: 20px;
    transition: all 0.5s ease-in-out;
  }  
  .side_nav a {
    /* removing the styling of clickable things */
    color: var(--primary-font-color);
    text-decoration: none;
  }

.side_nav_container {
    /* this holds all of the content to a fixed position */
    display: block;
    position: fixed;
} 
.separator_line {
    /* this is used to separate the content in the side nav */
    border: 0.5px solid var(--secondary-background);
    width: 100%;
    margin: 20px 0px 10px 0px;
}
.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* ------------------------------------------ REPORT MODAL styling */

/* The modal */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
  }
  
  /* The modal content */
  .modal-content {
    background-color: var(--primary-background);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    margin: 25% auto;
    padding: 20px;
    row-gap: 10px;
    border: 1px solid transparent;
    width: 280px;
    height: 240px;
  }
    .modal-content.smallest_modal {
        height: 100px;
    }
    .modal-content.small_modal {
        height: 140px;
    }
    .modal-content.med_modal {
        height: 170px;
    }
    .modal-content.login_modal {
        height: 150px;
    }
    .modal-content.large_modal {
        height: 70vh;
    }
  /* The close button */
  .close {
    color: var*(--secondary-font-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }  


/* ------------------------------------------ LOGIN MODAL styling */

.login_modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
    margin-top: 15px;
}

  /* ------------------------------------------ DELETE CONTENT MODAL styling */
/*.delete_content_form{
    display: flex;
    height: 100%;
    align-content: flex-end;
    flex-wrap: wrap;
    justify-content: flex-end;
}*/
.delete_content_modal_button_space{
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    column-gap: 20px;
}
/* ------------------------------------------ DELETE ACCOUNT MODAL styling */
.delete_account_form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.top_margin{
    margin-top: 20px;
}

/* ------------------------------------------ Markdown Guide MODAL styling */

.mdg_title {
    font-size: var(--fs-h2);
    font-weight: var(--fw-medium);
    margin: 0px 0px 10px 0px;
}
.mdg_space {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    margin-top: 10px;
    overflow: scroll;
    height: 100%;
}
.mdg_markdown_group {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}
.mdg_group_section {
    display: flex;
    flex-direction: row;
}
.mdg_description {
    width: 30%;
    padding-right: 5px;
}
.mdg_input_output {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    padding: 5px;
    width: 70%;
}
.mdg_input {
    display: block;
}
.mdg_output { 
    background-color: var(--secondary-background);
    border-radius: 5px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px;
}
    .mdg_output.bold {
        font-weight: var(--fw-bold);
    }
    .mdg_output.italic {
        font-style: italic;
    }
    .mdg_output.strikethrough {
        text-decoration: line-through;
    }
    .mdg_output a {
        color: var(--primary-logo-color);
    }
    .mdg_output img {
        width: 50px;
    }
    .mdg_output.quote {
        padding: 10px 10px 10px 40px;
    }
/* Table Styling */
.mdg_output_table table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}

.mdg_output_table table th,
.mdg_output_table table td {
    border: 1px solid var(--post-outline-color) !important;
    padding: 8px;
    text-align: left;
}

.mdg_output_table table th {
    background-color: var(--primary-background);
    font-weight: bold;
}

.mdg_output_table table tr:nth-child(odd) {
    background-color: var(--secondary-background);
}

/* Table Styling */
.mdg_output_table table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}

.mdg_output_table table th,
.mdg_output_table table td {
    border: 1px solid var(--post-outline-color) !important;
    padding: 8px;
    text-align: left;
}

.mdg_output_table table th {
    background-color: var(--primary-background);
    font-weight: bold;
}

.mdg_output_table table tr:nth-child(odd) {
    background-color: var(--secondary-background);
}

/* note for this section, all styles are applied to the preivew class and the markdown-content class */
/* header styling throughout posts*/
.feedpost_body.markdown-content h1 {
    margin: 25px 0px 15px 0px;
}
.feedpost_body.markdown-content h2 {
    margin: 25px 0px 15px 0px;
}
.feedpost_body.markdown-content h3 {
    margin: 20px 0px 10px 0px;
}
.feedpost_body.markdown-content h4 {
    margin: 15px 0px 10px 0px;
}
/* paragraph styling throughout posts*/
.feedpost_body.markdown-content p {
    margin: 0px 0px 10px 0px;
}
    /* paragraph styling in new post preview*/
    .editor-preview.editor-preview-active p {
        margin: 0px 0px 10px 0px;
    }
/* text wrap */
.feedpost_body.markdown-content {
    word-break: break-word;
    overflow-wrap: break-word;
}
    .editor-preview.editor-preview-active {
        word-break: break-word;
        overflow-wrap: break-word;
    }
/* links */
.feedpost_body.markdown-content a {
    color: var(--primary-logo-color);
    text-decoration: underline; 
}
    .editor-preview.editor-preview-active a {
        color: var(--primary-logo-color);
        text-decoration: underline; 
    }
/* unordered lists */
.feedpost_body.markdown-content ul {
    padding: 0px 0px 10px 40px
}
.feedpost_body.markdown-content ul li::before {
        content: "• ";
        margin-left: -1em;
    }
.feedpost_body.markdown-content ul li {
        margin: 0px 0px 5px 0px;
    }
    .editor-preview.editor-preview-active ul {
        padding: 0px 0px 10px 40px
    }
    .editor-preview.editor-preview-active ul li::before {
            content: "• ";
            margin-left: -1em;
    }
    .editor-preview.editor-preview-active ul li {
        margin: 0px 0px 5px 0px;
    }
/* numbered lists */
.feedpost_body.markdown-content ol {
    padding: 0px 0px 10px 40px;
    list-style: decimal !important;
}
.feedpost_body.markdown-content ol li {
    list-style: decimal !important;
    margin: 0px 0px 5px 0px;
}
    .editor-preview.editor-preview-active ol {
        padding: 0px 0px 10px 40px;
        font-size: var(--fs-post-text);
        list-style: decimal !important;
    }
    .editor-preview.editor-preview-active ol li {
        list-style: decimal !important;
        margin: 0px 0px 5px 0px;
    }

/* ------------------------------------------ RADIO SELECT styling */
.radio_text {
    font-size: var( --fs-post-text);
    font-weight: var(--fw-regular);
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
}
  /* Custom radio button */
    .radio_text:before {
        content: '';
        display: inline-block;
        width: 10px;
        height: 10px;
        margin-right: 5px;
        border: 1px solid var(--primary-font-color);
        border-radius: 50%;
        background-color: transparent;
        /*transition: all 0.3s;*/
    }
/* Radio button wrapper */
.radio_wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin: 0px 15px 10px 5px;
  }
  
  /* Hide default radio button */
  .radio_button {
    display: none;
  }

  
  /* Hover state */
  .radio_wrapper:hover .radio_text:before {
    filter: brightness(0.7);
  }
  
  /* Selected state */
  .radio_button:checked + .radio_text:before {
    background-color: var(--primary-logo-color); 
    border: 1px solid var(--primary-font-color);
    box-shadow: 0 0 5px var(--clr-transparent-light-green);
  }  

  .radio_submit_button_space {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    column-gap: 30px;
    margin: 0px;
  }

/* ------------------------------------------ PRIMARY BUTTON Styling */

.button {
    -webkit-appearance: none;
    font-size: var(--fs-button);
    font-family: var(--ff-body);
    font-weight: var(--fw-button);
    background-color: var(--primary-button-color);
    color: var(--primary-button-font-color);
    border: 1px solid transparent;
    border-radius: 2px;
    width: 70px;
    height: 24px;
    cursor: pointer;
    outline: none;
}
    .button.big {
        width: 140px;    
    }
    .button:disabled{
        color: var( --disabled-button-font-color);
        background-color: var( --disabled-button-color);
        cursor: not-allowed;
    }

.button:hover {
/* add a brightness filter to the button */
    filter: brightness(.85);
}

.button:focus {
    border: 1px solid var( --button-focused-color);
}

.button.secondary {
    background-color: var(--secondary-button-color);
    color: var(--secondary-font-color);   
}

.button.upload_EP {
    background-color: var(--secondary-button-color);
    color: var(--primary-logo-color);
    font-weight: var(--fw-semibold);   
}
.button.delete_EP {
    background-color: var(--secondary-button-color);
    color: var(--red-font-color);
    font-weight: var(--fw-semibold); 
    width: auto;  
    padding: 0px;
}

.button_space {
    display: flex;
    direction: horizontal;
    align-items: center;
    column-gap: 20px;
}

/* ------------------------------------------ CODE BLOCK w/ Click to copy Styling */
/* formatting pre because its used on the code blocks*/
pre {
    display: block;
    font-family: monospace;
    white-space: pre;
    margin: 0px;
}

/* styles for the code block container */
code {
    font-size: var( --fs-post-text);
    font-weight: var( --fw-regular);
    font-family: var(--ff-code);
    background-color: var(--secondary-background);
    color: var(--primary-font-color);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid transparent; /* to make the focused state less jarring */
    padding: 5px 10px;
    border-radius: 5px;
    margin: 10px;
    white-space: pre-wrap;
  }
    code pre {
        white-space: pre-wrap;
    } 
    code.prompt{
        color: var( --prompt-code-color);
    }
    code.response {
        color: var( --response-code-color);
    }


  /* styles for the copy message */
.copy-message {
    font-family: var(--ff-code);
    position: absolute;
    background-color:  white;
    color: rgb(0, 0, 0);
    border-radius: 2px;
    padding: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap;
}

.code-block {
	position: relative;
} 
    /* styles for the code block on hover */
    .code-block:hover code {
        filter: brightness(0.7);
    } 
    /* styles for the copy message on hover */
    .code-block:hover .copy-message {
        opacity: 1;
    }
  

/* ------------------------------------------ TOGGLE Styling */
/* The switch - the box around the toggle */
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 20px;
}

/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}

/* The toggle */
.toggle {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #D9D9D9;
-webkit-transition: .4s;
transition: .4s;
border: 1px solid #000000;
padding: 10px;
}

.toggle:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #FFFFFF;
-webkit-transition: .4s;
transition: .4s;
box-shadow: 2px 2px 5px rgba(2, 1, 4, 0.25);
}

input:checked + .toggle {
background-color: #40C48A;
}

input:focus + .toggle {
box-shadow: 0 0 1px #ffffff92;
}

input:checked + .toggle:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(30px);
box-shadow: -2px 2px 5px rgba(2, 1, 4, 0.25);
}

/* Rounded toggles */
.toggle.round {
border-radius: 15px;
}

.toggle.round:before {
border-radius: 50%;
}

/* ------------------------------------------ PROFILE PICTURE Styling */

.profile_picture {
    display: block;
    border-radius: 2px;
}

    .profile_picture img {
        object-fit: cover;
    }

    .profile_picture.centered {
        padding: 5px;
    }
    .profile_picture.small img {
        height: 14px;
        width: 14px;
        border-radius: 2px;
    }
    .profile_picture.medium img {
        height: 24px;
        width: 24px;
        border-radius: 2px;
    }
    .profile_picture.large img {
        height: 75px;
        width: 75px;
        border-radius: 5px;
    }

/* ------------------------------------------ BADGES Styling */

.badge {
    display: flex;
    flex-direction: row;
    align-items: start;
    border-radius: 2px;
    column-gap: 3px;
    align-content: top;
}
        .badge.small img {
        height: 12px;
        width: 12px;
        border-radius: 2px;
        border: 0.5px solid var( --tag-outline-color);
    }
    .badge.medium {
        column-gap: 5px;
    }
    .badge.medium img {
        height: 16px;
        width: 16px;
        border-radius: 2px;
        border: 0.5px solid var( --tag-outline-color);
    }
    /* Customize the tooltip text */
.badge[title]:hover::before {
    content: attr(title);
    background-color: black;
    color: white;
    padding: 5px;
    font-size: 14px;
    border-radius: 2px;
    position: absolute;
    z-index: 1;
}
  
  /* Hide the default tooltip */
  .badge[title]:not(:hover) {
    pointer-events: none;
  }

.badge_holder {
    display: flex;
    flex-direction: column;
    align-items: start;
    column-gap: 5px;
}

/* ACCOUNT SETUP ------------------------------------------ Choose your username */
.username_page_container {
    margin: 10px;
    width: 100%;
    max-width: 1100px;
}
.username_form {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    margin: 10px;
}
.username_input_space {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.username_submit_space {
    display: flex;
    flex-direction: column;
    max-width: 470px;
    align-items: flex-end;
}
.username_input_field {
    font-size: var( --fs-post-text);
    font-weight: var( --fw-regular);
    font-family: var( --ff-body);
    background-color: var( --secondary-background);
    color: var(--primary-font-color);
    display: block;
    width: 250px;
    border: 1px solid transparent;
    border-radius: 2px;
    height: 18px;
}
    .username_input_field:focus {
        outline: none;
    }
    .username_input_field::selection {
        background-color: var(--icon-button-pressed-color);
        color: var(--primary-font-color);
    }
    .username_input_field::placeholder {
        color: var(--placeholder-font-color);
    }
.username_input_and_icon {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.username_availability img {
    display: block;
    height: 20px;
    margin-left: 5px;
    border-radius: 5px;
}
.username_error{
    font-size: var( --fs-post-text);
    border-left: 3px solid var(--red-font-color);
    padding-left: 5px;
}
.terms_and_conditions {
    display: flex;
    align-items: center;
    column-gap: 5px;
}
    .terms_and_conditions a {
        color: var(--primary-logo-color);
        text-decoration: none;
        cursor: pointer;
    }

/* FEED ------------------------------------------ MODEL SLIDER ON FEED */
.model_slider_holder {
    display: flex;
    direction: horizontal;
    align-items: center;
    column-gap: 10px;
    /*width: 100%;*/
    height: 70px;
    overflow: scroll;
}
/* hide the scroll bar*/
.model_slider_holder::-webkit-scrollbar {
    display: none;
}

.model_slider {
    display: flex;
    align-items: center;
    position: relative;
    height: 70px;
    width: 130px;
    margin: 0px 0px 0px 0px;
    border-radius: 5px;
    cursor: pointer;
}
    .model_slider img {
        height: 70px;
        width: 130px;
        border-radius: 5px;
    }

.model_slider_overlay {
    font-size: var( --fs-h1);
    font-weight: var( --fw-semibold);
    color: var( --clr-white);
    padding: 0px 0px 2px 2px;
    display: flex;
    align-items: end;
    position: absolute;
    top: 0;
    left: 0;
    width: 128px;
    height: 68px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(48, 48, 48, 0.80) 100%);
    border-radius: 5px;
    z-index: 1;
    transition: 0.5s ease;
    cursor: pointer;
}
    .model_slider_overlay:hover {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(48, 48, 48, 0.90) 100%);
    }
/* POSTS ON FEED ------------------------------------------ text for posts on feed */

.separator {
    font-weight: var( --fw-light);
    font-size: var( --fs-post-text);
    margin: 0px 3px 0px 3px;
}
    .separator.secondary_color {
        color: var(--secondary-font-color);
    }
    .separator.hide_mobile {
        display: none;
    }

.feedpost_metadata {
    font-size: var( --fs-post-text);
}
    .feedpost_metadata.medium {
        font-weight: var( --fw-medium);
    }
    .feedpost_metadata.regular {
        font-weight: var( --fw-regular);
    }
    .feedpost_metadata.light {
        font-weight: var( --fw-light);
    }

.feedpost_title {
    font-size: var(--fs-post-header);
    font-weight: var( --fw-post-header);
}

.feedpost_body {
    font-size: var( --fs-post-text);
    font-weight: var( --fw-regular);
}

.feedpost_code {
    font-size: var( --fs-post-text);
    font-weight: var( --fw-regular);
    font-family: var(--ff-code);
    background-color: var(--secondary-background);
}

    .feedpost_code.prompt{
        color: var( --prompt-code-color);
    }

    .feedpost_code.response {
        color: var( --response-code-color);
    }

.feedpost_date_posted {
    font-size: var( --fs-small-detail-text);
    font-weight: var( --fw-regular);
    color: var( --secondary-font-color);
}

/* POSTS ON FEED ------------------------------------------ TAG Styling (model and meta data) */
.model_tag {
    display: flex;
    align-items: center;
    column-gap: 5px;
}

.model_tag img {
    height: 22.5px;
}

.topics_tag {
    display: block;
    margin: 0px 0px 0px 0px;
    padding: 3px 5px 3px 5px;
    font-size: var( --fs-tag-text);
    font-weight: var( --fw-normal);
    color: var( --secondary-font-color);
    border: 1px solid var( --tag-outline-color);
    border-radius: 5px;
    white-space: nowrap;
}
.tag_holder {
    display: flex;
    direction: horizontal;
    align-items: center;
    column-gap: 8px;
    width: 100%;
    height: 30px;
    overflow: scroll;
}
/* hide the scroll bar*/
.tag_holder::-webkit-scrollbar {
    display: none;
}

/* POSTS ON FEED / FULL POST ------------------------------------------ INTERACTION STYLING */
.interaction_holder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
}

.interaction_button_holder {
    /* this holder allows for reformating on desktop*/
    display: flex;
    justify-content: space-between;
    /* width should be 80% when we add saving back in width: 80%; */
    width: 60%;
}

.interaction_button_holder_FP {
    /* Full post interaction holder */
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.interaction_button_holder_comment{
    /* interaction holder for comments on full post*/
    display: flex;
    justify-content: space-between;
    column-gap: 20px;
}

.interaction_button {
    display: flex;
    align-items: center;
    column-gap: 2px;
    font-family: var(--ff-body);
    font-size: var(--fs-post-text);
    font-weight: var(--fw-regular);
    background-color: transparent;
    color: var(--primary-font-color);
    height: 24px;
    border: 1px solid transparent; /* to make the focused state less jarring */
    border-radius: 2px;
    cursor: pointer;
    padding: 0px 3px 0px 3px;
    outline: none;
}
    .interaction_button img {
        height: 18px;
    }

    .interaction_button:hover {
        background-color: var( --icon-button-hover-color);
    }

    .interaction_button:focus {
        border: 1px solid var( --button-focused-color);
    }

    .interaction_button.active { 
        /* this works with a javascript function to hold the pressed state */
        background-color: var( --icon-button-pressed-color);
    }
    .interaction_button.secondary_color {
        color: var(--secondary-font-color);
    }


/* this whole class is me being lazy. 2 buttons need to NOT stick. */
.interaction_button_no_stick {
    display: flex;
    direction: horizontal;
    align-items: center;
    column-gap: 2px;
    font-family: var(--ff-body);
    font-size: var(--fs-post-text);
    font-weight: var(--fw-regular);
    background-color: transparent;
    color: var(--primary-font-color);
    height: 24px;
    border: 1px solid transparent; /* to make the focused state less jarring */
    border-radius: 2px;
    cursor: pointer;
    padding: 0px 3px 0px 3px;
    outline: none;
}
    .interaction_button_no_stick img {
        height: 18px;
    }

    .interaction_button_no_stick:hover {
        background-color: var( --icon-button-hover-color);
    }

    .interaction_button_no_stick:focus {
        border: 1px solid var( --button-focused-color);
    }

    .interaction_button_no_stick.active { 
        /* the script to make it stick doesn't use this class :) sorry not sorry */
        background-color: var( --icon-button-pressed-color);
    }
    .interaction_button_no_stick.secondary_color {
        color: var(--secondary-font-color);
    }
    .interaction_button_no_stick a {
        text-decoration: none;
        color: var(--primary-font-color);
    }

.share_button {
    /* do nothing. this is just a class to recognize the share button */
    display: block;
}


  

/* POSTS ON FEED / COMMENTS ON FULLL POST ------------------------------------------ Author Styling */

.author_holder_small {
    display: flex;
    direction: horizontal;
    align-items: center;
    column-gap: 5px;
}

.author_holder_small.username {
    font-family: var(--ff-body);
    font-size: var(--fs-post-text);
    font-weight: var(--fw-medium);
}

.author_holder_small.comment_username {
    font-family: var(--ff-body);
    font-size: var(--fs-tag-text);
    font-weight: var(--fw-regular);
    color: var(--secondary-font-color);
}

.author_holder_small.mobile_hide {
    display: none;
}

/* POSTS ON FEED ------------------------------------------ FEED CONTAINERS Styling */

/* container for the whole feed */
.feed_container {
    display: block;
}
    .feed_container li {
        list-style: none;
    }
    .feed_container a {
        color: var(--primary-font-color);
        text-decoration: none;
    }

/* container for individual posts */
.feed_post_container {
    display: block;
    border-radius: 2px;
    border: 2px solid var( --post-outline-color);
    height: 230px;
    padding: 5px 0px 10px 0px;
    margin: 5px 0px 5px 0px;
}
    .feed_post_container.small {
        height: 230px;
        width: 250px;
        margin: 0px;
    }
    /*.feed_post_container.small a {
        color: var(--primary-font-color);
        text-decoration: none;
    }*/

    .feed_post.top {
        display: block;
        padding: 5px 5px 5px 5px;
    }
        .feed_post.top a {
            color: var(--primary-font-color);
            text-decoration: none;
        }
    .feed_post.body {
        display: flex;
        flex-direction: column;
        padding: 5px 5px 0px 5px;
        position: relative;
        z-index: 0;
        height: 140px;
        row-gap: 7px;
        overflow: hidden;
        
    }
    .feed_post.body.UP {
        height: 172px;
        
    }
    
        .feed_post.body::after {
            /* applying the shadow as an ::after element in place of on the bottom */
            content: '';
            position: absolute;
            margin: 0px 0px -10px 0px;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 5px;
            box-shadow: var( --box-shadow);
            z-index: 2;
        }
    .feed_post.bottom {
        display: block;
        background-color: var( --primary-background);
        padding: 3px 5px 0px 5px;
        overflow: hidden;
    }
    
/* FULL POST VIEW ------------------------------------------ Author block for mobile - Tablet */

.author_space {
    /* space for the author block hidden in desktop */
    display: block;
    width: 100%;
}
    .author_space a {
        color: var(--primary-font-color);
        text-decoration: none;
    }

.username_and_follow_space {
    display: flex;
    flex-direction: horizontal;
    justify-content: space-between;
    width: 100%;
}

/* FULL POST VIEW ------------------------------------------ Body of full post */

.full_post_body {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    margin: 10px 0px 10px 0px;
}

.full_post_title_space {
    display: flex;
    justify-content: space-between;
    position: relative;
}
    .full_post_title_space a {
        color: var(--primary-font-color);
        text-decoration: none;
    }

.full_post_top_metadata {
    display: flex;
    flex-direction: horizontal;
    align-items: center;
    column-gap: 5px;
    overflow: auto;
}
    /* hide the scroll bar*/
    .full_post_top_metadata::-webkit-scrollbar {
        display: none;
    }

.full_post_bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    row-gap: 10px;
}

/* FULL POST VIEW ------------------------------------------ Comments section */

.comments_section {
    display: block;
}

.comment {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    margin: 0px 5px 10px 5px;
    padding: 0px 0px 5px 0px;
    border-bottom: 1px solid var( --post-outline-color);
}
    .comment a {
        color: var(--primary-font-color);
        text-decoration: none;
    }

.comment_top {
    display: flex;
    flex-direction: horizontal;
    position: relative; /* for the report menu */
    align-items: center;
    justify-content: space-between;
    column-gap: 5px;
}

.comment_body {
    display: block;
    font-size: var( --fs-post-text);
    font-weight: var( --fw-regular);
    padding: 5px 0px 5px 0px;
}

.new_comment_form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    row-gap: 5px;
}

.comment_input_space {
    background-color: var( --secondary-background);
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    column-gap: 5px;
}

.comment_input_text_area {
    font-size: var( --fs-post-text);
    font-weight: var( --fw-regular);
    font-family: var( --ff-body);
    background-color: var( --secondary-background);
    color: var(--primary-font-color);
    display: block;
    width: 100%;
    overflow-y: hidden;
    resize: none;
    border: none;
    border-radius: 5px;
    padding: 5px 5px 5px 0px;
}

    .comment_input_text_area:focus {
        outline: none;
    }
    .comment_input_text_area::selection {
        background-color: var(--icon-button-pressed-color);
        color: var(--primary-font-color);
    }


/* FULL POST VIEW ------------------------------------------ COMMENT SUB MENU section */
/* this is used for housing the report button for each comment */

.report_menu_button {
    display: block;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

    .report_menu_button img {
        height: 24px;
    }

/* Dropdown menu Styling */
.report_dropdown_menu {
    display: none;
    position: absolute;
    border-radius: 5px;
    z-index: 1;
    right: 0px; /* align the menu with the left edge of its parent element */
    top: 20px; 
    background-color: var(--primary-background);
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 150px;
    list-style: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
    .report_dropdown_menu img {
        height: 24px;
    }
    .report_dropdown_menu li {
        padding: 10px;
    }
    .report_dropdown_menu.show { 
        /* class that toggles the drop down */
        /* there's a script that uses this */
        display: block;
      }


/* USER PROFILE ------------------------------------------ USER header Styling */

.user_info_holder_UP {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
    .user_info_holder_UP.top{
        display: flex;
        flex-direction: column;
    }

.username_UP {
    display: block;
}
.username_PP_badge_space_UP { 
    display: flex;
}
.username_badge_space_UP { 
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    margin: 0px 0px 0px 5px;
}

.edit_profile_UP {
    text-decoration: none;
}
    .edit_profile_UP a {
        color: var(--primary-logo-color);
        text-decoration: none;
    }
    .edit_profile_UP.show {
        display: block;
    }

.metadata_UP {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

.member_since_UP{
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}
.stats_UP{
    display: flex;
    flex-direction: row;
    column-gap: 5px;
}
.socials_container_UP {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}
.social_link_UP {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    width: 22px;
    height: 22px;
    border-radius: 4px;
}
    .social_link_UP img { 
        width: 20px;
        height: 20px;
    }
    .social_link_UP:hover {
        filter: brightness(0.8);
    }

    .social_link_UP:focus {
        border: 1px solid var( --button-focused-color);
    }

/* USER PROFILE ------------------------------------------ USER POSTS Styling */

.body_UP {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.menu_UP {
    display: block;
    width: 100%;
    margin: 5px 0px 0px 0px;
    border-bottom: 1px solid var( --post-outline-color);
}
    .menu_UP a {
        color: var(--primary-font-color);
        text-decoration: none;
        font-weight: var(--fw-light);
    }
    .menu_UP.link {
        display: flex;
        border-bottom: 1px solid transparent;
        flex-direction: row;
        column-gap: 15px;
    }
    .menu_UP.link a.active{
        border-bottom: 1px solid var(--primary-logo-color);
        font-weight: var(--fw-medium);
        margin: 0px 0px -2px;
        /*padding: 0px 5px 0px 5px;*/
    }

.user_posts_container_UP { 
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    row-gap: 20px;
    column-gap: 10px;
    justify-items: center;
}
    .user_posts_container_UP li {
        list-style: none;
    }
    .user_posts_container_UP a {
        color: var(--primary-font-color);
        text-decoration: none;
    }

/* USER PROFILE ------------------------------------------ Notifcations Styling */
.notifcations_section_UP {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
    .notifcations_section_UP li {
        list-style: none;
    }
    .notifcations_section_UP a {
        color: var(--primary-font-color);
        text-decoration: none;
    }
.no_margin_or_padding {
    margin: 0px;
    padding: 0px;
}
.notifcation_holder_UP {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    border: 1px solid var( --primary-logo-color);
    border-radius: 2px;
    padding: 5px;
}
    .notifcation_holder_UP.read {
        border: 1px solid var( --post-outline-color);
    }


/* EDIT PROFILE ------------------------------------------ EDIT PROFILE Styling */

.save_button_EP {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0px 0px 5px 0px;
}
.account_settings_holder_EP{
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}
.account_option_block_EP{
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    border: 1px solid var( --post-outline-color);
    border-radius: 2px;
    padding: 10px 10px 15px 10px;
}
.option_EP {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}
.upload_photo_EP {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    column-gap: 10px;
}
.input_field_EP {
    font-size: var( --fs-post-text);
    font-weight: var( --fw-regular);
    font-family: var( --ff-body);
    background-color: var( --secondary-background);
    color: var(--primary-font-color);
    display: block;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 2px;
    resize: none;
    height: 18px;
}
    .input_field_EP.socials {
        width: 245px;
        height: 18px;
        border-radius: 0px 2px 2px 0px;
    }
    .input_field_EP.socials.discord {
        width: 135px;
        min-width: 50px;
    }
    .input_field_EP:focus {
        outline: none;
    }
    .input_field_EP::selection {
        background-color: var(--icon-button-pressed-color);
        color: var(--primary-font-color);
    }
    .input_field_EP::placeholder {
        color: var(--placeholder-font-color);
    }
.social_input_EP {
    display: flex;
    flex-direction: row;
    margin: 0px 0px 5px 0px;
}
.handle_EP{
    background-color: var( --secondary-background);
    color: var(--secondary-font-color);
    font-size: var(--fs-post-text);
    border-radius: 2px 0px 0px 2px;
    padding: 0px 0px 0px 5px;
    display: flex;
    align-items: center;
}
.tiny_gap_EP{
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}
/* NEW POST ------------------------------------------ Containers for new post Styling */


.form_conatiner_NP {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    
}

.post_button_NP {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0px;
}

.title_NP {
    display: block;
    width: 100%;
    margin: 0px;
    border-bottom: 1px solid var( --post-outline-color);
}

.tag_model_space_NP {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    padding: 0px 0px 20px 0px;
    border-bottom: 1px solid var( --post-outline-color);
}

.flex_layout_NP {
    color: var(--primary-font-color);
    font-size: var(--fs-post-text);
    font-weight: var(--fw-bold);
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}
.flex_layout_NP label{
    min-width: 50px;
    padding: 5px 0px 0px 0px;
}
    

.body_NP{
    display: block;
    width: 100%;
    margin: 0px;
}

/* NEW POST ------------------------------------------ Text area Styling */

.text_area_NP {
    font-size: var( --fs-post-text);
    font-weight: var( --fw-regular);
    font-family: var( --ff-body);
    background-color: transparent;
    color: var(--primary-font-color);
    display: block;
    width: 100%;
    overflow-y: hidden;
    resize: none;
    border: none;
    height: 30px;
    border-radius: 5px;
    padding: 5px 5px 5px 0px;
}
    .text_area_NP.title_font {
        font-size: var( --fs-h1);
        font-weight: var( --fw-bold);
    }
    .text_area_NP.body_font {
        font-size: var( --fs-post-text);
        font-weight: var( --fw-medium);
    }
    .text_area_NP:focus {
        outline: none;
    }
    .text_area_NP::selection {
        background-color: var(--icon-button-pressed-color);
        color: var(--primary-font-color);
    }
    .text_area_NP::placeholder {
        color: var(--placeholder-font-color);
    }

.body_text_area_NP {
    font-size: var( --fs-post-text);
    font-weight: var( --fw-regular);
    font-family: var( --ff-body);
    background-color: transparent;
    color: var(--primary-font-color);
    padding: 5px 5px 5px 0px;
}
    .body_text_area_NP::selection {
        background-color: var(--icon-button-pressed-color);
        color: var(--primary-font-color);
    }
.char_counter_NP{
    display: flex;
    justify-content: flex-end;
    font-size: var( --fs-small-detail-text);
    font-weight: var( --fw-regular);
    font-family: var( --ff-body);
    color: var(--secondary-font-color);
    margin: 0px 0px 5px 0px;
}
    .char_counter_NP.EP{
        margin: 0px 0px -15px 0px;
    }
/* NEW POST ------------------------------------------ Markdown SimpleMDE editor Custom Styling ----------------------- */
body .editor-toolbar a {
    color: var(--secondary-font-color) !important;
}
.CodeMirror {
    font-size: var( --fs-post-text);
    font-weight: var( --fw-regular) !important;
    font-family: var( --ff-body) !important; 
    background-color: var(--primary-background) !important;
    color: var(--primary-font-color) !important;
    border: 1px solid var(--secondary-background) !important;
}

.CodeMirror-selected {
    background-color: var(--icon-button-pressed-color) !important;
    color: var(--primary-font-color) !important;
}
.CodeMirror::selection {
    background-color: var(--icon-button-pressed-color) !important;
    color: var(--primary-font-color) !important;
}
.CodeMirror .CodeMirror-cursor {
    border-left-color: var(--primary-font-color);
}


.editor-toolbar {
    opacity: 1 !important;
    border-top: 1px solid var(--secondary-background) !important;
    border-left: 1px solid var(--secondary-background) !important;
    border-right: 1px solid var(--secondary-background) !important;
}

.editor-toolbar a.active, .editor-toolbar a:hover {  
    background: var(--primary-background) !important;
    border-color: var(--primary-background) !important;
    filter: brightness(.85);
}
.editor-toolbar.disabled-for-preview a {
    background: var(--primary-background) !important;
    border-color: var(--primary-background) !important;
    color: var(--disabled-button-font-color) !important;
}

.editor-toolbar i.separator {
    border-left: 1px solid var(--secondary-background) !important;
    border-right: 1px solid var(--primary-button-font-color) !important;
}
.editor-preview, .editor-preview-side {
    background: var(--primary-background) !important;
}
.editor-preview a {
    color: var(--primary-logo-color);
    text-decoration: underline; 
}
.editor-preview pre, .editor-preview code {
    display: block;
    background-color: var(--secondary-background);
    color: var(--primary-font-color);
    font-family: var(--ff-code); /* or any other desired monospace font */
    font-size: var(--fs-post-text);
    padding: 5px 10px;
    border-radius: 5px;
    margin: 10px;
}
.editor-preview pre, .editor-preview-side pre {
    background: transparent !important;
}
  
.lang-prompt {
    color: var(--prompt-code-color) !important;
    white-space: pre-wrap;
}
.lang-response {
    color: var(--response-code-color) !important;
    white-space: pre-wrap;
}
.CodeMirror .CodeMirror-code .cm-comment {
    background: rgba(0,0,0,.25) !important;
    border-radius: 0px !important;
}

.editor-preview ul {
    padding: 10px 0px 10px 40px
}
    .editor-preview ul li::before {
        content: "• ";
        margin-left: -1em;
    }

/* Link styling when in the editor (not preview) */
.CodeMirror .CodeMirror-code .cm-url {
    color: var(--secondary-font-color) !important;
}
.CodeMirror .CodeMirror-code .cm-link {
    color: var(--primary-logo-color) !important;
}
/* Table Styling */
.editor-preview table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}

.editor-preview table th,
.editor-preview table td {
    border: 1px solid var(--post-outline-color) !important;
    padding: 8px;
    text-align: left;
}

.editor-preview table th {
    background-color: var(--primary-background);
    font-weight: bold;
}

.editor-preview table tr:nth-child(odd) {
    background-color: var(--secondary-background);
}

/* Header styling */
.CodeMirror .CodeMirror-code .cm-header-1 {
    font-size: var(--fs-h1) !important;
    font-weight: var(--fw-h1) !important;
}
.CodeMirror .CodeMirror-code .cm-header-2 {
    font-size: var(--fs-h2) !important;
    font-weight: var(--fw-h2) !important;
}
.CodeMirror .CodeMirror-code .cm-header-3 {
    font-size: var(--fs-h3) !important;
    font-weight: var(--fw-h3) !important;
}
.CodeMirror .CodeMirror-code .cm-header-4 {
    font-size: var(--fs-h4) !important;
    font-weight: var(--fw-h4) !important;
    color: var(--secondary-font-color) !important;
}

/* Spellcheck styling */
.CodeMirror .cm-spell-error {
    text-decoration: underline dotted;
    text-decoration-color: var(--red-font-color);
    background-color: transparent !important;

}


/* NEW POST ------------------------------------------ MODELS Tagify Custom Styling ----------------------- */

.tagify.models_NP  {
    --tags-border-color: var(--primary-background);
    --tags-hover-border-color: var(--post-outline-color);
    --tags-focus-border-color: var(--tag-outline-color);
    --tag-border-radius: 5px;
    --tag-text-color: var(--secondary-font-color);
    --tag-text-color--edit: var(--primary-font-color);
    --tag-bg: var(--secondary-background);
    --tag-hover: var(--primary-background);
    background: var(--secondary-background);
    border-radius: 5px;
    font-size: var( --fs-tag-text);
    font-weight: var( --fw-regular);
    font-family: var( --ff-body);
    --tag--max-width: 20ch;
    --placeholder-color: var(--disabled-button-font-color);
}

.tagify__dropdown__item img {
    height: 16px;
    margin: 0px 3px 0px 0px;
    border-radius: 3px;
}
.tagify__tag img {
    height: 14px;
    margin: 0px 3px 0px 0px;
    border-radius: 2px;
}

/* NEW POST ------------------------------------------ TAGS Tagify Custom Styling ----------------------- */

.tagify+input{
    display: block !important;
    position: static !important;
    transform: none !important;
    width: 90%;
    margin-top: 1em;
    padding: .5em;
}

.tagify.tags_NP  {
    --tags-border-color: var(--primary-background);
    --tags-hover-border-color: var(--post-outline-color);
    --tags-focus-border-color: var(--tag-outline-color);
    --tag-border-radius: 5px;
    --tag-text-color: var(--secondary-font-color);
    --tag-text-color--edit: var(--primary-font-color);
    --tag-bg: var(--secondary-background);
    --tag-hover: var(--primary-background);
    background: var(--secondary-background);
    border-radius: 5px;
    font-size: var( --fs-tag-text);
    font-weight: var( --fw-regular);
    font-family: var( --ff-body);
    --tag--max-width: 20ch;
    --placeholder-color: var(--disabled-button-font-color);
}

.tagify__input::before {
    font-weight: var( --fw-bold);
}

.tagify__tag {
    border: 1px solid var(--tag-outline-color);
    border-radius: 5px;
}

.tagify__tag__removeBtn::after {
    color: var(--secondary-font-color);
}
  
.tagify__dropdown__item {
    display: flex;
    font-size: var(--fs-post-text);
    color: var(--primary-font-color);
    background-color: var(--primary-background);
}
.tagify__dropdown__item--active {
    color: var(--primary-font-color) !important;
    background-color: var(--icon-button-pressed-color) !important;
}

.tagify__dropdown {
    border-radius: 5px;
    box-shadow:  0 4px 15px rgb(0 0 0 / 50%) !important
}
.tagify__dropdown__wrapper {
    background-color: var(--primary-background) !important;
    border-radius: 5px;
    border-color: transparent !important;
}
.tagify__dropdown__footer {
    color: var(--primary-font-color) !important;
}
.nsfw_reminder_NP{
    display: flex;
    justify-content: flex-start;
    font-size: var( --fs-small-detail-text);
    font-weight: var( --fw-medium);
    font-family: var( --ff-body);
    color: var(--secondary-font-color);
    margin: 5px 0px 5px 0px;
}


/* ------------------------------------------ TERMS OF USE PAGE ----------------------- */
.main_list > li {
    list-style-type: decimal;
    margin: 0px 0px 25px 0px;
}
.sub-bullets > li {
    list-style-type: lower-alpha;
    margin-left: 20px;
    margin: 0px 0px 15px 0px;

}

/* ------------------------------------------ ERROR PAGES ----------------------- */
.title_space_EP {
    display: flex;
    flex-direction: row;
}
.title_EP {
    font-size: var(--fs-h1);
    font-weight: var(--fw-regular);
    margin: 0px;
}
.logo_space_EP {
    display: flex;
    align-items: center;   
}
.logo_EP img {
    height: 110px;
}
.link_EP a {
    color: var(--primary-logo-color);
    text-decoration: none;
}




/* ------------------------------------------ RESPONSIVE Styling ----------------------- */
/* styles for mobile */
@media (max-width: 479px) {
    
    /* --------------------------------- TOP NAV */
    .search-container {
        display: none;
    }

}

/* styles for small tablet and horizontal mobile */
@media (min-width: 480px) {

    /* --------------------------------- TOP NAV */
    nav {
        justify-content: space-between;
    }

    .nav_links {
        display: flex;
        flex-direction: row;
        justify-content: end;
        width: auto;
        column-gap: 25px;
    }

    .small_nav_search {
        /* for mobile vertical and up, show full search bar */
        display: none;
    }
    .mobile-search-dropdown { /*chatgpt*/
        display: none;
    }

    /* --------------------------------- FEED */
    /* -------------- feed posts */
    .feed_post_container {
        padding: 5px 0px 10px 0px;
        margin: 5px 0px 5px 0px;
    }
    .feedpost_date_posted {
        /* adding just a smidge of padding to the end of the small date*/
        padding: 0px 5px 0px 0px;
    }
    .author_holder_small.mobile_hide {
        display: flex;
    }
    .interaction_button_holder_FP,
    .interaction_button_holder_comment,
    .interaction_button_holder {
        /* this holder allows for reformating on desktop*/
        display: flex;
        justify-content: start;
        column-gap: 40px;
        width: auto;
    }
    /* --------------------------------- Full post */
    p img { 
        max-width: 400px;
        margin: 10px;
    }
    /* --------------------------------- Terms of Use */
    .main_list > li {
        list-style-type: decimal;
        margin: 0px 0px 25px 20px;
    }
    .sub-bullets > li {
        list-style-type: lower-alpha;
        margin-left: 20px;
        margin: 0px 0px 15px 20px;
    }
}

/* styles for tablet */
@media (min-width: 768px) {

    /* --------------------------------- misc */
    .separator.hide_mobile {
        display: block;
    }
    /* --------------------------------- TOP NAV */
    nav {
        padding: 7px 20px 7px 20px;
    }
    .nav_logo {
        display: block;
    }
    
    .small_nav_logo {
        display: none;
    }
    /* --------------------------------- Content body */
    .content_container {
        margin: 20px 20px 0px 20px;
    }
    /* --------------------------------- Username set up*/
    .username_page_container {
        margin: 20px;
    }
    /* --------------------------------- Report Modal */
    .modal-content {
        margin: 10% auto;
      }

    /* --------------------------------- FEED */
    .feed_post.body {
        padding: 5px 10px 0px 10px;
    }
    /* --------------------------------- User profile */
    .user_info_holder_UP.top{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .username_badge_space_UP {
        margin: 0px 0px 0px 10px;
    }
    .metadata_UP {
        display: flex;
        flex-direction: row;
        column-gap: 5px;
    }
    .notifcation_holder_UP {
        flex-direction: row;
        column-gap: 10px;
        padding: 10px;
        justify-content: space-between;
        align-items: flex-end;
    }
    

}

@media (min-width: 651px) {
    /* --------------------------------- NEW POST */
    /* ----------------- Editor.js  */
    .ce-toolbar__actions {
        right: auto;
    }
    .ce-block__content {
        margin: 0px 0px 0px 60px;
    }
}

/* styles for desktop */
@media (min-width: 991px) {

    
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    /* --------------------------------- NAV */
    nav {
        width: calc(100% - 40px);
    }

    /* -------------- SIDE NAV */
    .side_nav {
        display: block;
    }
    .user_info_side_nav.metadata_holder {
        flex-direction: column;
        width: 180px;
        margin: 10px 0px 0px 0px;
    }

    /* --------------------------------- FEED */
    .content_container {
        /* making room for the side nav */
        margin: 20px 220px 0px 20px;
    }

    /* -------------------------------- FULL POST */
    .author_space {
        display: none;
    }
    .full_post_body {
        margin: 0px 0px 10px 0px;
    }

    /* --------------------------------- NEW POST */
    /* ----------------- Editor.js  */

}
