html,
body {
    display: flex;
    justify-content: center;
    /* zoom: 1.2 */
}

* {
    font-size: 16px;
    image-rendering: optimizeQuality;
}

.main.container {
    display: inline-block;
    /* margin: 0 auto; */
    /* position: absolute; */
    margin: auto;
    /* position: relative; */
    /* top: calc(50vh - 270px); */
}

@media (prefers-color-scheme: light) {
    .main.container>div {
        margin: .22rem .1rem .22rem .1rem;
        /* border: .5px solid #f6f6f8;
		box-shadow: 8px 8px 20px 0 rgb(55 99 170 / 10%), -8px -8px 20px 0 #fff !important;
		background: linear-gradient(0deg, #fff, #f9faff) !important; */
        background: rgba(245, 244, 246, .88);
        display: inline-block;
    }

    .main.container>div:focus {
        background: rgba(247, 244, 243, .9);
    }

    .ball-scale-ripple>div {
        border: 3px solid #000 !important;
    }

}

/* .main.container>div.l1 {
	border: .5px solid #f6f6f8;
	box-shadow: 8px 8px 20px 0 rgb(55 99 170 / 10%), -8px -8px 20px 0 #fff !important;
	background: linear-gradient(0deg, #fff, #f9faff) !important
} */

.main.container>div {
    border-radius: .75rem;
    /* border-radius: 7px; */
    padding: .3rem;
    vertical-align: top;
    zoom: 1.2;
}

.main.container>.timer {
    height: 4.2rem;
    width: 7rem;
    text-align: center;
    text-shadow: 1px 2px 7px rgba(0, 0, 0, .2);
}

.main.container>.timer>span {
    font-family: "moonbridge";
}

.main.container>.title {
    height: 4.2rem;
    width: 24rem;
    position: relative;
    /* letter-spacing: .8px; */
}

.main.container>.title>span {
    letter-spacing: .5px;
}

.main.container>.list {
    overflow-y: hidden;
    font-size: 18px;
    height: 16rem;
    width: 7rem;
    font-family: "moonbridge";
    justify-content: center;
}

/* .main.container>.list>.state {
	height: 1.2rem;
	line-height: 1.2rem;
	text-align: center;
	font-size: 14px;
	margin: .2rem;
	padding: 2px 3px 2px 3px;
	border-radius: .5rem;
	background: rgba(255, 255, 255, .1);
	box-shadow: 1px 2px 8px rgba(12, 12, 18, .15);
	border: 1.6px solid rgba(255, 255, 255, .1);
	position: relative;
	top: 14rem;
	pointer-events: none;
}*/

.main.container>.txt {
    overflow-y: scroll;
    font-size: 13.5px;
    height: 16rem;
    width: 24rem;
    line-height: 1.2rem;
    font-family: 'Amaranth', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Cantarell, Oxygen, Roboto, Helvetica, Arial, sans-serif !important;
}

.time1,
.time2 {
    display: block;
}

.time1 {
    font-size: 32px;
}

.title>.h {
    margin: .25rem .6rem;
    display: block;
}

.title>.meeting {
    font-size: 15px;
    position: absolute;
    top: 0.5rem;
}

.list select>option:not(:first-child) {
    font-family: 'Noto Serif SC' !important;
}

.title>.title.h {
    width: 23rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 24px;
    position: absolute;
    bottom: 0.2rem;
    font-weight: 800 !important;
}

.title>span {
    display: inline-block;
    white-space: nowrap;
    min-width: 2rem;
}

#taskbar {
    /* text-align: right; */
    position: absolute;
    height: 1.2rem;
    width: 100%;
    bottom: 0;
    padding: 0;
    background: rgba(103, 144, 245, .6);
    backdrop-filter: blur(.8rem) contrast(1.05);
    -webkit-backdrop-filter: blur(.8rem) contrast(1.05);
}

#taskbar>.state {
    height: 1.3rem;
    line-height: 1.2rem;
    /* width: 4rem; */
    background: #63ae36;
    position: relative;
    top: -.3rem;
    padding: 0 .8rem;
    /* left: 0; */
}

