﻿body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    font-size: 14px;
}
/* Basic CSS to always show spinners
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1 !important;
    -webkit-appearance: inner-spin-button !important;
    margin: 0 !important;
}
*/

#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: 3.5rem;
        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;
    }

.my-reconnect-modal > div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    background-color: #fff;
    opacity: 0.8;
    text-align: center;
    font-weight: bold;
}

.components-reconnect-hide > div {
    display: none;
}

.components-reconnect-show > div {
    display: none;
}

.components-reconnect-show > .show {
    display: block;
}

.components-reconnect-failed > div {
    display: none;
}

.components-reconnect-failed > .failed {
    display: block;
}

.components-reconnect-rejected > div {
    display: none;
}

.components-reconnect-rejected > .rejected {
    display: block;
}

* {
    box-sizing: border-box;
}

.hover-pointer:hover{
    cursor: pointer;
}

button[disabled] {
    cursor: not-allowed;
    background: #ccc;
    color: #666;
}

    button[disabled]:hover {
        background: #ccc;
        color: #666;
    }

.tooltip {
    display: inline-block;
    position: relative;
    cursor: help;
}

    .tooltip:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 0;
        top: 25px;
        background: #333;
        color: #fff;
        padding: 5px;
        white-space: normal;
        z-index: 1;
        max-width: 250px;
    }

.admin-marker {
    background-color: #fff0f0 !important;
}

.debug {
    border: 1px solid gray;
    padding: 5px;
    opacity: 0.6
}

.fullscreen-button-container {
    position: absolute;
    top: 12px;
    right: 12px;
}

.fullscreen-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ffffff;
    color: #333333;
    border: 2px solid #4DB6EB;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

    .fullscreen-button:hover {
        background-color: #e8e8e8;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    }


.clear {
    content: "";
    clear: both;
    display: table;
}

.page-break-margin {
    margin-top: 40px;
}

.center {
    text-align: center !important;
}

.left {
    text-align: left !important;
}

.right {
    text-align: right !important;
}

.nowrap {
    white-space: nowrap !important;
}

.bold {
    font-weight: bold !important;
}

@media (max-width: 767px) {
    body {
        font-size: 13px;
    }
}
/* An editor is inserted under text fields from browser addons and moves the layout, this CSS code prevents that. */
@media {
    .ms-editor-squiggles-container {
        display: none !important;
    }
}

.ms-editor-squiggles-container {
    all: initial;
}

.header_image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 30px;
    right: 30px;
    transform: translateY(-50%);
}

.help-text {
    font-size: 11px;
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

.not-found-page {
    text-align: center;
    padding: 50px;
    font-family: 'Arial', sans-serif;
}

    .not-found-page h1 {
        font-size: 4em;
        color: #0097E2;
        margin-bottom: 20px;
    }

    .not-found-page p {
        font-size: 1.2em;
    }

    .not-found-page a {
        display: inline-block;
        margin-top: 20px;
        padding: 12px 25px;
        color: white;
        background-color: #0097E2;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.3s, transform 0.3s;
    }

        .not-found-page a:hover {
            background-color: #007CB9;
            transform: translateY(-3px);
        }

    .not-found-page img {
        margin-bottom: -30px;
        max-width: 40%;
        height: auto;
        margin-top: 60px;
    }

@media only screen and (max-width: 600px) {
    .not-found-page img {
        max-width: 60%;
        margin-bottom: -10px;
    }

    .not-found-page p {
        font-size: 1.0em;
    }

    .not-found-page h1 {
        font-size: 3em;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: hidden;
}

.header, .footer {
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header {
    margin-bottom: 0px;
}

.footer {
    margin-bottom: 0px;
    text-align: center;
    padding: 7px 0 7px 0;
}

.footer-imprint {
    padding: 0 35px 0 35px;
}

.container {
    width: 100%;
    margin: 0px 0 auto 0;
    padding: 0 10px 0 10px;
    overflow: hidden;
}

.content {
    flex-grow: 1;
    width: 100%;
    margin: 0;
}


.visible {
    display: block !important;
}

.hidden {
    display: none !important;
}

.loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.centered-grid {
    display: grid;
    place-items: center;
    height: 50vh; /* 100% of the viewport height */
}

/* Checkmark and fading */
.fade-in-out {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .fade-in-out.show {
        opacity: 1;
    }

.checkmark-icon-container {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark-icon {
    font-size: 16px;
    color: white;
    transition: text-shadow 0.5s ease-in-out, color 0.5s ease-in-out;
}

@media (max-width: 400px) {
    .checkmark-icon-container {
        top: 15px;
        right: 15px;
    }
}

/* LINKS */
a {
    color: #007bff;
    text-decoration: none;
    position: relative;
}

    a::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: -3px;
        left: 0;
        background-color: #007bff;
        visibility: hidden;
        transform: scaleX(0);
        transition: all 0.2s ease-in-out;
    }

    a:hover::before {
        visibility: visible;
        transform: scaleX(1);
    }

    a.btn-link {
        padding: 10px 20px !important;
        background-color: #4DB6EB;
        color: white !important;
        border-radius: 4px !important;
        text-decoration: none !important;
        transition: background-color 0.3s ease !important;
    }

        a.btn-link:hover {
            background-color: #0056b3;
        }

@media (max-width: 767px) {

    /* Die Linie ist in der falschen Stelle im Button Link, deshalb ausblenden */
    a.btn-link:hover::before {
        visibility: hidden;
        transform: scaleX(1);
    }

    .success-message-container .success-message,
    .error-message-container .error-message {
        font-size: 16px;
    }

        .success-message-container .success-message > li {
        }
}

@media (min-width: 768px) {

    .main {
        min-width: 590px;
    }
}
