@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+HK:wght@100..900&family=Noto+Serif+HK:wght@200..900&family=Noto+Sans+Mono:wght@100..900&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block');
@import "/$SWITCH.css";

* {
    outline: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Noto Sans HK", sans-serif;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;

    scroll-behavior:smooth;
}
[SERIF]{
    font-family: "Noto Serif HK", serif;
    font-weight: 700;
}
code{
    font-family: "Roboto", monospace;
}

html{
    overflow-x:hidden;
    height: 100%;
}

body {
    height: 100%;
    /* Sets body height to match the full HTML element height */
    overflow: hidden;
    /* Prevents scrolling, especially when keyboard appears on mobile */
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
}

[FLEX]{
    display: flex;
    gap: .2rem;

    &[MIDDLE] {
        place-items: center;
    }
    &[CENTER] {
        place-content: center;
    }
    &[BETWEEN] {
        place-content: space-between;
    }
}

button {
/*    width: 100%;*/
    padding: 12px;
    border: none;
    background: #2c2c2c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;

    &:hover {
        background: #4a4a4a;
    }

    &:active {
        background: #1a1a1a;
    }

    display: inline-flex !important;
    place-content: center;
    place-items: center;
    gap: .2rem;

    /*  btn icon*/
    &[data-icon]{
        &:before{
            font-family: "Material Symbols Outlined";
            content: attr(data-icon);
        }

        &[data-icon=autorenew]{
            cursor: not-allowed;
        }
        &[data-icon=autorenew]:before{
            animation: SPIN 1s ease infinite;
        }
    }

    /*  btn label*/
    & *{
        user-select: none;
        pointer-events: none;
    }
}

label[for] {
    cursor: pointer;
    user-select: none;
}

iframe{
    background-color: #eee;
    border: 1px solid #d1d1d1;
    border-radius: .2rem;
    width: 100%;
}

[hidden],[lang]{
    display: none;
}