#taskbar>.controlbtn {
    height: 1.2rem;
    line-height: 1.2rem;
    /* width: 6rem; */
    background: #439e16;
    position: absolute;
    padding: 0 .8rem;
    /* left: 5.45rem; */
    cursor: pointer;
}

#taskbar>.state>span:not(#taskbar>.state>span:last-child) {
    margin-right: .8rem;
}

#taskbar>.state>span:first-of-type {
    font-weight: 600;
}

#taskbar>time {
    position: absolute;
    display: block;
    width: fit-content;
    height: calc(1.2rem + 2px);
    line-height: calc(1.2rem + 2px);
    right: 5px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
}

.timer img {
    display: inline-block;
    margin: .2rem;
    height: 24px;
    cursor: pointer;
}

.dialog.timer {
    top: .4rem;
    left: .4rem;
}

.dialog.timer img:hover {
    filter: invert(1);
}

#taskbar * {
    font-size: .8rem;
    display: inline-block;
    /* margin: .2rem; */
    /* margin: 0; */
}

#loading {
    text-align: center;
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1000;
    background: rgba(254, 254, 254, .8);
    backdrop-filter: blur(2rem) saturate(1.2);
    -webkit-backdrop-filter: blur(2rem) saturate(1.2);
    margin: 0 auto;
    vertical-align: top;
    display: flex;
    justify-content: center;
}

#loading>div {
    margin: auto;
}


.timer>.control {
    position: absolute;
    transform: translate(6.67%, 50%);
    display: none;
}

.list>select {
    width: calc(100% - .4rem);
    height: 12rem;
    margin-top: .2rem;
    margin-left: .2rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0rem;
    overflow-y: auto;
}

.list>select>option {
    border-radius: .3rem;
    text-align: center;
    overflow-x: scroll;
    margin-bottom: .2rem;
    line-height: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
    overflow: hidden;
    font-size-adjust: 0.5;
    font-stretch: ultra-condensed;
    font-synthesis: style;
    font-feature-settings: "tnum";
    padding: 1px 3px 1px 3px;
}

.list>select>option:first-of-type {
    background: rgba(176, 176, 178, .15) !important;
    font-weight: 800;
}

.list>.control>input {
    margin: .2rem !important;
    width: calc(100% - 1.45rem);
    height: .7rem;
    border-radius: .4rem;
}

.list>.control>button {
    height: 100%;
    width: calc(33% - .54rem);
    background: rgba(237, 234, 233, .1) !important;
    /* border: none !important; */
    border-radius: .4rem;
    text-align: center;
    margin: 0 auto;
}

:root {
    --dark-body: rgba(67, 66, 80, .8);
    --dark-main: rgba(20, 21, 29, .72);
    --dark-second: #79788c;
    --dark-hover: #323048;
    --dark-text: #f8fbff;

    --light-body: rgba(243, 248, 254, .9);
    --light-main: rgba(253, 253, 253, .8);
    --light-second: #c3c2c8;
    --light-hover: #edf0f5;
    --light-text: #151426;

    --blue: #0000ff;
    --white: #fff;

    --shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;

    --font-family: cursive;
}

.light {
    --bg-body: var(--light-body);
    --bg-main: var(--light-main);
    --bg-second: var(--light-second);
    --color-hover: var(--light-hover);
    --color-txt: var(--light-text);
}

.navigation {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 70px;
    height: 350px;
    background: #080d1dde;
    border: 4px solid #000e;
    border-radius: 10rem;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    zoom: .42;
}

.navigation ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.navigation ul li {
    position: relative;
    list-style: none;
    width: 70px;
    height: 70px;
    z-index: 1;
}

.navigation ul li a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    color: #fff;
    font-weight: 500;
}

.navigation ul li a .icon {
    position: relative;
    display: block;
    line-height: 75px;
    text-align: center;
    transition: 0.5s;
}

.navigation ul li.active .icon {
    color: #fff;
}

.navigation ul li a .icon i {
    font-size: 24px;
}

.navigation ul li a .title {
    position: absolute;
    top: 50%;
    left: 110px;
    background: #334c;
    transform: translateY(-50%);
    padding: 5px 10px;
    border-radius: 9px;
    transition: 0.5s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    opacity: 0;
    visibility: hidden;
    color: #fff;
    border: 3px solid #000e;
}

