h1 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.explanation {
    background: #f7fafc;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.explanation h2 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.explanation p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.custom-page-title p {
    font-size: 1.125rem;
}

.custom-page-title ul li {
    font-size: 1.125rem;
}

.examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.example-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.example-card .english {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.example-card .hungarian {
    color: #718096;
}

.game-container {
    display: none;
    animation: slideIn 0.5s ease-out;
}

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

.progress-bar {
    background: #e2e8f0;
    height: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.question-counter {
    text-align: center;
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: bold;
}

.word-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    min-height: 80px;
}

.word-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 25px 25px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    user-select: none;
    touch-action: none;
    text-align: center;
}

.word-card:active {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.word-card.dragging {
    opacity: 0.5;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.drop-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.drop-slot {
    width: 180px;
    height: 80px;
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #a0aec0;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.drop-slot.hover {
    border-color: #5a67d8;
    background: #e6f2ff;
    transform: scale(1.05);
}

.drop-slot.filled {
    border-style: solid;
    background: white;
}

.plus-sign {
    font-size: 2rem;
    color: #5a67d8;
    font-weight: bold;
}

.visual-hint {
    text-align: center;
    margin: 30px 0;
    font-size: 3rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.check-button {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.check-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.check-button:active {
    transform: translateY(0);
}

.check-button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.start-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    display: block;
    margin: 40px auto;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feedback {
    text-align: center;
    margin: 20px 0;
    font-size: 1.3rem;
    font-weight: bold;
    min-height: 40px;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feedback.correct {
    color: #48bb78;
}

.feedback.incorrect {
    color: #f56565;
}

.results-container {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.results-container h2 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

.restart-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.restart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .drop-slot {
        width: 140px;
        height: 70px;
        min-height: 70px;
        text-align: center;
    }

    .word-card {
        padding: 15px 20px;
        font-size: 1.1rem;
        margin: 5px;
        min-width: 100px;
    }

    .examples {
        grid-template-columns: 1fr;
    }
    
    .word-pool {
        padding: 10px;
    }
}

.celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    animation: celebrate 1s ease-out;
    pointer-events: none;
    z-index: 1000;
}

@keyframes celebrate {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(0) rotate(360deg);
        opacity: 0;
    }
}

.cta-section {
    background: linear-gradient(135deg, #002f34 0%, #197274 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    margin-top: auto;
}

.cta-section h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.cta-section p {
    margin-bottom: 15px;
    opacity: 0.9;
    font-size: 1.125rem;
}

.cta-btn {
    background: white;
    color: var(--primary);
    font-weight: bold;
    padding: .8rem 1.5rem;
    border: 1px solid #002f34;
    border-radius: 10px;
}

.cta-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}