/* Konfetti Container */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Countdown Styling */
.countdown-container {
    margin: 2em auto;
    text-align: center;
    font-weight: bold;
}

.countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: 1em;
}

.countdown-item {
    min-width: 80px;
    padding: 1em;
    text-align: center;
}

.countdown-number {
    font-size: 2em;
    display: block;
    margin-bottom: 0.25em;
    color: #000000;
    font-weight: bold;
}

.countdown-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd300;
    top: 0;
    opacity: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    animation: slideDown 0.5s;
}

@keyframes slideDown {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.bike-animation {
    display: block;
    width: 100px;
    margin: 20px auto;
    animation: bikeRide 2s infinite linear;
}

@keyframes bikeRide {
    0% {transform: translateX(-100px);}
    100% {transform: translateX(100px);}
}

.spin-animation {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.jump-animation {
    animation: jump 0.5s ease-in-out;
}

@keyframes jump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Loading spinner */
.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

/* Error message */
.error-message {
    color: #e74c3c;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    display: none;
}

/* Sprüche Ticker */
#spruecheTicker {
    font-size: 1.2em;
    color: #f39c12;
    position: relative;
}

/* Die animierte Klasse, die den Text von unten nach oben einblendet */
.slide-up {
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}