:root {
    /** CSS DARK THEME PRIMARY COLORS */
    --color-primary-100: #f9bf2f;
    --color-primary-200: #fcc64c;
    --color-primary-300: #fecd65;
    --color-primary-400: #ffd47c;
    --color-primary-500: #ffdb92;
    --color-primary-600: #ffe2a8;
    /** CSS DARK THEME SURFACE COLORS */
    --color-surface-100: #141414;
    --color-surface-200: #292929;
    --color-surface-300: #404040;
    --color-surface-400: #585858;
    --color-surface-500: #727272;
    --color-surface-600: #8c8c8c;
    /** CSS DARK THEME MIXED SURFACE COLORS */
    --color-surface-mixed-100: #282219;
    --color-surface-mixed-200: #3d372e;
    --color-surface-mixed-300: #524c45;
    --color-surface-mixed-400: #69635c;
    --color-surface-mixed-500: #807b75;
    --color-surface-mixed-600: #98948f;
}

body {
    padding: 0;
    margin: 0;
    font-family: "Roboto", sans-serif;
    background: #141414;
    color: white;
}

header {
    display: flex;
    height: 70px;
    background: #1d1d1d;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
}

header img {
    height: 100%;
    border: none;
}

innerHeader {
    max-width: 800px;
    display: flex;
    justify-content: center;
    width: 100%;
}

header nav,
.header nav,
header .nav,
.header .nav {
    background: #242424;
    color: white;
    border-radius: 16px;
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    align-items: center;
    font-weight: bold;
    height: 48px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
    cursor: pointer;
    background: whitesmoke;
    border: 1px solid #2424241c;
    background: #313131;
    color: white;
    background: none;
    border: 2px solid #313131;
    background: #2c2c2c;

    background: none;
    border: none;
    
    gap: 8px;
}

.header {
    display: flex;
    flex-direction: column;
    background: #1d1d1d;
    border-radius: 16px;
    box-shadow: 0 0 black;
}


innerHeader div {
    display: flex;
    align-items: center;
    /* gap: 10px; */
}

nav span.material-symbols-rounded {
    margin-left: 6px;
}


.pills_block {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.form {
    padding: 24px;
    max-width: calc(800px + 48px);
    width: 100%;
    box-sizing: border-box;
}

hr {
    border: 0;
    border-bottom: 1px dashed #464646;
    /* background: #000000; */
    margin: 14px 4px;
    height: 1px;
}

p{
    margin: 0;
    padding: 0;
    text-indent: 0;
}



#format_text {
    position: sticky;
    top: 0;
    background: #141414;
    width: 100%;
    border-radius: 0 0 14px 14px;
    padding: 14px;
    margin: -14px;
    /* background: #d7d7d7; */
    transition: box-shadow 0.15s;
}

.format_text_shadow {
    box-shadow: rgb(0 0 0 / 15%) 0px 8px 24px;
}

.formSizeLimiter {
    display: flex;
    justify-content: center;
}


[contenteditable=true]:empty:before {
    content: attr(placeholder);
    color: gray;
    cursor: text;
}

h1{
    font-family: "Roboto", sans-serif;
}

.headerWithButton {
    display: flex;
    align-items: center;
    text-align: center;
}

.headerWithButton span.material-symbols-rounded {
    margin-right: 8px;
    border-radius: 16px;
    padding: 6px;
    display: flex;
    padding-left: 20px;
    padding-right: 12px;
    border: 1px solid #2424241c;
    cursor: pointer;
    color: #242424;

    -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;
}

/* h2 {
    font-family: "Roboto", sans-serif;
    background: #fac130;
    border-radius: 16px;
    padding: 14px;
    color: white;
    font-size: 18px;
    text-align: center;
    margin: 0;
    font-weight: 400;
} */

.info{
    box-shadow: rgb(250 193 48 / 47%) 0px 8px 24px; user-select: none; cursor: pointer;
    transition: 0.15s;

    -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;
}

