@import url("./fonts.css");

* {
    margin: 0;
    padding: 0;
    font-family: 'Momo Trust Display', sans-serif;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    padding: 20px;
    --body: #fefefe;
    background-color: var(--body);
}
.offset {
    min-width: 20px;
    min-height: 20px;
}
.offset.small {
    min-width: 10px;
    min-height: 10px;
}
.qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    width: fit-content;
    border: 1px solid #121212;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.hidden {
    display: none;
}
.main-container {
    max-width: 600px;
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.alert-clr {
    color: orange;
}
.error-clr {
    color: red;
}
p,h6 {
    color: gray;
}
.history-block {
    border: 1px solid rgba(128, 128, 128, 0.4);
    border-radius: 12px;
    margin: 5px 0;
    padding: 6px;
}


/* app input */
.app-input {
    border: 1px solid #797a81;
    border-radius: 20px;
    padding: 20px;
}
.app-input .app-title {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 400;
}
:is(h1,h2,h3,h4,h5,h6) {
    font-weight: 400;
}
img.logo {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}


/* errors */
.error-block {
    padding: 10px;
    border: 1px solid brown;
    border-radius: 12px;
    background-color: rgba(255, 0, 0, 0.1);
    color: brown;
}



/* loader */
.loader{
    width: 20px;
    height: 20px;
    border: 4px solid rgba(128, 128, 128, 0.5);
    border-top-color: #121212;
    border-radius: 50%;
    animation: loading .4s linear 0s infinite;
}
@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* viewer */
[class$="viewer-app"] {
    display: none;
}

[view-state="2"] .error-viewer-app {
    display: block;
}
[view-state="0"] .loading-viewer-app,
[view-state="1"] .page-viewer-app {
    display: flex;
}

.loading-viewer-app {
    padding: 30px;
    align-items: center;
    justify-content: center;
    gap: 20px;
}


/* input */
:is(input, .input-like) {
    outline: none;
    border: 2px solid #121212;
    border-radius: 8px;
    padding: 6px;
}

:is(input, .input-like):focus {
    outline: 2px solid #4169e1;
    outline-offset: 3px;
}

:is(input, .input-like).full-width {
    width: 100%;
}
:is(input, .input-like).medium-font {
    font-size: 26px;
}
:is(input, .input-like).large-font {
    font-size: 40px;
}
:is(input, .input-like).hoverable:hover {
    border-color: royalblue;
}
:is(input, .input-like).pointer {
    cursor: pointer;
}

.btn {
    cursor: pointer;
    border: none;
    background-color: #80808033;
    width: fit-content;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #8080804d;
    transition: all .07s ease;
}
.btn:hover {
    background-color: #8080801a;
}
.btn:active {
    background-color: #8080804d;
}
.all-history {
    transition: all .2s ease;
    width: 300px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    border-right: 1px solid #8080804d;
    padding: 15px;
    left: -100%;
    opacity: 0;
    background-color: var(--body);
}
.all-history.show {
    left: 0%;
    opacity: 1;
}
.history-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.avrs {
    padding: 5px;
    border: 1px solid #80808033;
    border-radius: 12px;
    background-color: #fff;
    margin: 5px;
    max-width: 1200px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.avrs img {
    width: 100%;
    border-radius: 12px;
}
.close-avrs {
    border-radius: 12px;
    color: #121212;
    width: fit-content;
    padding: 6px 12px;
    display: none;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #80808033;
    background-color: 1px solid #80808033;
}
.close-avrs:hover{
    transform: scale(1.1);
}
.avrs.closeable .close-avrs {
    display: block;
}

.page-viewer-app {
    gap: 5px;
}
.page-viewer-app .content-viewer {
    width: 100%;
}

.page-viewer-app :is(.avrs-left, .avrs-right) {
    max-width: 150px;
}
.text-center {
    text-align: center;
}