 @font-face {
     font-family: Varela;
     src: url('fonts/VarelaRound-Regular.ttf');
 }

:root {
    --primary: #0099ff;
    --primary-light: #4fb9ff;
    --primary-dark: #006eb7;
    --background: #ffffff;
    --background-dark: #f0f0f0;
    --background-dark2: #d3d3d3;
    --background-darker: #949494;

    --color-delete: #ff5b32;
    --color-success: #15ff00;
    --color-warning: #ff9500;

    --color-active: #15ff00;
    --color-away: #ff9500;

    --text: #000000;
    --text-sec: #515151;
    --text-sec2: #717171;
    --border-r: 20px;
    --side: 0px;
    --mainoffset: 0px;

    --filter-text: ;
    --filter-text-sec: ;
    --filter-text-sec2: ;

    --post-grid-width: 100%;
    --post-width: 200px;

    --keyboard-height: 0px;

    --filter-error: invert(56%) sepia(62%) saturate(5232%) hue-rotate(340deg) brightness(102%) contrast(101%);
    --filter-warn: invert(73%) sepia(51%) saturate(5785%) hue-rotate(3deg) brightness(105%) contrast(101%);
    --filter-success: invert(69%) sepia(48%) saturate(5107%) hue-rotate(73deg) brightness(114%) contrast(125%);
}



/* :root .dark {
    --background: #1c1c1c;
    --background-dark: #272727;
    --background-dark2: #505050;
    --background-darker: #707070;

    --text: #fefefe;
    --text-sec: #adadad;
    --text-sec2: #717171;
} */


:root .dark {
    --background: #181818;
    --background-dark: #1e1e1e;
    --background-dark2: #313131;
    --background-darker: #6b6b6b;

    --text: #ffffff;
    --text-sec: #aeaeae;
    --text-sec2: #8e8e8e;
}

body {
    background-color: var(--background-dark2);
    font-family: Varela;
    color: var(--text);
    /* margin-top: env(safe-area-inset-top); */
    /* overscroll-behavior: contain; */
    /* height: 120%;
    overflow: scroll; */
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

html,
body {
    overscroll-behavior-y: contain;
    /* 🚫 stops pull-to-refresh */
    height: 100%;
    margin: 0;
}

/* For iOS Safari */
* {
    -webkit-tap-highlight-color: transparent;
}

/* For Chrome/Android + general focus outline */
*:focus {
    outline: none;
}

input,
select,
textarea, * {
    color: var(--text);
    font-family: Varela;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.text-sec {
    color: var(--text-sec);
}

.text-small {
    font-size: 12px;
}

.text-big {
    font-size: 25px;
}

.text-huge {
    font-size: 40px;
}

.text-center {
    text-align: center;
}

.text-bold{
    font-weight: bold !important;
}

.text-primary {
    color: var(--primary) !important;
}


.blur {
    filter: blur(20px) !important;
}

.marg10 {
    margin: 10px !important;
}

.space50{
    height: 50px;
}

.space100 {
    height: 100px;
}


.divider-line {
    height: 1px;
    opacity: 0.5;
    width: 50px;
    background: var(--text-sec2);
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0px;
}

.container-dev {
    /* display: flex; */
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
}

.container-dev .contentdev {
    position: relative;
    /* width: 300px; */
    top: 50%;
    -ms-transform: translate(0%, -100%);
    transform: translate(0%, -100%);
}



/* loading */

.loading-back {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--background);
    opacity: 0.6;
}

.loading-container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 25;
}

.loading-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: var(--text);
    top: 50%;
    left: 50%;
    font-size: 14px;
    -ms-transform: translate(-50%, -200%);
    transform: translate(-50%, -200%);
}

.loading-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: loading-rotation 0.5s infinite linear;
    animation: loading-rotation 0.5s infinite linear;
}

@-webkit-keyframes loading-rotation {
    from {
        -webkit-transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        -webkit-transform: translate(-50%, -50%) rotate(359deg);
    }
}

