/*#region Root*/
:root {
    --black: #1f2937;
    --white: #fff;
    --purple: #6100d9;
    --fresh-green: #d3e460;
    --light-blue: #e4e5e8;
    --gray: #e9edf2;
    --border: 1px solid #cacaca;
    --popup-bg: #0000004f;
}

* {
    font-family: "Mona Sans", sans-serif;
    font-weight: 500;
    font-style: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    outline: none;
    border: 0;
    color: var(--black);
}

body {
    background-color: var(--light-blue);
}

main {
    min-height: calc(100vh - 65px);
    width: 95%;
    margin: 15px auto 25px auto;
    max-width: 1400px;
}

p {
    font-size: 14px;
    line-height: 22px;
}

/*#endregion */

/*#region Nav*/
nav {
    height: 50px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.publifyo {
    font-size: 20px;
    font-weight: 700;
}

    .publifyo > b {
        font-weight: 700;
        color: var(--purple);
    }

nav > div {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

    nav > div > img {
        width: 20px;
        border-radius: 50%;
        height: 20px;
        object-fit: cover;
    }

    nav > div > svg {
        width: 15px;
        position: relative;
        left: -3px;
    }




#user-box {
    position: absolute;
    -webkit-user-select: none;
    user-select: none;
    z-index: 11;
    background: var(--white);
    width: auto;
    padding: 5px 0;
    border-radius: 6px;
    border: var(--border);
    display: flex;
    flex-direction: column;
    transform: scale(.75);
    top: 19px;
    right: -17px;
    opacity: 0;
    visibility: hidden;
    transition: transform .1s ease,opacity .2s ease,visibility .2s ease,top .2s ease,right .2s ease
}

    #user-box.active {
        top: 36px;
        right: -5px;
        transform: scale(1);
        opacity: 1;
        visibility: visible
    }

    #user-box:before {
        content: "";
        position: absolute;
        width: 13px;
        height: 13px;
        border-top: var(--border);
        border-left: var(--border);
        right: 12px;
        transform: rotate(45deg);
        background: var(--white);
        top: -7.3px;
    }

    #user-box > :is(span,a) {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        transition: .3s;
        cursor: pointer;
        padding: 7px 12px;
        white-space: nowrap;
    }

        #user-box > :is(span,a) svg {
            width: 16px;
            height: 16px;
        }

    #user-box .user-box-mask-email {
        border-top: var(--border);
        color: var(--purple);
    }
/*#endregion */

/*#region Bottom Nav*/
#bottom-nav {
    position: sticky;
    bottom: 14px;
    background: var(--light-blue);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 0px 7px -3px;
    width: max-content;
    margin: auto;
    padding: 11px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    z-index: 18;
}

    #bottom-nav > a {
        padding: 10px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 13px;
        gap: 4px;
    }

        #bottom-nav > a.active {
            position: relative;
            background: var(--white);
        }

            #bottom-nav > a.active::before {
                content: '';
                position: absolute;
                width: 83%;
                height: 2px;
                background: var(--purple);
                border-radius: 10px;
                bottom: -7px;
                left: 5px;
                z-index: 1;
            }

        #bottom-nav > a > svg {
            width: 18px;
            height: 18px;
        }

        #bottom-nav > a#back-btn {
            position: relative;
            background: var(--purple);
            color: var(--white);
            gap: 5px;
            font-size: 12px;
            margin-left: 20px;
            display: none;
        }

            #bottom-nav > a#back-btn::before {
                content: "";
                position: absolute;
                left: -16px;
                width: 5px;
                height: 5px;
                background: var(--purple);
                border-radius: 50%;
            }

            #bottom-nav > a#back-btn > svg {
                fill: var(--white);
            }
/*#endregion */
/*#region Button*/
.btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    justify-content: center;
    line-height: 18px;
}

    .btn > svg {
        width: 15px;
        height: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.btn-purple {
    background: var(--purple);
    color: var(--white);
}

    .btn-purple > svg {
        fill: var(--white);
    }

.btn-black {
    background: var(--black);
    color: var(--white);
}

    .btn-black > svg {
        fill: var(--white);
    }

.btn-light {
    background: var(--light-blue);
}

.btn-small {
    padding: 7px 12px;
    font-size: 11px;
}

    .btn-small > svg {
        width: 12px;
        height: 12px;
    }



.btn svg.btn-loading-svg {
    display: none;
}

.btn-loading {
    pointer-events: none;
}

    .btn-loading > svg {
        display: block !important;
        animation: rotate360 500ms linear infinite;
    }

@keyframes rotate360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
}
/*#endregion */

/*#region Switch*/

.switch {
    position: relative;
    display: inline-block;
    min-width: 40px;
    min-height: 20px;
    max-width: 40px;
    max-height: 20px;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray);
    transition: 0.3s;
    border-radius: 20px;
}

    .slider::before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        border-radius: 50%;
        left: 2px;
        bottom: 2px;
        background-color: var(--purple);
        transition: 0.4s;
    }

.switch input:checked + .slider::before {
    background-color: var(--white);
    transform: translateX(20px);
}