.navigation ul li:hover a .title {
    opacity: 1;
    visibility: visible;
    transform: translateX(-25px) translateY(-50%);
}

.navigation ui li:hover a .title::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    left: -8px;
    top: 46%;
    transform: rotate(45deg) translateY(-50%);
    border-radius: 2px;
}

.navigation ul .indicator {
    position: absolute;
    left: 0;
    width: 70px;
    height: 70px;
    transition: 0.5s;
}

.navigation ul .indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #333e;
    border-radius: 50%;
    transition: 0.5s;
}

.navigation ul li:nth-child(1).active~.indicator {
    transform: translateY(calc(70px * 0));
}

.navigation ul li:nth-child(2).active~.indicator {
    transform: translateY(calc(70px * 1));
}

.navigation ul li:nth-child(3).active~.indicator {
    transform: translateY(calc(70px * 2));
}

.navigation ul li:nth-child(4).active~.indicator {
    transform: translateY(calc(70px * 3));
}

.navigation ul li:nth-child(5).active~.indicator {
    transform: translateY(calc(70px * 4));
}

.navigation ul li:nth-child(1).active~.indicator::before {
    background: #f53b57;
}

.navigation ul li:nth-child(2).active~.indicator::before {
    background: #3c40c6;
}

.navigation ul li:nth-child(3).active~.indicator::before {
    background: #05c46b;
}

.navigation ul li:nth-child(4).active~.indicator::before {
    background: #0fbcf9;
}

.navigation ul li:nth-child(5).active~.indicator::before {
    background: #ffa801;
}

.calendar {
    border-top: 3.6px solid #040300;
    border-left: 3.6px solid #040300;
    display: none;
    zoom: .6;
    height: max-content;
    width: max-content;
    background-color: var(--bg-main);
    backdrop-filter: blur(1.2rem);
    -webkit-backdrop-filter: blur(1.2rem);
    border-top-left-radius: 27px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    position: absolute;
    bottom: 2rem;
    right: 0;
    z-index: 5;
    /* transform: scale(1.25); */
}

.calendar * {
    font-size: 24px;
}

.light .calendar {
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 32px;
    font-weight: 600;
    color: var(--color-txt);
    padding: 10px;
}

.calendar-body {
    padding: 10px;
}

.calendar-week-day {
    height: 50px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-weight: 600;
}

.calendar-week-day div {
    display: grid;
    place-items: center;
    color: var(--bg-second);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    color: var(--color-txt);
}

.calendar-days div {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    position: relative;
    cursor: pointer;
    animation: to-top .5s forwards;
    /* border-radius: 50%; */
}

.calendar-days div span {
    position: absolute;
}

.calendar-days div:hover span {
    transition: width 0.2s ease-in-out, height 0.2s ease-in-out;
}

.calendar-days div span:nth-child(1),
.calendar-days div span:nth-child(3) {
    width: 2px;
    height: 0;
    background-color: var(--color-txt);
}

.calendar-days div:hover span:nth-child(1),
.calendar-days div:hover span:nth-child(3) {
    height: 100%;
}

.calendar-days div span:nth-child(1) {
    bottom: 0;
    left: 0;
}

.calendar-days div span:nth-child(3) {
    top: 0;
    right: 0;
}

.calendar-days div span:nth-child(2),
.calendar-days div span:nth-child(4) {
    width: 0;
    height: 2px;
    background-color: var(--color-txt);
}

.calendar-days div:hover span:nth-child(2),
.calendar-days div:hover span:nth-child(4) {
    width: 100%;
}

.calendar-days div span:nth-child(2) {
    top: 0;
    left: 0;
}

.calendar-days div span:nth-child(4) {
    bottom: 0;
    right: 0;
}

.calendar-days div:hover span:nth-child(2) {
    transition-delay: 0.2s;
}

.calendar-days div:hover span:nth-child(3) {
    transition-delay: 0.4s;
}

.calendar-days div:hover span:nth-child(4) {
    transition-delay: 0.6s;
}

.calendar-days div.curr-date,
.calendar-days div.curr-date:hover {
    background-color: #fffe;
    box-shadow: 0 0 16px #fff8;
    color: var(--dark-main);
    border-radius: 50%;
    font-weight: 800 !important;
}