@keyframes loading-rotation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(359deg);
    }
}

/* loading end */


/* edit box */

/* Change the white to any color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--text);
    transition: var(--background-dark) 5000s ease-in-out 0s;
    box-shadow: inset 0 0 8px -4px var(--text-sec2);
}



/* edit text */
.edit-text {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--background-dark2);
    border-radius: 10px;
    margin: 5px;
    overflow: hidden;
}

.edit-text-input:focus~.edit-text-label,
.edit-text-input:not(:focus):valid~.edit-text-label {
    top: 5px;
    left: 10px;
    font-size: 12px;
    opacity: 0.8;
}

.edit-text-input:focus~.edit-text-placeholder,
.edit-text-input:not(:focus):valid~.edit-text-placeholder {
    opacity: 0.8;
}

.edit-text-input:focus,
.edit-text-input:not(:focus):valid {
   /* color: #006eb7; */
   /* padding-top: 10px; */
}

.edit-text-input {
    background: transparent;
    font-size: 15px;
    width: calc(100% - 20px);
    height: 40px;
    color: var(--text);
    border-width: 0;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    transition: 0.3s ease all;
    left: 5px;
    /* margin: 6px; */
    /* margin-left: 10px;
    margin-right: 10px; */
}

.edit-text-label {
    color: var(--text);
    font-size: 15px;
    position: absolute;
    pointer-events: none;
    left: 10px;
    top: 15px;
    opacity: 0.3;
    transition: 0.2s ease all;
}

.show-label~.edit-text-label
 {
    top: 5px;
    left: 10px;
    font-size: 12px;
    opacity: 0.8;
}

/* .show-label 
{
    padding-top: 10px;
} */
/* .edit-text-placeholder {
    color: var(--text);
    font-size: 14px;
    position: absolute;
    pointer-events: none;
    left: 10px;
    top: 20px;
    opacity: 0;
    transition: 0.2s ease all;
} */



.edit-text-label-bottom {
    color: var(--color-delete);
    position: relative;
    pointer-events: none;
    font-size: 12px;
    margin-left: 10px;
    margin-bottom: 15px;
    transition: 5s ease all;
}

/* edit text */

/* edit textarea */

textarea {
    border: none;
    outline: none;
}

.edit-textarea {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--background-dark2);
    border-radius: 10px;
    margin: 5px;
    overflow: hidden;
}

.edit-textarea-input:focus~.edit-textarea-label,
.edit-textarea-input:not(:focus):valid~.edit-textarea-label {
    top: 5px;
    left: 10px;
    font-size: 12px;
    opacity: 0.8;
}

.edit-textarea-input:focus,
.edit-textarea-input:not(:focus):valid {
    /* color: #006eb7; */
    /* padding-top: 10px; */
}

.edit-textarea-input {
    background: transparent;
    font-size: 15px;
    width: calc(100% - 20px);
    resize: none;
    min-height: 40px;
    margin-top: 10px;
    color: var(--text);
    border-width: 0;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    line-height: 20px;
    /* transition: 0.3s ease all; */
    left: 5px;
    /* margin: 6px; */
    /* margin-left: 10px;
    margin-right: 10px; */
}

.edit-textarea-label {
    color: var(--text);
    font-size: 15px;
    position: absolute;
    pointer-events: none;
    left: 10px;
    top: 12px;
    opacity: 0.3;
    transition: 0.2s ease all;
}

.edit-textarea-label-bottom {
    color: var(--color-delete);
    position: relative;
    pointer-events: none;
    font-size: 10px;
    margin-left: 10px;
    margin-bottom: 15px;
    transition: 5s ease all;
}

/*  */
.hidden-label {
    opacity: 0;
    height: 0 !important;
    margin-bottom: 0px !important;
}

.label-warning {
   color: var(--color-warning) !important;
}

.label-error {
    color: var(--color-delete) !important;
}

.label-success {
    color: var(--color-success) !important;
}


/* edit text */


