.flashgate-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flashgate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.timer-bar {
    flex-grow: 1;
    height: 12px;
    background-color: var(--bg-alt);
    border-radius: 6px;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background-color: var(--primary-color, #4a90e2);
    width: 100%;
    transition: width 0.1s linear;
}

.hangman-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--text-color);
}

.hangman-visual {
    width: 40px;
    height: 40px;
    background-color: var(--bg-alt);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.instruction {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.game-board {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash-card {
    background-color: var(--bg-alt);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-card:hover {
    background-color: var(--primary-color);
    color: white;
}

.flash-card.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.flash-card.correct {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
    color: white !important;
    animation: fadeOutUp 0.5s forwards;
    pointer-events: none;
}

.flash-card.incorrect {
    background-color: #F44336 !important;
    border-color: #F44336 !important;
    color: white !important;
    animation: shake 0.4s;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    min-width: 300px;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}