@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

html {
    height: -webkit-fill-available;
}
body {
    background-color: #171717;
    background-blend-mode: multiply;
    color: #ffffff;
}

* {
    font-family: "Rubik", serif;
}

.image-rendering-pixelated {
    image-rendering: pixelated;
}

/* Loader styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #232629;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader img {
    width: 150px;
    animation: pulse 1.5s infinite;
}

.spinner {
    margin-top: 20px;
    width: 40px;
    height: 40px;
    border: 4px solid transparent;
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#notification-container {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 10000;
    pointer-events: none;
}

#notification-container > div {
    pointer-events: all;
    margin-bottom: 12px;
}

.notification {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 5px auto;
    background-color: #ff6b6b; /* Standard für Fehler */
    color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeInOut 4s ease-in-out forwards;
}

.notification.success {
    background-color: #51cf66; /* Grün für Erfolg */
}

#footer {
    padding-right: 10px;
    padding-left: 10px;
}

.selected,
.index-avatar-box.selected { 
    border: 2px solid #4a9eff !important;
    background: rgba(74, 158, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2) !important;
}

.hidden { 
    display: none; 
}

.fade { 
    animation: fadeIn 0.5s; 
}

.Avatar {
    cursor: pointer;
}

.button-container {
    display: flex;
    gap: 10px; /* Abstand zwischen den Buttons */
}

#prev-button{
    background-color: #42464b !important;
    border: 2px solid #5b5b5b;
}

.button-container button {
    flex: 1;
    height: 2rem;
    background-color: #4a9eff;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-container .reg-btn {
    flex: 1;
    height: 2rem;
    text-align: center;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    line-height: 30px;
    border: 2px solid rgba(74, 158, 255, 0.3);
    background: #4a9eff;
    box-shadow: 0px 0px 12px 2px rgba(74, 158, 255, 0.2);
    transition: all 0.3s ease;
}

.button-container .reg-btn:hover {
    background-color: #5ba8ff;
    border-color: rgba(74, 158, 255, 0.5);
}

.button-container .reg-btn.hidden {
    display: none; /* Versteckte Buttons nicht anzeigen */
}

.button-container .reg-btn:only-of-type {
    flex: 0 0 100%; /* Wenn nur ein Button vorhanden ist, nimmt er 100% der Breite ein */
}

.button-container button.hidden {
    display: none; /* Versteckte Buttons nicht anzeigen */
}

/*
.button-container button:only-of-type {
    flex: 0 0 100%; 
}*/

.button-container button:hover {
    background-color: #5ba8ff;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}


@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Index Button Styles - Blue Theme */
.index-btn-primary {
    background-color: #4a9eff;
    color: white;
    border: none;
    border-radius: 8px;
    height: 32px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.index-btn-primary:hover {
    background-color: #5ba8ff;
}

.index-btn-primary.px-4,
.index-btn-secondary.px-4 {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    height: auto;
}

.index-btn-secondary {
    background-color: #42464b;
    color: white;
    border: none;
    border-radius: 8px;
    height: 32px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.index-btn-secondary:hover {
    background-color: #3d4145;
}

.index-progress-fill {
    background-color: #4a9eff;
    height: 4px;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.index-online-count {
    color: #4a9eff;
    font-weight: 700;
}

/* Form Container Styles */
.index-form-container {
    background: #222222;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.index-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.index-form-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px 0;
}

/* Input Field Styles */
.index-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(35, 38, 41, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.index-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.index-input:hover {
    background: rgba(61, 65, 69, 0.8);
    border-color: rgba(74, 158, 255, 0.2);
}

.index-input:focus {
    background: rgba(35, 38, 41, 1);
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

/* Input Label Styles */
.index-label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.index-label-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.index-label-text {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* Error Message Styles */
.index-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Progress Bar */
.index-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

/* Avatar Selection */
.index-avatar-box {
    background: rgba(35, 38, 41, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.index-avatar-box:hover {
    background: rgba(61, 65, 69, 0.8);
    border-color: rgba(74, 158, 255, 0.3);
    transform: translateY(-2px);
}

.index-avatar-box.selected {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

/* Modal Styles */
.index-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.index-modal-content {
    background: rgba(49, 53, 57, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    max-width: 448px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.index-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.index-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.index-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.index-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Footer Styles */
.index-footer {
    margin-top: 24px;
    padding: 0 10px;
}

.index-footer-link {
    color: rgba(131, 131, 131, 0.8);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 12px;
}

.index-footer-link:hover {
    color: #4a9eff;
}

.index-footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    margin-top: 4px;
    text-align: right;
}

/* Online Counter Box */
.index-online-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 4px 8px;
    text-align: center;
    font-size: 12px;
    color: #000;
    margin-top: 8px;
}

/* Form Divider */
.index-form-divider {
    border-bottom: 1px solid rgba(35, 38, 41, 0.8);
    margin: 16px 0;
    padding-bottom: 16px;
}

@media (max-width: 425px) {
    .content-center {
        padding: 10px;
    }
    .h-36 {
        height: auto;
    }
    .rounded-lg {
        border-radius: 8px;
    }
    .p-6 {
        padding: 16px;
    }
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    .gap-2 {
        gap: 8px;
    }
    .h-20 {
        height: 16;
    }
    .h-8 {
        height: 32px;
    }
}