:root {
    --red: #e63946;
    --green: #a7c957;
    --text2: #000;
    --main-color: #1181A9;
}
@font-face {
    font-family: main;
    src: url('main.ttf');
}
body {
    font-family: main;
    overflow-x: hidden !important;
}
h1, h2, h3, h4 {
    font-weight: 500;
}
.widget {
    width: 90%;
    max-width: 400px;
    height: calc(100vh - 120px);
    padding: 20px;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: calc(100% + 300px);
    transform: translate(-50%, 0%);
    display: none;
    overflow: auto;
    padding-top: 100px;

}
.widget {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.widget::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}
/*@media only screen and (max-width: 600px) {
    .widget {
        top: inherit;
        bottom: 0;
        transform: translate(-50%, 0%);
        height: calc(100vh - 30px) !important;
        overflow: auto;
    }
}*/
.widget .user-box {
    overflow: hidden;
    box-shadow:  8px 8px 16px #b0b0b0,
            -8px -8px 16px #ffffff,
            inset 4px 4px 8px rgba(0, 0, 0, 0.1),
            inset -4px -4px 8px rgba(255, 255, 255, 0.7);
}
.widget.selected {
    left: 50%;
}
.logo {
    width: 30px;
    height: 30px;
    border-radius: 5px;
}
#app {
    cursor: pointer;
    z-index: 999;
}
#app h1 {
    margin: 0;
    display: inline-table;
    margin-left: 5px;
    margin-top: -5px;
}


.input {
    position: relative;
}
.input input {
    padding: 10px;
    padding-top: 12px;
    width: calc(100% - 20px);
    font-size: 16px;
    border: none;
    background-color: transparent;
    outline: none;
    color: #000;
}
.input p {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    left: 20px;
    font-size: 16px;
    margin: 0;
    transition: all 0.2s;
    pointer-events: none;
}
.input input:focus ~ p, .input input:not(:placeholder-shown) ~ p {
    left: 3px;
    transform: translateY(-50%) scale(0.8);
    top: 0%;
}
.user-box {
    width: calc(100% - 20px);
    height: 40px;
    text-align: left;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    box-shadow:  8px 8px 16px #b0b0b0,
            -8px -8px 16px #ffffff,
            inset 4px 4px 8px rgba(0, 0, 0, 0.1),
            inset -4px -4px 8px rgba(255, 255, 255, 0.7);
}
.line {
    border-bottom: #CCC 1px solid;
    height: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
    width: calc(100% + 20px);
    transform: translateX(-10px);
}
.user-box svg {
    width: 25px;
    height: 25px;
    fill: #FFF;
}
#app {
    position: fixed;
    top: 10px;
    left: 15px;
}
.widget h1 {
    margin: 0;
    margin-bottom: 50px;
}
.big_action {
    border: none;
    width: calc(100% - 0px);
    padding: 20px;
    border-radius: 50px;
    margin-top: 50px;
    box-shadow:  8px 8px 16px #b0b0b0,
            -8px -8px 16px #ffffff,
            inset 4px 4px 8px rgba(0, 0, 0, 0.1),
            inset -4px -4px 8px rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #000;
    background-color: #FFF !important;
}
.password {
    color: var(--red);
}
#error, .error {
    position: absolute;
    transform: translateY(-50px);
    color: var(--red);
}

.loading-anim {
    padding: 10px;
    border-radius: 5px;
    position: absolute;
    transform: translate(calc(-50% - 15px), -53px);
    z-index: 999;
    left: 50%;
    display: none;
}
.loading-anim svg {
    width: 30px;
    height: 30px;
    fill: #000;
}
@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}
#loading1 {
    animation: rotation 0.8s ease-out infinite;
    position: absolute;
    left: 50%;
}
#loading2 {
    animation: rotation 0.8s ease-in-out infinite;
    position: absolute;
    left: 50%;
}
.widget table {
    margin-top: 50px;
}
.widget table a {
    color: #000;
    text-decoration: none;
}
.widget table a:hover {
    text-decoration: underline;
}

/*@media (prefers-color-scheme: dark) {
    body {
        background-color: #222;
    }
    :root {
        --text2: #FFF;
    }
    h1, h4, p:not(.user-box p), a:not(.user-box a) {
        color: #FFF !important;
    }
    .action:hover p {
        color: #000 !important;
    }
}*/


.userBox {
	width: 400px;
	max-width: calc(90% - 50px) !important;
	height: fit-content;
	padding: 25px;
	border-radius: 15px;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #FFF;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
	z-index: 999999;
}
.userBox h4 {
    font-weight: 400 !important;
    text-align: left;
    margin: 0;
    margin-bottom: 10px;
}
.userBox .buttons {
	width: 100% !important;
	text-align: right;
}
.userBox a {
	color: var(--main-color);
    text-decoration: none;
}
.userBox a.main {
    background-color: var(--main-color);
    color: var(--text-color);
    padding: 5px;
    border-radius: 3px;
}
.userBoxBlur {
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999998;
}
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
	.userBoxBlur {
		-webkit-backdrop-filter: blur(10px) !important;
		backdrop-filter: blur(10px) !important;
		background-color: rgba(0, 0, 0, 0.2);
	}
	.popUp {
		-webkit-backdrop-filter: blur(10px) !important;
		backdrop-filter: blur(10px) !important;
		background-color: rgba(0, 0, 0, 0.5) !important;
	}
}

