: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;
    background-color: #ededed;
    font-family: "Roboto", sans-serif;
}

header {
    display: flex;
    height: 70px;
    background-color: white;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
}

header img {
    height: 100%;
}

innerHeader {
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

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;
    /* color: #242424; */
    /* background: whitesmoke; */
    color: #242424;
    background: whitesmoke;
    border: 1px solid #2424241c;
}

innerHeader div {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav span.material-symbols-rounded {
    margin-left: 6px;
}

pill, 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: #242424;
    background: whitesmoke;
    border: 1px solid #2424241c;
}

button:not(.pills_block button){
    height: 48px;
    background: #242424;
    color: white;
    width: 100%;
}

pill img,
button img {
    max-width: 64px;
    border-radius: 10px;
    margin-left: 16px;
}

.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 #a2a2a2;
    /* background: #999; */
    margin: 14px 4px;
    height: 1px;
}

p{
    margin: 0;
    padding: 0;
    text-indent: 0;
}

#textarea {
    outline: none;
    border: none;
    resize: none;
    background: white;
    border-radius: 16px;
    width: 100%;
    min-height: 240px;
    margin-top: 14px;
    color: black;
    font-size: 18px;
    font-family: "Roboto", sans-serif;
    padding: 26px;
    box-sizing: border-box;
    box-shadow: rgb(158 158 158 / 20%) 0px 8px 24px;
}

#format_text {
    position: sticky;
    top: 0;
    background: #ededed;
    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;
}

pill, button, nav {
    transition: background 0.1s, color 0.1s;
    font-weight: bold;
    font-size: 16px;

    -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;
}
pill{font-weight: normal;}

pill:hover,
button:hover,
nav:hover {
    background: #e2e2e2;
}

button:not(.pills_block button):hover{
    background: #2c2c2c;
}

pill:active,
button:active,
nav:active {
    background: #d4d4d4;
}

button:not(.pills_block button):active{
    background: #191919;
}

[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;
}

input {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    width: fit-content;
    color: #242424;
    background: whitesmoke;
    border: 1px solid #2424241c;
    outline: none;
    font-size: 17px;
    width: 100%;
    box-sizing: border-box;
}

@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: white
}

::-webkit-scrollbar-thumb {
    background: #242424;
    border-radius: 8px 0 0 8px
}

::-webkit-scrollbar-thumb:hover {
    background: #323232
}


/* ========= DIALOG ========= */

h3 {font-family: "Roboto", sans-serif;font-size: 30px;}

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-color: 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;
}

.view input {
    margin-bottom: 8px;
}

button .telegram_logo {
    width: 34px;
    margin: -18px;
    margin-right: 0px;
    margin-left: 0;
}

.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-color: 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;
}

#account input {
    margin-bottom: 8px;
}


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-color: 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;
    }
}