/* login page */

.container-login {
    /* display: flex; */
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;

    max-height: calc(100% - 50px);
    overflow: auto;
}

.content-login {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 400px;
    justify-content: center;
    margin-bottom: 100px;
    /* top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%); */

    top: 10%;
    left: 50%;
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);

    padding: 30px;

    background: var(--background-dark);
    border-radius: 20px;
}

.content-login-title {
    text-align: center;
    width: 100%;
    margin: 20px 0px;
}

.content-login-logo {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 20px 0px;

    left: 50%;
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
}

.button-login {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* background: var(--background-dark); */
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    background: var(--text);
    color: var(--background);
    text-align: center;
    height: 20px;
    margin: 15px 20px;
    font-weight: bold;
}

.button-login:active {
    background: var(--primary);
    color: var(--background);
    translate: 0px 2px;
}


.post-user-profile-pic {
    width: 20px !important;
    height: 20px !important;
    margin-right: 5px !important;
    margin-left: 4px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-user-profile-pic img {
    filter: none;
    object-fit: cover;
    width: 100%;
    height: 100%;
}


.button-login-google {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* background: var(--background-dark); */
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    background: var(--text);
    color: var(--background);
    text-align: center;
    height: 20px;
    margin: 15px 20px;
    font-weight: bold;
}

.button-login-google:active {
    background: var(--primary);
    color: var(--background);
    translate: 0px 2px;
}

.google-icon {
    position: absolute;
    left: 12px;
    /* distance from left edge */
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    /* adjust size */
    height: 18px;
}


.container-login-back-button {
    position: absolute;
    left: 10px;
    top: 10px;
}

.content-login-no-account {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}
/* login page */



.clickable-text {
    color: var(--primary);
    user-select: none;
    cursor: pointer;
}

.clickable-text:active {
    color: var(--primary-light);
    translate: 0px 2px;
}

.clickable-text:hover {
    color: var(--primary-light);
}

/* 
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance:none;
} */

.icon {
    filter: var(--filter-text);
}

.icon-sec {
    filter: var(--filter-text-sec);
}

.icon-sec2 {
    filter: var(--filter-text-sec2);
}


.none {
    display: none !important;
}

.blur-back {
    backdrop-filter: blur(10px);
}

::-webkit-input-placeholder {
    /* Edge */
    color: var(--text);
    opacity: 0.3;
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: var(--text);
    opacity: 0.3;
}

::placeholder {
    color: var(--text);
    opacity: 0.3;
}


.overlays {
    position: fixed;
    z-index: 100;
    /* width: 100%;
    height: 100%; */
    left: 0px;
    top: 0px;
}


/* search bar */

input:focus {
    outline: none;
}



.searchbar-wrapper {
    z-index: 30;
    position: absolute;
    left: 50px;
    top: 6px;
    width: calc(100% - 55px - 100px);
    min-width: 100px;
    max-width: 400px;
    /* display: flex; */

    /* height: 20px; */

    /* background-image: url('/static/textures/ui/ic_search.png');
    background-position: calc(100% - 10px) 10px;
    background-repeat: no-repeat;
    background-size: 15px 15px;
    padding-right: 40px; */

    /* padding-right: 35px; */
    /* padding-left: 10px;
    padding-right: 35px;
    padding-top: 8px;
    padding-bottom: 8px; */

    /* font-size: 16px;
    font-weight: bold;
    border-width: 0; */
    background-color: var(--background-dark);
    border-radius: 20px;

    transition: all 0.3s ease-in-out;
}

.searchbar-wrapper:focus-within {
    max-width: 450px;
    /* width: 80%;
    left: calc(10% - 20px); */
    /* min-width: 80%;
    max-width: 80%; */
    background-color: var(--background);
    box-shadow: 0px 0px 14px -5px var(--text-sec);
    ;
}

/*  */

.searchbar {
    /* z-index: 30;
    position: absolute;
    left: 50px;
    top: 6px;
    width: calc(100% - 55px - 140px);
    min-width: 100px;
    max-width: 400px;
    display: inline-block; */
    width: calc(100% - 80px);
    ;
    height: 20px;
    background-color: transparent;
    /* background-image: url('/static/textures/ui/ic_search.png');
    background-position: calc(100% - 10px) 10px;
    background-repeat: no-repeat;
    background-size: 15px 15px;
    padding-right: 40px; */

    padding-left: 10px;
    padding-right: 100px;
    padding-top: 8px;
    padding-bottom: 8px;

    font-size: 16px;
    font-weight: bold;
    border-width: 0;
    /* background-color: var(--background-dark);
    border-radius: 20px; */

    /* transition: all 0.3s ease-in-out; */
}



.searchbar-clear-button {
    position: absolute;
    right: 45px;

    width: 30px !important;
    height: 30px !important;

    /* background: red; */

    top: 50%;
    -ms-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
}

.searchbar-clear-button:active {
    background: var(--color-delete) !important;
}

.searchbar-clear-button:hover {
    background: var(--color-delete) !important;
}

.searchbar-search-button {
    position: absolute;
    right: 10px;

    width: 30px !important;
    height: 30px !important;

    /* background: red; */

    top: 50%;
    -ms-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
}

.center-h {
    left: 50%;
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
}

.center-v {
    top: 50%;
    -ms-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
}

.center-vh {
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}



/* search bar end */



.listings {
    flex: 1;
    margin-top: 10px;
    margin-bottom: 20px;
}

.listings-found {
    color: var(--text-sec);
}



/* listbox */

.listbox {
    position: fixed;
    width: 100%;
    height: 100%;
    /* transition: opacity 0.2s ease-out; */
}

.listbox::before {
    content: "";
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0px;
    top: 0px;
    background: var(--text-sec2);
    opacity: 0.05;
}

.listbox-back {
    position: fixed;
    width: 100%;
    height: 100%;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(1px);
}

.listbox-panel {
    position: fixed;
    /* top: 0px;
    left: 0px; */
    width: 200px;
    /* height: 200px; */
    padding: 10px;
    background: var(--background);
    border-radius: 20px;
}

.listbox-content {
    position: relative;
    justify-content: center;
    /* display: flex;
    flex-direction: row; */
    max-height: 400px;
    width: 100%;
    overflow: overlay;
    overflow-x: hidden;
}

.listbox-button {
    width: calc(100% - 10px) !important;
    margin: 0px 2px;
    text-align: center;
}

.listbox-title {
    font-weight: bold !important;
    padding: 0px 10px;
    margin-bottom: 4px;
}

.listbox-split {
    position: relative;
    width: 80%;
    left: 10%;
    margin-top: 10px;
    margin-bottom: 10px;
    background: var(--background-dark2);
    height: 2px;
    border-radius: 2px;
}


.listbox-button {
    background: var(--background);
    border-radius: 20px;
    width: 100%;
    height: 26px;
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    cursor: pointer;

    margin-bottom: 4px;
    margin-top: 4px;

    -webkit-transition: all 0.1s ease-out;
    -moz-transition: all 0.1s ease-out;
    -o-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;
}

.listbox-button:active {
    /* translate: 00px 2px; */
    background: var(--background-dark);
}

.listbox-button-text {
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    margin-left: 8px;
    line-height: 26px;
    /* margin-right: 30px; */
}

.listbox-button-icon {
    padding: 0px;
    margin: 0px;
    width: 30px;
    height: 30px;
    border-radius: 40px;
    /* background: var(--background); */
}

.listbox-button-iconimg {
    width: 50%;
    height: 50%;
    padding: 25%;
    -webkit-touch-callout: none;
    user-select: none;
    pointer-events: none;

}

.space20 {
    height: 20px;
    width: 20px;
}

.space10 {
    height: 10px;
    width: 10px;
}

/* listbox end */


  /* image viewer */

  .image-viewer-wrapper {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 100;

      /* semi-transparent background with blur */
      background: rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);

      display: flex;
      justify-content: center;
      align-items: center;
  }

    .image-viewer-back {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
  .image-viewer {
      max-width: 90%;
      max-height: 90%;
      object-fit: contain;
      border-radius: 6px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }

  .image-viewer-close-button {
      position: absolute;
      top: 15px;
      right: 20px;
      font-size: 28px;
      color: white;
      cursor: pointer;
      user-select: none;
  }

  /*  */

::-moz-selection {
    color: var(--text);
    background: var(--primary);
}

::selection {
    color: var(--text);
    background: var(--primary);
}


::-webkit-scrollbar {
    width: 4px;
    margin: 0;
    padding: 0;
}

/* Track */
::-webkit-scrollbar-track {
    border-radius: 4px;
    background: var(--background-dark2);
    margin-top: 15px;
    margin-bottom: 30px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background-color: var(--background-darker);
    border-radius: 4px;
}

/* Handle on hover
::-webkit-scrollbar-thumb:hover {
    background: #aaaaaa;
} */

.noSelect {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.noEvents {
    pointer-events: none;
}

.noSelect:focus {
    outline: none !important;
}


.main-container {
    background: var(--background);
    position: fixed;
    left: calc(var(--side) + 10px );
    top: 10px;
    width: calc(100% - var(--side)  - 20px);
    height: calc(100% - 20px);
    border-radius: 20px;
    min-width: 300px;
    /* max-width: 900px; */
    /* 
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out; */
}

@media (max-width: 700px) {
.main-container {
        width: calc(100% - var(--side) - 10px ) !important;
        height: calc(100%) !important;
        top: 0px !important;
        /* border-radius: 0px !important; */
    }

.container-v {
    padding-right: 10px !important;
}

.post-card-grid-container-wrapper {
    padding-right: 0px;
}
}


.post-card-grid-container-wrapper-nopadding{
    margin-bottom: 10px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    background: transparent !important;
}

.post-card-grid-container-nopadding {
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-bottom: 0px !important;
    padding-top: 0px !important;
    background: transparent !important;
}

/* post-fade-scroll - add none */
/* post-fade-top - add none */
/* post-fade-bottom - add none */

.padding10px {
    padding: 10px;
}

.padding20px {
    padding: 20px;
}



.main-menu {
    position: fixed;
    display: flex;
    flex-direction: column;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 190px;
}

.menu-top {
    margin-top: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 2px;
    padding-right: 2px;
}

.menu-middle {
    flex: 1;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 2px;
    padding-right: 2px;
}

.menu-bottom {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 2px;
    padding-right: 2px;
    margin-bottom: 10px;
}

.menu-socials {
    display: flex;
    width: 100%;
    flex-direction: row;
    margin: 4px;
    justify-content: center;
}

.menu-socials-button {
    margin: 6px;
}

.title {
    position: absolute;
    right: 20px;
    font-weight: bold;
    user-select: none;
    margin-top: 2px;
}

.fill{
    width: 100%;
    height: 100%;
    opacity: 0;
}


.container-v {
    display: flex;
    flex-direction: column;
    /* background: red; */
    height: 100%;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 10px;
    padding-bottom: 5px;
}

.top-bar {
    height: 40px;
    /* background: red; */
}

/* refresh scroll */

.refrech-scroll-container {
    overflow-y: auto;
    /* height: 100vh; */
    -webkit-overflow-scrolling: touch;
    /* smooth iOS scrolling */
    /* position: relative; */
}

.refresh-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    transform: translateY(-50px);
    z-index: 2;
    font-size: 14px;
    color: var(--text-sec);
}

.refresh-indicator.active {
    transform: translateY(0);
    color: var(--text);
}

/* Post card */

.post-card-grid-container-wrapper {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    flex: 1;
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    padding-left: 4px;
    padding-right: 4px;
}

.post-card-grid-container {
    justify-content: center;
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 8px;
    padding-bottom: 8px;
    height: 100%;
    width: 100%;
    flex-grow: 1;
    flex: 1;
    /* flex-grow: 1;
    flex: 1;
    position: relative; */
    /* flex-grow: 1; */
    background: var(--background-dark);
    border-radius: 10px;
    /* padding: 10px; */
    overflow: overlay;
    overflow-x: hidden;
    /* margin-bottom: 20px; */
}

/* .post-card-grid-container::-webkit-scrollbar-track {
    background: var(--post-scroll-track-color);
    transition: all 3s ease-out;
}

.post-card-grid-container::-webkit-scrollbar-thumb {
    background: var(--post-scroll-color);
    transition: all 3s ease-out;
} */

.post-fade-scroll {
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: var(--background-dark);
    transition: all 0.5s;
}

.post-fade-top {
    position: absolute;
    z-index: 10;
    top: 0;
    width: 100%;
    margin-left: 10px;
    margin-right: 10px;
    /* margin-left: 10px; */
    height: 15px;
    background-image: linear-gradient(var(--background-dark), transparent);
}

.post-fade-bottom {
    position: absolute;
    z-index: 10;
    bottom: 0;
    width: 100%;
    margin-left: 10px;
    margin-right: 10px;
    /* margin-left: 10px; */
    height: 15px;
    background-image: linear-gradient(transparent, var(--background-dark));
}

.post-card-grid {
    width: var(--post-grid-width);
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    justify-content: flex-start;
    padding-bottom: 20px;
    margin: 0 auto;
    /* background: var(--background-dark2); */
}


.post-card {
    position: relative;
    background: var(--background);
    width: var(--post-width);
    /* min-width: 200px;
    max-width: 300px; */
    /* flex-grow: 1; */
    /* width: var(--post-width); */
    /* max-width: var(--post-width); */
    /* height: 360px; */
    margin: 5px;
    border-radius: 20px;
    box-shadow: 0px 0px 2px -1px var(--text-sec);
    border-radius: 20px;

    /*   display: flex; */
    justify-content: center;
    align-items: center;

    /* -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out; */
    transition: box-shadow 0.3s ease-out;
}

.post-card:hover {
    box-shadow: 0px 0px 5px -2px var(--text-sec);
}


.post-card-header {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 20px;
    background: var(--background-dark2);
    overflow: hidden;
    cursor: pointer;
}

.post-card-img {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: cover;
}

.post-card-handle {
    position: absolute;
    z-index: 3;
    font-size: 11px;
    padding-left: 6px;
    padding-right: 6px;
    padding-bottom: 6px;
    padding-top: 6px;
    margin-top: 10px;
    margin-left: 10px;
    background: var(--primary);
    /* color: var(--background); */
    color: white;
    text-align: center;
    display: inline-block;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    left: 0;
    top: 0;
    /* font-weight: bold; */

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.post-card-title {
    width: 80%;
    left: 10%;
    margin-top: 5px;
    position: relative;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    font-size: 14px;
}

.post-card-headline {
    width: 80%;
    left: 10%;
    margin-top: 5px;
    position: relative;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.4;
    height: calc(1.4em * 2);
}

.post-card-tag {
    position: relative;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 4px;
    padding-top: 4px;
    margin-top: 10px;
    background: var(--background-dark);
    text-align: center;
    display: inline-block;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    left: 50%;
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    font-size: 12px;
}


.post-card-city {
    position: absolute;
    z-index: 3;
    font-size: 11px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 4px;
    padding-top: 4px;
    margin-bottom: 10px;
    margin-left: 10px;
    background: var(--background-dark);
    text-align: center;
    display: inline-block;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    left: 0;
    bottom: 0;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.post-card-like {
    position: absolute;
    z-index: 3;
    margin: 10px;
    right: 0;
    top: 0;
}

.liked {
    filter: invert(33%) sepia(80%) saturate(3201%) hue-rotate(344deg) brightness(99%) contrast(104%) !important;
}

.post-card-img-back {
    position: absolute;
    opacity: 0.5;
    z-index: 1;
    width: 30px;
    height: 30px;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    filter: var(--filter-text-sec);
}

.post-card-images {
    position: absolute !important;
    z-index: 3;
    width: fit-content;
    max-height: 15px !important;
    margin: 10px !important;
    right: 0;
    bottom: 0;
    max-width: 50px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    padding-bottom: 2px !important;
    padding-top: 2px !important;
    pointer-events: none !important;
}

.post-card-images-text {
    font-size: 10px;
    margin-right: 0px !important;
}

.post-card-images-icon {
    width: 12px;
    height: 12px;
}


.post-card-bottom {
    flex-direction: row;
    /* position: absolute; */
    /* bottom: 8px; */
    /* left: 0px; */
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    /* height: 40px; */
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    /* background: red; */
    /* padding: 4px; */
}

.post-card-user {
    max-height: 20px;
    right: 0px;
    bottom: 0px;
    width: revert !important;
    /* bottom: 0; */
    /* max-width: 100px; */
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 2px;
    padding-top: 2px;
    margin: auto 10px !important;
    /* position: absolute; */
    /* top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%); */
}

.post-card-user-text {
    font-size: 14px;
    flex-grow: 0;
    flex: 0;
    max-width: 100px;
    margin-right: 10px !important;
}

.post-card-user-icon {
    width: 15px;
    height: 15px;
}


.post-card-posted {
    font-size: 14px;
    color: var(--text-sec2);
    margin: auto 10px !important;
}

/* Post card end */


.placeholder {
    /* overflow: hidden; */
    /* min-height: 20x; */
    background: transparent;
    background-color: var(--background-dark);
    color: transparent !important;
    border-radius: 20px;
    -webkit-animation: glow linear 2s infinite;
    animation: glow linear 2s infinite;
    pointer-events: none !important;
    -webkit-user-select: none !important;
    /* Safari */
    -ms-user-select: none !important;
        /* IE 10 and IE 11 */
    user-select: none!important;
        /* Standard syntax */
}

.placeholder div {
    color: transparent !important;
}

.placeholder * {
    color: transparent !important;
}

.placeholder img {
    visibility: hidden;
}

@-webkit-keyframes glow {
    0% {
        background-color: var(--background-dark);
    }

    50% {
        background-color: var(--background-dark2);
    }

    100% {
        background-color: var(--background-dark);
    }

}

@keyframes glow {
    0% {
        background-color: var(--background-dark);
    }

    50% {
        background-color: var(--background-dark2);
    }

    100% {
        background-color: var(--background-dark);
    }
}

.shine {
    overflow: hidden;
}

.shining {
    position: absolute;

    background: linear-gradient(to right, transparent, var(--background-dark), transparent);

    width: 200%;
    height: 100%;

    -webkit-animation-duration: 2s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: placeholderShimmer;
    -webkit-animation-timing-function: linear;
}

@-webkit-keyframes placeholderShimmer {
    0% {
        translate: -200% 0;
    }

    100% {
        translate: 200% 0;
    }
}

.load-more {
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
}


.container-404 {
    /* display: flex; */
    flex: 1;
}

.container-404 .content404 {
    margin: auto auto;
    width: 200px;
}

.container-404 .text404 {
    margin: 20px;
    font-size: 15px;
    text-align: center;
}


.loading-overlay {
    background: var(--background);
    position: fixed;
    left: 10px;
    top: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 20px;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease-out;
}

.loading-overlay .content {
    position: relative;
    width: 100%;
    height: 100%;
}

.loading-overlay .content .logo {
    position: absolute;
    width: 70px;
    height: 70px;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    /* opacity: 1; */
    transition: opacity 0.1s ease-out;
}

.fade {
    opacity: 0;
}

.hidden {
    visibility: hidden;
}

.unvisible {
    opacity: 0 !important;
}

/*  ui elements */

.disabled {
    /* pointer-events: none !important; */
}

.disabled>div {
    opacity: 0.5 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease-in-out;
}

.disabled:hover>div {
    opacity: 0.5 !important;
    pointer-events: none !important;
}


/* tooltip */

.tooltip-container {
    position: fixed;
    width: 0px;
    height: 0px;
    z-index: 10;
    /* width: 100%;
    height: 100%;
    transition: opacity 0.2s ease-out; */
}

.tooltip-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    /* width: 200px; */
    /* height: 200px; */
    max-width: 170px;
    padding: 8px;
    background: var(--background);
    border-radius: 20px;
    box-shadow: 0px 0px 16px -6px var(--text-sec);
}

.tooltip-text {
    position: relative;
    color: var(--text);
    font-size: 13px;
}

/* tooltip end */


/* message box */

.message-back {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--background);
    opacity: 0.4;
}

.message-container {
    position: fixed;
    width: 0px;
    height: 0px;
    z-index: 20;
}

.message-panel {
    position: fixed;

    top: calc(50% - var(--keyboard-height));
    left: 50%;
    transform: translate(-50%, -50%);

    max-width: 280px;
    min-width: 200px;
    padding: 20px;

    backdrop-filter: blur(10px);
    border-radius: 20px;

   
    /* box-shadow: 0px 0px 16px -6px var(--text-sec); */
}

.message-header {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.message-title {
    position: relative;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
    font-weight: bold;
    font-size: 16px;
}

.message-icon {
    position: absolute;
    width: 15px;
    height: 15px;
    pointer-events: none;
    top: 50%;
    right: 0px;
    transform: translate(-50%, -50%);
}

.message-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    z-index: -1;
    opacity: 0.5;
    border-radius: 20px;

    border-width: 1px;
    border-color: var(--text-sec);
    border-style: solid;
}

.message-text {
    position: relative;
    color: var(--text);
    /* font-size: 12px; */
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 20px;
}

.message-buttons {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.message-button {
    text-align: center;
    min-width: 40px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* background: var(--background-dark); */
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    background: var(--text);
    color: var(--background);
}

.message-button:active {
    background: var(--primary);
    color: var(--background);
    translate: 0px 2px;
}

/* message box end */


/* button primary */

.button-primary {
    position: relative;
    background: var(--background);
    border-radius: 20px;
    width: 100%;
    height: 26px;
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    cursor: pointer;

    margin-bottom: 4px;

    -webkit-transition: all 0.1s ease-out;
    -moz-transition: all 0.1s ease-out;
    -o-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;
}

.button-primary:active {
    translate: 00px 2px;
    background: var(--background-dark);
}

.button-primary-text {
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    margin-right: 30px;
}

.button-primary-icon {
    padding: 0px;
    margin: 0px;
    width: 30px;
    height: 30px;
    border-radius: 40px;
    /* background: var(--background); */
}

.button-primary-iconimg {
    width: 50%;
    height: 50%;
    padding: 25%;
    -webkit-touch-callout: none;
    user-select: none;
    pointer-events: none;
    filter: var(--filter-text);
}

/* button round */

.button-round {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    background: var(--background-dark);
    user-select: none;
    cursor: pointer;

    -webkit-transition: all 0.1s ease-out;
    -moz-transition: all 0.1s ease-out;
    -o-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;

    align-content: center;
}

.button-round:active {
    translate: 00px 2px;
    background: var(--background-dark2);
}


.button-round-icon {
    position: relative;
    padding: 0px;
    margin: auto;
    width: 30px;
    height: 30px;
    border-radius: 30px;
}

.button-round-iconimg {
    width: 60%;
    height: 60%;

    -webkit-touch-callout: none;
    pointer-events: none;
    user-select: none;

    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);

    filter: var(--filter-text);
}


@media (hover: hover) and (pointer: fine) {
    .button-primary:hover {
        background: var(--background-dark);
    }

    .button-round:hover {
        background: var(--background-dark2);
    }
}