body {
    background: #ebebeb;
}

.actionMenu {
    top: 50%;
    left: 40px;
    width: 180px !important;
    height: fit-content;
    position: absolute;
    border-radius: 20px;
    padding: 10px;
    text-align: left;
    transform: translate(0, -50%);
    z-index: 997;
    transition: all 0.2s !important;
    box-shadow:  8px 8px 16px #b0b0b0,
            -8px -8px 16px #ffffff,
            inset 4px 4px 8px rgba(0, 0, 0, 0.1),
            inset -4px -4px 8px rgba(255, 255, 255, 0.7);
}
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .actionMenu {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}
.actionMenu .action {
    width: 160px;
    height: 20px !important;
    z-index: 997;
    padding: 10px;
    border-radius: 0px;
    cursor: pointer;
}
.actionMenu .action:hover {
    border-radius: 20px;
    background-color: var(--color2);
}
.actionMenu .action:not(:last-child) {
    margin-bottom: 5px;
}
.action svg {
    transform: translateY(-3px);
    fill: var(--color1);
    margin-right: 10px;
    width: 20px;
    height: 20px;
    mask-image: linear-gradient(to right bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, .5));
    -webkit-mask-image: linear-gradient(to right bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, .5));
}
.actionMenu hr {
    border: #CCC 0.5px solid;
    margin-top: 4.5px;
    margin-bottom: 4.5px;
}
.actionMenu .action p {
    margin: 0;
    width: 11ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
    font-size: 18px;
    transform: translateY(-2px);
    color: #000;
}
.user-box .line:last-child {
    display: none;
}
.user-box a {
    padding: 10px;
    color: #000;
    width: calc(100% - 40px) !important;
    display: block;
    text-decoration: none;
    border-bottom: #CCC 1px solid;
    margin: 10px;
    margin-top: -10px;
}
.user-box a:first-child {
    margin-top: 10px;
}
.user-box a:last-child {
    border-bottom: transparent 1px solid;
}
.user-box a:hover {
    border-bottom: transparent 1px solid;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}


.popUp {
	padding:10px;
	height:fit-content;
	width:fit-content;
	position:fixed;
	left:10px;
	bottom:-200px;
	border-radius:10px;
	color: #000;
	transition:all 0.5s;
	z-index:99999;


    box-shadow:  8px 8px 16px #b0b0b0,
            -8px -8px 16px #ffffff,
            inset 4px 4px 8px rgba(0, 0, 0, 0.1),
            inset -4px -4px 8px rgba(255, 255, 255, 0.7);
}
.popUp h4 {
    font-weight: 400;
    margin: 0;
}
.widget h4 {
    margin: 0;
    font-size: 28px;
}
#uploadDiv {
    cursor: pointer;
    text-align: center;
}
#uploadDiv img {
    width: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 100px;
    margin: auto;
}
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .popUp {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.3) !important;
    }
}

#menuBg {
	width: calc(env(safe-area-inset-left) + env(safe-area-inset-right) + 100vw);
	height: calc(env(safe-area-inset-top) + env(safe-area-inset-bottom) + 100vh);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99998;
    animation: menuBgAnim 0.4s ease-in-out;
    transition: all 0.2s !important;
}
.menu {
    width: 50%;
    min-width: 300px;
    max-width: 500px;
    height: 500px;
    overflow: scroll !important;
    background-color: #ebebeb;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    border-radius: 20px;
    padding: 20px;
    box-shadow:  8px 8px 16px #b0b0b0,
            -8px -8px 16px #ffffff,
            inset 4px 4px 8px rgba(0, 0, 0, 0.1),
            inset -4px -4px 8px rgba(255, 255, 255, 0.7);

    animation: menuAnim 0.7s ease-in-out;
    transition: all 0.2s !important;
    display: none;
}
@keyframes menuAnim {
    0% {
      transform: translate(-50%, 1000px);
    }
    60% {
      transform: translate(-50%, calc(-50% - 20px));
    }
    80% {
      transform: translate(-50%, calc(-50% + 20px));
    }
    100% {
      transform: translate(-50%, -50%);
    }
}
@keyframes menuBgAnim {
    0% { opacity: 0; }
    100% {opacity: 1; }
}
.menu .times {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 20px;
    cursor: pointer;
}
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    #menuBg {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.1);
    }
}
.menu a.other {
    color: #000;
    display: block;
    font-size: 18px;
    margin-bottom: 80px;
}
.menu h1 {
    font-weight: 500;
    margin: 0;
}
.menu h4:not(table h4) {
    font-weight: 300;
    width: calc(100% - 40px);
    font-size: 16px;
    position: absolute;
    bottom: 10px;
    color: #333;
    text-align: center;
}
.menu h3 {
    font-weight: 400;
    font-size: 30px;
}
.menu h4 b {
    font-weight: 500;
    color: #000;
}
.menu h4 .note {
    width: 100%;
    text-align: left;
    font-size: 14px;
    margin-top: 10px;
}
.menu .scroll {
    height: 220px;
    padding-top: 20px;
    padding-bottom: 20px;
    overflow: scroll;
    overflow-x: hidden;
    text-align: left;
}
.menu .scroll p {
    color: #333;
    padding-left: 35px;
    padding-bottom: 10px;
    padding-right: 10px;
    margin: 0;
    text-align: justify;
}
@media only screen and (max-width: 600px) {
    .menu {
        width: calc(100% - 40px);
        min-width: calc(100% - 40px);
        height: 80vh;
        padding-bottom: 200px;
        margin-top: 10vh;
        z-index: 99999;
        border-radius: 20px 20px 0px 0px;
    }
    .menu h4 {
        bottom: 60px !important;
    }
}


