/* #region html */
* {
    margin: 0;
    padding: 0;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(8px, 4vmin, 16px);
    font-weight: normal;
    color: var(--text_c);
    border: unset;
    box-sizing: border-box;

    outline: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;

    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
    display: none;
}

html {
    display: flex;
    justify-content: center;
    height: 100%;
    width: 100%;
}

@media (min-width: 28rem) {
    html {
        background-color: var(--html_c);
    }
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: min(28rem, 100%);
    background-color: var(--background_c);
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    width: 100%;
    overflow-y: scroll;
}

body:has(nav)>main {
    padding: 0 2rem;
}

body:not(:has(nav))>main {
    padding: 0 2rem 2rem 2rem;
}

.hidden {
    display: none !important;
}

/* #endregion */

/* #region text */
a:not(.btn) {
    font-size: .75rem;
    line-height: 1rem;
    color: var(--gray_c);
}

.p_overflow {
    min-width: 0;
    max-width: 100%;
}

.p_overflow>:is(p, h1, h2) {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* #endregion */

/* #region flex */
.flex {
    display: flex;
}

.col {
    flex-direction: column;
}

.aic {
    align-items: center;
}

.wrap {
    flex-wrap: wrap;
}

.g0_25 {
    gap: .25rem;
}


.g0_5 {
    gap: .5rem;
}

.g0_75 {
    gap: .75rem;
}

.g1 {
    gap: 1rem;
}

.g1_25 {
    gap: 1.25rem;
}

.g1_5 {
    gap: 1.5rem;
}

.wrapper.g1.w25 > .btn {
   width: calc((100% - 3rem) / 4);
}

.wrapper.g1.w33 > .btn {
   width: calc((100% - 2rem) / 3);
}

.wrapper.g1.w50 > .btn {
   width: calc((100% - 1rem) / 2);
}

.wrapper.g1_25.w50 > .btn {
   width: calc((100% - 1.25rem) / 2);
}

/* #endregion */