/* 52Utemaningar - Custom CSS */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Card animations */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Button animations */
.btn {
    transition: all 0.3s ease;
}

/* Alert auto-dismiss */
.alert {
    animation: slideDown 0.3s ease;
}

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

/* Loading spinner */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Progress bar animation */
.progress-bar {
    transition: width 1s ease;
}

/* Challenge card flip animation */
.card-container {
    perspective: 1000px;
}

.challenge-card {
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.challenge-card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    backface-visibility: hidden;
}

.card-front {
    transform: rotateY(180deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem !important;
    }
    
    .hero p {
        font-size: 1.1rem !important;
    }
    
    .game-card {
        margin-bottom: 20px;
    }
}