/*@media (prefers-color-scheme: dark) {
    body {
     background: #2c2c2c !important;
     color: #eeeeee;
    }
    .blured {
     box-shadow:  8px 8px 16px #1a1a1a, 
                -8px -8px 16px #333333,
                inset 4px 4px 8px rgba(0, 0, 0, 0.5), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.3);
    }
    .user-box, .big_action {
     box-shadow:  8px 8px 16px #000000,
                -8px -8px 16px #444444, 
                inset 4px 4px 8px rgba(0, 0, 0, 0.6),
                inset -4px -4px 8px rgba(255, 255, 255, 0.4) !important;
    }
    .studio h4, .studio p { color: #000; }
    .actionMenu {
     box-shadow:  8px 8px 16px #1a1a1a,
                -8px -8px 16px #333333,
                inset 4px 4px 8px rgba(0, 0, 0, 0.5),
                inset -4px -4px 8px rgba(255, 255, 255, 0.3);
    }
    .actionMenu p {
     color: #FFF !important;
    }
    @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
        .actionMenu {
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            background-color: rgba(0, 0, 0, 0.3);
        }
    }
    img[src$=".svg"] {
        filter: invert();
        mask-image: linear-gradient(to right bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, .3));
        -webkit-mask-image: linear-gradient(to right bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, .3));
    }

    :root {
        --loading-gradient-start: #3a3a3a;
        --loading-gradient-middle: #4d4d4d;
        --loading-gradient-end: #3a3a3a;
    }
    .actionMenu {
     background: #2c2c2c !important;
     color: #eeeeee;
     box-shadow:  8px 8px 16px #1a1a1a,
                -8px -8px 16px #333333,
                inset 4px 4px 8px rgba(0, 0, 0, 0.5),
                inset -4px -4px 8px rgba(255, 255, 255, 0.3);
    }
    .actionMenu h4 {
        color: #eeeeee;
    }
    @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
        #menuBg {
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            background-color: rgba(0, 0, 05, 0.2);
        }
    }
    button {
     background: #2c2c2c !important;
     color: #eeeeee;
     box-shadow:  8px 8px 16px #1a1a1a,
                -8px -8px 16px #333333,
                inset 4px 4px 8px rgba(0, 0, 0, 0.5),
                inset -4px -4px 8px rgba(255, 255, 255, 0.3);
    }
    .checkbox {
     filter: invert();
    }

    .action p {
        color: #eeeeee !important;
    }
    .action:hover p {
        color: #000 !important;
    }
    .input input {
        color: #FFF;
    }
    .big_action {
        color: #eeeeee !important;
        background-color: #111 !important;
    }
    table a {
        color: #FFF !important;
    }
    .user-box a {
        color: #FFF;
        border-bottom: #666 1px solid;
    }
    .userBox {
        background-color: #2c2c2c;
    }
    @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
        .popUp {
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            background-color: rgba(0, 0, 0, 0.3) !important;
        }
    }
    .popUp { 
        color: #FFF;
        box-shadow:  8px 8px 16px #1a1a1a,
                    -8px -8px 16px #333333,
                    inset 4px 4px 8px rgba(0, 0, 0, 0.5),
                    inset -4px -4px 8px rgba(255, 255, 255, 0.3);
    }
    .loading-anim svg {
        fill: #FFF;
    }

    .menu {
        background: #2c2c2c !important;
        color: #eeeeee;
        box-shadow:  8px 8px 16px #1a1a1a,
                   -8px -8px 16px #333333,
                   inset 4px 4px 8px rgba(0, 0, 0, 0.5),
                   inset -4px -4px 8px rgba(255, 255, 255, 0.3);
       }
    .menu h4, h4 b, .other {
        color: #eeeeee !important;
    }
    @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
        #menuBg {
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            background-color: rgba(0, 0, 05, 0.2);
        }
    }
}
*/