.info:hover{
    box-shadow: rgb(250 193 48 / 54%) 0px 8px 28px;
    transform: scale(1.01);
}

.error {
    font-family: "Roboto", sans-serif;
    background: #ff4545;
    border-radius: 16px;
    padding: 14px;
    color: white;
    font-size: 18px;
    text-align: center;
    font-weight: 400;
    margin-bottom: 14px;
}

.error:empty{
    display: none;
}


@media screen and (max-width: 400px) {
    header nav {
        padding-right: 8px;
        padding-left: 8px;
    }

    .logo {
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 80%;
    }
}

::-webkit-scrollbar {
    width: 4px;
    height: 0
}

::-webkit-scrollbar-track {
    background: #242424
}

::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 24px
}

::-webkit-scrollbar-thumb:hover {
    background: #494949
}


/* ========= DIALOG ========= */

h3 {font-family: "Roboto", sans-serif;font-size: 1.5rem;}

dlg .view {
    background: whitesmoke;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    margin: 6px;
    height: fit-content;
}

dlg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(4px);
    background: rgb(0 0 0 / 25%);
    -webkit-backdrop-filter: blur(4px);
    display: grid;
    overflow-y: scroll;
    align-items: center;
    justify-content: center;
}

.dialogHeader {
    display: flex;
    margin-bottom: 14px;
    align-items: center;
    justify-content: space-between
}

.dialogClose {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 8px;
    user-select: none;
    cursor: pointer
}

.view#login {
    max-width: 400px;
    width: calc(100vw - 12px);
    box-sizing: border-box;
}




.or {
    text-align: center;
    font-family: "Roboto", sans-serif;
    color: #4a4a4a;
}

.or::before {
  right: 0.5em;
  margin-left: -50%;
}

.or::after {
  left: 0.5em;
  margin-right: -50%;
}

.or {
  display: flex;
  flex-direction: row;
}
.or:before, .or:after{
  content: "";
  flex: 1 1;
  border-bottom: 1px dashed #ccc;
  margin: auto;
}
.or:before {
  margin-right: 10px
}
.or:after {
  margin-left: 10px
}

.view#regist {
    max-width: 400px;
    width: calc(100vw - 12px);
    box-sizing: border-box;
}

#select_background img.chooseImage {
    border: 1px solid #24242436;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.15s;
    width: 200px;
}

#select_font img.chooseImage,
#select_color img.chooseImage {
    border: 1px solid #24242436;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.15s;
    max-width: 420px;
    width: 100%;
}

.view#select_background {
    max-width: 408px;
}
.view#select_font, .view#select_color {
    max-width: 420px;
}

img.chooseImage:hover {
    transform: scale(1.025);
}

@media screen and (max-width: 480px){
    #select_background img.chooseImage{
        width: 140px;
    }
    .view#select_background{
        max-width: 288px;
    }
}

.dot {
    height: 48px;
    width: 8px;
    border-radius: 10px;
    display: inline-block;
}


/*
            LOADERS
*/


.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: 33.33333px;
  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);
  }
}





.link {
    text-decoration: none;
    padding: 2px 4px;
    transition: background .1s
}

.link:hover {
    background: rgba(255,255,255,.1);
    border-radius: 6px
}

.view#telegram_code {
    max-width: 360px;
    width: calc(100vw - 12px);
    box-sizing: border-box;
}

card {
    color: #242424;
    background: whitesmoke;
    border: 1px solid #2424241c;
    border-radius: 26px;
    display: flex;
    height: 120px;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    user-select: none;
}

card.mysub b {
    font-size: 52px;
}

card.mysub span.title {
    font-size: 28px;
    font-weight: bold;
}

.all_my_sub {
    display: flex;
    gap: 14px;
}

@media screen and (max-width: 600px){
    .all_my_sub{
        flex-direction: column;
    }
}

card.mysub.shop {flex-direction: column;height: auto;padding: 12px;box-sizing: border-box;}

