/* Custom styles for Just One game */
.word-item {
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 60px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.word-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.word-item:active {
    transform: scale(0.98);
}

.word-item.selected {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    border: 3px solid #000000;
    border-radius: 12px;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .word-item {
        min-height: 60px;
        padding: 8px !important;
    }

    .word-item:hover {
        transform: none;
    }

    .word-item:active {
        transform: scale(0.95);
        background-color: rgba(59, 130, 246, 0.1);
    }
}

.word-item-1 {
    border-left: 4px solid #3b82f6; /* Blue */
}

.word-item-2 {
    border-left: 4px solid #10b981; /* Green */
}

.word-item-3 {
    border-left: 4px solid #ef4444; /* Red */
}

.word-item-4 {
    border-left: 4px solid #f59e0b; /* Orange */
}

.word-item-5 {
    border-left: 4px solid #8b5cf6; /* Purple */
}

/* Animation for screen transitions */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Card flip animation */
.card-flip {
    animation: cardFlip 0.6s ease-in-out;
}

@keyframes cardFlip {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall linear infinite;
}

.confetti:nth-child(odd) {
    background: #ff6b6b;
    animation-duration: 3s;
    animation-delay: 0s;
}

.confetti:nth-child(even) {
    background: #4ecdc4;
    animation-duration: 2.5s;
    animation-delay: 0.5s;
}

.confetti:nth-child(3n) {
    background: #45b7d1;
    animation-duration: 3.5s;
    animation-delay: 1s;
}

.confetti:nth-child(4n) {
    background: #96ceb4;
    animation-duration: 2.8s;
    animation-delay: 1.5s;
}

.confetti:nth-child(5n) {
    background: #ffd93d;
    animation-duration: 3.2s;
    animation-delay: 0.8s;
}

.confetti:nth-child(6n) {
    background: #ff9ff3;
    animation-duration: 2.7s;
    animation-delay: 1.2s;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Birthday message animation */
.birthday-message {
    animation: birthday-bounce 2s ease-in-out infinite;
}

@keyframes birthday-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

