:root {
    --font: 'Poppins', sans-serif;
    --main-bg: #f5f5f5;
    --link: #1565C0;
}
@font-face {
  font-display: block;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/poppins-v24-latin-500.woff2') format('woff2');
}
@font-face {
  font-display: block;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/poppins-v24-latin-700.woff2') format('woff2');
}
@font-face {
  font-display: block;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 900;
  src: url('fonts/poppins-v24-latin-900.woff2') format('woff2');
}
@font-face {
    font-display: block;
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/material-icons-v145-latin-regular.woff2') format('woff2');
}
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
*, :after, :before {
    box-sizing: border-box;
    scrollbar-width: thin;
}
html {
    font-size: 16px;
}
body {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    color: #111;
    background: var(--main-bg);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
}
.container {
    width: 100%;
    max-width: 800px;
    flex: 1;
    margin: 0 auto !important;
    padding: 0 1rem;
}
h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    color: #555;
    margin: 2rem 0;
    user-select: none;
}
h1 {
    font-size: 1.7rem;
    text-align: center;
    margin: 2rem 0;
}
h4 {
    font-size: 1.25rem;
    text-align: center;
}
h4 i {
    font-size: 1rem;
    vertical-align: middle;
}
.flex {
    display: flex;
    gap: 2rem;
}
.flex-center {
    display: flex;
    justify-content: center;
}
header {
    text-align: center;
    background: #fff;
    box-shadow: 0 5px 15px 0 rgba(0,0,0,.1);
    padding: .5rem;
    user-select: none; 
}
header .flex {
    justify-content: space-between;
    align-items: center;
    padding: 0 .5rem;
}
header label {
    min-width: auto !important;
}
header .field {
    align-items: center;
}
header i {
    font-size: 22px;
    color: #777;
    cursor: pointer;
}
#shareButton {
    visibility: hidden;
}
nav {
    position: fixed;
    left: -100vw; top: 0;
    height: 100dvh;
    background: #fff;
    box-shadow: 5px 0 25px 0 #00000025;
    transition: .25s;
    user-select: none;
    z-index: 120; 
}
nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: .5rem;
    height: 100%;
    overflow-y: auto;
}
nav li {
    display: block;
    font-size: 1.1rem;
    text-transform: uppercase;
    white-space: nowrap;
    color: #555;
    background: #fff;
    padding: .3rem .7rem;
    cursor: pointer;
}
nav li.active {
    background: #ddd;
}
#menuSwitcher {
    position: absolute;
    right: -44px; top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 40px;
    border-radius: 0 5px 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    box-shadow: 10px 0 15px 0 #00000025;
    transition: .3s;
    cursor: pointer;
}
@media screen and (max-width: 576px) {
    #menuSwitcher {
        top: 75%;
        transform: translateY(-25%);
    }
}
#menuSwitcher i {
    font-size: 1.75rem;
    color: #555;
}
#overlay {
    display: none;
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: #000000aa;
    cursor: pointer;
    z-index: 115;
}
main {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: .5rem 0 1rem;
}
.partOfPage {
    display: none;
    margin: 1rem 0;
}
.partOfPage > * {
    width: 50%;
}
@media screen and (max-width: 576px) {
    .partOfPage {
        flex-wrap: wrap;
    }
    .partOfPage > * {
        width: 100%;
    }
}
.field {
    display: flex;
    align-items: center;
    margin: .5rem 0;
}
.field.row {
    flex-direction: row;
}
.field.col {
    flex-direction: column;
    align-items: start;
}
.field label {
    text-align: left;
    min-width: 125px;
    margin-right: .5rem;
    user-select: none;
}
.field.col label {
    min-width: auto;
    margin: 0 0 .3rem .3rem;
}
.field.col input {
    width: 100%;
    margin-bottom: .5rem;
}
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0px -5px 15px 0px rgba(0,0,0,.1);
}
.result {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 1rem auto;
    padding: 0 1rem;
}
#result {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    flex-grow: 1;
    text-align: center;
    margin: 0 1rem;
}
.result i {
    user-select: none;
    cursor: pointer;
}
input, textarea, select {
    font-size: 1rem;
    padding: 4px 10px;
    border: 2px solid #ddd;
    border-radius: 3px;
    box-shadow: inset 3px 3px 10px 0px rgba(0,0,0,0.1);
}
input[type="color"] {
    padding: 0;
    border: none;
    box-shadow: none;
}
input[type="number"] {
    width: 64px;
}
input:focus, textarea:focus, select:focus {
    border-color: #aaa;
    outline: none;
}
input::placeholder {
    color: #aaa;
}
.required {
    color: red;
}
button {
    display: inline-block;
    font-size: 1rem;
    padding: 4px 10px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
}
/* #br */
.rectangle {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    font-weight: 700;
}
@media screen and (max-width: 576px) {
    .rectangle {
        padding: 4rem 0;
    }
}
.rectangle > div {
    width: 50%;
    aspect-ratio: 1 / 1;
    background: #fff;
}
[data-page="border-radius"] .rectangle > div,
[data-page="transform"] .rectangle > div {
    border: 3px solid #000;
}
[data-page="text-shadow"] .rectangle > div {
    height: auto;
    padding: .3rem .5rem;
    overflow: hidden;
}
#cu, #co {
    flex-wrap: wrap;
    justify-content: center;
}
.cu {
    font-family: monospace;
    font-size: .9rem;
    font-weight: 700;
    text-wrap: nowrap;
    width: auto !important;
    background: #fff;
    margin: .3rem;
    padding: .3rem 1.5rem .3rem .7rem;
}
@media screen and (max-width: 576px) {
    .cu {
        padding: .3rem .7rem;
    }
}
.color {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-family: monospace;
    font-size: .9rem;
    font-weight: 700;
    width: 25%;
    aspect-ratio: 4 / 3;
    color: #fff;
}
@media screen and (max-width: 768px) {
    .color {
        width: 33%;
    }
}
@media screen and (max-width: 576px) {
    .color {
        width: 50%;
    }
}
.copyNAME, .copyHEX {
    transition: background .3s;
    cursor: pointer;
}
.color:hover span {
    background: #000;
}
#fi > div:nth-child(1) {
    width: 65%;
}
#fi > div:nth-child(2) {
    width: 35%;
}
.fi {
    display: flex;
    align-items: center;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    background: transparent;
    box-shadow: 0 0 2px 0 #bbb;
    margin-bottom: .5rem;
    padding: .5rem .7rem;
    cursor: pointer;
}
.fi.active {
    background: #fff;
}
#fi .rectangle img {
    width: 75%;
    height: auto;
}
@media screen and (max-width: 576px) {
    #fi {
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }
    #fi > div {
        width: 100% !important;
    }
    #fi .rectangle img {
        width: 100px;
    }
}
#obf {
    flex-wrap: wrap;
}
#obf > * {
    width: 100%;
    flex-wrap: wrap;
}
#obf .flex > * {
    width: 50%;
}
@media screen and (max-width: 576px) {
    #obf .flex > * {
        width: 100%;
    }
}
#obf3, #server2 {    
    position: relative;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    margin-left: .5rem;
    background: #fff;
    padding: .5rem .75rem;
}
#obf3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
#utm form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}
@media screen and (max-width: 576px) {
    #utm form {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
[data-page="server"] {
    gap: 2rem;
}
    /* notice */
#notice {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 450px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    z-index: 9999;
}
.notice {
    font-size: .9rem;
    color: #fff;
    background: var(--link);
    border-radius: 5px;
    padding: .5rem .8rem; 
    box-shadow: -1rem 1rem 1rem #00000033;
    overflow: hidden;
}
.notice.info {
    background: #558B2F;
}
.notice.error {
    background: #D84315;
}
@media screen and (max-width: 576px) {
    #notice {
        width: 80%;
    }
}
   /* tooltip */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.2 !important;
    color: #fff;
    padding: 7px 16px 8px;
    border-radius: 4px;
    background: linear-gradient(to bottom, #555 0%, #333 100%);
    box-shadow: 0 0 1rem #00000077;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: .25s;
}
[data-tooltip]::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #333;
    opacity: 0;
    transition: .25s;
}
@media (hover: hover) {
    [data-tooltip]:hover::before,
    [data-tooltip]:hover::after {
        opacity: 1;
        visibility: visible;
    }
}
    /* spinner */
#spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: radial-gradient(#ffffff 0%, #ffffff00 100%);
    visibility: hidden;
    opacity: 0;
    transition: 1s;
    z-index: 110;
}
#spinner.active {
    visibility: visible;
    opacity: 1;
}
.lds-spinner,
.lds-spinner div,
.lds-spinner div:after {
    box-sizing: border-box;
}
.lds-spinner {
    color: currentColor;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3.2px;
    left: 36.8px;
    width: 6.4px;
    height: 17.6px;
    border-radius: 20%;
    background: #00000077;
}
.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
