:root {
    --text-color: white;
    --element-background: rgba(0, 0, 0, 0.25);
    --main-background: linear-gradient(145deg, rgba(20,116,13,1) 49%, rgba(33,173,23,1) 100%);
    --font-family: 'Segoe UI', sans-serif;
    --show-path: flex;
    --explorer-padding: 10px;
    --explorer-width: 75%;
    --backdrop-blur: 10px;
    --show-thead: table-header-group;
    --show-logo: block;
    --logo-position: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
	background-color: black;
    font-family: var(--font-family);
}

.background {
	position: fixed;
	width: 100vw;
	height: 100vh;
	background: var(--main-background);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	z-index: -1;
	top: 0;
	left: 0;
}

.logo {
    width: 100%;
    display: flex;
    justify-content: var(--logo-position);
    align-items: center;
    user-select: none;
    padding: 20px;
}

.logo .logoWithIcon {
    display: flex;
    align-items: center;
    gap: 15px;
    user-select: none;
    user-drag: none;
}

.logoWithIcon img {
    display: var(--show-logo);
}

.logo p::before{
    content: "Public beta ";
    font-style: italic;
}

.text {
    text-align: right;
}

.text h1 {
    font-size: 3rem;
}

.content {
    width: 100%;
    height: 100%;
    color: var(--text-color);
}

.center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table {
    padding: var(--explorer-padding);
    background-color: var(--element-background);
    backdrop-filter: blur(var(--backdrop-blur));
    width: var(--explorer-width);
    margin-bottom: 5px;
    font-size: 16px;
    border-spacing: 0px;
}

p.path {
  width: 100%;
  padding: 5px;
  background: var(--element-background);
  display: var(--show-path);
  gap: 5px;
  overflow-x: auto;
  white-space: nowrap;
}

p.path::-webkit-scrollbar {
    height: 7px;
}

p.path::-webkit-scrollbar-thumb {
    background: rgb(255, 255, 255);
    border: 3px solid transparent;
    background-clip: padding-box;
}

p.path::-webkit-scrollbar-thumb:hover {
    border: 0;
    background: rgba(255, 255, 255, 0.5);
}

p.path::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.2);
}

p.path::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}

p.path a {
  text-decoration: none;
  color: var(--text-color);
}

p.path a:hover {
  text-decoration: underline;
}

p.path:not(a){
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
  user-select: none;
}

.table thead {
    display: var(--show-thead);
}

#list {
    width: 100%;
    font-size: 16px;
    border-collapse: collapse;
}

#list * {
    color: var(--text-color);
}

#list a:not(#list thead a) {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 5px 5px 0;
}

#list a .dp, #list td:has(.dp) a:hover img:not(.dp) {
    display: none;
}

#list td:has(.dp) a:hover .dp {
    display: block;
}

#list tr:hover:not(#list thead tr:hover) {
    background-color: rgba(255, 255, 255, 0.25);
}

#list a:hover {
    text-decoration: underline;
}

#list a img {
    width: 20px;
    height: 20px;
    user-select: none;
}

#list th {
    text-decoration: none;
    padding: 4px 0;
}

#list th, #list td {
    text-align: right;
}

#list th:first-child, #list td:first-child {
    text-align: left;
}

#list th a {
    text-decoration: none;
}

#list th a:hover {
    text-decoration: underline;
}

#list th:last-child, #list td:last-child {
    display: none;
}

tbody {
    border-collapse: collapse;
}

tbody td {
    outline: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 540px) {

    .logo h1 {
        font-size: 2rem;
    }

    .logo img {
        width: 48px;
        height: 48px;
    }

    #list th, #list td:nth-last-child(2) {
        display: none;
    }

    .table {
        width: 95%;
    }

    #list a {
        display: grid !important;
        justify-items: center;
        padding: 10px 0px;
    }

    #list a img {
        width: 40px;
        height: 60px;
        padding: 10px 0px;
    }

    #deskPrev {
        display: none !important;
    }
}

/* Settings (750 MOBILE) */

.settingspage {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  animation: fadesettingspage 250ms forwards ease-out;
}

.settings {
  padding: var(--explorer-padding);
  background: var(--element-background);
  backdrop-filter: blur(var(--backdrop-blur));
  margin-bottom: 10px;
  color: var(--text-color);
  width: 250px;
  height: 100vh;
  animation: fadesettings 250ms forwards ease-out;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 0fr 0fr 0fr 0fr;
  overflow-x: hidden;
  transition: all 250ms ease-out, padding 0ms;
}

.settingsexplorer a {
    display: block;
    width: 100%;
    padding: 5px 5px 5px 0;
    color: var(--text-color);
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.settingsexplorer a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.settingsexplorer a img {
    user-select: none;
}

.settingsexplorer a:not(a.active):hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.settingsexplorer p:not(.checkboxFlex p) {
    margin-bottom: 10px;
}

.preview > img:not(img.idle) {
    display: none;
}

.preview:has(img.idle) {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview img.idle {
    opacity: 0.1;
    -webkit-user-select: none;
    user-select: none;
    user-drag: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    animation: fadeimg 500ms forwards linear;
}

@keyframes fadeimg {
  from {opacity: 0;}
}

@keyframes fadesettings {
  from {width: 0px;}
}

@keyframes fadesettingspage {
  from {grid-template-columns: 0px 1fr;}
}

.settingtopicprev {
    background-color: var(--element-background);
    color: var(--text-color);
    height: 100%;
    display: none;
}

.settingtopicprev a {
    cursor: pointer;
}

#settingsThemeprev, #settingsImgprevprev {
    background: transparent;
}

.settingtopicprev.active {
    display: block;
}

.settingtopic {
    width: 0%;
    overflow: hidden;
    transition: 250ms ease-out;
}

.settingtopic.active {
    width: 100%;
    overflow-y: auto;
}

.settingtopic::-webkit-scrollbar {
    width: 7px;
}

.settingtopic::-webkit-scrollbar-thumb {
    background: rgb(255, 255, 255);
    border: 3px solid transparent;
    background-clip: padding-box;
}

.settingtopic::-webkit-scrollbar-thumb:hover {
    border: 0;
    background: rgba(255, 255, 255, 0.5);
}

.settingtopic::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.2);
}

