html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    display: flex;
    justify-content: center; /* Zentriert horizontal */
    align-items: center; /* Zentriert vertikal */
    height: 100vh; /* Optional: Container-Höhe */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

input::placeholder, textarea::placeholder {
    color: var(--input_placeholder);
    opacity: 1; /* optional - weil Browser oft mit niedriger Opazität starten */
}

input, textarea {
    color: var(--input_text)
}


.truncate {
    white-space: nowrap; /* Kein Zeilenumbruch */
    overflow: hidden; /* Versteckt alles, was rausgeht */
    text-overflow: ellipsis; /* Zeigt ... am Ende */
    width: 95%; /* Breite begrenzen */
}

.nav_button {
    background: var(--button);
    color: var(--button_text);
    border-color: var(--button-stroke);
    border-radius: 25px;
    padding: 7.5px 15px 7.5px 15px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

    .nav_button:disabled {
        color: rgba(40, 40, 40, 1)
    }

    .nav_button svg {
        color: var(--icon_color_selected);
        height: 20px;
        width: 20px;
    }

@media (pointer: fine) {
    .nav_button:hover {
        background-color: var(--button_hover);
        color: var(--button_text_hover);
    }
}

.nav_button_right {
    border-radius: 0px 100px 100px 0px;
    width: 48%;
}

.nav_button_left {
    border-radius: 100px 0px 0px 100px;
    width: 48%;
}

/* Gilt für WebKit-Browser (Chrome, Safari, Edge) */
.element-mit-scrollbar {
    overflow: auto;
    scrollbar-width: thin; /* 'auto' | 'thin' | 'none' */
    scrollbar-color: #808080 transparent; /* Daumen & Spur */
}

    /* Optional für WebKit (Chrome, Safari, Edge) */
    .element-mit-scrollbar::-webkit-scrollbar {
        width: 8px;
        height: 8px;
        display: none; /* Für Chrome, Safari und Opera */
    }

    .element-mit-scrollbar::-webkit-scrollbar-thumb {
        background-color: darkgrey;
        border-radius: 4px;
    }

    .element-mit-scrollbar::-webkit-scrollbar-track {
        background-color: #808080;
    }

.input-field {
    color: var(--input_text);
    background-color: var(--input_bg);
    text-align: left;
    align-self: stretch;
    width: 100%;
    border: none;
    outline: none
}

    .input-field::placeholder {
        color: var(--icon_color);
        font-style: italic;
    }

.input-field-required {
    color: var(--input_text);
    background-color: var(--input_bg);
    text-align: left;
    align-self: stretch;
    width: 100%;
    border: none;
    outline: none
}

    .input-field-required::placeholder {
        color: var(--icon_color_selected);
        font-style: italic;
    }

.input-panel {
    background-color: var(--input_bg);
    border-radius: 10px;
    border-style: solid;
    border-color: var(--input_stroke);
    border-width: thin;
    padding: 10px 15px 10px 15px;
    display: flex;
    flex-direction: column;
    align-self:stretch;
    gap: 3px;
}

.input-frame {
    color: var(--input_title);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
}


.panel {
    color: var(--panel-text);
    background: var(--panel-background);
    border: 2px solid var(--panel-stroke);
    border-radius: 25px;
    padding: 15px 25px 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.panel-horizontal {
    color: var(--panel-text);
    background: var(--panel-background);
    border: 2px solid var(--panel-stroke);
    border-radius: 25px;
    padding: 15px 25px 15px 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.text-panel {
    color: var(--panel-text);
    background: var(--panel-background);
    border: 2px solid var(--panel-stroke);
    border-radius: 25px;
    padding: 15px 25px 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-height: 150px;
}

.page-login {
    color: var(--text);
    background: rgba(0,0,0,0.3);
    background-blend-mode: overlay;
    border: none;
    height: 100%;
    width: 100%;
    width: 100vw;
    position: relative;
    background-image: url("..\\res\\Images\\IntroHD.webp");
    background-position: center;
    background-size: cover; 
}

.page-user {
    color: var(--text);
    background: black;
    height: 100%;
    width: 100%;
    max-height: 1000px;
    max-width: 100vw;
    position: relative;
    background-image: url("..\\res\\Images\\Background.webp");
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
}

.page-main {
    color: var(--text);
    background: black;
    height: 100%;
    width: 100%;
    max-width: 100vw;
    max-height: 1000px;
    position: relative;
    background-image: url("..\\res\\Images\\Background.webp");
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-profile {
    color: var(--text);
    background: black;
    height: 100%;
    width: 100%;
    max-height: 1000px;
    max-width: 100vw;
    position: relative;
    background-image: url("..\\res\\Images\\Background_31.webp");
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.page-error {
    color: var(--text);
    background: black;
    /*    height: 100%;
*/ width: 100%;
    max-height: 200vh;
    min-height: 100vh;
    max-width: 100vw;
    position: relative;
    background-image: url("..\\res\\Images\\Background.webp");
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.page-admin {
    color: var(--text);
    background: var(--background);
    border: solid, 2px, black;
    height: 100%;
    width: 100%;
    max-height: 200vh;
    max-width: 100vw;
    position: relative;
    background-image: url("..\\res\\Images\\Background_31.webp");
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 10px;
}

.page-support {
    color: var(--text);
    background: var(--background);
    border: solid, 2px, black;
    height: 100%;
    width: 100%;
    max-height: 200vh;
    max-width: 100vw;
    position: relative;
    background-image: url("..\\res\\Images\\Background.webp");
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 10px;
}

@media (max-width: 450px) {
    .NotFoundImage {
        width: 250px;
        height: 250px;
        margin: 20px 0px 20px 0px
    }

    .rex21Logo {
        width: 300px;
        height: 300px;
        margin: 10px 30px 5px 30px;
        align-self: center;
    }

    .rex21Logo-Medium {
        width: 200px;
        height: 200px;
        margin: 10px 30px 5px 30px;
        align-self: center;
    }

    .rex21Logo-Small {
        width: 100px;
        height: 100px;
        margin: 10px 30px 5px 30px;
        align-self: center;
    }
}

@media (min-width: 451px) {
    .NotFoundImage {
        width: 350px;
        height: 350px;
        margin: 20px 0px 20px 0px
    }

    .rex21Logo {
        width: 400px;
        height: 400px;
        margin: 10px 30px 5px 30px;
        align-self: center;
    }

    .rex21Logo-Medium {
        width: 300px;
        height: 300px;
        margin: 10px 30px 5px 30px;
        align-self: center;
    }

    .rex21Logo-Small {
        width: 200px;
        height: 200px;
        margin: 10px 30px 5px 30px;
        align-self: center;
    }
}

.img-small {
    cursor: pointer;
    background-color: var(--panel-background);
    border-radius: 25px;
    border: thin solid var(--panel_stroke);
    width: 159px;
    height: 159px;
    object-fit: cover;
}

.img-large {
    cursor: pointer;
    background-color: var(--panel-background);
    border-radius: 25px;
    color: var(--panel-text);
    border: thin solid var(--panel-stroke);
    width: 343px;
    height: 343px;
    object-fit: cover;
}

.img-largest {
    cursor: pointer;
    background-color: var(--panel-background);
    border-radius: 25px;
    border-style: solid;
    color: var(--panel-text);
    border-color: var(--panel-stroke);
    border-width: thin;
    width: 343px;
    height: 514px;
    object-fit: cover;
}

.bottom-bar {
    background: var(--bar_bg);
    border-radius: 25px 25px 0px 0px;
    border-style: solid;
    border-color: var(--bar-stroke);
    border-width: 1px 1px 0px 1px;
    margin: 0px 4px 0px 4px;
    min-height: 70px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.bottom-bar-2nd {
    background: var(--bar_bg);
    border-radius: 25px 25px 0px 0px;
    border-style: solid;
    border-color: var(--panel-stroke);
    border-width: 1px 1px 0px 1px;
    margin: 0px 25px 0px 25px;
    min-height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

    .bottom-bar-2nd .bar_button {
        width: 40px;
        height: 40px;
    }

        .bottom-bar-2nd .bar_button img {
            width: 25px;
            height: 25px;
        }

        .bottom-bar-2nd .bar_button svg {
            width: 25px;
            height: 25px;
        }


.bar_button {
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: none;
}

    .bar_button img {
        width: 30px;
        height: 30px;
    }

    .bar_button svg {
        width: 30px;
        height: 30px;
    }

.bar_button_large {
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border: none;
}

    .bar_button_large img {
        width: 45px;
        height: 45px;
    }

    .bar_button_large svg {
        width: 45px;
        height: 45px;
    }

@media (pointer: fine) {
    .bar_button:hover {
        border: 2px solid var(--selected-bar-button);
    }
}

html, bodym #app {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.tippy-box {
    font-size: 12px;
    padding: 6px;
    border-radius: 10px;
    background: #333;
    color: white;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.image-round-80x80 {
    width: 80px;
    height: 80px;
    border: 1px solid var(--panel-stroke);
    border-radius: 50%;
    object-fit: cover;
}

.image-round-50x50 {
    width: 50px;
    height: 50px;
    border: 1px solid var(--panel-stroke);
    border-radius: 50%;
    object-fit: cover;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Passt das Video an den Bildschirm an */
    z-index: -1; /* Hält das Video im Hintergrund */
}

.dialog {
    padding: 20px;
    border: 1px solid var(--dialog-stroke);
    background-color: var(--dialog-background);
    color: var(--dialog-text);
    border-radius: 10px;
    /*box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);*/
    text-align: center;
}

    .dialog button {
        margin: 5px;
        padding: 10px 10px;
        color: var(--button_text);
        background-color: var(--button);
        border: 1px solid var(--dialog-stroke);
        border-radius: 5px;
        min-width: 80px;
    }

.ui-dialog {
    padding: 20px;
    border: 1px solid var(--dialog-stroke);
    background-color: var(--dialog-background);
    color: var(--dialog-text);
    border-radius: 10px;
    /*box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);*/
    text-align: center;
}

    .ui-dialog::backdrop {
        background: rgba(0, 0, 0, 0.5);
    }

.ui-dialog-titlebar-close {
    background-image: url('../../res/icons/cancel.png') !important;
    background-size: cover;
    background-color: transparent;
    display: none;
    border: none;
    outline: none;
}

.ui-dialog .ui-dialog-buttonpane {
    text-align: center;
}

    .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
        float: none;
    }

        .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset > button {
            margin: 5px;
            padding: 10px 10px;
            color: var(--button_text);
            background-color: var(--button);
            border: 1px solid var(--dialog-stroke);
            border-radius: 5px;
            min-width: 80px;
        }

@media (pointer: fine) {
    .dlg-button:hover {
        background-color: var(--button_hover);
        color: var(--button_text_hover);
    }
}

.choose-button {
    background: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: none;
    outline: none;
    transition: transform 0.2s;
}

@media (pointer: fine) {
    .choose-button:hover {
        transform: scale(1.2);
    }
}

.choose-button > img {
    object-fit: cover;
    width: 60px;
    height: 60px;
    opacity: 0.9;
}

.choose-button-small {
    background: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    border: none;
    outline: none;
    transition: transform 0.2s;
}

@media (pointer: fine) {
    .choose-button-small:hover {
        transform: scale(1.2);
    }
}

.choose-button-small > img {
    object-fit: cover;
    width: 50px;
    height: 50px;
}

.choose-button-smallest {
    background: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    transition: transform 0.2s;
}

@media (pointer: fine) {
    .choose-button-smallest:hover {
        transform: scale(1.2);
    }
}

.choose-button-smallest > img {
    object-fit: cover;
    width: 35px;
    height: 35px;
}

.choose-button-smallest > svg {
    width: 35px;
    height: 35px;
}

.fail_text {
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.empty-list-card {
    background: var(--panel-background);
    border: 2px solid var(--panel-stroke);
    color: var(--panel-text);
    border-radius: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0px 15px;
    padding: 15px;
}

.user-gift-card {
    background: var(--panel-background);
    border: 2px solid var(--panel-stroke);
    color: var(--panel-text);
    border-radius: 25px;
    padding: 7.5px;
    margin: 0px 5px 0px 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2.5px;
}

.gifts-list {
    margin: 5px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    height: 100%;
}

.gift {
    background: var(--panel-background);
    border: 2px solid var(--panel-stroke);
    color: var(--panel-text);
    border-radius: 25px;
    padding: 7.5px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    width: 31%;
}

.gift-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 5px 0px 0px 0px;
}

.small_button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(40, 40, 40, 1);
    background-size: cover;
    border-radius: 50%;
    margin: 3px;
    width: 60px;
    height: 60px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .small_button > img {
        width: 45px;
        height: 45px;
    }

    .small_button > svg {
        width: 32px;
        height: 32px;
    }

@media (pointer: fine) {
    .small_button:hover {
        background-color: rgba(70, 70, 60, 1);
        transform: scale(1.2);
    }
}


/* Klasse für den Wartecursor */
.wartecursor {
    cursor: wait;
    pointer-events: none; /* Verhindert Interaktionen während des Ladevorgangs */
}

.load_spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin1 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* Warteanimation */
.spinner {
    width: 100px;
    height: 100px;
    border: 8px solid #cccccc;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin1 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate2 {
    animation: bounce2 0.4s ease;
    animation-fill-mode: none;
}

@@keyframes bounce2 {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.chat-Image {
    width: 25px;
    height: 25px;
    display: inline-block;
    border-radius: 25%;
    object-fit: cover;
}

.chat-Button {
    background: transparent;
    border: none;
    outline: none;
    padding: 0px;
    margin-left: 1px;
}

.chat-Text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin: 0px 3px 0px 3px;
}

.title-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: rgba(40, 40, 40, 0.8);
    border-radius: 15px 15px 15px 15px;
    border: medium solid var(--stroke);
    margin: 5px 5px 6px 5px;
}

.page-title {
    background: rgba(48,48,48, 0.9);
    margin: 5px 0px 0px 0px;
    padding: 7.5px 7.5px;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: medium solid var(--bar-stroke);
    border-bottom: medium solid var(--bar-stroke);
}

.statistics-panel {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
}