.calendar-days div.curr-date span {
    display: none;
}

.month-picker {
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.month-picker:hover {
    background-color: var(--color-hover);
}

.year-picker {
    display: flex;
    align-items: center;
}

.year-change {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 10px;
    cursor: pointer;
}

.year-change:hover {
    background-color: var(--color-hover);
}

.calendar-footer {
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.toggle {
    display: flex;
}

.toggle span {
    margin-right: 10px;
    color: var(--color-txt);
}

.dark-mode-switch {
    position: relative;
    width: 48px;
    height: 25px;
    border-radius: 14px;
    background-color: var(--bg-second);
    cursor: pointer;
}

.dark-mode-switch-ident {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background-color: var(--bg-main);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.2s ease-in-out;
}

.dark .dark-mode-switch .dark-mode-switch-ident {
    top: 2px;
    left: calc(2px + 50%);
}

.month-list {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--bg-main);
    padding: 20px;
    grid-template-columns: repeat(3, auto);
    gap: 5px;
    display: grid;
    transform: scale(1.5);
    visibility: hidden;
    pointer-events: none;
}

.month-list.show {
    transform: scale(1);
    visibility: visible;
    pointer-events: visible;
    transition: all 0.2s ease-in-out;
}

.month-list>div {
    display: grid;
    place-items: center;
}

.month-list>div>div {
    width: 100%;
    padding: 5px 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    color: var(--color-txt);
}

.month-list>div>div:hover {
    background-color: var(--color-hover);
}

@keyframes to-top {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.month-list {
    backdrop-filter: blur(.8rem);
    -webkit-backdrop-filter: blur(.8rem);
}

.v86.dialog iframe,
.pcejs.pcejs-canvas {
    min-width: 384px;
    min-height: 216px;
    width: 100.2%;
    height: calc(100.4% - 20.5px);
    transform: translateX(-.1%) translateY(-.1%);
    /* zoom: .7; */
    margin: 0;
    padding: 0 !important;
    background: url("../img/bsod.webp") no-repeat no-repeat;
    background-size: cover;
    filter: contrast(1.1) blur(.2px);
}

.pcejs.pcejs-container {
    margin: 0;
}

/* .dark .v86.dialog iframe,
.dark .pcejs.pcejs-canvas {
    filter: contrast(.9) invert(.98) sepia(.12) hue-rotate(180deg) saturate(1.2) blur(.2px);
    border-radius: .5rem;
    box-shadow: inset 0 0 3px #000a;
} */

.v86.dialog {
    background: #000 !important;
    backdrop-filter: none;
    color: #fffa;
    width: 512px;
    height: 358px;
    /* width: 400px;
    height: 323px; */
    padding: 0;
    resize: none;
    overflow: hidden;
    /* border-bottom-left-radius: 0; */
    /* border-bottom-right-radius: 0; */
}


.v86.dialog .dialog-title {
    background-color: rgba(43, 35, 32, .85);
    transform: none;
    zoom: .8;
}

span.info {
    position: fixed;
    display: block;
    font-size: 11px;
}

span.info.bottom {
    /* bottom: 2rem; */
    top: 2.2rem;
    color: rgba(172, 128, 132, .6);
    text-shadow: 0 0 3.6px rgba(240, 132, 136, .4);
    font-size: 12px;

}

span.info.top {
    top: 1rem;
    color: rgba(80, 80, 80, .3);
    z-index: 10000;
    user-select: none;
    pointer-events: none;
}


.pcejs {
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
}

div.pcejs-border {
    border: none;
}

/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
.pcejs-canvas {
    border: 0px none;
}

.pcejs-container {
    margin-top: 32px;
    text-align: center;
}

/* macplus has mouse integration, so we can hide the host mouse */
.pcejs-container canvas {
    cursor: none;
}


#translate {
    position: absolute;
    right: 1.2rem;
    bottom: 2.7rem;
    z-index: 1;
    zoom: .72;
}

#translate select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: center;
    height: 2rem;
    background: #fdf;
    border-radius: 2px;
    color: #111913;
    box-shadow: 4px 4px 0 #000000d4;
    cursor: pointer;
}

#translate select:hover {
    box-shadow: 2px 2px 0 #000000d4;
    transform: translateX(2px) translateY(2px);
}

