:root {
    --font: 'Poppins', sans-serif;
    --main-bg: #f5f5f5;
    --link: #1565C0;
}
@font-face {
    font-display: block; 
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/poppins-v24-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: block; 
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/poppins-v24-latin-600.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: 800;
    src: url('fonts/poppins-v24-latin-800.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: 400;
    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: 800;
    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;
}
.text-center {
    text-align: center;
}
header {
    text-align: center;
    background: #fff;
    box-shadow: 0 5px 15px 0 rgba(0,0,0,.1);
    padding: .5rem;
    user-select: none; 
}
header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 .5rem;
}
header .icon {
    min-width: 40px;
}
header label {
    min-width: auto !important;
}
header .field {
    align-items: center;
}
header a i {
    font-size: 1.75rem !important;
    line-height: 1 !important;
    color: #555;
    cursor: pointer;
}
main {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: .5rem 0 1rem;
}
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0px -5px 15px 0px rgba(0,0,0,.1);
}
    /* menu */
#menuSwitcher {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px; 
    background: #fff;
    transform: rotate(0deg);
    transition: .3s;
    cursor: pointer;
    z-index: 120;
}
.fix #menuSwitcher {
    position: fixed;
    right: 1rem; top: 1rem;
}
#menuSwitcher i {
    font-size: 2.1rem;
}
.menuOpen #menuSwitcher {
    transform: rotate(360deg);
}
nav {
    position: fixed;
    left: -100vw; top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 5px 0 25px 0 #00000025;
    transition: .25s;
    user-select: none;
    z-index: 120; 
}
.menuOpen nav {
    left: 0;
}
nav ul {
    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;
}
#shareButton {
    visibility: hidden;
    text-align: center;
    padding-top: .5rem;
    background: #ddd;
    cursor: pointer;
}
#overlay {
    display: none;
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: #000000aa;
    cursor: pointer;
    z-index: 115;
}
.menuOpen #overlay {
    display: block;
}
    /* part */
.partOfPage {
    display: none;
    margin: 1rem 0;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.partOfPage.grid-2 {
    display: none;
}
@media screen and (max-width: 576px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }    
}
    /* result */
.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 */
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: 100px;
}
input[type="radio"] {
    cursor: pointer;
}
input:focus, textarea:focus, select:focus {
    border-color: #aaa;
    outline: none;
}
input::placeholder {
    color: #aaa;
}
input:focus::placeholder {
    color: transparent;
}
.required {
    color: red;
}
.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;
}
button {
    display: inline-block;
    font-size: 1rem;
    padding: 4px 10px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
}
    /* rectangle */
.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;
}
    /* cursor */
[data-page="cursor"] {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}
.cursor {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    text-wrap: nowrap;
    width: auto !important;
    background: #fff;
    margin: .3rem;
    padding: .3rem 2rem .3rem .7rem;
}
    /* color */
[data-page="color"] .generator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
#colorList {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.color {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 3px #000;
    aspect-ratio: 4 / 2.5;
    padding: 0 .5rem .5rem;
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    #colorList {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 576px) {
    #colorList {
        grid-template-columns: repeat(2, 1fr);
    }
    .color span {
        display: none;
    }
}
.color:hover span {
    background: #000;
}
    /* filter */
[data-page="filter"] {
    grid-template-columns: 70% 30%;
    gap: 2rem;
}
.filter {
    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;
}
.filter.active {
    background: #fff;
}
[data-page="filter"] img {
    width: 75%;
    max-width: 200px;
    height: auto;
}
@media screen and (max-width: 576px) {
    [data-page="filter"] {
        grid-template-columns: 1fr;
    }
    [data-page="filter"] .rectangle {
        order: -1;
        padding: 0;
    }
}
    /* obfuscator */
#obfuscOutput, #serverOutput {    
    position: relative;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    margin-left: .5rem;
    background: #fff;
    padding: .5rem .75rem;
}
#obfuscOutput {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
    /* utm */
[data-type="utm"] {
    gap: 0 2rem;
}
    /* notice */
#notice {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 33%;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    z-index: 9999;
}
.notice {
    font-size: 1rem;
    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; }
}
