.flashcard {
    width: 100%;
    max-width: 1600px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 10px;
}

.flashcard-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.text-center-grow {
    flex-grow: 1;
    text-align: center;
}

.word-translation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

#word {
    color: #0056ff;
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
}

#translation {
    color: #666666;
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
}

.button-group-random {
    display: flex;
    gap: 8px;
}

.btn-circle-random {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    background-color: #ff9900;
}

.btn-blue { background-color: #0056ff !important; color: white !important; }
.btn-green { background-color: #0b8c0b !important; color: white !important; }
.btn-orange { background-color: #ff9900 !important; color: white !important; }

.btn-circle-random:hover {
    transform: scale(1.05);
    background-color: darkgreen;
}

@media (max-width: 768px) {
    .flashcard-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .button-group-random {
        margin-top: 0px;
    }

    .word-translation {
        flex-direction: column;
    }

    #word, #translation {
        width: 100%;
    }
}