progress.battery {
    zoom: .4;
    border: 3px solid #000;
    text-align: center;
}

div.battery {
    position: absolute;
    margin: 0 auto;
    bottom: -4rem;
    padding: .7rem 1.8rem .4rem 1.8rem;
    box-shadow: 0 8px 18px #0002;
    border-radius: 10rem;
    background: #4446;
    border: .7px solid #ffffff0a;
    backdrop-filter: blur(.8rem) contrast(1.05);
    -webkit-backdrop-filter: blur(.8rem) contrast(1.05);
    animation: 1160ms cubic-bezier(.53, .46, .38, .96) battery-in 2s;
    /* animation-delay: 3s; */
}

@media (prefers-color-scheme: dark) {
    #loading {
        background: rgba(0, 0, 0, .8);
    }

    .main.container>div {
        margin: .22rem .1rem .22rem .1rem;
        background: rgba(237, 234, 233, .1);
        /* background: linear-gradient(0deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .05)) !important; */
        display: inline-block;
    }

    #translate select {
        background: #151426ca;
        border-radius: 2px;
        color: #F2F2F4;
        box-shadow: 4px 4px 0 #000000d4;
    }

    :root {
        --bg-body: var(--dark-body);
        --bg-main: var(--dark-main);
        --bg-second: var(--dark-second);
        --color-hover: var(--dark-hover);
        --color-txt: var(--dark-text);
    }
}

@keyframes battery-in {

    0% {
        bottom: -4rem;
        filter: blur(8px) contrast(1.1);
    }

    70% {
        bottom: 2rem;
        filter: blur(0) contrast(1);
    }

    100% {
        bottom: 2rem;
    }
}

@keyframes battery-out {

    0% {
        bottom: 2rem;
    }

    100% {
        bottom: -4rem;
    }
}



div.battery span {
    text-align: center;
    margin: 0 auto;
    display: block;
    font-size: 9px;
    line-height: 3px;
    font-family: 'Google Sans', 'Noto Sans SC', sans-serif;
    color: rgba(160, 160, 160, .8);
}


@media (prefers-color-scheme: light) {

    div.battery {
        background: #fffe;
        border: .7px solid #0002;
    }

    div.battery span {
        color: #000;
        font-weight: 600;
    }
}

.dialog button {
    width: 3rem;
}

@media (max-width: 640px) {
    .main.container {
        padding: 1rem;
    }

    .main.container>div {
        position: absolute !important;
        width: 100vw !important;
        top: 0;
        left: 0;
        border-radius: 0;
        border: none !important;
        border-bottom: 2px solid #000 !important;
        margin: 0;
        backdrop-filter: brightness(.2);
    }

    .main.container>.title {
        top: 0;
        left: 0;
        height: 4rem;
    }

    .main.container>.timer {
        top: 4.7rem;
        left: 0;
        height: 4rem;
    }

    .main.container>.timer>.time1,
    .main.container>.timer>.time2 {
        display: inline-block !important;
    }

    .main.container>.timer>.control>* {
        display: inline-block !important;
    }

    .main.container>.list {
        display: none;
    }

    .main.container>.txt {
        top: 9.4rem;
        left: 0;
        height: calc(100vh - 5rem);
    }
}

#terminal {
    position: fixed;
    z-index: 109;
    height: 15px;
    width: 120px;
    top: -5px;
    background: #000c;
    backdrop-filter: blur(12px);
    zoom: .8;
    border-radius: 0 0 8px 8px;
    border-left: 2px solid #000a;
    border-right: 2px solid #000a;
    border-bottom: 2px solid #000a;
    box-shadow: 0 2px 8px #0006;
    transition: .6s all ease;
    cursor: pointer;
    /* image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    image-rendering: optimizeSpeed;
    -ms-interpolation-mode: nearest-neighbor;
    filter: blur(.2px); */
    filter: brightness(.1);
}

#terminal:hover {
    height: 216px;
    width: 384px;
    cursor: not-allowed;
    /* top: -2px; */
    top: 8px;
    border-radius: 6px;
    border: 2px solid #000a;
    filter: brightness(1);
}

.flew-layer .main.container, .flew-layer {
    width: 100%;
    height: 100%;
}