* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    position: relative;
}

body {
    width: 100%;
    height: auto;
    background-color: #f1f4f9;
    display: flex;
    justify-content: center;
    overflow: auto;
    position: relative;
}

.right-side {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 9999 !important;
}

.right-side {
  display: none;
}

.right-side.show {
  display: block;
}

#loginForm, #registerForm {
    background-color: rgba(51, 51, 51, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    margin: 0 !important;
    border-radius: 12px !important;
}

.forming {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.cls-1 {
	fill: #fff;
	stroke-width: 0px;
}

.input {
    display: flex;
    flex-direction: column;
    gap: 17px;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, roboto, Helvetica Neue, helvetica, arial, sans-serif;
}

.inp, .reg-inp {
    width: 295px;
    height: 60px;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1) !important;
    background-color: #000000;
    outline: 0;
    box-shadow: none;
    border: 0;
    overflow: hidden;
    padding-left: 13px;
    padding-top: 20px;
    font-size: 15px;
    color: white;
}

.inp:focus, .reg-inp:focus {
    outline: 1px solid rgb(221, 224, 226, 0.6);
}

.inp:focus + .label,
.inp.has-value + .label {
    top: -10px;
    font-size: 12px;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    padding: 69px;
}

.logo svg {
    width: 72px;
}

.st1 {
    fill: rgb(111, 169, 46) !important;
}

.st0 {
    fill:#FFFFFF;
}

.label {
    color: #dde0e2;
    position: absolute;
    opacity: 0.75;
    left: 13px;
    line-height: 56px;
    font-size: 15px;
    transition: 0.2s all;
    pointer-events: none;
}

.login-inp, .registry-inp {
    position: relative;
}

#loginErrorBlock, #passwordErrorBlock {
    font-size: 15px;
    line-height: 18px;
    color: #fff;
    max-width: 295px;
    position: absolute;
    z-index: 2;
    transition: .2s ease-in-out;
    padding-top: 10px;
}

.valid {
    background-color: rgb(252, 72, 72);
    width: 100%;
    padding: 8px 20px 12px 13px;
    position: relative;
}

.valid::after {
    content: '';
    font-size: 8px;
    position: absolute;
    width: 8px;
    height: 8px;
    clip-path: polygon(50% 12%, 100% 87%, 0% 87%);
    top: -9px;
    left: 12px;
    background-color: rgb(252, 72, 72);
}

.rememberMe {
    color: #dde0e2;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, roboto, Helvetica Neue, helvetica, arial, sans-serif;
}

.rememberMe span:hover{
    text-decoration: underline;
    cursor: pointer;
}

.remember {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#rememberMe {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid rgb(221, 224, 226, 0.6);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  background-color: #ffffff00;
  transition: background-color 0.2s, border-color 0.2s;
}

#rememberMe:checked {
  background-color: #2195f300;
}

#rememberMe:checked::after {
  content: "✔"; 
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  font-size: 14px;
  color: white;
}

.check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 25px auto 21px;
}

.btn {
    display: block;
    background: rgb(0, 0, 0);
    color: #fff;
    font-size: 16px;
    padding: 11px 0 12px;
    width: 160px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    margin: 0 auto;
    white-space: pre;
    -webkit-transition: all 250ms ease;
    -moz-transition: all 250ms ease;
    -o-transition: all 250ms ease;
    -ms-transition: all 250ms ease;
    transition: all 250ms ease;
    box-shadow: none;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, roboto, Helvetica Neue, helvetica, arial, sans-serif;
}

.btn:hover {
    background-color: rgb(221, 224, 226, 0.6);
    text-decoration: underline;
}

.reset {
    margin-top: 25px;
    margin-bottom: 65px;
    text-align: center;
    position: relative;
    color: rgb(221, 224, 226, 0.7);
    background-color: #474b5b00;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, roboto, Helvetica Neue, helvetica, arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
}

.reset:hover {
    text-decoration: underline;
}

.lds-ripple,
.lds-ripple div {
    box-sizing: border-box;
}

.lds-ripple {
    display: inline-block;
    position: relative;
    width: 160px;
    height: 160px;
}

