:root {
    --theme-color: #00b199;
}

* {
    margin: 0;
    padding: 0;
    --scrollbarBG: var(--scrollbarBG);
    --thumbBG: var(--theme-color);
    --foreground-text: #F0F5F9;
    --background-color: #00b199;
    font-family: Poppins, sans-serif;
    font-size: 100%;
}

html, body {
    min-height: 100% !important;
    height: 100%;
    width: 100%;
    color: var(--foreground-text);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

.grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

@media (orientation: landscape) {
    .grid {
        grid-template-columns: 25% 50% 25%;
        grid-template-rows: 35% 15% 50%;
    }
}

@media (orientation: portrait) {
    .grid {
        grid-template-columns: 5% 90% 5%;
        grid-template-rows: 25% 15% 60%;
    }
}

.banner {
    grid-area: 1 / 2 / 2 / 3;
    margin-top: 1%;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    z-index: -10;
}

.central {
    grid-area: 2 / 2 / 3 / 3;
    text-align: center;
    width: 100%;
}

.result-container {
    grid-area: 3 / 2 / 4 / 3;
    width: 100%;
    opacity: 1;
    transition: opacity 0.8s linear;
    color: black;
    white-space: pre-wrap;
}

.central img, .result-container img {
    position: relative;
    top: -1.5rem;
}

.svg-theme {
    filter: invert(58%) sepia(85%) saturate(953%) hue-rotate(124deg) brightness(79%) contrast(103%) !important;
}

.clickable {
    cursor: pointer;
    transition: transform .2s;
}

.clickable:hover {
    transform: scale(1.2);
}


input[type=text] {
    position: relative;
    display: block;
    text-align: center;
    height: 2rem;
    border: 2px solid var(--theme-color);
    border-radius: 0 0 8px 8px;
    outline-color: var(--theme-color);
    padding-left: 4rem;
    padding-right: 4rem;
    width: calc(100% - 8rem);
}

input[type="file"] {
    display: none;
}

input[type=text]:focus {
    border: 3px solid var(--theme-color);
}

.icon {
    width: 1rem;
    height: 1rem;
    color: var(--theme-color);
}

#link, #contact {
    float: left;
    padding-left: 0.5rem;
}

.contact-icon {
    float: left;
    padding-left: 0.5rem;
}

#shorten, #qr {
    float: right;
    padding-right: 0.5rem;
}

#toast-icon {
    float: left;
    padding-left: 0.5rem;
}


.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

.read-only {
    //
}

.spinner {
    position: fixed;
    display: block;
    left: calc(50% - 2.5rem);
    top: calc(50% - 2.5rem);
    width: 80px;
    height: 80px;
    z-index: 1000;
}

.spinner div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--theme-color) transparent transparent transparent;

}

.spinner div:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner div:nth-child(2) {
    animation-delay: -0.3s;
}

.spinner div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.backdrop {
    display: block;
    backdrop-filter: blur(6px);
    position: fixed;
    _position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
}

#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #fff;
    color: var(--theme-color);
    text-align: center;
    border: 2px solid var(--theme-color);
    border-radius: 0 0 8px 8px;
    outline-color: var(--theme-color);
    padding: 16px;
    position: fixed !important;
    z-index: 10000 !important;
    left: 50% !important;
    transform: translateX(-50%);
    top: unset !important;
    bottom: 30px !important;
}

#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.toast-ok {
    content:url(/assets/images/check-circle.svg);
}

.toast-err {
    content:url(/assets/images/exclamation-triangle.svg);
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}
