@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: #232629;
    background-image: url("/assets/images/index/bg.png");
    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: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#notification-container {
    position: fixed;
    right: 20px;
    top: 15px;
}

.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 { 
    border: 2px solid #eab308; 
}

.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: #f1c40f;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.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 #fccf7d;
    background: #fabb4e;
    box-shadow: 0px 0px 12px 2px rgb(0 0 0 / 7%);
}

.button-container .reg-btn:hover {
    background-color: #e1aa4e; /* Hover-Effekt */
}

.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: #e1b50e; /* Hover-Effekt */
}

@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);
    }
}

@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;
    }
}