.lds-ripple div {
    position: absolute;
    border: 4px solid gray;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes lds-ripple {
    0% {
        top: 72px;
        left: 72px;
        width: 16px;
        height: 16px;
        opacity: 0;
    }
    4.9% {
        top: 72px;
        left: 72px;
        width: 16px;
        height: 16px;
        opacity: 0;
    }
    5% {
        top: 72px;
        left: 72px;
        width: 16px;
        height: 16px;
        opacity: 1;
    }
    100% {
        top: 0;
        left: 0;
        width: 160px;
        height: 160px;
        opacity: 0;
    }
}

#preloader {
    z-index: 9999;
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #53586b;
    top: 0;
    left: 0;
    backdrop-filter: blur(10px); /* размытие фона */
}

#preloaderes {
    z-index: 9999;
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #53586b;
    top: 0;
    left: 0;
    backdrop-filter: blur(10px); /* размытие фона */
}

#preloaderform {
    z-index: 9999;
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #53586b;
    top: 0;
    left: 0;
    backdrop-filter: blur(10px); /* размытие фона */
}

:-internal-autofill-selected {
    appearance: auto !important;
    background-image: inherit !important;
    background-color: inherit !important;
    color: inherit !important;
    outline: 1px solid rgb(221, 224, 226, 0.6);
}

@media (max-width:1000px) {

    .left-side {
        display: none !important;
    }

    .form {
        width: 100%;
    }

    .images {
        display: grid;
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 10px; 
    }

    body {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 95% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .delete-btn, .edit-btn, .goto {
    border-width: 1px;
    border-radius: .5rem;
    place-items: center;
    height: .5rem !important;
    cursor: pointer;
    font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    gap: .5rem;
    display: inline-flex;
    border: 1px solid rgba(229,231,235);
    font-weight: 600;
    line-height: 130%;
    font-size: 12px !important;
    padding: 10px 10px 10px 10px !important;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1) !important;
    color: rgb(255, 255, 255);
    background-color: #000000;
}

}

.elll {
    width: 80px;
    height: 21px !important;
    display: flex;
    align-content: center;
    justify-content: center;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.ell {
    position: absolute;
    width: 80px;
    height: 80px;
}

.lds-ellipsis {
    color: white;
}

.lds-ellipsis, .lds-ellipsis div {
    box-sizing: border-box;
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ellipsis div {
    position: absolute;
    top: 7.083332625000001px;
    width: 13.33333px;
    height: 13.33333px;
    border-radius: 50%;
    background: currentColor;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }

}

.toggle-visibility {
    position: absolute;
    right: 10px;
    top: 55%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}

.toggle-visibility svg {
    width: 25px;
    height: 25px;
}


/**                  ----------------------------------                           **/

main {
    width: 900px;
}

header {
    border-bottom: 1px solid rgba(229,231,235);
    height: 60px;
    display: flex;
    padding: 15px 0 15px 0;
    align-items: center;
}

@media (max-width:900px) {
    main {
        width: 80%;
    }
}

.rightn {
    width: 100%;
}

.rightn {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.sun, .avatar {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border: none;
    outline: none;
}

.avatar svg {
    width: 48px !important;
    height: 48px !important;
}

.avatar {
    background-color: rgba(59, 130, 246, 0.5) !important;
}

.url{
    width: 100% !important;
    color: rgba(0, 0, 0, 0.733) !important;
}

.url:focus,
.url:active {
    outline: none;
}

.form {
    border: 1px solid rgba(229,231,235);
    margin-top: 15px;
    padding: 15px;
    flex-direction: column;
    gap: 10px;
}

.leftn button {
    width: 70px;
}

.rightn button, .leftn button, .url, .submit button, #toggleForm, .create, #backToLogin {
    border-width: 1px;
    border-radius: 1rem;
    place-items: center;
    height: 2.5rem;
    cursor: pointer;
    font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    gap: .5rem;
    display: inline-flex;
    border: 1px solid rgba(229,231,235);
    font-weight: 600;
    line-height: 130%;
    font-size: 100%;
    padding: 20px 20px 20px 20px;
    box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(0 0 #0000);
    color: white;
}

#backToLogin {
    margin-top: 20px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
}

.create {
    color: black !important;
}

.rightn button:hover, .leftn button:hover {
    opacity: .7;
}

.logo {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
}

.add {
    background-color: rgba(79, 70, 229);
}

.registry {
    background-color: black;
}

.logo {
    width: 2.5rem;
    display: flex;
    justify-content: center;
    background-color: rgba(59, 130, 246, 0.5);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tox-toolbar__primary button {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
}

#imageUpload {
    display: none;
}

.custom-button {
    display: inline-block;
    padding: 5px 10px;
    background-color: black;
    color: white;
    cursor: pointer;
    border-radius: 12px;
    font-size: 13px;
}

.custom-button:hover {
    opacity: .8;
}

#file-label {
    margin-left: 10px;
    font-size: 14px;
    color: #333;
}

#preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.img-container {
    flex: 1 1 calc(33.333% - 10px);
    box-sizing: border-box;
    position: relative;
    aspect-ratio: 16 / 9;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid #ccc;
    border-radius: 12px;
}

.images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; 
}

.images img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.87);
    border: none;
    color: black;
    cursor: pointer;
    font-size: 14px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 31px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important;
    transform: rotate(45deg);
    font-size: 20px;
}

.modal-img {
    border-width: 1px;
    border-radius: 1rem;
    place-items: center;
    cursor: pointer;
    font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    gap: .5rem;
    display: inline-flex;
    border: 1px solid rgba(229,231,235);
    font-weight: 600;
    line-height: 130%;
    font-size: 100%;
    padding: 20px 20px 20px 20px;
    box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(0 0 #0000);
    color: white;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.pr-block {
    position: relative;
    width: 100%;
}

.pr-bloc span {
    position: absolute;
    left: 15px;
    right: 15px;
}

.custom-button {
    position: absolute;
    right: 15px;
    top: 0;
}

.submit {
    display: flex;
    width: 100%;
    gap: 10px;
}

.altflex {
    flex: 7 !important;
    display: flex !important;
    justify-content: center !important;
    background-color: rgb(76, 0, 255);
}

.altflex:hover {
    opacity: .8;
}

.clean {
    flex: 3 !important;
    display: flex !important;
    justify-content: center !important;
    background-color: white;
    color: black !important;
}

.clean:hover {
    opacity: .4;
}

.btn-cccc {
    display: flex;
    position: relative;
    padding: 20px;
    align-items: center;
}

.btn-cccc button {
    position: absolute;
    right: 20px;
    line-height: 2 !important;
    font-weight: 500 !important;
    background-color: white !important;
    color: black !important;
}

.btn-cccc span{
    display: flex;
}

.btn-cccc p {
    color: #adadad;
    margin-left: 5px;
}

.logout button {
    background-color: black !important;
}

.usernamebar {
    display: flex;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, roboto, Helvetica Neue, helvetica, arial, sans-serif;
    font-weight: 500;
    position: relative;
}

.delete-btn, .edit-btn, .goto {
    border-width: 1px;
    border-radius: .5rem;
    place-items: center;
    height: 1.5rem;
    cursor: pointer;
    font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    gap: .5rem;
    display: inline-flex;
    border: 1px solid rgba(229,231,235);
    font-weight: 600;
    line-height: 130%;
    font-size: 100%;
    padding: 15px 15px 15px 15px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1) !important;
    color: rgb(255, 255, 255);
    background-color: #000000;
}

.edit-btn {
    background-color: #4d4d4d !important;
}

.de {
    position: absolute;
    right: 0;
    top: 0;
}

.delete-btn:hover, .edit-btn:hover {
    opacity: .8;
}

.usernamebar p, .usernamebar span {
    margin-top: 5px;
}

.post {
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.post-cont {
    display: block;
}

.contentx {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0 20px 0;
}

.data-cr {
    color: #adadad !important;
}

.urlx {
    display: flex;
    justify-content: center;
    color: white !important;
    background-color: rgb(76, 0, 255) !important;
}

.urlx:hover {
    opacity: .8;
}

.content {
    font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-images {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.modal-images img {
    max-width: 100%;
    max-height: 80vh;
    display: none; 
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

#charCountDisplay {
    font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-weight: 600;
}

#editPostForm {
    width: 900px;
    margin-top: 50px;
}

.form-ed {
    background-color: #f1f4f9;
}