.shopinfo {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    padding: 12px;
    align-items: center;
}

.allshop {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

discount {
    background: #ffad45;
    border-radius: 16px;
    color: black;
    padding: 2px 10px;
    margin-left: 12px;
}

@media screen and (max-width: 650px){
    .allshop {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    width: 100%;
}
}

card button:not(.pills_block button) {
    background: whitesmoke;
    color: #242424;
    border: 1px solid #24242457;
}

card.mysub.shop {
    box-shadow: rgb(158 158 158 / 20%) 0px 8px 24px;
    transition: 0.15s;
    cursor: pointer;

    -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;
}

card.mysub.shop:hover {
    box-shadow: rgb(158 158 158 / 20%) 0px 8px 28px;
    transform: scale(1.05);
}

card button:not(.pills_block button):hover {
    background: whitesmoke;
}


toast {
    overflow-wrap: anywhere;
    max-width: min(450px, calc(100vw - 72px));
    z-index: 999999;
    transition: bottom 0.5s;
    position: fixed;
    bottom: -200px;
    left: 16px;
    background: var(--color-primary-500);
    padding: 14px 18px;
    border-radius: 16px;
    color: #191c2c;
    font-weight: bold;
    font-size: 17px;
    box-shadow: rgb(0 0 0 / 3%) 0px 10px 20px, rgb(0 0 0 / 7%) 0px 6px 6px;
    user-select: none;
}
  
toast.show{
    bottom: 16px;
}

img.readyImage {
    border-radius: 16px;
    width: 100%;
}

#ready_view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.toolsReadyView {
    display: flex;
    gap: 8px;
    align-items: center;
}

.readyBlock {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: white;
    border-radius: 22px;
    padding: 8px;
}

.toolsReadyView pill span.material-symbols-rounded {
    margin-left: 6px;
}

#guestHeader .title {
    /* background: #242424; */
    /* color: white; */
    border-radius: 16px;
    /* padding: 24px; */
    margin-bottom: 8px;
    padding: 14px;
    margin-bottom: 24px;
}

#guestHeader img {
    border-radius: 16px;
    width: 100%;
    margin-bottom: 8px;
}

#guestHeader .title span {
    font-size: 20px;
    color: #212121;
}

.infoBlocks {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 42px;
}

.infoBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 24px;
    gap: 8px;
    font-size: 18px;
    justify-content: center;
}

.infoBlock span.material-symbols-rounded {
    font-size: 48px;
}

@media screen and (max-width: 550px){
    .infoBlocks{
        grid-template-columns: 1fr;
    }
}

/**
*   Gallery Photo Grid
*/

.galleryGrid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
}

/* Buttons */
button {
    background: #242424;
    color: white;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    cursor: pointer;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    color: whitesmoke;
    background: #242424;
    /* background: linear-gradient(45deg, #242424, #373737); */
    border: 2px solid #2d2d2d;
}

button img {
    max-width: 64px;
    border-radius: 10px;
}

button,
nav, .nav {
    transition: 0.1s;
    font-weight: bold;
    font-size: 1.15rem;

    -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;

    gap: 16px;
}

button:hover,
nav:hover, .nav:hover {
    background: #383838;
}

button:active,
nav:active, .nav:active {
    box-shadow: inset 0 0px 0px 2px #141414;
    transform: scale(0.95);
}

/* button .telegram_logo {
    width: 34px;
    margin: -18px;
    margin-right: 0px;
    margin-left: 0;
} */