.settingtopic::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}

.settingtopic input[type="Number"], .settingtopic input[type="Text"], .settingtopic select {
    background-color: var(--element-background);
    outline: 0;
    border: 0;
    color: var(--text-color);
    padding: 5px;
    width: 100%;
    border-radius: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.settingtopic input[type="Number"] {
    font-family: 'consolas', monospace;
}

.settingtopic input[type="Text"] {
    font-family: var(--font-family);
}

select, ::picker(select) {
    appearance: base-select;
}

::picker(select) {
    background-color: var(--element-background);
    outline: 0;
    border: 0;
    color: var(--text-color);
    padding: 5px;
    border-radius: 0;
    backdrop-filter: blur(10px);
}

.md *:not(.styled):not(hr):not(.compare) {
    padding: 10px 0;
}

.md {
    backdrop-filter: blur(var(--backdrop-blur));
    padding: 0 10px;
    max-height: 100vh;
    overflow-y: auto;
}

.md::-webkit-scrollbar {
    width: 7px;
}

.md::-webkit-scrollbar-thumb {
    background: rgb(255, 255, 255);
    border: 3px solid transparent;
    background-clip: padding-box;
}

.md::-webkit-scrollbar-thumb:hover {
    border: 0;
    background: rgba(255, 255, 255, 0.5);
}

.md::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.2);
}

.md::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}

.md hr, .settingtopic hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.styled {
    display: block;
    color: var(--text-color);
    background-color: var(--element-background);
    backdrop-filter: blur(var(--backdrop-blur));
    padding: 8px;
    border: 1px solid rgba(128, 128, 128, 0.2);
    width: 100%;
    margin: 4px 0;
}

.posInput {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  margin-bottom: 10px;
}

.posInput.two {
  grid-template-columns: 1fr 1fr;
}

.posInput div {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 0;
  user-select: none;
}

.posInput div:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.posInput div.active {
  background-color: rgba(255, 255, 255, 0.3);
}

.loading > *:not(a):not(a *) {
    opacity: 0.5;
}

.loading *:not(a) {
    user-select: none;
    pointer-events: none;
}

#MWthemepreset, #MWthemecustom, #MWthemeurl, #MWiconURLs {
    display: none;
}

#MWthemepreset.active, #MWthemecustom.active, #MWthemeurl.active, #MWiconURLs.active {
    display: block;
}

body:has(#MWbodyhover:hover) #settingsThemeprev .content,
body:has(#MWlogohover:hover) #settingsThemeprev .logo .text,
body:has(#MWexplorerhover:hover) #settingsThemeprev .table,
body:has(#MWiconhover:hover) #settingsThemeprev .logoWithIcon img,
body:has(#MWlogoposhover:hover) #settingsThemeprev .logo,
body:has(#MWiconshover:hover) #settingsThemeprev img,
body:has(#MWpathhover:hover) #settingsThemeprev .path, 
body:has(#MWtheadhover:hover) #settingsThemeprev thead {
    animation: linear infinite selected 2s;
}

@keyframes selected {
    from, to {box-shadow: inset 0px 0px 0px 1px #FFFFFFFF;}
    50% {box-shadow: inset 0px 0px 0px 1px #FFFFFF55;}
}

@media screen and (max-width: 750px) {
    .settingspage {
        grid-template-columns: none;
        grid-template-rows: 50vh 100vh;
        width: 100%;
    }

    .settings {
        height: auto;
        width: 100%;
    }

    .settings a {
        display: grid !important;
        justify-items: center;
        padding: 10px 0px;
    }

    .settings a img {
        width: 40px;
        height: 60px;
        padding: 10px 0px;
    }

    .settingsexplorer {
        overflow: auto;
        max-height: calc(100% - 43px);
    }

    .settingsexplorer::-webkit-scrollbar {
        width: 7px;
    }

    .settingsexplorer::-webkit-scrollbar-thumb {
        background: rgb(255, 255, 255);
        border: 3px solid transparent;
        background-clip: padding-box;
    }

    .settingsexplorer::-webkit-scrollbar-thumb:hover {
        border: 0;
        background: rgba(255, 255, 255, 0.5);
    }

    .settingsexplorer::-webkit-scrollbar-thumb:active {
        background: rgba(255, 255, 255, 0.2);
    }

    .settingsexplorer::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0);
    }

    .styled {
        word-break: break-all;
    }

    .dontmobile {
        display: none !important;
    }
}

/* CUSTOM CHECKBOX */

.checkboxFlex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 21px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--element-background);
}

.slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 2px;
  bottom: 2px;
  background-color: white;
}

.switch input:checked + .slider {
  background-color: rgba(17, 185, 5, 0.25);
}

.switch input:checked + .slider:before {
  -webkit-transform: translateX(17px);
  -ms-transform: translateX(17px);
  transform: translateX(17px);
}

/* Image preview box */

#box {
    padding: 10px;
    position: fixed;
    z-index: 9999;
    background-color: var(--element-background);
    backdrop-filter: blur(var(--backdrop-blur));
}

#box img {
    background-color: var(--element-background);
}