@import "./theme.css";
@import "./font.css";
@import "./iOS-fix.css";

body {
    display: flex;
    flex-direction: column;
    width: 100dvw;
    height: 100dvh;
    margin: 0px;
    background-color: var(--page-background-color, #000000);
    color: var(--page-text-color, #ffffff);
    /*-webkit-touch-callout: none !important;*/
}

emc-page {
    flex: 1;
}

.hidden {
    display: none !important;
}

/* footer design (until there is a custom element) */
.footer {
    display: flex;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: flex-end;
    bottom: 0;
    width: 100%;
    padding: 2px 2px;
    background-color: var(--navigation-back-color, #ffffff);
    color: var(--navigation-text-color, #000000);
    font-size: 0.8em;
    flex-grow: 0;
    flex-shrink: 0;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

@media (min-width: 501px) {

    .footer {
        font-size: 20px;
        font-weight: bold;
    }

}

/* busy animation */
@keyframes loading {
    0% { transform: rotate(-45deg) }
    50% { transform: rotate(45deg) }
    100% { transform: rotate(-45deg) }
}

#busy-animation {
    animation: loading 4s linear infinite;
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url(/images/fairy.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}
