:root {
    --theme-color: #00b199;
    --theme-color-light: #cef9f5;
    --nav-height: 4rem;
    --content-padding: 4rem;
}

@media screen and (orientation: landscape) {
    :root {
        --content-padding: 4rem;
    }
}

@media screen and (orientation: portrait) {
    :root {
        --content-padding: 2rem;
    }
}

* {
    margin: 0;
    padding: 0;
    --scrollbarBG: var(--background-color);
    --thumbBG: var(--theme-color);
    --foreground-text: var(--theme-color);
    --background-color: #f9f9f6;
    --scrollbar-width: thin;
    --scrollbar-color: var(--scrollbarBG) var(--thumbBG);
    font-family: Montserrat, sans-serif;
    line-height: 1.3;
}

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

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: var(--scrollbarBG);
}

.body::-webkit-scrollbar-thumb {
    background-color: var(--thumbBG);
    border-radius: 3px;
    border: 3px solid var(--thumbBG);
}

nav {
    position: absolute;
    display: block;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--theme-color);
}

footer {
    display: block;
    width: 100%;
    height: 4rem;
    background-color: var(--theme-color-light);
}

content {
    position: absolute;
    top: var(--nav-height);
    display: block;
    left: var(--content-padding);
    padding: 1rem;
    width: calc(100% - var(--content-padding) * 2);
}

.logo {
    position: absolute;
    top: 0.5rem;
    z-index: 10;
    left: var(--content-padding);
    padding-left: 10px;
    display: inline-block;
}

.logo-nav {
    display: block;
    height: calc(var(--nav-height) - 1rem);
}

.oh-hai {
    cursor: pointer;
    align-self: flex-end;
    margin-left: auto;
    padding-right: 1rem;
    text-align: right;
}

.oh-access {
    cursor: pointer;
    align-self: flex-start;
    padding-left: 1rem;
}

.link-cotainer {
    position: absolute;
    bottom: 5%;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-content: space-between;
    height: 2rem;
    flex-wrap: wrap;
}

a {
    color: var(--theme-color);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.banner {
    display: block;
    max-height: 50%;
    margin-top: 10%;
    margin-left: auto;
    margin-right: auto;
}

.table-mandatory {
    padding-top: 1rem;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.table-mandatory tr {

}

.table-mandatory th {
    text-align: left;
    vertical-align: top;
    padding-right: 2rem;
    width: 30%;
}

.th-sub {
    padding-left: 1rem;
}

.table-mandatory td {
    padding-right: 2rem;
    width: fit-content;
    white-space: pre-wrap;
}

.pre-wrap {
    padding-right: 2rem;
    width: fit-content;
    white-space: pre-wrap;
}

.no-padding {
    padding-left: 0 !important;
    white-space: normal !important;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

ul {
    margin-left: 2rem;
}

th {
    font-weight: 600;
    text-align: left;
}

tbody:before {
    content: "@";
    display: block;
    line-height: 0.5rem;
    text-indent: -99999px;
}

tbody:after {
    content: "@";
    display: block;
    line-height: 0.5rem;
    text-indent: -99999px;
}

.link-list {
    line-height: 1.6rem;
}

.link-table {
    width: 100%;
    border-collapse: collapse;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

.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);
}

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

.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/img/check-circle.svg);
}

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

#check {
    float: right;
    padding-right: 0.5rem;
}

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

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

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: white;
    border-radius: 1.5rem 1.5rem 0 0;
    z-index: 5;
    min-width: 25rem;
}

cta {
    position: fixed;
    display: block;
    margin: auto;
    background-color: var(--theme-color);
    width: 5rem;
    height: 5rem;
    z-index: 10;
    bottom: 0;
    border-radius: 50%;
    border: 0.25rem solid white;
    left: calc(50% - 2.5rem);
}

cta icon {
    display: block;
    height: 3.45rem;
    width: 3.45rem;
    cursor: pointer;
    text-align: center;
    margin-left: 0.8rem;
    margin-top: 0.8rem;
}

version {
    position: absolute;
    display: block;
    font-size: 0.5rem;
    color: black;
    bottom: 0.5rem;
    right: 0.5rem;
}

/* 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;
    }
}

.message {
    text-align: center;
    width: 100%;
    margin-top: 10%;
}

.ok {
    color: #00b199;
}

.error {
    color: #ff0000;
}

.warning {
    color: #ffcc00;
}

.message-text {
    font-size: 4rem;
    font-weight: bold;
    margin-top: 1rem;
}

.about {
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 1rem;
    margin-bottom: 1rem;
    color: var(--theme-color);
    font-size: small;
}

.oh-login {
    position: absolute;
    bottom: 0;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    color: var(--theme-color);
    font-size: small;
    width: 100%;
}

a {
    color: var(--theme-color);
    text-decoration: none;
    text-underline-offset: 0.2rem;
}

a:hover {
    text-decoration: underline;
}

input[type=text], input[type=date] {
    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);
}

.permit-icon {
    float: right;
    padding-right: 0.5rem;
    position: relative;
    top: -1.5rem;
}

.permit-button {
    float: right;
    padding-left: 0.5rem;
    text-align: center;
}

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

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

#edit-form {
    position: absolute;
    display: block;
    z-index: 1000;
    margin: auto;
    inset: 0;
    width: 60%;
    top: calc(var(--nav-height) + 4rem);
}

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

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

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

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

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

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.copy-link {
    cursor: pointer;
}


