@import url(element.css);
@import url(popover.css);
@import url(message.css);
@import url(header.css);
@import url(footer.css);

@font-face {
    font-family: "text";
    src: url(text.ttf);
    font-display: swap;
}

@font-face {
    font-family: "title";
    src: url(title.woff);
    font-display: swap;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    direction: rtl;
    position: relative;
    transition: all .25s linear;
    text-decoration: none;
    font-family: "text", "sans-serif";
    font-size: 1em;
    border: none;
    outline: none;
    margin: auto;
    padding: 0;
    color: var(--black-color);
    z-index: 4;

    &::before, &::after {
        box-sizing: border-box;
        transition: all .5s ease;
        z-index: 3;
    }
}

:root {
    /*--background-color: rgb(237, 237, 233);*/
    --background-color: rgb(229, 229, 229);
    --white-color: rgb(255, 255, 255);
    --black-color: rgb(33, 37, 41);
    --one-color: rgb(0, 166, 147);
    --two-color: rgb(26, 101, 129);
    --three-color: rgb(227, 178, 45);
    --box-shadow: 0 .2em 1em rgb(33, 37, 41, .25);
    --parameter-color: rgb(33, 37, 41, .5);
    --table-color: var(--two-color);
    --p-after-color: var(--parameter-color);
    --header--max--height: 0;
    --before--content--value: "\2605";
}

:is(html, body, .body) {
    width: clamp(100dvw, 100dvw, 100dvw);
    height: fit-content;
    min-height: 100dvh;
    font-size: 14px;
    display: grid;
    grid-template-columns: 1fr;
    place-content: space-between;
    background: var(--background-color);
    scrollbar-width: thin;
    scrollbar-color: var(--one-color) transparent;
    overflow: hidden auto;
    transition: .5s linear;
    animation: body .5s linear;
    z-index: 1;

    @media only screen and (max-width: 800px) {
        font-size: 12px;
    }
}

@keyframes body {
    from {
        opacity: 0;
    }
}

[data--page--loading] {
    width: 100dvw;
    min-width: 100dvw;
    max-width: 100dvw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    position: fixed;
    inset: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1ch;
    background: var(--white-color);
    color: var(--parameter-color);
    font-size: 1.25rem;
    z-index: 1000;

    &::before {
        width: 5rem;
        min-width: 5rem;
        max-width: 5rem;
        aspect-ratio: 1/1;
        border-radius: 50%;
        border-style: solid;
        border-width: 1mm;
        border-color: var(--black-color) var(--black-color) var(--black-color) var(--parameter-color);
        margin: 0 auto;
        content: "";
        transition: 1s linear;
        animation: data--page--loading--before 1s infinite linear;
    }
}

@keyframes data--page--loading--before {
    to {
        rotate: 360deg;
    }
}
/* iPhone/iOS specific fixes */
@media only screen and (max-width: 768px) {
    * {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    img, figure, svg {
        max-width: 100%;
        height: auto;
    }
    
    p, h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}