.switch input:checked + .slider {
    background-color: var(--purple);
}

.switch-white .slider {
    background-color: var(--white);
}
/*#endregion */

/*#region Label - Input - Textarea - Info*/
.label {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-size: 13px;
    margin-top: 5px;
    gap: 2px;
}

    .label input,
    .label textarea {
        width: auto;
        height: 45px;
        padding: 0 10px;
        border-radius: 7px;
        outline: none;
        border: var(--border);
        transition: all .3s cubic-bezier(.15, .83, .66, 1)
    }

        .label input:focus,
        .label textarea:focus {
            border: 1px solid transparent;
            box-shadow: 0 0 0 2px var(--black);
            background-color: transparent
        }

    .label small {
        margin-top: 4px
    }

    .label textarea {
        height: 90px;
        resize: none;
        padding: 10px
    }

.info {
    font-size: 12px;
    line-height: 17px;
}

    .info > svg {
        position: relative;
        width: 15px;
        fill: var(--purple);
        top: 4px;
    }

    .info > :is(span,a) {
        text-decoration: underline;
        color: var(--purple);
    }
/*#endregion */

/*#region Alert*/
#Alert {
    position: fixed;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    padding: 1rem;
    background: #fff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 1000;
    top: -100px;
    right: 50%;
    transform: translateX(50%);
    font-size: 13px;
    opacity: 0;
    animation: slideIn 0.5s ease forwards, slideOut 0.5s ease 2.5s forwards;
}

#AlertJS {
    position: fixed;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    padding: 1rem;
    background: #fff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 1000;
    top: -100px;
    right: 50%;
    transform: translateX(50%);
    font-size: 13px;
    opacity: 0;
    transition: top 0.7s ease, opacity 0.7s ease;
    text-align: center;
}

    #AlertJS > span,
    #Alert > span {
        text-align: center;
    }

.failed {
    background: #f6cfce !important;
}



.success {
    background: #d8f1d0 !important;
}

@keyframes slideIn {
    0% {
        top: -100px;
        opacity: 0;
    }

    100% {
        top: 13px;
        opacity: 1;
    }
}

@keyframes slideOut {
    0% {
        top: 13px;
        opacity: 1;
    }

    100% {
        top: -100px;
        opacity: 0;
    }
}
/*#endregion*/

/*#region Loading*/
#typing-indicator-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-indicator {
    width: 60px;
    height: 30px;
    position: relative;
    z-index: 4;
}

.typing-circle {
    width: 8px;
    height: 8px;
    position: absolute;
    border-radius: 50%;
    background-color: var(--black);
    left: 15%;
    transform-origin: 50%;
    animation: typing-circle7124 0.5s alternate infinite ease;
}

@keyframes typing-circle7124 {
    0% {
        top: 20px;
        height: 5px;
        border-radius: 50px 50px 25px 25px;
        transform: scaleX(1.7);
    }

    40% {
        height: 8px;
        border-radius: 50%;
        transform: scaleX(1);
    }

    100% {
        top: 0%;
    }
}

.typing-circle:nth-child(2) {
    left: 45%;
    animation-delay: 0.2s;
}

.typing-circle:nth-child(3) {
    left: auto;
    right: 15%;
    animation-delay: 0.3s;
}

.typing-shadow {
    width: 5px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 30px;
    transform-origin: 50%;
    z-index: 3;
    left: 15%;
    filter: blur(1px);
    animation: typing-shadow046 0.5s alternate infinite ease;
}

@keyframes typing-shadow046 {
    0% {
        transform: scaleX(1.5);
    }

    40% {
        transform: scaleX(1);
        opacity: 0.7;
    }

    100% {
        transform: scaleX(0.2);
        opacity: 0.4;
    }
}

.typing-shadow:nth-child(4) {
    left: 45%;
    animation-delay: 0.2s;
}

.typing-shadow:nth-child(5) {
    left: auto;
    right: 15%;
    animation-delay: 0.3s;
}
/*#endregion */

/*#region remove-account-popup*/
#remove-account-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--popup-bg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

    #remove-account-popup > div {
        background: var(--white);
        width: 100%;
        max-width: 500px;
        padding: 2rem;
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 21px;
        position: relative;
        animation: slideUp 0.3s ease-out forwards;
    }

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#remove-account-popup > div > h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

#remove-account-popup > div > p {
    background: var(--gray);
    padding: 1rem;
    border-radius: 1rem;
}

    #remove-account-popup > div > p > svg {
        width: 21px;
        height: 19px;
        position: relative;
        top: 5px;
        fill: var(--purple);
    }

#remove-account-popup > div > div {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

    #remove-account-popup > div > div > :is(button,a) {
        flex: 1;
    }
/*#endregion */

section {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
}

@media(max-width:1400px) {
}

@media(max-width:1200px) {
}

@media(max-width:992px) {
}

@media(max-width:768px) {
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
}

@media(max-width:576px) {
    #remove-account-popup > div {
        max-width: 324px;
        padding: 1rem;
    }
}
