:root {
    touch-action: pan-x pan-y;
    height: 100%
}

html,
body {

    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: var(--color-background);
    color: var(--color-highligth);
    margin: 0;
    overflow: hidden;
    font-size: var(--font-size-default);

    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: var(--color-highligth);
}

.overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--color-blocker);
    display: none;
    transition: display 0.3s ease;
}

.overlay.visible {
    display: block;
}

.z-index-max {
    z-index: 9999;
}

.button-action {
    width: 12em;
    background-color: var(--color-action);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.3em;
    color: var(--color-highligth);
}

.button-action.disabled {
    background-color: var(--color-text-disabled);
    cursor: not-allowed;
}

.hidden {
    opacity: 0;
    z-index: -1 !important;
}


.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

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

.invalid {
    outline: 1px solid var(--color-error);
}

.validation-message {
    color: var(--color-error);
}

#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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93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Y5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.text-large {
    font-size: var(--font-size-large);
}

.text-medium {
    font-size: var(--font-size-medium);
}

.text-small {
    font-size: var(--font-size-small);
}

.text-semi-bold {
    font-weight: 600;
}

.color-text-main {
    color: var(--color-highligth);
}

.color-text-disabled {
    color: var(--color-text-disabled);
}

.color-background {
    background-color: var(--color-background);
}

.color-disabled {
    background-color: var(--color-disabled);
}

.color-text-disabled-lite {
    color: var(--color-disabled);
}

.color-text-action {
    color: var(--color-action);
}

.color-action {
    background-color: var(--color-action);
}

.color-blocker {
    background-color: var(--color-blocker);
}

.pointer {
    cursor: pointer;
}

.centered {
    margin: auto;
}

.gradient-text {
    font-weight: bold;
    background: linear-gradient(90deg, #00ffcc, #3366ff, #ff66cc, #00ffcc);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s infinite linear;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Navigation links styling */
.nav-element-container {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.2s;
    font-weight: bold;
    color: var(--color-highligth);
    fill: var(--color-highligth);
    stroke: var(--color-highligth);
}

.nav-element {
    cursor: pointer;
}

.nav-element:hover {
    color: var(--color-action);
    fill: var(--color-action);
    stroke: var(--color-action);
}

.main-content {
    transition: margin-left 0.3s ease;
    min-height: calc(88vh - 200px);
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100dvh;
    overflow-y: hidden;
}

.chat-input-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 800px;
    z-index: 100;
    margin-bottom: 1em;
}

.chat-box-container {
    display: flex;
    background-color: var(--color-container);
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.4);
}

.chat-box-container.disabled {
    background-color: var(--color-container);
}

.chat-input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius-input);
    background-color: var(--color-container);
    color: var(--color-highligth);
}

.chat-input:disabled {
    background-color: var(--color-container);
    cursor: not-allowed;
}

.chat-input:focus {
    outline: none;
    border-color: #818cf8;
}

.chat-suggestion {
    border-radius: var(--border-radius);
    background-color: transparent;
    color: var(--color-highligth);
    border-color: var(--color-highligth);
    border-style: solid;
}

.send-btn {
    background-color: var(--color-highligth);
    color: var(--color-container);
    border: none;
    cursor: pointer;
    border-radius: 36px;
    width: 2.5em;
    height: 2.5em;
    /* Magic Fix for Iphones */
    padding: 0em 0.1em;
}

.send-btn-icon {
    fill: var(--color-container);
    width: 22px;
    height: 22px;
}

.send-btn-icon:hover {
    fill: var(--color-placeholder);
}


.chat-message-container {
    width: 100%;
    max-width: 40vw;
    flex-grow: 1;
    overflow-y: auto;
}

.user-message,
.assistant-message {
    display: flex;
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    justify-content: flex-start;
    align-self: flex-start;
    max-width: fit-content;
    text-align: center;
}

.user-message {
    background-color: var(--color-container);
    justify-content: flex-end;
    align-self: flex-end;
    max-width: fit-content;
    border-radius: var(--border-radius);
    align-items: flex-end;
    text-align: center;
}

.user-message-container {
    justify-content: flex-end;
    align-self: flex-end;
    padding: 10px 15px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    align-items: flex-end;
    width: 100%;
    display: flex;
}

.assistant-message {
    display: flex;
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 10px 0;
    justify-content: flex-start;
    align-self: flex-start;
    max-width: 90%;
}

.assistant-message .text {
    text-align: left;
}

.input-field {
    padding: 0.6rem;
    border: 1px solid;
    border-radius: var(--border-radius-input);
    background: var(--color-input-field);
    color: var(--color-input-text);
    margin-bottom: 0.7em;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.input-field-icon {
    position: absolute;
    right: 5%;
    top: 22%;
    cursor: pointer
}

.input-checkbox {
    padding: 0.6rem;
    border: 2px solid;
    color: var(--color-input-text);
    border-color: var(--color-input-field);
    border-radius: var(--border-radius-checkbox);
    width: 2em;
    height: 2em;
    cursor: pointer;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1em;
}

.input-checkbox-item {
    position: absolute;
    font-size: 20px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.checkbox-container {
    display: flex;
    flex-direction: row;
    font-size: var(--font-size-small);
    justify-content: center;
    align-items: center;
    text-align: start;
}

.avatar {
    background: #212121;
    border-radius: 9999px;
    width: 1.9rem;
    height: 1.9rem;
    outline: solid 1px rgba(255, 255, 255, 0.2);
    margin-right: 2%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nova-container {
    background-color: var(--color-popup);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.module-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.module-container.fullscreen-with-top-navigation {
    height: 91dvh;
    margin-top: 9dvh;
}

.button-secondary {
    background-color: var(--color-container);
    cursor: pointer;
    color: var(--color-highligth);
    border-radius: var(--border-radius);
    border: none;
}

.button-secondary:hover {
    background-color: var(--color-highligth);
    color: var(--color-container)
}

.not-selectable {
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}


.selectable-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1em;
    background-color: var(--color-popup);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: min(max(var(--font-size-small)), 2.5vw);

}

.selectable-item:hover {
    color: var(--color-popup);
    background-color: var(--color-highligth);
    fill: var(--color-popup);
}

.selectable-item svg path {
    fill: var(--color-highligth);
}

.selectable-item:hover svg path {
    fill: var(--color-popup);
}

.nova-item-grid {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    justify-content: center;
    grid-template-columns: 8em 8em 8em 8em;
    grid-template-rows: 8em 8em 8em 8em auto;
    grid-auto-flow: row;
    overflow-y: auto;
    column-gap: 2%;
    row-gap: 2%;
    overflow-x: hidden;
}

.tap-button>svg>path {
    stroke-width: 3px;
}

.tap-button:hover>svg>path {
    stroke: var(--color-container);
}

.clickable-icon:hover {
    stroke: var(--color-action);
    fill: var(--color-action);
}

@media (max-width: 1024px) {
    .chat-message-container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .nova-item-grid {
        grid-template-columns: 8em 8em;
    }
}