
html, body {
    font-family: sans-serif, Arial, 'Helvetica Neue', Helvetica;
    background-color: #222222;
    color: #ffffff;
}

.crisp-image {
    image-rendering: optimizeSpeed;             /* STOP SMOOTHING, GIVE ME SPEED  */
    image-rendering: -moz-crisp-edges;          /* Firefox                        */
    image-rendering: -o-crisp-edges;            /* Opera                          */
    image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
    image-rendering: pixelated;                 /* Universal support since 2021   */
    image-rendering: optimize-contrast;         /* CSS3 Proposed                  */
    -ms-interpolation-mode: nearest-neighbor;   /* IE8+                           */
}

.form-setup-2fa {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    margin-top: auto;
    margin-bottom: auto;
    /*margin: auto;*/
}

.form-setup-2fa .form-floating:focus-within {
    z-index: 2;
}

.full-page-textarea {
    width: 100%;
    height: 100%;
    max-height: 100%;
    flex: 1;
}

.list-group {
    overflow: auto; /* to provide a scrollbar when necessary. */
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0; /* to make it grow and shrink as needed and not have an initial size. */
}

.editor-section-vault {
    resize: none;    /* disable resizing */
    overflow: auto;   /* add scrollbar when necessary */
    width: 80%;
    height: 88%;
    max-height: 88%;
}

.editor-section-vault-height {
    height: 88%;
    max-height: 88%;
}

.notes-height-setting {
    height: 93%;
    max-height: 93%;
}

.editor-section-button {
    width: 100%; /* viewport width */
    height: 5%; /* viewport height */
    max-height: 5%;
}

.notes-box {
    display: flex;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    flex-direction: row; /* to make sure elements are laid out horizontally. */
    align-items: stretch; /* to make items match the height of the container. */
}

.half-page {
    /*width: 45%;*/
    /*flex: 1;*/
    /*flex-basis: 50%;*/
    max-width: 30%;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

#components-reconnect-modal {
    display: none;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: block;
}

.button-box {
    width: 85%;
    display: flex;
    margin: auto;
    justify-content: space-between;
}
.button-box-element {
    flex: 0 0 18%;
    /* any width as long a % times number of items does not exceed 100% */
    height: 50px;
    text-align: center;
    background: #000;
    color: white;
    line-height: 50px;
}

.confetti {
    left: 0;
    pointer-events: none ;
    position: fixed;
    top: 0;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    height: 100%;
    width: 100%;
}

.confetti-item {
   position: absolute;
   transform: translate3d(0, 0, 0);
   will-change: transform;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%)
    }
    95%{
        animation-timing-function: ease-in-out;
        transform: translateY(calc(100vh - 55%))
    }
    100% {
        transform: translateY(calc(150vh - 65%))
}}

#canvas{
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
}

.confetti{
    /*max-width: 640px;*/
    /*display: block;*/
    /*margin: 0 auto;*/
    /*border: 1px solid #ddd;*/
    user-select: none;
}