button.mini {
    background: linear-gradient(45deg, #242424, #373737);
}

button.large {
    background: linear-gradient(45deg, #2b2b2b, #575757);
    color: white;
    border: 2px solid #535353;
    /* margin-top: 8px; */
    /* box-shadow: 0px 0px 20px 40px #141414; */
}

button.block {
    background: linear-gradient(45deg, #242424, #373737);
    font-weight: normal;
}

button.block:hover{
    box-shadow: inset -20px 20px 80px 0px #444444;
}

button.mini:hover {
    border: 2px solid #454545;
}

button.mini.ai:hover {
    box-shadow: 0px 0px 10px 0px #9152ff6f;
}

button.mini.is-active {
    box-shadow: inset 0 0 0 2px #dedede;
    background: linear-gradient(45deg, #848484, #bbbbbb);
    color: black;
}



button:disabled {
    opacity: 0.7;
    pointer-events: none;
}

/* Misc */

h2 {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    font-size: 1.7rem;
    line-height: 2rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    scroll-margin: 5rem;
}

p {
    margin: 0;
    padding: 0;
    text-indent: 0;
    font-size: 1.25rem;
}

/* 
    Tables
*/

table {
    border-collapse: collapse;
    margin: 0;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
}

table td,
table th {
    /* border: 1px solid #575757; */
    box-sizing: border-box;
    min-width: 1em;
    padding: 12px;
    position: relative;
    vertical-align: top;
}

table td>*,
table th>* {
    margin-bottom: 0;
}

table th {
    background-color: #2b2b2b;
    font-weight: bold;
    text-align: left;
}

table .selectedCell:after {
    background: #675bb962;
    content: "";
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

table .column-resize-handle {
    background-color: #675bb9;
    bottom: -2px;
    pointer-events: none;
    position: absolute;
    right: -2px;
    top: 0;
    width: 4px;
}

.tableWrapper {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.tiptap.resize-cursor {
    cursor: ew-resize;
    cursor: col-resize;
}



table {
    /* Change these properties */
    /* --border: 1px solid rgb(255, 255, 255); */
    --border: 1px solid #414040;
    border-radius: 12px;

    /* Don't change these properties */
    border-spacing: 0;
    border-collapse: separate;
    border: var(--border);
    overflow: hidden;
}

/* Apply a border to the right of all but the last column */
table th:not(:last-child),
table td:not(:last-child) {
    border-right: var(--border);
}

/* Apply a border to the bottom of all but the last row */
table>thead>tr:not(:last-child)>th,
table>thead>tr:not(:last-child)>td,
table>tbody>tr:not(:last-child)>th,
table>tbody>tr:not(:last-child)>td,
table>tfoot>tr:not(:last-child)>th,
table>tfoot>tr:not(:last-child)>td,
table>tr:not(:last-child)>td,
table>tr:not(:last-child)>th,
table>thead:not(:last-child),
table>tbody:not(:last-child),
table>tfoot:not(:last-child) {
    border-bottom: var(--border);
}

ul, ol {
    margin: 0.5rem;
    font-size: 1.25rem;
}

li + li {
    margin-top: 1rem
}

img {
    border-radius: 1rem;
    max-width: min(40rem, 100%);
    max-height: 80vh;
    border: 1.6px solid #ffffff1a;
}

.form {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

p:has(img) {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

p a {
    color: inherit;
    text-decoration: none;
  background-color: rgb(255 255 255 / 10%); 
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.5rem; 
  padding-left: 0.3rem; 
  padding-right: 0.3rem;
  transition: background-color 0.2s; 
}

a:hover {
  background-color: rgba(245, 245, 245, 0.2); /* hover:bg-neutral-100/10 */
}

h2 {
    padding: 0;
    margin: 0.5rem 0;
}

blockquote {
    width: 100%; /* */
    border-radius: 0.75rem; /* 12px for rounded-xl */ /* */
     /* Default for the 'border' class */
     /* Default for the 'border' class in most cases */
  /* The default border-color would also be set here, usually a gray shade, e.g., border-gray-200 */
    padding: 1rem; /* 16px for p-4 */ /* */
  /* Default background and text color for light mode (placeholders for custom values) */
    
     /* */
     /* */
    outline-offset: 2px; /* */
    background-color: #242424; /* */
    margin: 0;
    box-sizing: border-box;
    border: 1.6px solid #ffffff1a;
}
